File "main.bundle.js"
Full path: /var/www/vhosts/msproyectoscloud.cl/siadrecursos.msproyectoscloud.cl/RECURSOS/recursos.siadspsminsal.cl/Dolor_cronico/M3/scormcontent/lib/main.bundle.js
File size: 2.86 MiB (2997871 bytes)
MIME-type: text/plain
Charset: utf-8
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://articulateusercontent.com/rise/runtimes/rise-frontend/",n(n.s=2703)}([function(e,t,n){"use strict";e.exports=n(1211)},function(e,t,n){e.exports=n(1222)()},function(e,t,n){var r;
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(i.apply(null,r));else if("object"===o)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=i:void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){e.exports=n(1225)},function(e,t,n){e.exports=n(1278)},function(e,t,n){e.exports=n(1275)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(413),i=n.n(r),o=n(531),a=n.n(o);function s(e){return(s=i.a?a.a:function(e){return e.__proto__||a()(e)})(e)}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(25),i=n(463);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(62),i=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),i()(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(377),i=n.n(r),o=n(344);function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=i()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(o.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(62),i=n.n(r);function o(e,t,n){return t in e?i()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(99))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(255),i=n.n(r),o=n(7);function a(e,t){return!t||"object"!==i()(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return t[e]})},function(e,t,n){e.exports=n(1327)},function(e,t,n){var r=n(51);e.exports=r(function(e){return function(){return e}})},function(e,t,n){var r=n(51),i=n(461);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){var r=n(61),i=n(38);e.exports=r(function(e,t,n){return i(t,n[e])})},function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"i",function(){return j}),n.d(t,"l",function(){return A}),n.d(t,"h",function(){return M}),n.d(t,"m",function(){return P}),n.d(t,"j",function(){return N}),n.d(t,"k",function(){return I}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return R}),n.d(t,"d",function(){return B}),n.d(t,"e",function(){return F}),n.d(t,"f",function(){return U}),n.d(t,"g",function(){return q});var r=n(33),i=n.n(r),o=n(34),a=n.n(o),s=n(82),c=n.n(s),u=n(143),l=n.n(u),f=n(100),d=n.n(f),h=n(17),p=n.n(h),m=n(124),v=n.n(m),g=n(232),y=n.n(g),b=n(53),_=n.n(b),w=n(202),x=n(23),k=n(104),E=n(74),S=n(263),T=function(){return document.getElementById("focus-ring-style")||O()},O=function(){var e=document.createElement("style");return e.id="focus-ring-style",document.head.appendChild(e),e},C=0,j=-1,A=function(){var e=T();document.addEventListener("mousedown",function(){i()(function(){e.innerHTML=":focus{outline: none}"},0),Object(E.a)(Object(S.c)(!1))}),window.addEventListener("keydown",M)},M=function(e){var t=e.target,n=T();(Object(x.l)(e)||Object(x.e)(e)&&!t.classList.contains("ignore-prefers"))&&(n.innerHTML="",Object(E.a)(Object(S.c)(!0)))},P=function(e){return e?C:j},N=function(e,t){var n=t!==C;(e||{}).tabIndex=t,Object(k.d)({element:e,isHidden:n})},I=function(e){var t=e.element,n=e.selector,r=e.tabIndex,i=Object(w.b)(t.querySelectorAll(n));a()(i).call(i,function(e){N(e,r)})},L=function(e){var t=Object(w.b)(e.getElementsByTagName("*"));a()(t).call(t,function(e){N(e,j)})},D=function(e){return function(t){var n,r,i=t.querySelectorAll('[tabindex = "0"]');return!!i.length&&(n=p()(e),r=i,d()(n,c.a,l.a)(r).focus(),!0)}},R=D(!0),B=D(!1),F=function(e){var t=e.list,n=e.index;n>=0&&n<_()(t)&&t[n].focus()},U=function(e){var t=e.list,n=e.currentIndex,r=v()(n||0),i=r<_()(t)?r:0;return F({list:t,index:i}),i},q=function(e){var t=e.list,n=e.currentIndex,r=y()(n||_()(t));return F({list:t,index:r}),r}},function(e,t,n){e.exports={F:n(1507),T:n(71),__:n(207),add:n(256),addIndex:n(188),adjust:n(311),all:n(259),allPass:n(416),always:n(17),and:n(827),any:n(520),anyPass:n(417),ap:n(515),aperture:n(1508),append:n(190),apply:n(521),applySpec:n(1511),ascend:n(526),assoc:n(26),assocPath:n(824),binary:n(1512),bind:n(738),both:n(163),call:n(1513),chain:n(625),clamp:n(1517),clone:n(1518),comparator:n(1519),complement:n(101),compose:n(8),composeK:n(831),composeP:n(661),concat:n(54),cond:n(39),construct:n(1520),constructN:n(832),contains:n(102),converge:n(519),countBy:n(1521),curry:n(79),curryN:n(57),dec:n(232),defaultTo:n(149),descend:n(1523),difference:n(523),differenceWith:n(833),dissoc:n(226),dissocPath:n(1524),divide:n(258),drop:n(524),dropLast:n(658),dropLastWhile:n(1526),dropRepeats:n(1529),dropRepeatsWith:n(835),dropWhile:n(1530),either:n(117),empty:n(772),endsWith:n(1532),eqBy:n(1533),eqProps:n(1081),equals:n(38),evolve:n(92),filter:n(55),find:n(69),findIndex:n(137),findLast:n(662),findLastIndex:n(1535),flatten:n(184),flip:n(48),forEach:n(420),forEachObjIndexed:n(1537),fromPairs:n(287),groupBy:n(1538),groupWith:n(1539),gt:n(231),gte:n(418),has:n(115),hasIn:n(1540),head:n(82),identical:n(759),identity:n(46),ifElse:n(100),inc:n(124),indexBy:n(1541),indexOf:n(318),init:n(1542),innerJoin:n(1543),insert:n(660),insertAll:n(1544),intersection:n(1545),intersectionWith:n(1546),intersperse:n(1547),into:n(1548),invert:n(1550),invertObj:n(1551),invoker:n(399),is:n(310),isEmpty:n(68),isNil:n(32),join:n(196),juxt:n(412),keys:n(84),keysIn:n(1552),last:n(143),lastIndexOf:n(1553),length:n(53),lens:n(482),lensIndex:n(1554),lensPath:n(94),lensProp:n(88),lift:n(477),liftN:n(806),lt:n(229),lte:n(260),map:n(30),mapAccum:n(1555),mapAccumRight:n(1556),mapObjIndexed:n(116),match:n(285),mathMod:n(1557),max:n(283),maxBy:n(1558),mean:n(837),median:n(1559),memoize:n(1560),memoizeWith:n(342),merge:n(29),mergeAll:n(211),mergeDeepLeft:n(1561),mergeDeepRight:n(663),mergeDeepWith:n(1562),mergeDeepWithKey:n(486),mergeWith:n(1563),mergeWithKey:n(627),min:n(1564),minBy:n(1565),modulo:n(1566),multiply:n(227),nAry:n(483),negate:n(664),none:n(1567),not:n(111),nth:n(225),nthArg:n(1568),o:n(1569),objOf:n(157),of:n(414),omit:n(73),once:n(1570),or:n(518),over:n(58),pair:n(1571),partial:n(145),partialRight:n(1572),partition:n(1573),path:n(31),pathEq:n(230),pathOr:n(24),pathSatisfies:n(527),pick:n(107),pickAll:n(838),pickBy:n(1574),pipe:n(25),pipeK:n(1575),pipeP:n(517),pluck:n(183),prepend:n(343),product:n(1576),project:n(1577),prop:n(15),propEq:n(19),propIs:n(1578),propOr:n(52),propSatisfies:n(208),props:n(528),range:n(415),reduce:n(109),reduceBy:n(484),reduceRight:n(840),reduceWhile:n(1579),reduced:n(1580),reject:n(136),remove:n(522),repeat:n(1581),replace:n(261),reverse:n(463),scan:n(1582),sequence:n(842),set:n(228),slice:n(182),sort:n(378),sortBy:n(1082),sortWith:n(1583),split:n(257),splitAt:n(724),splitEvery:n(1584),splitWhen:n(1585),startsWith:n(665),subtract:n(1586),sum:n(348),symmetricDifference:n(666),symmetricDifferenceWith:n(1587),tail:n(340),take:n(603),takeLast:n(836),takeLastWhile:n(1588),takeWhile:n(1589),tap:n(110),test:n(236),times:n(841),toLower:n(286),toPairs:n(233),toPairsIn:n(1591),toString:n(391),toUpper:n(667),transduce:n(1083),transpose:n(1592),traverse:n(1593),trim:n(245),tryCatch:n(1594),type:n(602),unapply:n(1595),unary:n(534),uncurryN:n(209),unfold:n(1596),union:n(1597),unionWith:n(1598),uniq:n(341),uniqBy:n(757),uniqWith:n(626),unless:n(87),unnest:n(1599),until:n(1600),update:n(411),useWith:n(839),values:n(76),valuesIn:n(1601),view:n(529),when:n(42),where:n(843),whereEq:n(1084),without:n(313),xprod:n(1602),zip:n(349),zipObj:n(1603),zipWith:n(1604)}},function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"e",function(){return m}),n.d(t,"a",function(){return g}),n.d(t,"g",function(){return b}),n.d(t,"f",function(){return _}),n.d(t,"b",function(){return w}),n.d(t,"d",function(){return x}),n.d(t,"h",function(){return k});var r=n(4),i=n.n(r),o=n(146),a=n.n(o),s=n(5),c=n.n(s),u=n(48),l=n.n(u),f=n(15),d=n.n(f),h=window.Runtime,p=l()(d.a)(window.env||{}),m=!1,v=function(e){return h&&h[e]},g="Rise 360";function y(e){return p("CDN_USER_CONTENT_URI")+"/"+e}function b(e){var t,n=e||"",r=v("resolvePath")?i()(t=h.resolvePath).call(t,h):y;return a()(n).call(n,"http")||a()(n).call(n,"data:")||a()(n).call(n,"//")?n:r(n)}function _(e){var t;if(v("resolveFontPath"))return h.resolveFontPath(e);var n=e.default?p("CDN_URI"):p("CDN_USER_CONTENT_URI");return c()(t="".concat(n,"/")).call(t,e.key)}function w(){v("exit")&&h.exit()}function x(){return!!v("isExport")&&h.isExport()}function k(){if(v("sendTouch"))return h.sendTouch()}},function(e,t,n){"use strict";n.d(t,"d",function(){return C}),n.d(t,"l",function(){return j}),n.d(t,"k",function(){return A}),n.d(t,"f",function(){return M}),n.d(t,"m",function(){return P}),n.d(t,"b",function(){return N}),n.d(t,"g",function(){return I}),n.d(t,"i",function(){return L}),n.d(t,"c",function(){return D}),n.d(t,"e",function(){return R}),n.d(t,"j",function(){return B}),n.d(t,"h",function(){return F}),n.d(t,"n",function(){return U}),n.d(t,"o",function(){return q}),n.d(t,"a",function(){return z}),n.d(t,"q",function(){return H}),n.d(t,"p",function(){return W}),n.d(t,"r",function(){return V});var r=n(659),i=n.n(r),o=n(214),a=n.n(o),s=n(39),c=n.n(s),u=n(102),l=n.n(u),f=n(79),d=n.n(f),h=n(42),p=n.n(h),m=n(117),v=n.n(m),g={keys:["End"],keyCode:a.a.KEY_END},y={keys:["Enter"],keyCode:a.a.KEY_RETURN},b={keys:["Home"],keyCode:a.a.KEY_HOME},_={keys:["Tab"],keyCode:a.a.KEY_TAB},w={keys:[" "],keyCode:a.a.KEY_SPACE},x={keys:["Escape","Esc"],keyCode:a.a.KEY_ESCAPE},k={keys:["ArrowUp"],keyCode:a.a.KEY_UP},E={keys:["ArrowDown"],keyCode:a.a.KEY_DOWN},S={keys:["ArrowLeft"],keyCode:a.a.KEY_LEFT},T={keys:["ArrowRight"],keyCode:a.a.KEY_RIGHT},O=function(e){var t=e.keyCode,n=i()(e);return function(e){return e.keyCode?e.keyCode===t:l()(e.key,n)}},C=(O(g),O(y)),j=(O(b),O(_)),A=O(w),M=O(x),P=O(k),N=O(E),I=O(S),L=O(T),D=v()(N,L),R=v()(A,C),B=(v()(j,C),v()(L,P)),F=v()(I,N),U=v()(P,N),q=v()(P,I),z=p()(R),H=d()(function(e,t){0!==e.scrollTop&&(t.preventDefault(),e.scrollTop-=25)}),W=d()(function(e,t,n){t&&(n.preventDefault(),e.scrollTop+=25)}),V=function(e,t){return function(n){var r=W(e,t),i=H(e);c()([[N,r],[P,i]])(n)}}},function(e,t,n){var r=n(61),i=n(149),o=n(31);e.exports=r(function(e,t,n){return i(e,o(t,n))})},function(e,t,n){var r=n(220),i=n(1221),o=n(109),a=n(340);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r})},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(1833);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r}).call(this,n(99))},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(98),i=n.n(r);function o(){return(o=i.a||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},function(e,t,n){var r=n(623),i=n(18);e.exports=i(function(e,t){return r({},e,t)})},function(e,t,n){var r=n(18),i=n(134),o=n(468),a=n(193),s=n(1293),c=n(57),u=n(84);e.exports=r(i(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return c(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},u(t));default:return o(e,t)}}))},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n})},function(e,t,n){var r=n(51);e.exports=r(function(e){return null==e})},function(e,t,n){e.exports=n(1417)},function(e,t,n){e.exports=n(1420)},function(e,t,n){var r=n(638);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(122),i=n(272).f,o=n(735),a=n(93),s=n(168),c=n(203),u=n(176),l=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,f,d,h,p,m,v,g,y=e.target,b=e.global,_=e.stat,w=e.proto,x=b?r:_?r[y]:(r[y]||{}).prototype,k=b?a:a[y]||(a[y]={}),E=k.prototype;for(d in t)n=!o(b?d:y+(_?".":"#")+d,e.forced)&&x&&u(x,d),p=k[d],n&&(m=e.noTargetGet?(g=i(x,d))&&g.value:x[d]),h=n&&m?m:t[d],n&&typeof p==typeof h||(v=e.bind&&n?s(h,r):e.wrap&&n?l(h):w&&"function"==typeof h?s(Function.call,h):h,(e.sham||h&&h.sham||p&&p.sham)&&c(v,"sham",!0),k[d]=v,w&&(u(a,f=y+"Prototype")||c(a,f,{}),a[f][d]=h,e.real&&E&&!E[d]&&c(E,d,h)))}},function(e,t,n){var r=n(127),i=n(325).f,o=n(308),a=n(326),s=n(2154),c=n(2200),u=n(1072);e.exports=function(e,t){var n,l,f,d,h,p=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(h=i(n,l))&&h.value:n[l],!u(m?l:p+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){var r=n(18),i=n(1299);e.exports=r(function(e,t){return i(e,t,[],[])})},function(e,t,n){var r=n(220),i=n(51),o=n(30),a=n(283),s=n(109);e.exports=i(function(e){var t=s(a,0,o(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})})},function(e,t,n){"use strict";n(1850),n(898),n(899);var r=n(900),i=(n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(656)),o=(n(908),n(909),n(910),n(911),n(912),n(913)),a=n(2),s=n.n(a),c=n(0),u=n.n(c),l=(n(914),n(915),function(e){var t=e["aria-hidden"],n=e["aria-label"],r=void 0===n?"Check mark":n,i=e.className,o=e.desc,a=e.height,c=void 0===a?"8":a,l=e.role,f=void 0===l?"img":l,d=e.title,h=e.width,p=void 0===h?"11":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":r,className:s()("i i-checkMark",i),focusable:"false",height:c,role:f,viewBox:"0 0 11 8",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"}))}),f=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=e.height,a=void 0===o?"21":o,c=e.role,l=void 0===c?"img":c,f=e.title,d=e.width,h=void 0===d?"21":d;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:s()("i i-checkMarkFilled",r),focusable:"false",height:a,role:l,viewBox:"0 0 21 21",width:h,xmlns:"http://www.w3.org/2000/svg"},f&&u.a.createElement("title",null,f),i&&u.a.createElement("desc",null,i),u.a.createElement("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"}))},d=function(e){var t=e.title,n=void 0===t?"More":t,r=e.desc,i=void 0===r?"Caret pointing down":r,o=e.width,a=void 0===o?"7":o,c=e.height,l=void 0===c?"5":c,f=e.className,d=e.focusable,h=void 0===d?"false":d;return u.a.createElement("svg",{viewBox:"0 0 7 5",width:a,height:l,className:s()("i i-chevronDown",f),focusable:h},u.a.createElement("title",null,n),u.a.createElement("desc",null,i),u.a.createElement("g",{transform:"translate(-15 -14)"},u.a.createElement("path",{d:"M18.1042026,17.8957974 C18.2994647,18.0910596 18.6160472,18.0910596 18.8113094,17.8957974 L21.3535534,15.3535534 C21.5488155,15.1582912 21.5488155,14.8417088 21.3535534,14.6464466 C21.1582912,14.4511845 20.8417088,14.4511845 20.6464466,14.6464466 L18.4734187,16.8508 L16.3535534,14.7309347 C16.1582912,14.5356725 15.8417088,14.5356725 15.6464466,14.7309347 C15.4511845,14.9261968 15.4511845,15.2427793 15.6464466,15.4380415 L18.1042026,17.8957974 Z"})))},h=(n(916),n(917),n(918),n(657)),p=(n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926)),m=(n(927),n(928),n(28),n(120),n(3)),v=n.n(m),g=n(9),y=n(10),b=n(11),_=n(14),w=n(6);function x(e){var t=function(){if("undefined"==typeof Reflect||!v.a)return!1;if(v.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(v()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(w.a)(e);if(t){var i=Object(w.a)(this).constructor;n=v()(r,arguments,i)}else n=r.apply(this,arguments);return Object(_.a)(this,n)}}c.Component,n(929),n(930);var k=n(931),E=(n(932),n(933)),S=(n(934),n(935)),T=(n(936),n(937),n(938),n(939),n(940),function(e){var t=e["aria-hidden"],n=e["aria-label"],r=void 0===n?"X mark":n,i=e.className,o=e.desc,a=e.height,c=void 0===a?"10":a,l=e.role,f=void 0===l?"img":l,d=e.title,h=e.width,p=void 0===h?"10":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":r,className:s()("i i-exMark",i),focusable:"false",height:c,role:f,viewBox:"0 0 10 10",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"}))}),O=(n(941),function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#DFE1E2"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fillRule:"evenodd",fill:"#C7CACC"}),u.a.createElement("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),u.a.createElement("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),u.a.createElement("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),u.a.createElement("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"}))}),C=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#C3CEED"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),u.a.createElement("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),u.a.createElement("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),u.a.createElement("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"}))},j=(n(942),function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),u.a.createElement("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),u.a.createElement("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),u.a.createElement("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"}))}),A=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),u.a.createElement("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),u.a.createElement("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),u.a.createElement("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"}))},M=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),u.a.createElement("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),u.a.createElement("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),u.a.createElement("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"}))},P=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),u.a.createElement("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),u.a.createElement("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),u.a.createElement("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"}))},N=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,s=void 0===a?"50":a,c=e.role,l=void 0===c?"img":c,f=e.title,d=void 0===f?"":f,h=e.width,p=void 0===h?"40":h;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,fill:"none",focusable:"false",height:s,role:l,viewBox:"0 0 40 50",width:p,xmlns:"http://www.w3.org/2000/svg"},d&&u.a.createElement("title",null,d),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fillRule:"evenodd",fill:"#CFEAF8"}),u.a.createElement("path",{clipRule:"evenodd",d:"M26 0V14H40",fillRule:"evenodd",fill:"#ABDBF3"}),u.a.createElement("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),u.a.createElement("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),u.a.createElement("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"}))},I=n(943),L=n(944),D=(n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955)),R=(n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964)),B=(n(965),n(966)),F=(n(967),n(968)),U=n(969),q=(n(970),n(971),n(972),n(973)),z=(n(974),n(975),n(976),n(977),n(978),n(5)),H=n.n(z),W=n(235),V=n.n(W);function Y(e){var t=function(){if("undefined"==typeof Reflect||!v.a)return!1;if(v.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(v()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(w.a)(e);if(t){var i=Object(w.a)(this).constructor;n=v()(r,arguments,i)}else n=r.apply(this,arguments);return Object(_.a)(this,n)}}var G=function(e){Object(b.a)(n,e);var t=Y(n);function n(){var e,r;Object(g.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.call.apply(t,H()(e=[this]).call(e,o))).maskId="person-unknown-mask-".concat(V()()),r.pathId="person-unknown-path-".concat(V()()),r}return Object(y.a)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=void 0===t?"Person Unknown":t,r=e.desc,i=e.width,o=void 0===i?"38":i,a=e.height,c=void 0===a?"38":a,l=e.className,f=e.decorative,d=e.focusable,h=void 0===d?"false":d;return u.a.createElement("svg",{"aria-hidden":f,viewBox:"0 0 38 38",width:o,height:c,className:s()("i i-person-unknown",l),focusable:h},n&&u.a.createElement("title",null,n),r&&u.a.createElement("desc",null,r),u.a.createElement("defs",null,u.a.createElement("circle",{id:this.pathId,cx:"19",cy:"19",r:"19"})),u.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},u.a.createElement("mask",{id:this.maskId,fill:"#fff"},u.a.createElement("use",{href:"#".concat(this.pathId)})),u.a.createElement("use",{fill:"#D8D8D8",href:"#".concat(this.pathId)}),u.a.createElement("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:"url(#".concat(this.maskId,")")})))}}]),n}(c.Component),K=n(979),$=(n(980),n(981),n(982),n(983)),X=(n(984),n(985),n(986),n(573),n(987),n(988),n(989),n(990)),Q=(n(991),n(992),n(993),n(994),n(995),n(996),n(997),n(998),n(999),n(1e3)),Z=(n(1001),n(1002),n(1003),n(1004),n(1005),n(1006),n(1007),n(1008),n(1009)),J=(n(1010),n(1011),function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,i=e.desc,o=void 0===i?"":i,a=e.height,c=void 0===a?"20":a,l=e.role,f=void 0===l?"img":l,d=e.title,h=void 0===d?"":d,p=e.width,m=void 0===p?"20":p;return u.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:s()("i i-xMarkFilled",r),focusable:"false",height:c,role:f,viewBox:"0 0 20 20",width:m,xmlns:"http://www.w3.org/2000/svg"},h&&u.a.createElement("title",null,h),o&&u.a.createElement("desc",null,o),u.a.createElement("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"}))});n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return i.a}),n.d(t,"c",function(){return o.a}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return h.a}),n.d(t,"h",function(){return p.a}),n.d(t,"i",function(){return k.a}),n.d(t,"j",function(){return E.a}),n.d(t,"k",function(){return S.a}),n.d(t,"l",function(){return T}),n.d(t,"m",function(){return O}),n.d(t,"n",function(){return C}),n.d(t,"o",function(){return j}),n.d(t,"p",function(){return A}),n.d(t,"q",function(){return M}),n.d(t,"r",function(){return P}),n.d(t,"s",function(){return N}),n.d(t,"t",function(){return I.a}),n.d(t,"u",function(){return L.a}),n.d(t,"v",function(){return D.a}),n.d(t,"w",function(){return R.a}),n.d(t,"x",function(){return B.a}),n.d(t,"y",function(){return F.a}),n.d(t,"z",function(){return U.a}),n.d(t,"A",function(){return q.a}),n.d(t,"B",function(){return G}),n.d(t,"C",function(){return K.a}),n.d(t,"D",function(){return $.a}),n.d(t,"E",function(){return X.a}),n.d(t,"F",function(){return Q.a}),n.d(t,"G",function(){return Z.a}),n.d(t,"H",function(){return J})},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(339);function f(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var d=function(e){Object(s.a)(n,e);var t=f(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"isPlaying",get:function(){return this._isPlaying},set:function(e){this._isPlaying=e,this.emit("change")}},{key:"playerId",get:function(){return this._playerId},set:function(e){this._playerId=e}},{key:"pause",value:function(){this.isPlaying=!1}},{key:"isMuted",get:function(){return this._isMuted},set:function(e){this._isMuted=e,this.emit("change")}},{key:"mute",value:function(){this.isMuted=!1}},{key:"addChangeListener",value:function(e){this.on("change",e)}},{key:"removeChangeListener",value:function(e){this.removeListener("change",e)}}]),n}(l.EventEmitter);t.a=new d},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e(n)?t(n):n})},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(114),a=n(156),s=n.n(a),c=n(31),u=n.n(c),l=n(103),f=n(20),d=(n(1735),function(e){var t=e.allowTabNavigation,n=e.className,o=void 0===n?"":n,a=e.externalLinksDisabled,s=e.id,c=e.showExternalLinksModal,u=e.tagName,d=e.value,h=Object(r.useRef)(null),p=a?l.b:l.a,m=Object(r.useCallback)(function(e){var t=e.target.closest(".fr-view a");t&&t.hasAttribute("data-external")&&c()},[c]);return Object(r.useEffect)(function(){return Object(f.k)({element:h.current,selector:"div.fr-view a",tabIndex:Object(f.m)(t)})}),i.a.createElement("div",{"aria-hidden":!t,className:"".concat(o," brand--linkColor"),onClickCapture:m,id:s,ref:h},Object(r.createElement)(u,{className:"fr-view",dangerouslySetInnerHTML:{__html:p(d)}}))});d.defaultProps={allowTabNavigation:!0,tagName:"div"};var h=s()({externalLinksDisabled:u()(["course","externalLinksDisabled"])}),p=Object(o.b)(h,{showExternalLinksModal:function(){return{type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0}}});t.a=p(d)},function(e,t,n){e.exports=n(1460)},function(e,t,n){e.exports=n(1454)},function(e,t,n){var r=n(51),i=n(601);e.exports=r(i)},function(e,t,n){e.exports=n(1310)},function(e,t,n){var r=n(51),i=n(79);e.exports=r(function(e){return i(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})})},function(e,t,n){e.exports=n(1463)},function(e,t,n){"use strict";var r=n(674),i=n(129),o=n.n(i),a=n(174),s=n.n(a);var c=n(419),u=n(675);function l(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:void 0!==o.a&&s()(e)||e["@@iterator"];if(null!=n){var r,i,a=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{c||null==n.return||n.return()}finally{if(u)throw i}}return a}}(e,t)||Object(c.a)(e,t)||Object(u.a)()}n.d(t,"a",function(){return l})},function(e,t,n){var r=n(461);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(61),i=n(178);e.exports=r(function(e,t,n){return null!=n&&i(t,n)?n[t]:e})},function(e,t,n){var r=n(51),i=n(805);e.exports=r(function(e){return null!=e&&i(e.length)?e.length:NaN})},function(e,t,n){var r=n(18),i=n(273),o=n(476),a=n(381),s=n(391);e.exports=r(function(e,t){if(i(e)){if(i(t))return e.concat(t);throw new TypeError(s(t)+" is not an array")}if(a(e)){if(a(t))return e+t;throw new TypeError(s(t)+" is not a string")}if(null!=e&&o(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&o(e.concat))return e.concat(t);throw new TypeError(s(e)+' does not have a method named "concat" or "fantasy-land/concat"')})},function(e,t,n){var r=n(18),i=n(134),o=n(599),a=n(600),s=n(193),c=n(1295),u=n(84);e.exports=r(i(["filter"],c,function(e,t){return a(t)?s(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},u(t)):o(e,t)}))},function(e,t,n){"use strict";(function(e){var r=n(133),i=n.n(r),o=(n(1853),n(1121)),a=n.n(o),s=function(t){var n=t.afterAnimatedIn,r=t.animateBlockEntrance,o=t.animateIn,s=t.animateOnce,c=t.children,u=t.className,l=t.duration,f=t.keepStructure,d=t.initiallyVisible,h=t.isLearner,p=t.offset,m=t.siblingDelay;return h&&r?e.createElement(a.a,{afterAnimatedIn:n,animateIn:o,animateOnce:s,className:u,duration:l,initiallyVisible:d,keepStructure:f,offset:p,scrollableParentSelector:"#page-wrap",siblingDelay:m},c):i()(c)?e.createElement("div",null,c):c};s.defaultProps={animateOnce:!0,duration:.75,offset:200,siblingDelay:0},t.a=s}).call(this,n(0))},function(e,t,n){var r=n(220),i=n(51),o=n(18),a=n(469);e.exports=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))})},function(e,t,n){var r,i=n(61);e.exports=(r=function(e){return{value:e,map:function(t){return r(t(e))}}},i(function(e,t,n){return e(function(e){return r(t(e))})(n).value}))},function(e,t,n){e.exports=n(1456)},function(e,t,n){e.exports=n(1288)},function(e,t,n){var r=n(51),i=n(18),o=n(461);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){e.exports=n(1231)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),i=function(e,t){return r.test(t)?t:e}},function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return p});var r=n(16),i=n.n(r),o=n(17),a=n.n(o),s=n(57),c=n.n(s),u=n(1094),l=n.n(u),f=c()(2,function(e,t){return{type:e,payload:t}}),d=(c()(2,function(e,t){return[t,e]}),c()(2,function(e,t){return{type:e,payload:t,error:!0}}),function(e){var t=e.dispatch;return function(e){return function(n){"function"!=typeof i()(n)?e(n):i()(n).call(n,t)}}}),h=c()(2,function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,i=r.type,o=r.payload,a=r.error;return t[i]?t[i](n,o,a):n}}),p=function(e){var t;return i()(t=l()(e)).call(t,a()({type:"SIDE_EFFECT"}))};a()(p(function(){return location.href="/"}))},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r={learn:{course:{container:"learn.course",overview:{container:"learn.course.overview",startButton:"learn.course.overview.startButton",favoriteButton:"learn.course.overview.favoritebutton"},lesson:{container:"learn.course.lesson",nextLessonLink:"learn.course.lesson.nextLessonLink"}}}},i={common:{checkboxSelect:"common.checkboxSelect",dropdownClose:"common.dropdownClose",continueBtn:"common.continueBtn"},courseEdit:{container:"courseEdit",addNewLessonInput:"courseEdit.addNewLessonInput",addContentBtn:"courseEdit.addContentBtn",addLesson:"courseEdit.addLesson"},lessonEdit:{container:"lessonEdit.container",blockCreateBtn:"lessonEdit.blockCreateBtn",allBlocksBtn:"lessonEdit.allBlocksBtn",block:"lessonEdit.block",blocksSidebar:{container:"lessonEdit.blocksSidebar",blockName:"lessonEdit.blocksSidebar.blockName",closeBtn:"lessonEdit.blocksSidebar.closeBtn",blockThumbnails:{container:"lessonEdit.blocksSidebar.blockThumbnails",thumbnail:"lessonEdit.blocksSidebar.blockThumbnails.thumbnail"}},blockSelectionHeader:{container:"lessonEdit.blockSelectionHeader.container",saveBtn:"lessonEdit.blockSelectionHeader.saveBtn"},blockTemplateDialog:{container:"lessonEdit.blockTemplateDialog",input:"lessonEdit.blockTemplateDialog.input",saveBtn:"lessonEdit.blockTemplateDialog.saveBtn"}},lessonPreview:{container:"lessonPreview.container",previewIframe:"lessonPreview.previewIframe"},blocks:{blockOverlayBtn:"blocks.blockOverlayBtn",blockText:"blocks.blockText",blockImpact:"blocks.blockImpact",blockQuote:"blocks.blockQuote",blockKnowledge:"blocks.blockKnowledge",blockChart:"blocks.blockChart",blockList:"blocks.blockList",blockImage:"blocks.blockImage",blockGallery:"blocks.blockGallery",blockAudio:"blocks.blockAudio",blockVideo:"blocks.blockVideo",blockEmbed:"blocks.blockEmbed",blockAttachment:"blocks.blockAttachment",blockAccordion:"blocks.blockAccordion",blockTabs:"blocks.blockTabs",blockLabeledGraphic:"blocks.blockLabeledGraphic",blockProcess:"blocks.blockProcess",blockScenario:"blocks.blockScenario",blockSortingActivity:"blocks.blockSortingActivity",blockTimeline:"blocks.blockTimeline",blockFlashcards:"blocks.blockFlashcards",blockButton:"blocks.blockButton",blockDivider:"blocks.blockDivider",blockTemplates:{container:"blocks.blockTemplates.container",newBlockTemplateBtn:"blocks.blockTemplates.newBlockTemplateBtn",blockTemplateItem:"blocks.blockTemplates.blockTemplateItem",blockTemplateDialog:"blocks.blockTemplates.blockTemplateDialog",blockTemplateThumbnail:"blocks.blockTemplates.blockTemplateThumbnail"}},authoringHeader:{container:"authoringHeader",previewLessonButton:"authoringHeader.previewLessonButton",publishButton:"authoringHeader.publishButton",editBtn:"authoringHeader.editBtn",closeLessonBtn:"authoringHeader.closeLessonBtn",publishModal:{container:"authoringHeader.publishModal",publishButton:"authoringHeader.publishModal.publishButton",libraryToggle:"authoringHeader.publishModal.libraryToggle",libraryOption:"authoringHeader.publishModal.libraryOption"}}}},function(e,t,n){"use strict";n.d(t,"c",function(){return y}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return _}),n.d(t,"f",function(){return w}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return k});var r=n(5),i=n.n(r),o=n(115),a=n.n(o),s=n(236),c=n.n(s),u=n(22),l=Object(u.c)("CDN_USER_CONTENT_URI"),f=Object(u.c)("CDN_URI"),d=a()("useCrushedKey"),h=Object(u.c)("IMAGES_URI"),p=c()(/-stock[-_]image.jpg/),m=Object(u.c)("RBC_IMAGES_URI"),v=Object(u.c)("ASSETS_URI"),g=function(e){var t=e.crushedKey,n=e.key,r=e.useCrushedKey,i=e.src;return d(e)?r&&t?Object(u.g)(t):Object(u.g)(n):Object(u.g)(i)},y=function(e){var t,n;if(!e||!e.key)return"";var r=e.crushedKey,o=e.key,a=e.useCrushedKey;return h?d(e)&&a&&r?i()(t="".concat(h,"/f:jpg,b:fff,s:cover,t:true,w:340/")).call(t,r):i()(n="".concat(h,"/f:jpg,b:fff,s:cover,t:true,w:340/")).call(n,o):g(e)},b=function(e){var t;if(!e||!e.key)return"";var n,r,o,a=e.crushedKey,s=e.key,c=e.useCrushedKey;return h?p(s)?i()(n="".concat(h,"/f:jpg,a:retain,b:fff,w:1680,q:65/")).call(n,s):d(e)?c&&a?i()(r="".concat(l,"/")).call(r,a):i()(o="".concat(l,"/")).call(o,s):i()(t="".concat(h,"/f:jpg|png,a:retain,b:fff/")).call(t,s):g(e)},_=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"src",o=e.key,a=e.src,s=e.thumbnail,c=e.thumbnailKey,u=l?i()(t="".concat(l,"/")).call(t,o):g({key:o,src:a}),f=l?i()(n="".concat(l,"/")).call(n,c):g({key:c,src:s});return"src"===r?u:f},w=function(e){var t=e.height,n=e.imageKey,r=e.width;if(m){var o,a,s,c=encodeURIComponent(n);return i()(o=i()(a=i()(s="".concat(m,"/b:fff,f:jpg,s:cover,w:")).call(s,r,",h:")).call(a,t,"/")).call(o,c)}return Object(u.g)("partnerContent/".concat(n))},x=function(){var e,t=v||h,n="NBIC_logo_light_bulb.png";return t?i()(e="".concat(t,"/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/")).call(e,n):Object(u.g)("partnerContent/".concat(n))},k=function(){var e,t="NBIC_logo_blue.svg";return f?i()(e="".concat(f,"/assets/rise/assets/partner-content/")).call(e,t):Object(u.g)("partnerContent/".concat(t))}},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
/*!
* Programatically add the following
*/
for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},function(e,t,n){var r=n(51),i=n(772),o=n(38);e.exports=r(function(e){return null!=e&&o(e,i(e))})},function(e,t,n){var r=n(18),i=n(134),o=n(1296);e.exports=r(i(["find"],o,function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}}))},function(e,t,n){"use strict";n.d(t,"c",function(){return ht}),n.d(t,"b",function(){return mt}),n.d(t,"e",function(){return vt}),n.d(t,"a",function(){return gt}),n.d(t,"g",function(){return yt}),n.d(t,"h",function(){return bt}),n.d(t,"f",function(){return Ot});var r,i=n(45),o=n.n(i),a=n(59),s=n.n(a),c=n(44),u=n.n(c),l=n(34),f=n.n(l),d=n(49),h=n.n(d),p=n(75),m=n.n(p),v=n(62),g=n.n(v),y=n(120),b=n(12),_=n(60),w=n.n(_),x=n(188),k=n.n(x),E=n(17),S=n.n(E),T=n(26),O=n.n(T),C=n(237),j=n.n(C),A=n(8),M=n.n(A),P=n(54),N=n.n(P),I=n(519),L=n.n(I),D=n(57),R=n.n(D),B=n(226),F=n.n(B),U=n(258),q=n.n(U),z=n(117),H=n.n(z),W=n(55),V=n.n(W),Y=n(270),G=n.n(Y),K=n(32),$=n.n(K),X=n(427),Q=n.n(X),Z=n(84),J=n.n(Z),ee=n(53),te=n.n(ee),ne=n(94),re=n.n(ne),ie=n(88),oe=n.n(ie),ae=n(29),se=n.n(ae),ce=n(227),ue=n.n(ce),le=n(157),fe=n.n(le),de=n(58),he=n.n(de),pe=n(145),me=n.n(pe),ve=n(31),ge=n.n(ve),ye=n(107),be=n.n(ye),_e=n(25),we=n.n(_e),xe=n(15),ke=n.n(xe),Ee=n(19),Se=n.n(Ee),Te=n(109),Oe=n.n(Te),Ce=n(228),je=n.n(Ce),Ae=n(532),Me=n.n(Ae),Pe=n(110),Ne=n.n(Pe),Ie=n(76),Le=n.n(Ie),De=n(87),Re=n.n(De),Be=n(42),Fe=n.n(Be),Ue=n(64),qe=n(297),ze=n(554),He=n(555),We=n(436),Ve=n(450),Ye=n(452),Ge=n(556),Ke=n(81),$e=["type"];function Xe(e,t){var n=w()(e);if(o.a){var r=o()(e);t&&(r=s()(r).call(r,function(t){return u()(e,t).enumerable})),n.push.apply(n,r)}return n}var Qe=k()(Oe.a),Ze=N()("rise/course/"),Je=Ze("BOOKMARK_LESSON"),et=Ze("COMPLETE_LESSON_PROGRESS"),tt=Ze("RESET_LESSON_PROGRESS"),nt=Ze("UPDATE_LESSON_PROGRESS"),rt=Ze("UPDATE_PLAYHEAD_PERCENTAGE"),it=function(e){return function(t,n){var r=n.id;switch(n.type){case"blocks":return e(t,{id:r,updateFn:qe.a});case"embed":return e(t,{id:r,updateFn:ze.a});case"map":return e(t,{id:r,updateFn:He.b});case"process":return e(t,{id:r,updateFn:We.a});case"sorting":return e(t,{id:r,updateFn:Ve.a});case"timeline":return e(t,{id:r,updateFn:Ye.b});case"video":return e(t,{id:r,updateFn:Ge.a});default:return t}}},ot=function(e){return M()(Ke.s,ge()(["lessons",e]))},at=he()(oe()("passingScore"),Re()(Q.a,S()(0))),st=M()(at,be()(["id","passed","score","passingScore"])),ct=function(e){return M()(Ke.r,st)(e)},ut=function(e){var t=e.id,n=e.updateFn;return he()(re()(["lessons",t]),M()(O()("id",t),n))},lt=function(e,t){var n=e.id,r=e.type;return H()(St(n,t),function(e){return function(t){var n=t.lessons,r=t.currentLesson;return Boolean(r)&&"quiz"===e&&100===n[r].percentComplete}}(r))},ft=function(e,t){var n=t.id,r=t.type,i=t.updateFn;return we()(dt({id:n,type:r,updateFn:i}),Ne()(M()(Ke.d,ke()("percentComplete"))))(e)},dt=function(e){var t=e.id,n=e.type,r=e.updateFn;return function(e){return we()(ut({id:t,updateFn:r}),Fe()(lt({id:t,type:n},e),Mt),Ne()(ot(t)),Ne()(function(e){return M()(Fe()(Se()("percentComplete",100),ct),ge()(["lessons",e]))}(t)))(e)}},ht=it(G()(ut)),pt=it(ft);t.d=Object(Ue.c)({lessons:{},percentComplete:0},(r={},Object(b.a)(r,Je,function(e,t){return M()(Ne()(me()(Ke.a,[t])),O()("currentLesson",t))(e)}),Object(b.a)(r,et,pt),Object(b.a)(r,"rise/course/LOAD_COURSE",function(e,t){return se()(e,Object(Ke.h)(_t(t)))}),Object(b.a)(r,tt,function(e,t){var n=t.id;switch(t.type){case"blocks":return ft(e,{id:n,updateFn:qe.c});case"embed":return ft(e,{id:n,updateFn:ze.b});case"map":return ft(e,{id:n,updateFn:He.c});case"process":return ft(e,{id:n,updateFn:We.c});case"sorting":return ft(e,{id:n,updateFn:Ve.c});case"timeline":return ft(e,{id:n,updateFn:Ye.c});case"video":return ft(e,{id:n,updateFn:Ge.b});default:return e}}),Object(b.a)(r,nt,ft),Object(b.a)(r,rt,function(e,t){var n=t.id,r=t.updateFn;return we()(ut({id:n,updateFn:r}),Ne()(ot(n)))(e)}),r));var mt=Object(Ue.a)(et),vt=Object(Ue.a)(tt),gt=Object(Ue.a)(Je),yt=Object(Ue.a)(nt),bt=Object(Ue.a)(rt),_t=we()(be()(["course"]),function(e){return we()(ge()(["course","lessons"]),Qe(kt,{}),fe()("lessons"),se()(e))(e)},F()("course")),wt=function(e){var t=e.id,n=e.type,r=e.settings.passingScore;return Fe()(function(e){var t=e.type,n=e.passingScore;return function(){return"quiz"===t&&!$()(n)}}({type:n,passingScore:r}),he()(re()([t]),j()({passingScore:r})))},xt=function(e){var t=e.id,n=e.index,r=e.items,i=e.settings,o=void 0===i?{}:i,a=e.type;return we()(O()(t,{index:n,id:t}),wt({id:t,type:a,settings:o}),Re()(function(e){return function(){return $()(e)}}(r),function(e){var t=e.id,n=e.items;return function(e){return je()(re()([t,"items"]),Qe(kt,{},n),e)}}({id:t,items:r})))},kt=function(e,t,n){var r=t.type,i=Object(y.a)(t,$e);return Re()(function(e){return function(){return"section"===e}}(r),xt(function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)f()(n=Xe(Object(r),!0)).call(n,function(t){Object(b.a)(e,t,r[t])});else if(h.a)m()(e,h()(r));else{var i;f()(i=Xe(Object(r))).call(i,function(t){g()(e,t,u()(r,t))})}}return e}({index:n,type:r},i)))(e)},Et=R()(3,function(e,t,n){return e(t)!==e(n)}),St=function(e,t){return Et(ge()(["lessons",e,"isComplete"]),t)},Tt=function(e){var t=e.key,n=e.percent;return function(e){return O()(n,we()(ke()("items"),Le.a,V()(Se()(t,!0)),te.a,G()(q.a)(M()(te.a,J.a,ke()("items"))(e)),ue()(100),Math.round)(e),e)}},Ot=Tt({key:"isComplete",percent:"percentComplete"}),Ct=(Tt({key:"isViewed",percent:"percentViewed"}),L()(ke.a,[ke()("currentLesson"),ke()("lessons")])),jt=M()(st,Ct),At=function(e){return Me()(Ke.q,jt,e)},Mt=function(e){return we()(je()(oe()("percentComplete"),Pt(e)),Ne()(At))(e)},Pt=function(e){var t=e.lessons;return Math.round(te()(w()(V()(ke()("isComplete"),t)))/te()(w()(t))*100)}},function(e,t,n){var r=n(17);e.exports=r(!0)},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(301),i=n(18);e.exports=i(function(e,t){var n={};for(var i in t)r(i,e)||(n[i]=t[i]);return n})},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return g}),n.d(t,"a",function(){return y});var r=n(437),i=n(8),o=n.n(i),a=n(1087),s=n.n(a),c=n(1088),u=n.n(c),l=n(1089),f=n.n(l),d=n(1090),h=n.n(d),p=(n(81),n(64)),m=n(1159),v=(e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,o.a),g=Object(r.c)(Object(r.b)(m.a),v(Object(r.a)(h.a,f.a,u()("run"),s.a,p.b))),y=g.dispatch}).call(this,n(99))},function(e,t,n){e.exports=n(1467)},function(e,t,n){var r=n(51),i=n(84);e.exports=r(function(e){for(var t=i(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r})},function(e,t,n){"use strict";n.d(t,"b",function(){return Ee}),n.d(t,"f",function(){return Se}),n.d(t,"i",function(){return Te}),n.d(t,"j",function(){return Oe}),n.d(t,"e",function(){return Ce}),n.d(t,"d",function(){return Ae}),n.d(t,"c",function(){return Me}),n.d(t,"a",function(){return Pe}),n.d(t,"g",function(){return Ie}),n.d(t,"h",function(){return Le});var r=n(47),i=n.n(r),o=n(129),a=n.n(o),s=n(174),c=n.n(s),u=n(133),l=n.n(u),f=n(50),d=n(12),h=n(98),p=n.n(h),m=n(159),v=n.n(m),g=n(16),y=n.n(g),b=n(207),_=n.n(b),w=n(311),x=n.n(w),k=n(259),E=n.n(k),S=n(17),T=n.n(S),O=n(520),C=n.n(O),j=n(521),A=n.n(j),M=(n(101),n(8)),P=n.n(M),N=n(102),I=n.n(N),L=n(79),D=n.n(L),R=n(57),B=n.n(R),F=n(38),U=n.n(F),q=n(55),z=n.n(q),H=n(137),W=n.n(H),V=n(48),Y=n.n(V),G=n(287),K=n.n(G),$=n(100),X=n.n($),Q=n(318),Z=n.n(Q),J=n(660),ee=n.n(J),te=n(84),ne=n.n(te),re=n(53),ie=n.n(re),oe=n(229),ae=n.n(oe),se=n(30),ce=n.n(se),ue=n(25),le=n.n(ue),fe=n(415),de=n.n(fe),he=n(522),pe=n.n(he),me=n(233),ve=n.n(me);function ge(e,t){var n=void 0!==a.a&&c()(e)||e["@@iterator"];if(!n){if(l()(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return ye(e,t);var r=i()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return v()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ye(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,u=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){f=!0,s=e},f:function(){try{u||null==n.return||n.return()}finally{if(f)throw s}}}}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var be=function(e){return-1===e},_e=D()(function(e,t,n){return x()(e,n,t)}),we=B()(3,function(e,t,n){return n[e]==t}),xe=(B()(3,function(e,t,n){return le()(W()(we("id",t)),X()(be,T()(n),_e(e,n)))(n)}),B()(3,function(e,t,n){return ee()(t,n[e],pe()(e,1,n))}),D()(function(e,t,n){var r;return p()([],n,(r={},Object(d.a)(r,e,n[t]),Object(d.a)(r,t,n[e]),r))})),ke=E()(function(e){var t=Object(f.a)(e,2),n=t[0],r=t[1];return U()(Number(n),Number(r))}),Ee=P()(ke,ve.a),Se=function(e){return function(t,n){var r=Object(f.a)(n,2),i=r[0],o=r[1],a=Z()(Number(i),t),s=Z()(Number(o),e);return a===s?t:xe(a,s,t)}},Te=P()(de()(0),ie.a);function Oe(e,t){var n,r=[],i=ge(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(r.push(o),e(o))break}}catch(e){i.e(e)}finally{i.f()}return r}var Ce=B()(2,function(e,t){return P()(K.a,ce()(x()(e,1)),ve.a)(t)}),je=B()(2,function(e,t){return P()(K.a,z()(A()(e)),ve.a)(t)}),Ae=B()(2,function(e,t){return P()(ne.a,je(function(e,n){return t(n)}))(e)}),Me=B()(2,function(e,t){return z()(P()(Y()(I.a)(t),e))}),Pe=C()(ae()(_.a,0)),Ne=P()(v.a,Array),Ie=D()(function(e,t){var n;return y()(n=Ne(t)).call(n,function(){return e})}),Le=D()(function(e,t,n,r){var i;return y()(i=Ne(n)).call(i,function(n,i){return i===r?t:e})})},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(51),i=n(57);e.exports=r(function(e){return i(e.length,e)})},function(e,t,n){var r=n(885);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";var r,i,o,a=n(139),s=n.n(a),c=n(146),u=n.n(c),l=n(31),f=n.n(l),d=n(15),h=n.n(d),p=n(48),m=n.n(p),v=n(210),g=n.n(v),y=n(103),b=n(12),_=n(8),w=n.n(_),x=n(92),k=n.n(x),E=n(55),S=n.n(E),T=n(184),O=n.n(T),C=n(30),j=n.n(C),A=n(116),M=n.n(A),P=n(225),N=n.n(P),I=n(183),L=n.n(I),D=n(19),R=n.n(D),B=n(76),F=n.n(B),U=function(e){return w()(y.e,e)},q=function(e,t,n){return(e[t]||e.MULTIPLE_CHOICE)(n)},z=function(e){var t=e.startTime;return e.stopTime-t},H=function(e){return q({FILL_IN_THE_BLANK:J,MATCHING:ae,MULTIPLE_CHOICE:G,MULTIPLE_RESPONSE:G},X(e),e)},W=function(e){return q({FILL_IN_THE_BLANK:J,MATCHING:ae,MULTIPLE_CHOICE:ee,MULTIPLE_RESPONSE:ne},X(e),e)},V=function(e){var t=e.item,n=e.itemProgress,r={FILL_IN_THE_BLANK:U(h()("text")),MATCHING:se(t),MULTIPLE_CHOICE:te(t),MULTIPLE_RESPONSE:re(t)};return q(r,X(t),n)},Y=function(e){return[e]},G=w()(j()((r="title",k()(Object(b.a)({},r,y.e)))),h()("answers")),K=U(h()("id")),$=U(h()("title")),X=h()("type"),Q=function(e){return function(t){return S()(R()("id",t),G(e))}},Z=function(e){return m()(N.a)(G(e))},J=w()(L()("title"),G),ee=function(e){return w()(Q(e),h()("correct"))(e)},te=function(e){return w()(Y,Z(e),h()("selectedIndex"))},ne=function(e){return w()(O.a,j()(Q(e)),h()("corrects"))(e)},re=function(e){return w()(O.a,j()(Z(e)),h()("selectedIndices"))},ie=function(e){var t=e.sourceId,n=e.sourceTitle,r=e.targetId,i=e.targetTitle;return{source:{id:"source_".concat(t),title:n},target:{id:"target_".concat(r),title:i}}},oe=U(h()("matchTitle")),ae=w()(j()(function(e){var t=K(e);return ie({sourceId:t,sourceTitle:$(e),targetId:t,targetTitle:oe(e)})}),G),se=function(e){return w()(F.a,M()(function(e){return function(t,n){var r=Z(e)(n),i=Z(e)(t);return ie({sourceId:K(r),sourceTitle:$(r),targetId:K(i),targetTitle:oe(i)})}}(e)),h()("matches"))},ce=n(45),ue=n.n(ce),le=n(59),fe=n.n(le),de=n(44),he=n.n(de),pe=n(34),me=n.n(pe),ve=n(49),ge=n.n(ve),ye=n(75),be=n.n(ye),_e=n(62),we=n.n(_e),xe=n(120),ke=n(5),Ee=n.n(ke),Se=n(128),Te=n.n(Se),Oe=n(60),Ce=n.n(Oe),je=n(1091),Ae=n.n(je),Me=n(98),Pe=n.n(Me),Ne=n(426),Ie=n(29),Le=n.n(Ie),De="p",Re="i",Be=n(70),Fe=n(354),Ue=n(552),qe=n(673),ze=n(676),He=n(416),We=n.n(He),Ve=n(26),Ye=n.n(Ve),Ge=n(115),Ke=n.n(Ge),$e=n(82),Xe=n.n($e),Qe=n(46),Ze=n.n(Qe),Je=n(68),et=n.n(Je),tt=n(32),nt=n.n(tt),rt=n(84),it=n.n(rt),ot=n(143),at=n.n(ot),st=n(88),ct=n.n(st),ut=n(211),lt=n.n(ut),ft=n(107),dt=n.n(ft),ht=n(52),pt=n.n(ht),mt=n(228),vt=n.n(mt),gt=n(87),yt=n.n(gt),bt=n(42),_t=n.n(bt),wt=function(e){return!!e},xt=(i={},Object(b.a)(i,"a",["activeIndex",Ze.a]),Object(b.a)(i,"vp",["audioVideoPlayhead",Number]),Object(b.a)(i,"c",["isComplete",wt]),Object(b.a)(i,"n",["correctlyAnswered",Ze.a]),Object(b.a)(i,De,["percentComplete",Ze.a]),Object(b.a)(i,"r",["retryAttempts",Ze.a]),Object(b.a)(i,"s",["score",Ze.a]),Object(b.a)(i,"t",["currentTime",Ze.a]),Object(b.a)(i,"v",["percentViewed",Ze.a]),Object(b.a)(i,"rr",["reportResults",Ze.a]),Object(b.a)(i,"pq",["passed",Ze.a]),Object(b.a)(i,"ps",["passingScore",Ze.a]),Object(b.a)(i,"qd",["questionsDrawn",Ze.a]),Object(b.a)(i,"ql",["questionList",j()(j()(Ze.a))]),i),kt=function(e){return function(t,n){var r=at()(Ot[n])(t);return n===Re&&(r=r(h()("items",e))),Object(b.a)({},Xe()(Ot[n]),r)}},Et=function(e){return j()(function(e){return function(t){var n=e[t.index];return yt()(function(){return nt()(n)},function(){return w()(Le()(t),lt.a,F.a,M()(kt(t)))(n)})(t)}}(e))},St=w()(lt.a,F.a,M()(kt(null))),Tt=function(e){return function(t){var n=h()(Re,e),r=h()("items",t);return w()(_t()(function(){return We()([Ke()("ql"),R()("qd",!0)])(e)},function(e){var t=j()(St,n);return Ye()("originalItemProgress",t,e)}),Le()(t),yt()(function(){return et()(n)},vt()(ct()("items"),Et(n)(r))),lt.a,F.a,M()(function(e){return function(t,n){return Ye()([Xe()(xt[n])],at()(xt[n])(t),e)}}(t)))(dt()(it()(xt),e))}};var Ot=(o={},Object(b.a)(o,"vp",["audioVideoPlayhead",Number]),Object(b.a)(o,"n",["correctlyAnswered",Ze.a]),Object(b.a)(o,"c",["isComplete",wt]),Object(b.a)(o,"k",["isCorrect",wt]),Object(b.a)(o,"v",["isViewed",wt]),Object(b.a)(o,Re,["items",Et]),Object(b.a)(o,"pv",["percentViewed",Ze.a]),Object(b.a)(o,"m",["matches",Ze.a]),Object(b.a)(o,"s",["selectedIndex",Ze.a]),Object(b.a)(o,"x",["selectedIndices",Ze.a]),Object(b.a)(o,"t",["text",Ze.a]),o),Ct=n(157),jt=n.n(Ct),At=n(136),Mt=n.n(At),Pt={activeIndex:["a",Ze.a],audioVideoPlayhead:["vp",Number],correctlyAnswered:["n",Ze.a],currentTime:["t",Ze.a],isComplete:["c",Number],passingScore:["ps",Ze.a],percentComplete:[De,Ze.a],percentViewed:["v",Ze.a],retryAttempts:["r",Ze.a],score:["s",Ze.a],questionsDrawn:["qd",Ze.a],questionList:["ql",j()(j()(Ze.a))],reportResults:["rr",Ze.a],passed:["pq",Ze.a]},Nt=function(e,t){return Object(b.a)({},Xe()(Rt[t]),at()(Rt[t])(e))},It=w()(lt.a,F.a,j()(function(e){return w()(yt()(et.a,jt()(h()("index",e))),lt.a,F.a,M()(Nt))(Mt()(et.a,dt()(it()(Rt),e)))})),Lt=function(e,t){return Object(b.a)({},Xe()(Pt[t]),at()(Pt[t])(e))};var Dt=w()(jt()(De),pt()(0,"percentComplete")),Rt={audioVideoPlayhead:["vp",Number],correctlyAnswered:["n",Ze.a],isComplete:["c",Number],isCorrect:["k",Number],isViewed:["v",Number],items:[Re,It],matches:["m",Ze.a],percentViewed:["pv",Ze.a],selectedIndex:["s",Ze.a],selectedIndices:["x",j()(Number)],text:["t",Ze.a]},Bt=["id","type"],Ft=["id","type"];function Ut(e,t){var n=Ce()(e);if(ue.a){var r=ue()(e);t&&(r=fe()(r).call(r,function(t){return he()(e,t).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)me()(n=Ut(Object(r),!0)).call(n,function(t){Object(b.a)(e,t,r[t])});else if(ge.a)be()(e,ge()(r));else{var i;me()(i=Ut(Object(r))).call(i,function(t){we()(e,t,he()(r,t))})}}return e}var zt=function(e){return(window.env||{})[e]},Ht={fetch:function(){if(Yt.isExport||window.courseData||window.course)return Object(qe.a)(Ue.a,{});var e,t,n;return Object(Ne.a)({method:"GET",url:window.shareId?Ee()(e="".concat(zt("RISE_RUNTIME_URI"),"/boot/share/")).call(e,window.shareId):window.contentId?Ee()(t="".concat(zt("RISE_RUNTIME_URI"),"/boot/businessContent/")).call(t,window.contentId):Ee()(n="".concat(zt("RISE_RUNTIME_URI"),"/boot/")).call(n,window.courseId),json:!0,withCredentials:!0}).then(h()("body")).then(Ue.a)},fetchPartnerContent:function(e){return Yt.isExport||window.partnerContent?g.a.of(window.partnerContent.content):Object(ze.a)(e)},getEnv:zt,isPasswordProtected:function(){return!!window.shareId&&!!window.hasPassword},isShare:function(){return!!window.shareId},resolvePath:function(e){var t;return Ee()(t="".concat(zt("CDN_USER_CONTENT_URI"),"/")).call(t,e)},verifySharePassword:function(e){return Object(Ne.a)({method:"POST",url:"".concat(zt("RISE_RUNTIME_URI"),"/password"),data:{shareId:window.shareId,password:e},json:!0}).then(h()("body"))}},Wt=function(e,t){return e+((t||{}).c||0)},Vt=function(e,t){return function(n,r){var i=r.id,o=r.type,a=Object(xe.a)(r,Ft);return t.lessons[i]?Le()(n,e(function(e,t){var n=t.id,r=t.type,i=Object(xe.a)(t,Bt);return"quiz"===r?Object(Fe.a)(e,qt({id:n},i)):Object(Be.c)(e,{id:n,type:r})}(t,qt({id:i,type:o},a)).lessons[i])):n}};window.Rise=Pe()(window.Rise||{},{completeLessons:function(e,t,n){var r,i=Te()(t).call(t,Vt(e,n),{}),o=Ce()(n.lessons||{}).length,a=Te()(r=Ae()(i)).call(r,Wt,0);return{lessons:i,p:Math.round(a/o*100)}},decodeCourseProgress:function(e,t){var n=h()("lessons",t);return yt()(function(){return et()(n)},w()(Ye()("percentComplete",pt()(0,De,t)),k()({lessons:j()(function(e){var t=h()(e.index,n);return yt()(function(){return nt()(t)},Tt(t))(e)})})))(e)},encodeCourseProgress:Dt,encodeLessonProgress:function(e){var t=h()("items",e),n=h()("index",e);return w()(jt()(n),yt()(function(){return et()(t)},vt()(ct()(Re),It(t))),lt.a,F.a,M()(Lt))(dt()(it()(Pt),e))}});var Yt=Le()(Ht,window.Runtime||{}),Gt=Yt;n.d(t,"g",function(){return $t}),n.d(t,"n",function(){return Xt}),n.d(t,"b",function(){return Qt}),n.d(t,"c",function(){return Zt}),n.d(t,"a",function(){return Jt}),n.d(t,"h",function(){return en}),n.d(t,"r",function(){return tn}),n.d(t,"s",function(){return nn}),n.d(t,"q",function(){return rn}),n.d(t,"d",function(){return on}),n.d(t,"e",function(){return an}),n.d(t,"f",function(){return sn}),n.d(t,"i",function(){return cn}),n.d(t,"j",function(){return un}),n.d(t,"k",function(){return ln}),n.d(t,"m",function(){return fn}),n.d(t,"l",function(){return dn}),n.d(t,"p",function(){return hn}),n.d(t,"u",function(){return pn}),n.d(t,"o",function(){return mn}),n.d(t,"t",function(){return vn});m()(h.a)(window.env||{});var Kt=function(e){return Gt&&Gt[e]};function $t(e){return Kt("getMasteryScore")?Gt.getMasteryScore(e):e.passingScore}function Xt(e){if(Kt("onCreateHistory"))return Gt.onCreateHistory(e)}function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Kt("fetch")?s.a.resolve(Gt.fetch()):s.a.resolve(e)}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Kt("fetchPartnerContent")?Gt.fetchPartnerContent(e):g.a.of({content:[]})}function Jt(e){if(Kt("bookmark"))return Gt.bookmark(e)}function en(e){return Kt("getProgress")?Gt.getProgress(e):e}function tn(e){return Kt("setLessonComplete")?Gt.setLessonComplete(e):e}function nn(e){return Kt("setLessonProgress")?Gt.setLessonProgress(e):e}function rn(e,t){return Kt("setCourseProgress")?Gt.setCourseProgress(e,t):e}function on(e){if(Kt("finish"))return Gt.finish(e)}function an(e,t,n,r){Kt("finishQuiz")&&Gt.finishQuiz(e,t,n,r)}function sn(e,t,n,r){Kt("finishStoryline")&&Gt.finishStoryline(e,t,n,r)}function cn(){return Kt("isComplete")?Gt.isComplete():null}function un(){return!!Kt("isExport")&&Gt.isExport()}function ln(){if(Kt("isExport")){var e=f()(["partnerContent","content"],window);return Gt.isExport()&&e}return!1}function fn(){return!!Kt("isShare")&&Gt.isShare()}function dn(){return!!Kt("isPasswordProtected")&&Gt.isPasswordProtected()}function hn(e){var t=e||"";return Kt("resolvePath")?u()(t).call(t,"http")||u()(t).call(t,"data:")||u()(t).call(t,"//")?t:Gt.resolvePath(t):u()(t).call(t,"data:")||u()(t).call(t,"http")||u()(t).call(t,"//")?t:"/".concat(t)}function pn(e){return Kt("verifySharePassword")?Gt.verifySharePassword(e):s.a.resolve({isValid:!0})}function mn(e){if(Kt("reportAnswer")){var t=e.id,n=e.isCorrect,r=e.item,i=e.itemProgress,o=e.duration,a=e.retryAttempts,s=e.title,c=r.id,u=r.title,l=r.type;return Gt.reportAnswer({id:t,type:l,isCorrect:n,itemId:c,questionTitle:Object(y.e)(u),quizTitle:Object(y.e)(s),retryAttempts:a,answers:H(r),correctResponse:W(r),response:V({item:r,itemProgress:i}),latency:z(o)})}return!1}function vn(e){if(Kt("startLesson"))return Gt.startLesson(e)}},function(e,t,n){var r=n(225);e.exports=r(0)},function(e,t,n){"use strict";e.exports=n(502),e.exports.easing=n(1989),e.exports.canvas=n(1990),e.exports.options=n(1991)},function(e,t,n){var r,i,o,a,s=n(51),c=n(178),u=n(751);e.exports=(r=!{toString:null}.propertyIsEnumerable("toString"),i=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],o=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},"function"!=typeof Object.keys||o?s(function(e){if(Object(e)!==e)return[];var t,n,s=[],l=o&&u(e);for(t in e)!c(t,e)||l&&"length"===t||(s[s.length]=t);if(r)for(n=i.length-1;n>=0;)c(t=i[n],e)&&!a(s,t)&&(s[s.length]=t),n-=1;return s}):s(function(e){return Object(e)!==e?[]:Object.keys(e)}))},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(9),i=n(10),o=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"isChrome",get:function(){return!(!window||!window.navigator)&&(/Chrome/.test(window.navigator.userAgent)&&/Google Inc/.test(window.navigator.vendor))}},{key:"isSafari",get:function(){return!(!window||!window.navigator)&&(/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor)&&!/CriOS/.test(window.navigator.userAgent))}},{key:"isIphoneSafari",get:function(){if(!window||!window.navigator)return!1;var e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,t=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/CriOS/.test(window.navigator.userAgent);return e&&t&&!n}},{key:"isSafari9",get:function(){if(!window||!window.navigator)return!1;var e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),t=/version\/9./i.test(window.navigator.userAgent);return e&&t}},{key:"isSafariVersion13OrLower",get:function(){var t=e.isSafari,n=t?window.navigator.userAgent.match(/(?=version\/)(.+?)(?=\.)/i)[0].replace(/version\//i,""):0;return t&&n<14}},{key:"isIe11",get:function(){return!(!window||!Object.hasOwnProperty.call(window,"ActiveXObject")||window.ActiveXObject)}},{key:"isEdge",get:function(){return!(!window||!window.navigator)&&/Edge/.test(window.navigator.userAgent)}},{key:"isMobile",get:function(){return!(!window||!window.navigator)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},{key:"isLocalFilesystem",get:function(){return!(!window||!window.navigator)&&/file:/.test(window.location.protocol)}}]),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return k}),n.d(t,"e",function(){return E}),n.d(t,"d",function(){return S}),n.d(t,"b",function(){return O}),n.d(t,"a",function(){return C}),n.d(t,"f",function(){return j});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=n(4),m=n.n(p),v=n(146),g=n.n(v),y=n(0),b=n(2196),_=n(715),w=n(2195);function x(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var k=Object(y.createContext)(null),E=Object(y.createContext)(!1);function S(t){return e.createElement(E.Provider,{value:!0},e.createElement(b.a,t))}function T(t){var n=function(n){Object(u.a)(i,n);var r=x(i);function i(){var e,t,n,o,s,u,l,f;Object(a.a)(this,i);for(var d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];return(f=r.call.apply(r,h()(e=[this]).call(e,p))).onEnterDelegate=m()(t=f.onTransition).call(t,Object(c.a)(f),"enter"),f.onEnteringDelegate=m()(n=f.onTransition).call(n,Object(c.a)(f),"entering"),f.onEnteredDelegate=m()(o=f.onTransition).call(o,Object(c.a)(f),"entered"),f.onExitDelegate=m()(s=f.onTransition).call(s,Object(c.a)(f),"exit"),f.onExitingDelegate=m()(u=f.onTransition).call(u,Object(c.a)(f),"exiting"),f.onExitedDelegate=m()(l=f.onTransition).call(l,Object(c.a)(f),"exited"),f.state={transitionState:null},f}return Object(s.a)(i,[{key:"onTransition",value:function(e){var t;this.setState({transitionState:e});for(var n="on"+e[0].toUpperCase()+e.substr(1),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];(t=this.props)[n].apply(t,i)}},{key:"render",value:function(){return e.createElement(k.Provider,{value:this.state.transitionState},e.createElement(t,Object(o.a)({},this.props,{onEnter:this.onEnterDelegate,onEntering:this.onEnteringDelegate,onEntered:this.onEnteredDelegate,onExit:this.onExitDelegate,onExiting:this.onExitingDelegate,onExited:this.onExitedDelegate})))}}]),i}(y.Component);return n.defaultProps={onEnter:Function.prototype,onEntering:Function.prototype,onEntered:Function.prototype,onExit:Function.prototype,onExiting:Function.prototype,onExited:Function.prototype},n.displayName="withStaleTransitionState(".concat(t.displayName||t.name,")"),n}var O=T(_.a),C=T(w.a);function j(t){var n=Object(y.forwardRef)(function(n,r){var i,a,s,c,u,l=(i=n,s=Object(y.useContext)(E),c=Object(y.useContext)(k),u=Object(y.useRef)(i),s&&null!=c&&null!==(a=g()(c))&&void 0!==a&&a.call(c,"exit")||(u.current=i),u.current);return e.createElement(t,Object(o.a)({ref:r},l))});return n.displayName="withTranstionableState(".concat(t.displayName||t.name,")"),n}}).call(this,n(0))},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e(n)?n:t(n)})},function(e,t,n){var r=n(51),i=n(26),o=n(482),a=n(15);e.exports=r(function(e){return o(a(e),i(e))})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(1),f=n.n(l),d=n(43);function h(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var p=function(t){Object(s.a)(r,t);var n=h(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.className,i=t.id,o=t.tagName,a=t.value;return a?e.createElement(d.a,{className:r,value:a,allowTabNavigation:n,tagName:o,id:i}):null}}],[{key:"propTypes",get:function(){return{value:f.a.string,className:f.a.string,allowTabNavigation:f.a.bool,tagName:f.a.string,id:f.a.string}}},{key:"defaultProps",get:function(){return{allowBold:!0,placeholder:"",editable:!1,allowTabNavigation:!0,hasQuickInsert:!0}}}]),r}(e.Component)}).call(this,n(0))},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1212)},function(e,t,n){var r=n(18);e.exports=r(function e(t,n){var r,i,o,a={};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a})},function(e,t){e.exports={}},function(e,t,n){var r=n(51),i=n(824),o=n(482),a=n(31);e.exports=r(function(e){return o(a(e),i(e))})},function(e,t,n){"use strict";n.d(t,"j",function(){return l}),n.d(t,"k",function(){return d}),n.d(t,"i",function(){return h}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return m}),n.d(t,"h",function(){return v}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"e",function(){return w}),n.d(t,"f",function(){return x});var r=n(5),i=n.n(r),o=n(357),a=n.n(o),s=n(240),c=n.n(s),u=(n(102),n(22)),l=function(){return u.e?Object(u.c)("SESSION_COOKIE_NAME"):"_articulate_rise_"},f=function(e,t){var n,r;return i()(n=i()(r="".concat(e,"=")).call(r,t,"; domain=")).call(n,Object(u.c)("SESSION_COOKIE_DOMAIN"),"; path=/; secure=true")},d=function(e){return document.cookie=f("_articulate_user_id",e)},h=function(){return document.cookie="".concat(f("_articulate_user_id",""),"; Max-Age=-99999999")},p=function(){return a.a.load("_articulate_user_id")},m=function(){return a.a.load(l())},v=function(){return!!m()&&c()(m()).staff},g=function(){return m()?c()(m()).sub||c()(m()).aid:""},y=function(){return m()?c()(m()).roles:[]},b=function(){return m()?c()(m()).tenantId:""},_=function(){return m()&&c()(m()).subscription||{}},w=function(){return _().plan_id||""},x=function(){return _().status||""}},function(e,t,n){var r=n(147);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(110),i=(n.n(r)()(function(e){return e.preventDefault()}),function(e){return function(t){return e(t),t.preventDefault()}}),o=function(e){return function(t){e(t),t.preventDefault(),function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}(t)}}},function(e,t,n){e.exports=n(1228)},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){var r=n(61),i=n(57);e.exports=r(function(e,t,n){return i(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})})},function(e,t,n){var r=n(477),i=n(111);e.exports=r(i)},function(e,t,n){var r=n(301),i=n(18);e.exports=i(r)},function(e,t,n){"use strict";n.d(t,"b",function(){return P}),n.d(t,"c",function(){return N}),n.d(t,"e",function(){return I}),n.d(t,"d",function(){return L});var r=n(47),i=n.n(r),o=n(159),a=n.n(o),s=n(129),c=n.n(s),u=n(174),l=n.n(u),f=n(133),d=n.n(f),h=n(17),p=n.n(h),m=n(8),v=n.n(m),g=n(48),y=n.n(g),b=n(46),_=n.n(b),w=n(100),x=n.n(w),k=n(1086),E=n.n(k),S=n(238);function T(e,t){var n=void 0!==c.a&&l()(e)||e["@@iterator"];if(!n){if(d()(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return O(e,t);var r=i()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return a()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,u=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){f=!0,s=e},f:function(){try{u||null==n.return||n.return()}finally{if(f)throw s}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var C=y()(E.a),j=C({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","href","target","rel"],img:["alt","src"],span:["data-*"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:["a","b","blockquote","br","em","h2","h3","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul"]}),A=C({allowedAttributes:{iframe:["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","width"]},allowedTags:["iframe"],allowedSchemes:["http","https"]}),M=x()(_.a,j,p()("")),P=v()(function(e){var t=document.createElement("div");t.innerHTML=e;var n,r=T(t.querySelectorAll("a"));try{for(r.s();!(n=r.n()).done;){var i=n.value;Object(S.a)(i.href)&&(i.removeAttribute("href"),i.removeAttribute("rel"),i.removeAttribute("target"),i.setAttribute("data-external",""),i.setAttribute("role","button"))}}catch(e){r.e(e)}finally{r.f()}return t.innerHTML},M),N=x()(_.a,A,p()("")),I=C({allowedTags:[],allowedAttributes:[]}),L=C({allowedTags:["mark"],allowedAttributes:[]});t.a=M},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return u});var r="group",i="heading",o="tablist",a="tabpanel",s="tab",c=function(e){var t=e.element,n=e.isHidden;t&&t.setAttribute("aria-hidden",n)},u=function(e){var t=e.caption,n=e.editable,r=e.id,i=!e.isOverlayType&&!n&&t;return{figcaptionId:i?"figcaption-".concat(r):void 0,isFigure:i,role:i?"figure":void 0,tagName:i?"figure":"div"}}},function(e,t){e.exports=!0},function(e,t,n){"use strict";var r=n(83);e.exports={_set:function(e,t){return r.merge(this[e]||(this[e]={}),t)}}},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})},function(e,t,n){e.exports=n(1494)},function(e,t,n){var r=n(61),i=n(193);e.exports=r(i)},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e(t),t})},function(e,t,n){var r=n(51);e.exports=r(function(e){return!e})},function(e,t,n){e.exports=n(1282)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(146),i=n.n(r),o=n(8),a=n.n(o),s=n(0),c=n.n(s);n(1);var u=c.a.createContext(null);var l=function(e){e()},f=function(){return l},d={notify:function(){}};var h=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=d,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t,n;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=(e=f(),t=null,n=null,{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=d)},e}(),p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect;var m=function(e){var t=e.store,n=e.context,r=e.children,i=Object(s.useMemo)(function(){var e=new h(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),o=Object(s.useMemo)(function(){return t.getState()},[t]);p(function(){var e=i.subscription;return e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[i,o]);var a=n||u;return c.a.createElement(a.Provider,{value:i},r)},v=n(78),g=n(138),y=n(424),b=n.n(y),_=n(516),w=[],x=[null,null];function k(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){p(function(){return e.apply(void 0,t)},n)}function S(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function T(e,t,n,r,i,o,a,s,c,u){if(e){var l=!1,f=null,d=function(){if(!l){var e,n,d=t.getState();try{e=r(d,i.current)}catch(e){n=e,f=e}n||(f=null),e===o.current?a.current||c():(o.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var O=function(){return[null,0]};function C(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,o=n.methodName,a=void 0===o?"connectAdvanced":o,l=n.renderCountProp,f=void 0===l?void 0:l,d=n.shouldHandleStateChanges,p=void 0===d||d,m=n.storeKey,y=void 0===m?"store":m,C=(n.withRef,n.forwardRef),j=void 0!==C&&C,A=n.context,M=void 0===A?u:A,P=Object(g.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),N=M;return function(t){var n=t.displayName||t.name||"Component",r=i(n),o=Object(v.a)({},P,{getDisplayName:i,methodName:a,renderCountProp:f,shouldHandleStateChanges:p,storeKey:y,displayName:r,wrappedComponentName:n,WrappedComponent:t}),u=P.pure;var l=u?s.useMemo:function(e){return e()};function d(n){var r=Object(s.useMemo)(function(){var e=n.reactReduxForwardedRef,t=Object(g.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]},[n]),i=r[0],a=r[1],u=r[2],f=Object(s.useMemo)(function(){return i&&i.Consumer&&Object(_.isContextConsumer)(c.a.createElement(i.Consumer,null))?i:N},[i,N]),d=Object(s.useContext)(f),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var y=m?n.store:d.store,b=Object(s.useMemo)(function(){return function(t){return e(t.dispatch,o)}(y)},[y]),C=Object(s.useMemo)(function(){if(!p)return x;var e=new h(y,m?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[y,m,d]),j=C[0],A=C[1],M=Object(s.useMemo)(function(){return m?d:Object(v.a)({},d,{subscription:j})},[m,d,j]),P=Object(s.useReducer)(k,w,O),I=P[0][0],L=P[1];if(I&&I.error)throw I.error;var D=Object(s.useRef)(),R=Object(s.useRef)(u),B=Object(s.useRef)(),F=Object(s.useRef)(!1),U=l(function(){return B.current&&u===R.current?B.current:b(y.getState(),u)},[y,I,u]);E(S,[R,D,F,u,U,B,A]),E(T,[p,y,j,b,R,D,F,B,A,L],[y,j,b]);var q=Object(s.useMemo)(function(){return c.a.createElement(t,Object(v.a)({},U,{ref:a}))},[a,t,U]);return Object(s.useMemo)(function(){return p?c.a.createElement(f.Provider,{value:M},q):q},[f,q,M])}var m=u?c.a.memo(d):d;if(m.WrappedComponent=t,m.displayName=d.displayName=r,j){var C=c.a.forwardRef(function(e,t){return c.a.createElement(m,Object(v.a)({},e,{reactReduxForwardedRef:t}))});return C.displayName=r,C.WrappedComponent=t,b()(C,t)}return b()(m,t)}}function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function A(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!j(e[n[i]],t[n[i]]))return!1;return!0}function M(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function N(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=P(i),i=r(t,n)),i},r}}var I=[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:M(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?M(function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)}):void 0}];var L=[function(e){return"function"==typeof e?N(e):void 0},function(e){return e?void 0:M(function(){return{}})}];function D(e,t,n){return Object(v.a)({},n,e,t)}var R=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?i&&o(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}];function B(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,c,u,l=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function p(i,h){var p,m,v=!f(h,a),g=!l(i,o);return o=i,a=h,v&&g?(s=e(o,a),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):v?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(c=t(r,a)),u=n(s,c,a)):g?(p=e(o,a),m=!d(p,s),s=p,m&&(u=n(s,c,a)),u):u}return function(i,l){return h?p(i,l):(s=e(o=i,a=l),c=t(r,a),u=n(s,c,a),h=!0,u)}}function U(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(g.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),c=i(e,o);return(o.pure?F:B)(a,s,c,e,o)}function q(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?C:n,i=t.mapStateToPropsFactories,o=void 0===i?L:i,a=t.mapDispatchToPropsFactories,s=void 0===a?I:a,c=t.mergePropsFactories,u=void 0===c?R:c,l=t.selectorFactory,f=void 0===l?U:l;return function(e,t,n,i){void 0===i&&(i={});var a=i,c=a.pure,l=void 0===c||c,d=a.areStatesEqual,h=void 0===d?z:d,p=a.areOwnPropsEqual,m=void 0===p?A:p,y=a.areStatePropsEqual,b=void 0===y?A:y,_=a.areMergedPropsEqual,w=void 0===_?A:_,x=Object(g.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=q(e,o,"mapStateToProps"),E=q(t,s,"mapDispatchToProps"),S=q(n,u,"mergeProps");return r(f,Object(v.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:E,initMergeProps:S,pure:l,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:w},x))}}var W=H();function V(){return Object(s.useContext)(u)}var Y=function(e,t){return e===t};function G(e){void 0===e&&(e=u);var t=e===u?V:function(){return Object(s.useContext)(e)};return function(e,n){void 0===n&&(n=Y);var r=t(),i=function(e,t,n,r){var i,o=Object(s.useReducer)(function(e){return e+1},0)[1],a=Object(s.useMemo)(function(){return new h(n,r)},[n,r]),c=Object(s.useRef)(),u=Object(s.useRef)(),l=Object(s.useRef)(),f=Object(s.useRef)(),d=n.getState();try{if(e!==u.current||d!==l.current||c.current){var m=e(d);i=void 0!==f.current&&t(m,f.current)?f.current:m}else i=f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return p(function(){u.current=e,l.current=d,f.current=i,c.current=void 0}),p(function(){function e(){try{var e=n.getState(),r=u.current(e);if(t(r,f.current))return;f.current=r,l.current=e}catch(e){c.current=e}o()}return a.onStateChange=e,a.trySubscribe(),e(),function(){return a.tryUnsubscribe()}},[n,a]),i}(e,n,r.store,r.subscription);return Object(s.useDebugValue)(i),i}}var K,$=G(),X=n(91);K=X.unstable_batchedUpdates,l=K;var Q=n(86);function Z(){return a()(W.apply(void 0,arguments),Q.f)}function J(e,t){var n,r=Object(s.useContext)(Q.e),o=Object(s.useContext)(Q.c),a=Object(s.useRef)(null),c=!function(){var e=Object(s.useRef)(!0);return e.current?(e.current=!1,!0):e.current}()&&r&&(null==o?void 0:null===(n=i()(o))||void 0===n?void 0:n.call(o,"exit")),u=$(function(t){if(!c)return e(t)},t);return c||(a.current=u),a.current}n.d(t,"b",function(){return Z}),n.d(t,"c",function(){return J}),n.d(t,"a",function(){return m})},function(e,t,n){var r=n(18),i=n(178);e.exports=r(i)},function(e,t,n){var r=n(18),i=n(193),o=n(84);e.exports=r(function(e,t){return i(function(n,r){return n[r]=e(t[r],r,t),n},{},o(t))})},function(e,t,n){var r=n(18),i=n(476),o=n(477),a=n(518);e.exports=r(function(e,t){return i(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:o(a)(e,t)})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(90),i="@@crocks/curried";function o(e,t){return r(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){if(t[i])return t;function n(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(o,t);return r(s)?e(s):s}return Object.defineProperty(n,i,{enumerable:!1,writable:!1,value:!0}),n}},function(e,t,n){"use strict";var r=n(45),i=n.n(r),o=n(195),a=n.n(o),s=n(60),c=n.n(s);function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,i={},o=c()(e);for(r=0;r<o.length;r++)n=o[r],a()(t).call(t,n)>=0||(i[n]=e[n]);return i}(e,t);if(i.a){var s=i()(e);for(r=0;r<s.length;r++)n=s[r],a()(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return u})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90);e.exports=function(e){if(!i(e))throw new TypeError("curry: Function required");return r(e)}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(99))},function(e,t,n){"use strict";var r=n(142),i=n(0),o=n.n(i),a=(n(1),n(78));function s(e){return"/"===e.charAt(0)}function c(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var u=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&s(e),a=t&&s(t),u=o||a;if(e&&s(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=i.length;d>=0;d--){var h=i[d];"."===h?c(i,d):".."===h?(c(i,d),f++):f&&(c(i,d),f--)}if(!u)for(;f--;f)i.unshift("..");!u||""===i[0]||i[0]&&s(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};var l=n(164);function f(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function d(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(a.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=u(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}"undefined"==typeof window||!window.document||window.document.createElement;function p(e,t,n){return Math.min(Math.max(e,t),n)}var m=n(696),v=n(697),g=n.n(v),y=(n(516),n(138)),b=n(424),_=n.n(b);n.d(t,"a",function(){return C}),n.d(t,"b",function(){return k}),n.d(t,"c",function(){return I}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return O}),n.d(t,"f",function(){return L});var w=function(e){var t=Object(m.a)();return t.displayName=e,t}("Router-History"),x=function(e){var t=Object(m.a)();return t.displayName=e,t}("Router"),k=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e})),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(x.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(w.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;o.a.Component;var E={},S=1e4,T=0;function O(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,c=n.sensitive,u=void 0!==c&&c;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=E[n]||(E[n]={});if(r[e])return r[e];var i=[],o={regexp:g()(e,i,t),keys:i};return T<S&&(r[e]=o,T++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,c=i.exec(e);if(!c)return null;var l=c[0],f=c.slice(1),d=e===l;return o&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce(function(e,t,n){return e[t.name]=f[n],e},{})}},null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(x.Consumer,null,function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?O(n.pathname,e.props):t.match,i=Object(a.a)({},t,{location:n,match:r}),s=e.props,c=s.children,u=s.component,f=s.render;return Array.isArray(c)&&0===c.length&&(c=null),o.a.createElement(x.Provider,{value:i},i.match?c?"function"==typeof c?c(i):c:u?o.a.createElement(u,i):f?f(i):null:"function"==typeof c?c(i):null)})},t}(o.a.Component);function j(e){return"/"===e.charAt(0)?e:"/"+e}function A(e,t){if(!e)return t;var n=j(e);return 0!==t.pathname.indexOf(n)?t:Object(a.a)({},t,{pathname:t.pathname.substr(n.length)})}function M(e){return"string"==typeof e?e:f(e)}function P(e){return function(){Object(l.a)(!1)}}function N(){}o.a.Component;var I=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(x.Consumer,null,function(t){t||Object(l.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,function(e){if(null==r&&o.a.isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?O(i.pathname,Object(a.a)({},e.props,{path:s})):t.match}}),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null})},t}(o.a.Component);function L(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(y.a)(t,["wrappedComponentRef"]);return o.a.createElement(x.Consumer,null,function(t){return t||Object(l.a)(!1),o.a.createElement(e,Object(a.a)({},r,t,{ref:n}))})};return n.displayName=t,n.WrappedComponent=e,_()(n,e)}o.a.useContext},function(e,t,n){var r=n(256);e.exports=r(1)},function(e,t,n){var r=n(122),i=n(583),o=n(176),a=n(460),s=n(585),c=n(736),u=i("wks"),l=r.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)&&(s||"string"==typeof u[e])||(s&&o(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},function(e,t,n){"use strict";var r=function(e){return e.displayName||e.name||"Component"},i=n(0),o=n.n(i),a=n(79),s=n.n(a),c=n(688),u=n.n(c),l=n(1155),f=n.n(l),d=function(e,t){return o.a.createElement("mark",{key:t},e)},h=s()(function(e,t){return f()(new RegExp(u()(t),"igm"),d,e)}),p=n(128),m=n.n(p),v=n(121),g=(n.n(v)()(function(e,t){return m()(t).call(t,function(t,n){return t+n[e]},0)}),n(151)),y=n(171),b=n(77),_=n(312);n.d(t,"b",function(){return r}),n.d(t,"d",function(){return h}),n.d(t,"c",function(){return g.a}),n.d(t,"f",function(){return y.c}),n.d(t,"a",function(){return b.a}),n.d(t,"e",function(){return b.g}),n.d(t,"g",function(){return _.c})},function(e,t){e.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(e,t,n){e.exports=n(1474)},function(e,t,n){e.exports=n(1241)},function(e,t,n){var r=n(93),i=n(176),o=n(595),a=n(204).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(128),i=n(5),o=n(33),a=n(4),s=n(139),c=n(16),u=n(1640),l=n(1641),f=n(848).type("Async"),d=n(848).typeFn(f(),5),h=n(487),p=n(1644),m=n(1659),v=n(1660),g=n(1661),y=n(628),b=n(1662),_=n(249),w=n(1663),x=n(1665),k=n(629),E=function(e){return r(e).call(e,function(e,t){return e&&k(T,t)},!0)},S=function(e){return T(function(t,n){return n(e)})};function T(e){var t;if(!_(e))throw new TypeError("Async: Function required");var n=S,r=function(){return"Async"+l(e)};function i(t,n,r){if(!_(t)||!_(n))throw new TypeError("Async.fork: Reject and resolve functions required");var i=!1,o=!1,s=_(r)?r:g,c=function(e,t){if(!o)return o=!0,i?g():e(t)},u=e(a(c).call(c,null,t),a(c).call(c,null,n)),l=_(u)?u:g;return v(function(){return s((l(),void(i=!0)))})}function o(e){return function(t){if(!_(t))throw new TypeError("Async."+e+": Function required");return T(function(e,n){return i(e,m(n,t))})}}function u(e){return function(t,n){if(!_(t)||!_(n))throw new TypeError("Async."+e+": Functions required for both arguments");return T(function(e,r){return i(m(e,t),m(r,n))})}}function p(e){return function(t){if(!k(T,t))throw new TypeError("Async."+e+": Async required");return T(function(e,n){var r=g,o=g;return r=i(function(){o=t.fork(e,n)},n),v(function(){return o(r())})})}}function y(e){return function(t){if(!_(t))throw new TypeError("Async."+e+": Async returning function required");return T(function(n,r){var o=g,a=g;return o=i(n,function(i){var o=t(i);if(!k(T,o))throw new TypeError("Async."+e+": Function must return another Async");a=o.fork(n,r)}),v(function(){return a(o())})})}}return(t={fork:i,toPromise:function(){return new s(function(e,t){i(t,e)})},inspect:r,toString:r,type:f,swap:function(e,t){if(!_(e)||!_(t))throw new TypeError("Async.swap: Functions required for both arguments");return T(function(n,r){return i(m(r,e),m(n,t))})},race:function(e){if(!k(T,e))throw new TypeError("Async.race: Async required");return T(function(t,n){var r=v(function(e,r){return e?n(r):t(r)}),o=a(r).call(r,null,!0),s=a(r).call(r,null,!1),c=i(s,o),u=e.fork(s,o);return function(){c(),u()}})},coalesce:function(e,t){if(!_(e)||!_(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return T(function(n,r){return i(m(r,e),m(r,t))})},ap:function(e){if(!k(T,e))throw new TypeError("Async.ap: Async required");return T(function(t,n){var r=null,o=null,a=!1,s=!1,c=!1,u=v(t);function l(){!c&&a&&s&&m(n,r)(o)}var f=i(u,function(e){if(!_(e))throw new TypeError("Async.ap: Wrapped value must be a function");a=!0,r=e,l()}),d=e.fork(u,function(e){s=!0,o=e,l()});return function(){f(),d(),c=!0}})},of:n,alt:p("alt"),bimap:u("bimap"),map:o("map"),chain:y("chain"),bichain:function(e,t){var n="Async.bichain: Both arguments must be Async returning functions";if(!_(e)||!_(t))throw new TypeError(n);return T(function(r,o){var a=g,s=g;function c(e){return function(t){var i=e(t);if(!k(T,i))throw new TypeError(n);s=i.fork(r,o)}}return a=i(c(e),c(t)),v(function(){return s(a())})})}})[h.of]=n,t[h.alt]=p(h.alt),t[h.bimap]=u(h.bimap),t[c(h)]=o(c(h)),t[h.chain]=y(h.chain),t["@@type"]=d,t.constructor=T,t}T.of=S,T.type=f,T[h.of]=S,T["@@type"]=d,T.Rejected=function(e){return T(function(t){return t(e)})},T.Resolved=S,T.fromPromise=function(e){if(!_(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return T(function(n,r){var i=e.apply(null,t);if(!x(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r,n)})}},T.fromNode=function(e,t){if(!_(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return T(function(r,o){e.apply(t,i(n).call(n,function(e,t){return e?r(e):o(t)}))})}},T.all=function(e){if(!b(e)||!E(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return y(e)?p.sequence(T.of,e):e.sequence(T.of)},T.rejectAfter=function(e,t){if(!(w(e)&&e>=0))throw new TypeError("Async.rejectAfter: Positive Integer required for first argument");return T(function(n){var r=o(function(){n(t)},e);return function(){clearTimeout(r)}})},T.resolveAfter=function(e,t){if(!(w(e)&&e>=0))throw new TypeError("Async.resolveAfter: Positive Integer required for first argument");return T(function(n,r){var i=o(function(){r(t)},e);return function(){clearTimeout(i)}})},T["@@implements"]=u(["alt","ap","bimap","chain","map","of"]),e.exports=T},function(e,t,n){var r=n(93);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){e.exports=n(1302)},function(e,t,n){var r=n(273),i=n(598);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(i(a))return t.apply(null,o)(a)}return n.apply(this,arguments)}}},function(e,t,n){var r=n(96),i=n(762),o=n(200),a=n(168),s=n(387),c=n(761),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,d,h,p,m,v,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=a(t,g,1+y+_),x=function(e){return l&&c(l),new u(!0,e)},k=function(e){return y?(r(e),_?w(e[0],e[1],x):w(e[0],e[1])):_?w(e,x):w(e)};if(b)l=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(d=0,h=o(e.length);h>d;d++)if((p=k(e[d]))&&p instanceof u)return p;return new u(!1)}l=f.call(e)}for(m=l.next;!(v=m.call(l)).done;){try{p=k(v.value)}catch(e){throw c(l),e}if("object"==typeof p&&p&&p instanceof u)return p}return new u(!1)}},function(e,t,n){var r=n(771),i=n(18),o=n(55);e.exports=i(function(e,t){return o(r(e),t)})},function(e,t,n){var r=n(18),i=n(134),o=n(1493);e.exports=r(i([],o,function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(1435)},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=n(133),i=n.n(r),o=n(425);var a=n(672),s=n(419);function c(e){return function(e){if(i()(e))return Object(o.a)(e)}(e)||Object(a.a)(e)||Object(s.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",function(){return c})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(670);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){var r=n(225);e.exports=r(-1)},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"b",function(){return p});var r=n(141),i=n(8),o=n.n(i),a=(n(39),n(658)),s=n.n(a),c=n(143),u=n.n(c),l=n(25),f=n.n(l),d=(n(517),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.a.apply(void 0,Object(r.a)(s()(1,t)))(u()(t))}),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return f.a.apply(void 0,n)(e)},p=Function.prototype},function(e,t,n){var r=n(205),i=n(825);e.exports=i(r)},function(e,t,n){e.exports=n(1215)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return null==t||t!=t?e:t})},function(e,t,n){var r=n(1851),i=n(305),o="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return y});var r=n(50),i=n(161),o=n.n(i),a=n(679),s=n.n(a),c=n(321),u=n.n(c),l=n(47),f=n.n(l),d=n(16),h=n.n(d),p=n(446),m=n.n(p),v=function(e){if(!e)return 0;var t=m()(e),n=Object(r.a)(t,3);return.2126*n[0]+.7152*n[1]+.0722*n[2]},g=function(e){return!!e&&1-v(e)/255>.4},y=function(e,t){var n=function(e){var t,n;if(!e)return null;var r=o()(e.substr(1),16);return s()(r)?null:u()(t=u()(n=r.toString(16)).call(n,6,"0")).call(t,7,"#")}(t);return n&&7===n.length?n:e},b=function(e){return function(t){var n,r=f()(n=m()(t)).call(n,0,3),i=e>=0?h()(r).call(r,function(t){return(1-e)*t+255*e}):h()(r).call(r,function(t){return(1+e)*t});return _(i)}},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"#"+h()(e).call(e,function(e){var t;return u()(t=Math.min(255,Math.max(0,Math.round(e))).toString(16)).call(t,2,"0")}).join("")};b(.9),b(-.5)},function(e,t,n){"use strict";var r=n(123),i=n(142),o=n(0),a=n.n(o),s=n(78);function c(e){return"/"===e.charAt(0)}function u(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var l=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&c(e),a=t&&c(t),s=o||a;if(e&&c(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=i.length;d>=0;d--){var h=i[d];"."===h?u(i,d):".."===h?(u(i,d),f++):f&&(u(i,d),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&c(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};var f=n(164);function d(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function m(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function v(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(s.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=l(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),b||Object(f.a)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,u=o.getUserConfirmation,l=void 0===u?_:u,h=o.keyLength,E=void 0===h?6:h,S=e.basename?m(d(e.basename)):"";function T(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=p(o,S)),g(o,r,n)}function O(){return Math.random().toString(36).substr(2,E)}var C=y();function j(e){Object(s.a)(q,e),q.length=n.length,C.notifyListeners(q.location,q.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(T(e.state))}function M(){N(T(k()))}var P=!1;function N(e){if(P)P=!1,j();else{C.confirmTransitionTo(e,"POP",l,function(t){t?j({action:"POP",location:e}):function(e){var t=q.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(P=!0,R(i))}(e)})}}var I=T(k()),L=[I.key];function D(e){return S+v(e)}function R(e){n.go(e)}var B=0;function F(e){1===(B+=e)&&1===e?(window.addEventListener(w,A),i&&window.addEventListener(x,M)):0===B&&(window.removeEventListener(w,A),i&&window.removeEventListener(x,M))}var U=!1;var q={length:n.length,action:"POP",location:I,createHref:D,push:function(e,t){var i=g(e,t,O(),q.location);C.confirmTransitionTo(i,"PUSH",l,function(e){if(e){var t=D(i),o=i.key,a=i.state;if(r)if(n.pushState({key:o,state:a},null,t),c)window.location.href=t;else{var s=L.indexOf(q.location.key),u=L.slice(0,s+1);u.push(i.key),L=u,j({action:"PUSH",location:i})}else window.location.href=t}})},replace:function(e,t){var i=g(e,t,O(),q.location);C.confirmTransitionTo(i,"REPLACE",l,function(e){if(e){var t=D(i),o=i.key,a=i.state;if(r)if(n.replaceState({key:o,state:a},null,t),c)window.location.replace(t);else{var s=L.indexOf(q.location.key);-1!==s&&(L[s]=i.key),j({action:"REPLACE",location:i})}else window.location.replace(t)}})},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return U||(F(1),U=!0),function(){return U&&(U=!1,F(-1)),t()}},listen:function(e){var t=C.appendListener(e);return F(1),function(){F(-1),t()}}};return q}var S="hashchange",T={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+h(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:h,decodePath:d},slash:{encodePath:d,decodePath:d}};function O(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function C(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function j(e){window.location.replace(O(window.location.href)+"#"+e)}function A(e){void 0===e&&(e={}),b||Object(f.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?_:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?m(d(e.basename)):"",u=T[a],l=u.encodePath,h=u.decodePath;function w(){var e=h(C());return c&&(e=p(e,c)),g(e)}var x=y();function k(e){Object(s.a)(U,e),U.length=t.length,x.notifyListeners(U.location,U.action)}var E=!1,A=null;function M(){var e,t,n=C(),r=l(n);if(n!==r)j(r);else{var o=w(),a=U.location;if(!E&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===v(o))return;A=null,function(e){if(E)E=!1,k();else{x.confirmTransitionTo(e,"POP",i,function(t){t?k({action:"POP",location:e}):function(e){var t=U.location,n=L.lastIndexOf(v(t));-1===n&&(n=0);var r=L.lastIndexOf(v(e));-1===r&&(r=0);var i=n-r;i&&(E=!0,D(i))}(e)})}}(o)}}var P=C(),N=l(P);P!==N&&j(N);var I=w(),L=[v(I)];function D(e){t.go(e)}var R=0;function B(e){1===(R+=e)&&1===e?window.addEventListener(S,M):0===R&&window.removeEventListener(S,M)}var F=!1;var U={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=O(window.location.href)),n+"#"+l(c+v(e))},push:function(e,t){var n=g(e,void 0,void 0,U.location);x.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=v(n),r=l(c+t);if(C()!==r){A=t,function(e){window.location.hash=e}(r);var i=L.lastIndexOf(v(U.location)),o=L.slice(0,i+1);o.push(t),L=o,k({action:"PUSH",location:n})}else k()}})},replace:function(e,t){var n=g(e,void 0,void 0,U.location);x.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=v(n),r=l(c+t);C()!==r&&(A=t,j(r));var i=L.indexOf(v(U.location));-1!==i&&(L[i]=t),k({action:"REPLACE",location:n})}})},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(e){var t=x.appendListener(e);return B(1),function(){B(-1),t()}}};return U}n(1);var M=n(138);n.d(t,"a",function(){return P}),n.d(t,"b",function(){return B}),n.d(t,"c",function(){return q});a.a.Component;var P=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=A(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},t}(a.a.Component);var N=function(e,t){return"function"==typeof e?e(t):e},I=function(e,t){return"string"==typeof e?g(e,null,null,t):e},L=function(e){return e},D=a.a.forwardRef;void 0===D&&(D=L);var R=D(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=Object(M.a)(e,["innerRef","navigate","onClick"]),c=o.target,u=Object(s.a)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=L!==D&&t||n,a.a.createElement("a",u)});var B=D(function(e,t){var n=e.component,i=void 0===n?R:n,o=e.replace,c=e.to,u=e.innerRef,l=Object(M.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,function(e){e||Object(f.a)(!1);var n=e.history,r=I(N(c,e.location),e.location),d=r?n.createHref(r):"",h=Object(s.a)({},l,{href:d,navigate:function(){var t=N(c,e.location);(o?n.replace:n.push)(t)}});return L!==D?h.ref=t||u:h.innerRef=u,a.a.createElement(i,h)})}),F=function(e){return e},U=a.a.forwardRef;void 0===U&&(U=F);var q=U(function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,c=void 0===o?"active":o,u=e.activeStyle,l=e.className,d=e.exact,h=e.isActive,p=e.location,m=e.sensitive,v=e.strict,g=e.style,y=e.to,b=e.innerRef,_=Object(M.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,function(e){e||Object(f.a)(!1);var n=p||e.location,o=I(N(y,n),n),w=o.pathname,x=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=x?Object(r.e)(n.pathname,{path:x,exact:d,sensitive:m,strict:v}):null,E=!!(h?h(k,n):k),S=E?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(l,c):l,T=E?Object(s.a)({},g,{},u):g,O=Object(s.a)({"aria-current":E&&i||null,className:S,style:T,to:o},_);return F!==U?O.ref=t||b:O.innerRef=b,a.a.createElement(B,O)})})},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return jt(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)r=g[n],s(i=t[r])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function x(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=x(t)),n}function E(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&k(e[r])!==k(t[r]))&&a++;return a+o}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return d(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var O,C={};function j(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),C[e]||(S(t),C[e]=!0)}function A(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e,t){var n,r=d({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function P(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var N={};function I(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function L(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function D(e){var t,n,r={};for(n in e)f(e,n)&&(t=L(n))&&(r[t]=e[n]);return r}var R={};function B(e,t){R[e]=t}function F(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=Y(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,i=e.match(U);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=A(i[r])?i[r].call(t,e):i[r];return o}}(t),z[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var G=/\d/,K=/\d\d/,$=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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,ue={};function le(e,t,n){ue[e]=A(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return f(ue,e)?ue[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n<e.length;n++)he[e[n]]=r}function me(e,t){pe(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ve(e,t,n){null!=t&&f(he,e)&&he[e](t,n._a,n,e)}var ge=0,ye=1,be=2,_e=3,we=4,xe=5,ke=6,Ee=7,Se=8;function Te(e){return Oe(e)?366:365}function Oe(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),I("year","y"),B("year",1),le("Y",oe),le("YY",Z,K),le("YYYY",ne,X),le("YYYYY",re,Q),le("YYYYYY",re,Q),pe(["YYYYY","YYYYYY"],ge),pe("YYYY",function(e,t){t[ge]=2===e.length?i.parseTwoDigitYear(e):k(e)}),pe("YY",function(e,t){t[ge]=i.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[ge]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Ce,je=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Pe(this,e,n),i.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Oe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Oe(e)?29:28:31-r%7%2}Ce=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},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),B("month",8),le("M",Z),le("MM",Z,K),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[ye]=k(e)-1}),pe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:p(n).invalidMonth=e});var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Be(e){return null!=e?(Re(this,e),i.updateOffset(this,!0),this):Me(this,"Month")}var Fe=ce,Ue=ce;function qe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=de(r[t]),i[t]=de(i[t]);for(t=0;t<24;t++)o[t]=de(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,i=(7+ze(e,0,r).getUTCDay()-t)%7;return-i+r-1}function We(e,t,n,r,i){var o,a,s=(7+n-r)%7,c=He(e,r,i),u=1+7*(t-1)+s+c;return u<=0?a=Te(o=e-1)+u:u>Te(e)?(o=e+1,a=u-Te(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Ve(e,t,n){var r,i,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ye(i,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ye(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Te(e)-r+i)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),B("week",5),B("isoWeek",5),le("w",Z),le("ww",Z,K),le("W",Z),le("WW",Z,K),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=ce,Qe=ce,Ze=ce;function Je(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),c.push(o),u.push(r),u.push(i),u.push(o);for(a.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),c[t]=de(c[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,et),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+et.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+et.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),tt("a",!0),tt("A",!1),I("hour","h"),B("hour",13),le("a",nt),le("A",nt),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,K),le("hh",Z,K),le("kk",Z,K),le("hmm",J),le("hmmss",ee),le("Hmm",J),le("Hmmss",ee),pe(["H","HH"],_e),pe(["k","kk"],function(e,t,n){var r=k(e);t[_e]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[_e]=k(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[xe]=k(e.substr(i)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[xe]=k(e.substr(i))});var rt,it=Ae("Hours",!0),ot={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:De,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:$e,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function ct(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(1297)("./"+t),lt(r)}catch(e){}return at[t]}function lt(e,t){var n;return e&&(n=s(t)?dt(e):ft(e,t))&&(rt=n),rt._abbr}function ft(e,t){if(null!==t){var n=ot;if(t.abbr=e,null!=at[e])j("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."),n=at[e]._config;else if(null!=t.parentLocale){if(null==at[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=at[t.parentLocale]._config}return at[e]=new P(M(n,t)),st[e]&&st[e].forEach(function(e){ft(e.name,e.config)}),lt(e),at[e]}return delete at[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!o(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(i=ct(e[o]).split("-"),t=i.length,n=(n=ct(e[o+1]))?n.split("-"):null;t>0;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&E(i,n,!0)>=t-1)break;t--}o++}return null}(e)}function ht(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ne(n[ge],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[xe]||0!==n[ke])?_e:n[we]<0||n[we]>59?we:n[xe]<0||n[xe]>59?xe:n[ke]<0||n[ke]>999?ke:-1,p(e)._overflowDayOfYear&&(t<ge||t>be)&&(t=be),p(e)._overflowWeeks&&-1===t&&(t=Ee),p(e)._overflowWeekday&&-1===t&&(t=Se),p(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,i,o,a,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=pt(t.GG,e._a[ge],Ve(At(),1,4).year),r=pt(t.W,1),((i=pt(t.E,1))<1||i>7)&&(c=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Ve(At(),o,a);n=pt(t.gg,e._a[ge],u.year),r=pt(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(c=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o}r<1||r>Ye(n,o,a)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(s=We(n,r,i,o,a),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=pt(e._a[ge],r[ge]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=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[_e]&&0===e._a[we]&&0===e._a[xe]&&0===e._a[ke]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:function(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var vt=/^\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)?)?$/,gt=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["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}/]],_t=[["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/]],wt=/^\/?Date\((\-?\d+)/i;function xt(e){var t,n,r,i,o,a,s=e._i,c=vt.exec(s)||gt.exec(s);if(c){for(p(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(c[1])){i=bt[t][0],r=!1!==bt[t][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(c[3])){o=(c[2]||" ")+_t[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(c[4]){if(!yt.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Ot(e)}else e._isValid=!1}var kt=/^(?:(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}))$/;function Et(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,a,s,c=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(c){var u=(t=c[4],n=c[3],r=c[2],i=c[5],o=c[6],a=c[7],s=[Et(t),De.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ke.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(c[1],u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}(c[8],c[9],c[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Ot(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,a,s=""+e._i,c=s.length,u=0;for(r=Y(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(fe(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),H[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),ve(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,s.length>0&&p(e).unusedInput.push(s),e._a[_e]<=12&&!0===p(e).bigHour&&e._a[_e]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[_e]=(l=e._locale,f=e._a[_e],null==(d=e._meridiem)?f:null!=l.meridiemHour?l.meridiemHour(f,d):null!=l.isPM?((h=l.isPM(d))&&f<12&&(f+=12),h||12!==f||(f=0),f):f),mt(e),ht(e)}else Tt(e);else xt(e);var l,f,d,h}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(ht(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),m(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));d(e,n||t)}(e):n?Ot(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(xt(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=l(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=D(e._i);e._a=l([t.year,t.month,t.day||t.date,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):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function jt(e,t,n,r,i){var s,c={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new _(ht(Ct(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function At(e,t,n,r){return jt(e,t,n,r,!1)}i.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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Mt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Pt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Nt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=D(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,c=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ce.call(It,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<It.length;++r)if(e[It[r]]){if(n)return!1;parseFloat(e[It[r]])!==k(e[It[r]])&&(n=!0)}return!0}(t),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Dt(e){return e instanceof Lt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}Bt("Z",":"),Bt("ZZ",""),le("Z",se),le("ZZ",se),pe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var Ft=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ft)||["-",0,0],o=60*i[1]+k(i[2]);return 0===o?0:"+"===i[0]?o:-o}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||u(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):At(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,r,i,o,a,s,u=e,l=null;return Dt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(u={},t?u[t]=e:u.milliseconds=e):(l=Wt.exec(e))?(n="-"===l[1]?-1:1,u={y:0,d:k(l[be])*n,h:k(l[_e])*n,m:k(l[we])*n,s:k(l[xe])*n,ms:k(Rt(1e3*l[ke]))*n}):(l=Vt.exec(e))?(n="-"===l[1]?-1:(l[1],1),u={y:Gt(l[2],n),M:Gt(l[3],n),w:Gt(l[4],n),d:Gt(l[5],n),h:Gt(l[6],n),m:Gt(l[7],n),s:Gt(l[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=At(u.from),a=At(u.to),i=o.isValid()&&a.isValid()?(a=qt(a,o),o.isBefore(a)?s=Kt(o,a):((s=Kt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),r=new Lt(u),Dt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function Gt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};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 $t(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(j(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."),i=n,n=r,r=i),Xt(this,Yt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var o=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Me(e,"Month")+s*n),a&&Pe(e,"Date",Me(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Yt.fn=Lt.prototype,Yt.invalid=function(){return Yt(NaN)};var Qt=$t(1,"add"),Zt=$t(-1,"subtract");function Jt(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=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 nn(){return this._locale}function rn(e,t){W(0,[e,e.length],0,t)}function on(e,t,n,r,i){var o;return null==e?Ve(this,r,i).year:(o=Ye(e,r,i),t>o&&(t=o),function(e,t,n,r,i){var o=We(e,t,n,r,i),a=ze(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),le("G",oe),le("g",oe),le("GG",Z,K),le("gg",Z,K),le("GGGG",ne,X),le("gggg",ne,X),le("GGGGG",re,Q),le("ggggg",re,Q),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),I("quarter","Q"),B("quarter",7),le("Q",G),pe("Q",function(e,t){t[ye]=3*(k(e)-1)}),W("D",["DD",2],"Do","date"),I("date","D"),B("date",9),le("D",Z),le("DD",Z,K),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],be),pe("Do",function(e,t){t[be]=k(e.match(Z)[0])});var an=Ae("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),B("dayOfYear",4),le("DDD",te),le("DDDD",$),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),W("m",["mm",2],0,"minute"),I("minute","m"),B("minute",14),le("m",Z),le("mm",Z,K),pe(["m","mm"],we);var sn=Ae("Minutes",!1);W("s",["ss",2],0,"second"),I("second","s"),B("second",15),le("s",Z),le("ss",Z,K),pe(["s","ss"],xe);var cn,un=Ae("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),B("millisecond",16),le("S",te,G),le("SS",te,K),le("SSS",te,$),cn="SSSS";cn.length<=9;cn+="S")le(cn,ie);function ln(e,t){t[ke]=k(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")pe(cn,ln);var fn=Ae("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var dn=_.prototype;function hn(e){return e}dn.add=Qt,dn.calendar=function(e,t){var n=e||At(),r=qt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(A(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,At(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=L(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:x(o)},dn.endOf=function(e){return void 0===(e=L(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(At(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(At(),e)},dn.get=function(e){return A(this[e=L(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(s(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},dn.isSame=function(e,t){var n,r=w(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=L(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=tn,dn.locale=en,dn.localeData=nn,dn.max=Pt,dn.min=Mt,dn.parsingFlags=function(){return d({},p(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(A(this[e=L(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=L(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Zt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.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()}},dn.toDate=function(){return new Date(this.valueOf())},dn.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?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=je,dn.isLeapYear=function(){return Oe(this.year())},dn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Be,dn.daysInMonth=function(){return Ne(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},dn.date=an,dn.day=dn.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},dn.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")},dn.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},dn.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")},dn.hour=dn.hours=it,dn.minute=dn.minutes=sn,dn.second=dn.seconds=un,dn.millisecond=dn.milliseconds=fn,dn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Xt(this,Yt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ht,dn.isUTC=Ht,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",an),dn.months=T("months accessor is deprecated. Use month instead",Be),dn.years=T("years accessor is deprecated. Use year instead",je),dn.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()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ct(e))._a){var t=e._isUTC?h(e._a):At(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=P.prototype;function mn(e,t,n,r){var i=dt(),o=h().set(r,t);return i[n](o,e)}function vn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mn(e,r,n,"month");return i}function gn(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 i,o=dt(),a=e?o._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=mn(t,(i+a)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)A(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)},pn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ce.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ce.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ce.call(this._shortMonthsParse,a))?i:-1!==(i=Ce.call(this._longMonthsParse,a))?i:null:-1!==(i=Ce.call(this._longMonthsParse,a))?i:-1!==(i=Ce.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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}},pn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ce.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ce.call(this._weekdaysParse,a))?i:-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ce.call(this._weekdaysParse,a))?i:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:-1!==(i=Ce.call(this._weekdaysParse,a))?i:-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},lt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",lt),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var yn=Math.abs;function bn(e,t,n,r){var i=Yt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function xn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var En=kn("ms"),Sn=kn("s"),Tn=kn("m"),On=kn("h"),Cn=kn("d"),jn=kn("w"),An=kn("M"),Mn=kn("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Pn("milliseconds"),In=Pn("seconds"),Ln=Pn("minutes"),Dn=Pn("hours"),Rn=Pn("days"),Bn=Pn("months"),Fn=Pn("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);e=x(n/60),t=x(e/60),n%=60,e%=60;var o=x(i/12),a=i%=12,s=r,c=t,u=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",h=Hn(this._months)!==Hn(f)?"-":"",p=Hn(this._days)!==Hn(f)?"-":"",m=Hn(this._milliseconds)!==Hn(f)?"-":"";return d+"P"+(o?h+o+"Y":"")+(a?h+a+"M":"")+(s?p+s+"D":"")+(c||u||l?"T":"")+(c?m+c+"H":"")+(u?m+u+"M":"")+(l?m+l+"S":"")}var Vn=Lt.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Vn.add=function(e,t){return bn(this,e,t,1)},Vn.subtract=function(e,t){return bn(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(xn(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)}},Vn.asMilliseconds=En,Vn.asSeconds=Sn,Vn.asMinutes=Tn,Vn.asHours=On,Vn.asDays=Cn,Vn.asWeeks=jn,Vn.asMonths=An,Vn.asYears=Mn,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Vn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,c=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*_n(xn(s)+a),a=0,s=0),c.milliseconds=o%1e3,e=x(o/1e3),c.seconds=e%60,t=x(e/60),c.minutes=t%60,n=x(t/60),c.hours=n%24,a+=x(n/24),i=x(wn(a)),s+=i,a-=_n(xn(i)),r=x(s/12),s%=12,c.days=a,c.months=s,c.years=r,this},Vn.clone=function(){return Yt(this)},Vn.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},Vn.milliseconds=Nn,Vn.seconds=In,Vn.minutes=Ln,Vn.hours=Dn,Vn.days=Rn,Vn.weeks=function(){return x(this.days()/7)},Vn.months=Bn,Vn.years=Fn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Yt(e).abs(),i=Un(r.as("s")),o=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),c=Un(r.as("M")),u=Un(r.as("y")),l=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||c<=1&&["M"]||c<qn.M&&["MM",c]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Vn.toISOString=Wn,Vn.toString=Wn,Vn.toJSON=Wn,Vn.locale=en,Vn.localeData=nn,Vn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Vn.lang=tn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",oe),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(k(e))}),i.version="2.20.1",t=At,i.fn=dn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(e){return At(1e3*e)},i.months=function(e,t){return vn(e,t,"months")},i.isDate=u,i.locale=lt,i.invalid=v,i.duration=Yt,i.isMoment=w,i.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},i.parseZone=function(){return At.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=Dt,i.monthsShort=function(e,t){return vn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},i.defineLocale=ft,i.updateLocale=function(e,t){if(null!=t){var n,r,i=ot;null!=(r=ut(e))&&(i=r._config),t=M(i,t),(n=new P(t)).parentLocale=at[e],at[e]=n,lt(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return O(at)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},i.normalizeUnits=L,i.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},i.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"},i.prototype=dn,i.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:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(248)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});n(2617);var r=n(2),i=n.n(r);t.c=function(t){var n=t.type,r=t.children;return e.createElement("div",{className:"page","data-type":n,"data-page":!0},r)};var o=function(t){var n=t.type,r=t.children,o="video"===n||"embed"===n||"blocks"===n||"progress-summary"===n,a=i()("page__wrapper",{"page__wrapper--white":o});return e.createElement("div",{className:a},r)},a=function(t){var n=t.type,r=t.children,o=i()("page__content",{"page__content--timeline":"timeline"===n});return e.createElement("div",{className:o},r)}}).call(this,n(0))},function(e,t,n){var r=n(118);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(471),i=n(1341),o=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return r(function(e){var n=typeof e;return"function"===n?e.apply(void 0,t):e&&"object"===n?o.apply(void 0,[e].concat(t)):e},e)};e.exports=i(o)},function(e,t,n){var r=n(18);e.exports=r(function(e,t){var n={};return n[e]=t,n})},function(e,t,n){"use strict";var r,i=n(141),o=n(5),a=n.n(o),s=n(40),c=n(317),u={DRAW_FROM_QUESTION_BANK:"DRAW_FROM_QUESTION_BANK",FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"};a()(r=[{icon:s.y,label:"Multiple Choice",type:u.MULTIPLE_CHOICE},{icon:s.z,label:"Multiple Response",type:u.MULTIPLE_RESPONSE},{icon:s.t,label:"Fill In The Blank",type:u.FILL_IN_THE_BLANK},{icon:s.x,label:"Matching",type:u.MATCHING}]).call(r,Object(i.a)(Object(c.a)("questionBanks")?[{icon:s.j,label:"Draw From Question Bank",type:u.DRAW_FROM_QUESTION_BANK}]:[]));t.a=u},function(e,t,n){e.exports=n(1306)},function(e,t,n){e.exports=n(1636)},function(e,t,n){e.exports=n(1503)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(18),i=n(476),o=n(827),a=n(477);e.exports=r(function(e,t){return i(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:a(o)(e,t)})},function(e,t,n){"use strict";var r=!0,i="Invariant failed";t.a=function(e,t){if(!e){if(r)throw new Error(i);throw new Error(i+": "+(t||""))}}},function(e,t,n){"use strict";n.d(t,"e",function(){return pe}),n.d(t,"f",function(){return ge}),n.d(t,"g",function(){return ye}),n.d(t,"b",function(){return be}),n.d(t,"a",function(){return _e}),n.d(t,"h",function(){return xe}),n.d(t,"i",function(){return ke}),n.d(t,"j",function(){return Ee}),n.d(t,"k",function(){return Se}),n.d(t,"c",function(){return Pe}),n.d(t,"d",function(){return Ne});var r=n(17),i=n.n(r),o=n(8),a=n.n(o),s=n(121),c=n.n(s),u=n(232),l=n.n(u),f=n(149),d=n.n(f),h=n(117),p=n.n(h),m=n(1081),v=n.n(m),g=n(38),y=n.n(g),b=n(55),_=n.n(b),w=n(69),x=n.n(w),k=n(137),E=n.n(k),S=n(48),T=n.n(S),O=n(82),C=n.n(O),j=n(100),A=n.n(j),M=n(124),P=n.n(M),N=n(68),I=n.n(N),L=n(32),D=n.n(L),R=n(143),B=n.n(R),F=n(53),U=n.n(F),q=n(111),z=n.n(q),H=n(31),W=n.n(H),V=n(24),Y=n.n(V),G=n(107),K=n.n(G),$=n(25),X=n.n($),Q=n(15),Z=n.n(Q),J=n(19),ee=n.n(J),te=n(208),ne=n.n(te),re=n(233),ie=n.n(re),oe=n(209),ae=n.n(oe),se=n(1084),ce=n.n(se),ue=n(22),le=n(81),fe=n(576),de=n(453),he=a()(z.a,I.a),pe=function(e){var t=e.type,n=e.settings;return"quiz"!==t||n.asLesson||void 0===n.asLesson},me=a()(_()(pe),Z()("lessonsOnly")),ve=function(e){return function(t){return z()(W()(["lessons",t.id,"isComplete"],e))}},ge=function(e){var t=e.course,n=e.lesson;return ee()("id",n.id,C()(Z()("lessonsOnly",t)))},ye=a()(z.a,ee()("type","section")),be=function(e){var t=e.course,n=e.courseProgress,r=e.lesson,i=e.restrictingQuiz,o=Object(fe.b)({courseProgress:n,lesson:r,restrictingQuiz:i}),a=Object(de.a)(t),s=a||he(o),c=function(e){var t=e.course,n=e.courseProgress;return x()(ve(n))(t.lessonsOnly)}({course:t,courseProgress:n}),u=ue.e&&!t.enrolled&&!t.favoritedAt&&!Object(le.j)(),l=u&&!t.riseComLearningPathId&&"preview"!==window.viewType,f=u&&t.riseComLearningPathId&&"preview"!==window.viewType,d=ye(r)&&z()(function(e){var t=e.lesson,n=e.courseProgress;return Y()(!1,["lessons",t.id,"isComplete"],n)}({lesson:r,courseProgress:n}));return{isRestricted:l&&d||f&&d||s&&d&&z()(function(e){var t=e.lesson,n=e.currentLesson;return t&&ee()("id",t.id,n)}({lesson:r,currentLesson:c})),isRestrictedNotEnrolledCourse:l,isRestrictedNotEnrolledLP:f,restrictingQuiz:o,isRestrictedCourse:a,currentLesson:c}},_e=function(e){var t=e.labels,n=e.restrictions,r=t.lessonRestricted,i=t.quizRequirePassingScore,o=n.isRestrictedCourse,a=n.isRestrictedNotEnrolledCourse,s=n.isRestrictedNotEnrolledLP,c=n.restrictingQuiz,u=n.currentLesson,l=u&&v()("id",c,u);return a?"Please save to My List to take this course":s?null:!o||o&&l?c.title?i.replace("quiz",'"'.concat(c.title,'"')):i:r},we=c()(function(e){return E()(ce()(K()(["id"],e||{})))}),xe=function(e){var t=e.course,n=e.lesson;return a()(P.a,we(n),me)(t)},ke=function(e){var t=e.course,n=e.lesson;return!function(e){var t=e.course,n=e.lesson;return ee()("id",n.id,B()(Z()("lessonsOnly",t)))}({course:t,lesson:n})&&t.lessonsOnly[P()(we(n,t.lessonsOnly))]},Ee=function(e){var t=e.course,n=e.lesson;return!ge({course:t,lesson:n})&&t.lessonsOnly[l()(we(n,t.lessonsOnly))]},Se=a()(U.a,me),Te=p()(D.a,I.a),Oe=p()(D.a,y()(!1)),Ce=ne()(Oe,"isComplete"),je=p()(ne()(y()(!1),"passed"),ne()(Oe,"isComplete")),Ae=ae()(2,function(e){return x()(A()(a()(y()(e),C.a),a()(je,B.a),a()(Ce,B.a)))}),Me=ae()(2,function(e){return X()(ie.a,Ae(e),d()([]),C.a)}),Pe=T()(ae()(2,function(e){return A()(Te,i()(e),Me(e))})),Ne=function(e,t,n){if(!n)return{outOfAttempts:!1,quizPassed:!0};var r=W()(["lessons",n],e),i=Y()(-1,["settings","retryCount"],t),o=Y()(0,["retryAttempts"],r),a=W()(["passed"],r);return{outOfAttempts:W()(["isComplete"],r)&&i>-1&&y()(Number(o),Number(i)),quizPassed:a}}},function(e,t,n){e.exports=n(1986)()},function(e,t,n){var r;
/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/
/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/
!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,l=o.indexOf,f={},d=f.toString,h=f.hasOwnProperty,p=h.toString,m=p.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.6.0",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return c(a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var S=
/*!
* Sizzle CSS Selector Engine v2.3.6
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2021-02-16
*/
function(e){var t,n,r,i,o,a,s,c,u,l,f,d,h,p,m,v,g,y,b,_="sizzle"+1*new Date,w=e.document,x=0,k=0,E=ce(),S=ce(),T=ce(),O=ce(),C=function(e,t){return e===t&&(f=!0),0},j={}.hasOwnProperty,A=[],M=A.pop,P=A.push,N=A.push,I=A.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+R+"*("+B+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+R+"*\\]",U=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",q=new RegExp(R+"+","g"),z=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),H=new RegExp("^"+R+"*,"+R+"*"),W=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),V=new RegExp(R+"|>"),Y=new RegExp(U),G=new RegExp("^"+B+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{N.apply(A=I.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){N={apply:A.length?function(e,t){P.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,l,f,p,g,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(d(t),t=t||h,m)){if(11!==w&&(f=J.exec(e)))if(o=f[1]){if(9===w){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(f[2])return N.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!O[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,y=t,1===w&&(V.test(e)||W.test(e))){for((y=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((l=t.getAttribute("id"))?l=l.replace(re,ie):t.setAttribute("id",l=_)),s=(p=a(e)).length;s--;)p[s]=(l?"#"+l:":scope")+" "+be(p[s]);g=p.join(",")}try{return N.apply(r,y.querySelectorAll(g)),r}catch(t){O(e,!0)}finally{l===_&&t.removeAttribute("id")}}}return c(e.replace(z,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[_]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return ue(function(t){return t=+t,ue(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!o(h),w!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=le(function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(h.getElementsByClassName),n.getById=le(function(e){return p.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=Z.test(h.querySelectorAll))&&(le(function(e){var t;p.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+_+"-]").length||v.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Z.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",U)}),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=Z.test(p.compareDocumentPosition),b=t||Z.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&b(w,e)?-1:t==h||t.ownerDocument==w&&b(w,t)?1:l?L(l,e)-L(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==h?-1:t==h?1:i?-1:o?1:l?L(l,e)-L(l,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?de(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!O[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){O(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&j.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(C),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ue,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,f,d,h,p,m=o!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!c&&!s,b=!1;if(v){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&y){for(b=(h=(u=(l=(f=(d=v)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===x&&u[1])&&u[2],d=h&&v.childNodes[h];d=++h&&d&&d[m]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){l[e]=[x,h,b];break}}else if(y&&(b=h=(u=(l=(f=(d=t)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===x&&u[1]),!1===b)for(;(d=++h&&d&&d[m]||(b=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++b||(y&&((l=(f=d[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[x,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=L(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ue(function(e){var t=[],n=[],r=s(e.replace(z,"$1"));return r[_]?ue(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return se(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ue(function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,c){var u,l,f,d=[x,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(l=(f=t[_]||(t[_]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=l[o])&&u[0]===x&&u[1]===s)return d[2]=u[2];if(l[o]=d,d[2]=e(t,n,c))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ke(e,t,n,r,i,o){return r&&!r[_]&&(r=ke(r)),i&&!i[_]&&(i=ke(i,o)),ue(function(o,a,s,c){var u,l,f,d=[],h=[],p=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:xe(m,d,e,s,c),g=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,g,s,c),r)for(u=xe(g,h),r(u,[],s,c),l=u.length;l--;)(f=u[l])&&(g[h[l]]=!(v[h[l]]=f));if(o){if(i||e){if(i){for(u=[],l=g.length;l--;)(f=g[l])&&u.push(v[l]=f);i(null,g=[],u,c)}for(l=g.length;l--;)(f=g[l])&&(u=i?L(o,f):d[l])>-1&&(o[u]=!(a[u]=f))}}else g=xe(g===a?g.splice(p,g.length):g),i?i(null,a,g,c):N.apply(a,g)})}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,l=_e(function(e){return e===t},s,!0),f=_e(function(e){return L(t,e)>-1},s,!0),d=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?l(e,n,r):f(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])d=[_e(we(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[_]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return ke(c>1&&we(d),c>1&&be(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(z,"$1"),n,c<i&&Ee(e.slice(c,i)),i<o&&Ee(e=e.slice(i)),i<o&&be(e))}d.push(n)}return we(d)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,c,u,l=S[e+" "];if(l)return t?0:l.slice(0);for(s=e,c=[],u=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=W.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(z," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,c).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=T[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ee(t[n]))[_]?i.push(s):o.push(s);(s=T(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,l){var f,p,v,g=0,y="0",b=o&&[],_=[],w=u,k=o||i&&r.find.TAG("*",l),E=x+=null==w?1:Math.random()||.1,S=k.length;for(l&&(u=a==h||a||l);y!==S&&null!=(f=k[y]);y++){if(i&&f){for(p=0,a||f.ownerDocument==h||(d(f),s=!m);v=e[p++];)if(v(f,a||h,s)){c.push(f);break}l&&(x=E)}n&&((f=!v&&f)&&g--,o&&b.push(f))}if(g+=y,n&&y!==g){for(p=0;v=t[p++];)v(b,_,a,s);if(o){if(g>0)for(;y--;)b[y]||_[y]||(_[y]=M.call(c));_=xe(_)}N.apply(c,_),l&&!o&&_.length>0&&g+t.length>1&&se.uniqueSort(c)}return l&&(x=E,u=w),b};return n?ue(o):o}(o,i))).selector=e}return s},c=se.select=function(e,t,n,i){var o,c,u,l,f,d="function"==typeof e&&e,h=!i&&a(e=d.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=K.needsContext.test(e)?0:c.length;o--&&(u=c[o],!r.relative[l=u.type]);)if((f=r.find[l])&&(i=f(u.matches[0].replace(te,ne),ee.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&be(c)))return N.apply(n,i),n;break}}return(d||s(e,h))(i,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=_.split("").sort(C).join("")===_,n.detectDuplicates=!!f,d(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||fe(D,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(n);k.find=S,k.expr=S.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=S.uniqueSort,k.text=S.getText,k.isXMLDoc=S.isXML,k.contains=S.contains,k.escapeSelector=S.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},C=k.expr.match.needsContext;function j(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){return g(t)?k.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return l.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&C.test(e)?k(e):e||[],!1).length}});var P,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),A.test(r[1])&&k.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,P=k(b);var I=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!C.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(k(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(j(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(L[e]||k.uniqueSort(i),I.test(e)&&i.reverse()),this.pushStack(i)}});var R=/[^\x20\t\r\n\f]+/g;function B(e){return e}function F(e){throw e}function U(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(R)||[],function(e,n){t[n]=!0}),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,function(n,r){g(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(n){k.each(t,function(t,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,c=arguments,u=function(){var n,u;if(!(e<o)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(u)?i?u.call(n,a(o,t,B,i),a(o,t,F,i)):(o++,u.call(n,a(o,t,B,i),a(o,t,F,i),a(o,t,B,t.notifyWith))):(r!==B&&(s=void 0,c=[n]),(i||t.resolveWith)(s,c))}},l=i?u:function(){try{u()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,l.stackTrace),e+1>=o&&(r!==F&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?l():(k.Deferred.getStackHook&&(l.stackTrace=k.Deferred.getStackHook()),n.setTimeout(l))}}return k.Deferred(function(n){t[0][3].add(a(0,n,g(i)?i:B,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:B)),t[2][3].add(a(0,n,g(r)?r:F))}).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(U(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)U(i[n],a(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var z=k.Deferred();function H(){b.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),k.ready()}k.fn.ready=function(e){return z.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||z.resolveWith(b,[k]))}}),k.ready.then=z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var W=function(e,t,n,r,i,o,a){var s=0,c=e.length,u=null==n;if("object"===x(n))for(s in i=!0,n)W(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):c?t(e[0],n):o},V=/^-ms-/,Y=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function K(e){return e.replace(V,"ms-").replace(Y,G)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=k.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(R)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Q=new X,Z=new X,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||Q.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Z.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),te(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Z.set(this,e)}):W(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))?n:void 0!==(n=te(o,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:k.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Q.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=b.documentElement,ae=function(e){return k.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===k.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},c=s(),u=n&&n[3]||(k.cssNumber[t]?"":"px"),l=e.nodeType&&(k.cssNumber[t]||"px"!==u&&+c)&&re.exec(k.css(e,t));if(l&&l[3]!==u){for(c/=2,u=u||l[3],l=+c||1;a--;)k.style(e,t,l+u),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),l/=o;l*=2,k.style(e,t,l+u),n=n||[]}return n&&(l=+l||+c||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var le={};function fe(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=k.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),le[r]=i,i)}function de(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Q.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=fe(r))):"none"!==n&&(i[o]="none",Q.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}k.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ce(this)?k(this).show():k(this).hide()})}});var he,pe,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;he=b.createDocumentFragment().appendChild(b.createElement("div")),(pe=b.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",v.option=!!he.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&j(e,t)?k.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,v.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,c,u,l,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===x(o))k.merge(d,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(ve.exec(o)||["",""])[1].toLowerCase(),c=ye[s]||ye._default,a.innerHTML=c[1]+k.htmlPrefilter(o)+c[2],l=c[0];l--;)a=a.lastChild;k.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(u=ae(o),a=be(f.appendChild(o),"script"),u&&_e(a),n)for(l=0;o=a[l++];)ge.test(o.type||"")&&n.push(o);return f}var ke=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Se(){return!1}function Te(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Oe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function Ce(e,t,n){n?(Q.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),Q.set(this,t,o),r=n(this,t),this[t](),o!==(i=Q.get(this,t))||r?Q.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&(Q.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&k.event.add(e,t,Ee)}k.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,u,l,f,d,h,p,m,v=Q.get(e);if($(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(oe,i),n.guid||(n.guid=k.guid++),(c=v.events)||(c=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(R)||[""]).length;u--;)h=m=(s=ke.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=k.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=k.event.special[h]||{},l=k.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=c[h])||((d=c[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),k.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,u,l,f,d,h,p,m,v=Q.hasData(e)&&Q.get(e);if(v&&(c=v.events)){for(u=(t=(t||"").match(R)||[""]).length;u--;)if(h=m=(s=ke.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=k.event.special[h]||{},d=c[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)l=d[o],!i&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,v.handle)||k.removeEvent(e,h,v.handle),delete c[h])}else for(h in c)k.event.remove(e,h+t[u],n,r,!0);k.isEmptyObject(c)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),c=k.event.fix(e),u=(Q.get(this,"events")||Object.create(null))[c.type]||[],l=k.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,c)){for(a=k.event.handlers.call(this,c,u),t=0;(i=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?k(i,this).index(u)>-1:k.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,c<t.length&&s.push({elem:u,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&j(t,"input")&&Ce(t,"click",Ee),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&j(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&j(t,"input")&&Q.get(t,"click")||j(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return Ce(this,e,Te),!1},trigger:function(){return Ce(this,e),!0},_default:function(){return!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||k.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){k.event.remove(this,e,n,t)})}});var je=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return j(e,"table")&&j(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Q.hasData(e)&&(s=Q.get(e).events))for(i in Q.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)k.event.add(t,i,s[i][n]);Z.hasData(e)&&(o=Z.access(e),a=k.extend({},o),Z.set(t,a))}}function De(e,t,n,r){t=c(t);var i,o,a,s,u,l,f=0,d=e.length,h=d-1,p=t[0],m=g(p);if(m||d>1&&"string"==typeof p&&!v.checkClone&&Ae.test(p))return e.each(function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),De(o,t,n,r)});if(d&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(be(i,"script"),Ne)).length;f<d;f++)u=i,f!==h&&(u=k.clone(u,!0,!0),s&&k.merge(a,be(u,"script"))),n.call(e[f],u,f);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,Ie),f=0;f<s;f++)u=a[f],ge.test(u.type||"")&&!Q.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):w(u.textContent.replace(Me,""),u,l))}return e}function Re(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&_e(be(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,c,u,l=e.cloneNode(!0),f=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=be(l),r=0,i=(o=be(e)).length;r<i;r++)s=o[r],c=a[r],u=void 0,"input"===(u=c.nodeName.toLowerCase())&&me.test(s.type)?c.checked=s.checked:"input"!==u&&"textarea"!==u||(c.defaultValue=s.defaultValue);if(t)if(n)for(o=o||be(e),a=a||be(l),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,l);return(a=be(l,"script")).length>0&&_e(a,!f&&be(e,"script")),l},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return W(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return De(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return De(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!je.test(e)&&!ye[(ve.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return De(this,arguments,function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(be(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,r=[],i=k(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var Be=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},qe=new RegExp(ie.join("|"),"i");function ze(e,t,n){var r,i,o,a,s=e.style;return(n=n||Fe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=k.style(e,t)),!v.pixelBoxStyles()&&Be.test(a)&&qe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(u).appendChild(l);var e=n.getComputedStyle(l);r="1%"!==e.top,c=12===t(e.marginLeft),l.style.right="60%",a=36===t(e.right),i=36===t(e.width),l.style.position="absolute",o=12===t(l.offsetWidth/3),oe.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,c,u=b.createElement("div"),l=b.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],Ve=b.createElement("div").style,Ye={};function Ge(e){var t=k.cssProps[e]||Ye[e];return t||(e in Ve?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in Ve)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,$e=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Je(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=k.css(e,n+ie[a],!0,i)),r?("content"===n&&(c-=k.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(c-=k.css(e,"border"+ie[a]+"Width",!0,i))):(c+=k.css(e,"padding"+ie[a],!0,i),"padding"!==n?c+=k.css(e,"border"+ie[a]+"Width",!0,i):s+=k.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function et(e,t,n){var r=Fe(e),i=(!v.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&j(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Je(e,t,n||(i?"border":"content"),o,r,a)+"px"}function tt(e,t,n,r,i){return new tt.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),c=$e.test(t),u=e.style;if(c||(t=Ge(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return $e.test(t)||(t=Ge(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):Ue(e,Xe,function(){return et(e,t,r)})},set:function(e,n,r){var i,o=Fe(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===k.css(e,"boxSizing",!1,o),c=r?Je(e,t,r,s,o):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Je(e,t,"border",!1,o)-.5)),c&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),Ze(0,n,c)}}}),k.cssHooks.marginLeft=He(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=Ze)}),k.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=tt.prototype.init,k.fx.step={};var nt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){rt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,k.fx.interval),k.fx.tick())}function st(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(e,t,n){var r,i,o=0,a=lt.prefilters.length,s=k.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=nt||st(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),l=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(l,u.opts.specialEasing);o<a;o++)if(r=lt.prefilters[o].call(u,e,l,u.opts))return g(r.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return k.map(l,ut,u),g(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(R);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,u,l,f="width"in t||"height"in t,d=this,h={},p=e.style,m=e.nodeType&&ce(e),v=Q.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],it.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||k.style(e,r)}if((c=!k.isEmptyObject(t))||!k.isEmptyObject(h))for(r in f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=v&&v.display)&&(u=Q.get(e,"display")),"none"===(l=k.css(e,"display"))&&(u?l=u:(de([e],!0),u=e.style.display||u,l=k.css(e,"display"),de([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===k.css(e,"float")&&(c||(d.done(function(){p.display=u}),null==u&&(l=p.display,u="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),c=!1,h)c||(v?"hidden"in v&&(m=v.hidden):v=Q.access(e,"fxshow",{display:u}),o&&(v.hidden=!m),m&&de([e],!0),d.done(function(){for(r in m||de([e]),Q.remove(e,"fxshow"),h)k.style(e,r,h[r])})),c=ut(m?v[r]:0,r,d),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=k.isEmptyObject(e),o=k.speed(t,n,r),a=function(){var t=lt(this,k.extend({},e),o);(i||Q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=k.timers,a=Q.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ot.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Q.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}}),k.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),nt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){rt||(rt=!0,at())},k.fx.stop=function(){rt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var ft,dt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return W(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&j(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||k.find.attr;dt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=dt[a],dt[a]=i,i=null!=n(e,t,r)?a:null,dt[a]=o),i}});var ht=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function mt(e){return(e.match(R)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}k.fn.extend({prop:function(e,t){return W(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each(function(t){k(this).addClass(e.call(this,t,vt(this)))});if((t=gt(e)).length)for(;n=this[c++];)if(i=vt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each(function(t){k(this).removeClass(e.call(this,t,vt(this)))});if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[c++];)if(i=vt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,vt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=gt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(yt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:mt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!j(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),a=i.length;a--;)((r=i[a]).selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,i){var o,a,s,c,u,l,f,d,p=[r||b],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!bt.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),f=k.event.special[m]||{},i||!f.trigger||!1!==f.trigger.apply(r,t))){if(!i&&!f.noBubble&&!y(r)){for(c=f.delegateType||m,bt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)d=a,e.type=o>1?c:f.bindType||m,(l=(Q.get(a,"events")||Object.create(null))[e.type]&&Q.get(a,"handle"))&&l.apply(a,t),(l=u&&a[u])&&l.apply&&$(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),t)||!$(r)||u&&g(r[m])&&!y(r)&&((s=r[u])&&(r[u]=null),k.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,_t),r[m](),e.isPropagationStopped()&&d.removeEventListener(m,_t),k.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,t);i||r.addEventListener(e,n,!0),Q.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,t)-1;i?Q.access(r,t,i):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}});var wt=n.location,xt={guid:Date.now()},kt=/\?/;k.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||k.error("Invalid XML: "+(r?k.map(r.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Et=/\[\]$/,St=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var i;if(Array.isArray(t))k.each(t,function(t,i){n||Et.test(e)?r(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)Ct(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){i(this.name,this.value)});else for(n in e)Ct(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Ot.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var jt=/%20/g,At=/#.*$/,Mt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,It=/^\/\//,Lt={},Dt={},Rt="*/".concat("*"),Bt=b.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(R)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ut(e,t,n,r){var i={},o=e===Dt;function a(s){var c;return i[s]=!0,k.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function qt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Bt.href=wt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,k.ajaxSettings),t):qt(k.ajaxSettings,e)},ajaxPrefilter:Ft(Lt),ajaxTransport:Ft(Dt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,c,u,l,f,d,h=k.ajaxSetup({},t),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?k(p):k.event,v=k.Deferred(),g=k.Callbacks("once memory"),y=h.statusCode||{},_={},w={},x="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Pt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),S(0,t),this}};if(v.promise(E),h.url=((e||h.url||wt.href)+"").replace(It,wt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(R)||[""],null==h.crossDomain){c=b.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Bt.protocol+"//"+Bt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),Ut(Lt,h,t,E),u)return E;for(f in(l=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Nt.test(h.type),i=h.url.replace(At,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(kt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Mt,"$1"),d=(kt.test(i)?"&":"?")+"_="+xt.guid+++d),h.url=i+d),h.ifModified&&(k.lastModified[i]&&E.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&E.setRequestHeader("If-None-Match",k.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,E,h)||u))return E.abort();if(x="abort",g.add(h.complete),E.done(h.success),E.fail(h.error),r=Ut(Dt,h,t,E)){if(E.readyState=1,l&&m.trigger("ajaxSend",[E,h]),u)return E;h.async&&h.timeout>0&&(s=n.setTimeout(function(){E.abort("timeout")},h.timeout));try{u=!1,r.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,c){var f,d,b,_,w,x=t;u||(u=!0,s&&n.clearTimeout(s),r=void 0,o=c||"",E.readyState=e>0?4:0,f=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(h,E,a)),!f&&k.inArray("script",h.dataTypes)>-1&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=l.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=u[c+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(h,_,E,f),f?(h.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(k.etag[i]=w)),204===e||"HEAD"===h.type?x="nocontent":304===e?x="notmodified":(x=_.state,d=_.data,f=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),E.status=e,E.statusText=(t||x)+"",f?v.resolveWith(p,[d,x,E]):v.rejectWith(p,[E,x,b]),E.statusCode(y),y=void 0,l&&m.trigger(f?"ajaxSuccess":"ajaxError",[E,h,f?d:b]),g.fireWith(p,[E,x]),l&&(m.trigger("ajaxComplete",[E,h]),--k.active||k.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}}),k.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ht=k.ajaxSettings.xhr();v.cors=!!Ht&&"withCredentials"in Ht,v.ajax=Ht=!!Ht,k.ajaxTransport(function(e){var t,r;if(v.cors||Ht&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var Wt,Vt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||k.expando+"_"+xt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+i):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||k.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?k(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0}),"script"}),v.createHTMLDocument=((Wt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=mt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,u=k.css(e,"position"),l=k(e),f={};"static"===u&&(e.style.position="relative"),s=l.offset(),o=k.css(e,"top"),c=k.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+c).indexOf("auto")>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),g(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):l.css(f)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||oe})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return W(this,function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=He(v.pixelPosition,function(e,n){if(n)return n=ze(e,t),Be.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return W(this,function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?k.css(t,n,s):k.style(t,n,i,s)},t,a?i:void 0,a)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=j,k.isFunction=g,k.isWindow=y,k.camelCase=K,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Kt=n.jQuery,$t=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=$t),e&&n.jQuery===k&&(n.jQuery=Kt),k},void 0===i&&(n.jQuery=n.$=k),k})},function(e,t,n){var r=n(140);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(162);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var r,i=n(180),o=n(127),a=n(162),s=n(244),c=n(1173),u=n(308),l=n(326),f=n(201).f,d=n(445),h=n(719),p=n(181)("toStringTag"),m=n(1069)("TYPED_ARRAY_TAG"),v=o.DataView,g=v&&v.prototype,y=o.Int8Array,b=y&&y.prototype,_=o.Uint8ClampedArray,w=_&&_.prototype,x=y&&d(y),k=b&&d(b),E=Object.prototype,S=E.isPrototypeOf,T=!(!o.ArrayBuffer||!o.DataView),O=T&&!!h,C=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A=function(e){return a(e)&&s(j,c(e))};for(r in j)o[r]||(O=!1);if((!O||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},O))for(r in j)o[r]&&h(o[r],x);if((!O||!k||k===E)&&(k=x.prototype,O))for(r in j)o[r]&&h(o[r].prototype,k);if(O&&d(w)!==k&&h(w,k),i&&!s(k,p))for(r in C=!0,f(k,p,{get:function(){return a(this)?this[m]:void 0}}),j)o[r]&&u(o[r],m,r);T&&h&&d(g)!==E&&h(g,E),e.exports={NATIVE_ARRAY_BUFFER:T,NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:C&&m,aTypedArray:function(e){if(A(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(S.call(x,e))return e}else for(var t in j)if(s(j,r)){var n=o[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(i){if(n)for(var r in j){var a=o[r];a&&s(a.prototype,e)&&delete a.prototype[e]}k[e]&&!n||l(k,e,n?t:O&&b[e]||t)}},exportStatic:function(e,t,n){var r,a;if(i){if(h){if(n)for(r in j)(a=o[r])&&s(a,e)&&delete a[e];if(x[e]&&!n)return;try{return l(x,e,n?t:O&&y[e]||t)}catch(e){}}for(r in j)!(a=o[r])||a[e]&&!n||l(a,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||s(j,t)},isTypedArray:A,TypedArray:x,TypedArrayPrototype:k}},function(e,t,n){"use strict";n.d(t,"b",function(){return b}),n.d(t,"d",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"a",function(){return x});var r=n(702),i=n.n(r),o=n(350),a=n.n(o),s=n(1130),c=n.n(s),u=n(703),l=n.n(u),f=n(432),d=n.n(f),h=n(704),p=n.n(h),m=n(668),v=n.n(m),g=n(42),y=n.n(g),b=p()(l.a),_=y()(l.a,function(){return{}}),w=p()(c.a),x=a()(i()(w),i()(d.a));v()(x)},function(e,t,n){e.exports=n(1966)()},function(e,t){
/** @license ISC License (c) copyright 2018 original and current authors */
e.exports={alt:"fantasy-land/alt",bimap:"fantasy-land/bimap",chain:"fantasy-land/chain",compose:"fantasy-land/compose",concat:"fantasy-land/concat",contramap:"fantasy-land/contramap",empty:"fantasy-land/empty",equals:"fantasy-land/equals",extend:"fantasy-land/extend",filter:"fantasy-land/filter",id:"fantasy-land/id",map:"fantasy-land/map",of:"fantasy-land/of",promap:"fantasy-land/promap",reduce:"fantasy-land/reduce",zero:"fantasy-land/zero"}},function(e,t,n){e.exports=n(1305)},function(e,t,n){"use strict";var r=n(1024),i=n(1025),o=n(0),a=n.n(o),s=n(315),c=n.n(s),u=n(2),l=n.n(u),f=n(20),d=function(e){var t=e.canProceed,n=e.hasFeedback;return l()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":n})},h=function(e){var t=e.isCorrect;return l()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct brand--color":t})},p=function(e){var t=e.allowFocus,n=e.onNext,r=e.quizNext;return a.a.createElement("div",{className:"quiz-card__feedback-button"},a.a.createElement("button",{"aria-hidden":!t,className:"quiz-card__button brand--background brand--ui",onClick:n,tabIndex:Object(f.m)(t),type:"button"},r))},m=function(e){var t=e.allowTabNavigation,n=e.canProceed,r=e.feedbackRef,i=e.hasFeedback,s=e.isCorrect,u=e.labels.feedbackGroup,l=e.onNext,m=e.quizCorrect,v=e.quizIncorrect,g=e.quizNext,y=e.renderText,b=t&&n,_=c()(b),w=Object(o.useRef)();return Object(o.useEffect)(function(){!_&&b&&w.current&&w.current.focus()},[b,_]),a.a.createElement("div",{"aria-hidden":!b,className:d({canProceed:n,hasFeedback:i}),ref:r},a.a.createElement("div",{className:"quiz-card__main--feedback"},a.a.createElement("div",{"aria-label":u,className:"quiz-card__feedback-wrap",ref:w,role:"group",tabIndex:f.i},a.a.createElement("div",{className:h({isCorrect:s})},a.a.createElement("i",{className:s?"icon icon-Master-05":"icon icon-Master-06"})),a.a.createElement("div",{className:"quiz-card__feedback-label brand--head"},s?m:v),y()),l?p({allowFocus:b,onNext:l,quizNext:g}):null))},v=n(1026),g=n(1027),y=n(5),b=n.n(y),_=n(539),w=n.n(_),x=function(e,t){var n=c()(t);Object(o.useEffect)(function(){!n&&t&&e&&w()(e.focus)&&e.focus()},[t,n,e])},k=n(312),E=function(e){var t,n,r=e.isActive,i=e.num,s=e.total,c=e.quizQuestion,u=Object(o.useRef)();return x(u.current,r),a.a.createElement("div",{className:"quiz-card__number"},a.a.createElement("h1",{className:"visually-hidden-always",ref:u,tabIndex:f.i},b()(t="Question ".concat(i," of ")).call(t,s)),a.a.createElement("div",{"aria-hidden":"true",className:"quiz-card__step-label brand--body"},c),a.a.createElement("div",{"aria-hidden":"true",className:"quiz-card__counter brand--color brand--ui"},b()(n="".concat(Object(k.b)(i),"/")).call(n,Object(k.b)(s))))},S=n(1028);n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return i.a}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return v.a}),n.d(t,"e",function(){return g.a}),n.d(t,"f",function(){return E}),n.d(t,"g",function(){return S.a})},function(e,t,n){var r=n(199),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},function(e,t,n){var r=n(93),i=n(122),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(191),i=n(470);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){e.exports=!n(113)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1068)("wks"),i=n(1069),o=n(127).Symbol,a=n(2202);e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}},function(e,t,n){var r=n(382),i=n(61);e.exports=i(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}))},function(e,t,n){var r=n(18),i=n(30),o=n(15);e.exports=r(function(e,t){return i(o(e),t)})},function(e,t,n){var r=n(51),i=n(822);e.exports=r(i(!0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return j});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(5),f=n.n(l),d=(n(1817),n(2)),h=n.n(d),p=n(1),m=n.n(p),v=n(17),g=n.n(v),y=n(350),b=n.n(y),_=n(42),w=n.n(_),x=n(314),k=n(351),E=n(264),S=n(352),T=n(66);function O(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var C=function(e){return e&&(e.key||e.src)&&!e.isProcessing&&!e.error},j=function(t){Object(s.a)(r,t);var n=O(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"renderAudio",value:function(t){var n,r=this.props,i=r.allowTabNavigation,o=r.index,a=r.labels,s=r.lessonNumber,c=t.audio,u=f()(n="audio-".concat(s,"-")).call(n,o);if(C(c))return e.createElement(x.b,{allowTabNavigation:i,id:u,key:u,labels:a,mediaSrc:c.key,shouldPause:c.pause})}},{key:"renderImage",value:function(t){var n,r=this.props,i=r.allowTabNavigation,o=r.defaultAlign,a=r.index,s=r.onLoad,c=r.opts,u=t.image,l=null!==(n=null==u?void 0:u.align)&&void 0!==n?n:o,f="image-".concat(a),d=c.disableZoom;if(C(u))return e.createElement(E.a,{align:l,key:f,src:Object(T.a)(u),alt:u.alt,disableZoom:d,allowTabNavigation:i,onLoad:s,imageKey:u.key,shouldFillWidth:u.fillWidth})}},{key:"renderVideo",value:function(t){var n,r,i=t.video,o=void 0===i?{}:i,a=this.props,s=a.allowTabNavigation,c=a.blockId,u=a.lessonNumber,l=a.index,d=a.labels,h=a.onFullScreenChange,p=a.enableVideoPlaybackSpeed,m=(r=c,w()(g()(r),b()("-".concat(r))))(f()(n="video-".concat(u,"-")).call(n,l));if(C(o))return e.createElement(S.a,{allowTabNavigation:s,captionUID:o.captionUID,captions:o.captions,id:m,key:m,labels:d,onFullScreenChange:h,poster:o.poster,shouldPause:o.pause,src:o.key,canAdjustPlaybackSpeed:p})}},{key:"renderEmbed",value:function(t){var n=this.props,r=n.allowTabNavigation,i=n.opts,o=n.labels,a=i.fullEmbed,s=i.showMetaData,c=void 0===s||s,u=t.embed,l="embed-".concat(this.props.index);if(C(u))return e.createElement(k.a,{labels:o,key:l,isLesson:a,id:l,showMetaData:c,data:u,allowTabNavigation:r,shouldPause:u.pause})}},{key:"render",value:function(){var t=this.props,n=t.media,r=t.hasPadding,i=h()({"media-group":r});return e.createElement("div",{className:i},this.renderAudio(n),this.renderImage(n),this.renderVideo(n),this.renderEmbed(n))}}],[{key:"propTypes",get:function(){return{allowTabNavigation:m.a.bool,blockId:m.a.string,defaultAlign:m.a.string,hasPadding:m.a.bool,index:m.a.string,media:m.a.object,onLoad:m.a.func,opts:m.a.object}}},{key:"defaultProps",get:function(){return{defaultAlign:"left",media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){t.action=n(1715),t.also=n(1717),t.error=n(1718),t.handle=n(1719),t.logError=n(1720),t.onSuccess=n(1721),t.sideEffect=n(1722)},function(e,t,n){var r=n(375),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(205),i=n(51),o=n(57);e.exports=i(function(e){return o(e.length,function(){var t=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var e=n.apply(this,r(arguments,[t,i]));return t+=1,e},e.apply(this,o)})})},function(e,t,n){"use strict";var r=n(852),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(205),i=n(18);e.exports=i(function(e,t){return r(t,[e])})},function(e,t,n){var r=n(470);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){"use strict";var r=n(50),i=n(5),o=n.n(i),a=(n(1930),n(0)),s=n.n(a),c=n(8),u=n.n(c),l=n(2),f=n.n(l),d=n(196),h=n.n(d),p=n(30),m=n.n(p),v=n(52),g=n.n(v),y=n(245),b=n.n(y),_=n(235),w=n.n(_),x=n(40),k=n(20),E=n(144),S=n(23),T=function(e){var t,n,i=e.allowTabNavigation,c=e.isComplete,u=e.isCorrect,l=e.onChange,d=e.onEnterToSubmit,h=e.options,p=e.questionHtmlId,m=e.quizAcceptableResponses,v=e.quizAnswerPlaceholder,g=e.revealAnswers,y=e.value,b=Object(a.useRef)(),_=Object(a.useState)(function(){return w()("fitb-")}),E=Object(r.a)(_,1)[0],T="".concat(E,"-feedback"),O="".concat(E,"-acceptable"),j="".concat(E,"-input"),A=c?o()(t="".concat(T," ")).call(t,O):void 0,M=c?void 0:v,P=i?0:k.i,N=f()("quiz-fill__icon",{"quiz-fill__icon--visible":c}),I=f()("quiz-fill__options",{"quiz-fill__options--visible":c}),L=Object(a.useCallback)(function(e){l(e.currentTarget.value)},[l]),D=Object(a.useCallback)(function(e){Object(S.d)(e)&&d(e)},[d]),R=c?void 0:L,B=c?void 0:D;return s.a.createElement("div",{className:"quiz-fill"},s.a.createElement("div",{className:"quiz-fill__container"},s.a.createElement("input",{"aria-labelledby":p,"aria-describedby":A,"aria-hidden":!i,"aria-readonly":c,autoComplete:"off",className:"quiz-fill__input brand--body ignore-prefers",id:j,onChange:R,onKeyDown:B,placeholder:M,readOnly:c,ref:b,tabIndex:P,type:"text",value:y}),g&&s.a.createElement("div",{className:N,id:T},u&&s.a.createElement(x.e,{"aria-label":"Correct",className:"brand--fill"}),!u&&s.a.createElement(x.H,{"aria-label":"Incorrect"}))),g&&c&&s.a.createElement("div",{className:I,id:O},o()(n="".concat(m,": ")).call(n,C(h))))};T.defaultProps={onChange:E.b,onEnterToSubmit:E.b};var O,C=u()(h()(", "),m()(u()(b.a,g()("","title")))),j=T,A=n(1029),M=n(12),P=n(16),N=n.n(P),I=(n(1937),n(315)),L=n.n(I),D=(O={},Object(M.a)(O,"NEXT",function(e,t){return t===e-1?0:t+1}),Object(M.a)(O,"PREV",function(e,t){return 0===t?e-1:t-1}),O),R=function(e){var t=e.allowTabNavigation,n=e.id,i=e.index,o=e.isComplete,c=e.isCorrect,u=e.isFresh,l=e.isSelected,d=e.onChange,h=e.onEnterToSubmit,p=e.onNav,m=e.prefersKeyboardNavigation,v=e.renderOptionText,g=e.revealAnswers,y=e.title,b=Object(a.useState)(function(){return w()("qmc-")}),_=Object(r.a)(b,1)[0],E=Object(a.useRef)(),T=L()(l),O=o&&g,C="".concat(_,"-label"),j=O?"".concat(_,"-result"):void 0,A=o?"true":"false",M=t&&(l||u&&0===i)?0:k.i,P=f()("quiz-multiple-choice-option-wrap",{"quiz-multiple-choice-option-wrap--complete":o}),N=f()("quiz-multiple-choice-option",{"quiz-multiple-choice-option--complete":o,"quiz-multiple-choice-option--keyboard":m,"quiz-multiple-choice-option--selected":l,"quiz-multiple-choice-option--correct":o&&c&&g,"quiz-multiple-choice-option--incorrect":o&&!c&&g}),I=f()("quiz-multiple-choice-option__border",{"brand--beforeBorder":o&&g&&l&&c}),D=Object(a.useCallback)(function(e){e.target===e.currentTarget&&(Object(S.d)(e)?h(e):Object(S.c)(e)?(e.preventDefault(),p("NEXT")):Object(S.o)(e)?(e.preventDefault(),p("PREV")):Object(S.k)(e)&&(e.preventDefault(),d({selectedIndex:i})))},[i,d,h,p]),R=Object(a.useCallback)(function(e){"A"!==e.target.tagName&&d({selectedIndex:i})},[i,d]),B=o?void 0:R,F=o?void 0:D;return Object(a.useEffect)(function(){t&&!T&&l&&E.current&&E.current.focus()},[t,l,T]),s.a.createElement("div",{className:P,onClick:B},s.a.createElement("div",{"aria-checked":l,"aria-describedby":j,"aria-disabled":A,"aria-labelledby":C,className:N,onKeyDown:F,ref:E,role:"radio",tabIndex:M},s.a.createElement("div",{className:"quiz-multiple-choice-option__indicator"},s.a.createElement("div",{className:"quiz-multiple-choice-option__dot brand--background"}),s.a.createElement(x.d,{"aria-hidden":"true",className:"quiz-multiple-choice-option__check brand--fill",width:"9",height:"7"}),s.a.createElement(x.l,{"aria-hidden":"true",className:"quiz-multiple-choice-option__x",height:"8",width:"8"})),s.a.createElement("div",{className:I})),s.a.createElement("div",{className:"quiz-multiple-choice-option__text brand--body",id:C},v({optionId:n,title:y})),O&&s.a.createElement("div",{className:"visually-hidden-always",id:j},l&&c&&"Correctly selected",l&&!c&&"Incorrectly selected",!l&&c&&"Incorrectly unselected",!l&&!c&&"Correctly unselected"))},B=function(e){var t=e.allowTabNavigation,n=e.correctId,r=e.isComplete,i=e.onChange,o=e.onEnterToSubmit,c=e.options,u=void 0===c?[]:c,l=e.prefersKeyboardNavigation,f=e.questionHtmlId,d=e.renderOptionText,h=e.revealAnswers,p=e.selectedIndex,m=Object(a.useCallback)(function(e){var t=u.length;1!==t&&i({selectedIndex:D[e](t,p||0)})},[i,u.length,p]);return s.a.createElement("div",{"aria-labelledby":f,role:"radiogroup"},N()(u).call(u,function(e,a,c){return s.a.createElement(R,{allowTabNavigation:t,id:e.id,index:a,isComplete:r,isCorrect:n===e.id,isFirst:0===a,isFresh:-1===p||null==p,isLast:a===c.length-1,isSelected:p===a,key:e.id,onChange:i,onEnterToSubmit:o,onNav:m,prefersKeyboardNavigation:l,renderOptionText:d,revealAnswers:h,title:e.title})}))},F=(n(1938),n(102)),U=n.n(F),q=function(e){var t=e.allowTabNavigation,n=e.id,i=e.index,o=e.isComplete,c=e.isCorrect,u=e.isSelected,l=e.onChange,d=e.onEnterToSubmit,h=e.prefersKeyboardNavigation,p=e.renderOptionText,m=e.revealAnswers,v=e.title,g=Object(a.useState)(function(){return w()("qmr-")}),y=Object(r.a)(g,1)[0],b=o&&m,_="".concat(y,"-label"),E=b?"".concat(y,"-result"):void 0,T=o?"true":"false",O=t?0:k.i,C=f()("quiz-multiple-response-option-wrap",{"quiz-multiple-response-option-wrap--complete":o}),j=f()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":o,"quiz-multiple-response-option--keyboard":h,"quiz-multiple-response-option--selected":u,"quiz-multiple-response-option--correct":o&&c&&m,"quiz-multiple-response-option--incorrect":o&&!c&&m}),A=f()("quiz-multiple-response-option__border",{"brand--beforeBorder":o&&m&&c&&u}),M=Object(a.useCallback)(function(e){Object(S.d)(e)?d(e):Object(S.k)(e)&&(e.preventDefault(),l({optionIndex:i}))},[i,d,l]),P=Object(a.useCallback)(function(e){"A"!==e.target.tagName&&l({optionIndex:i})},[i,l]),N=o?void 0:P,I=o?void 0:M;return s.a.createElement("li",{className:C,onClick:N,role:"listitem"},s.a.createElement("div",{"aria-checked":u,"aria-describedby":E,"aria-disabled":T,"aria-labelledby":_,className:j,onKeyDown:I,role:"checkbox",tabIndex:O},s.a.createElement("div",{className:"quiz-multiple-response-option__indicator"},s.a.createElement(x.d,{"aria-hidden":"true",className:"quiz-multiple-response-option__check brand--fill",width:"9",height:"7"}),s.a.createElement(x.l,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",width:"8"})),s.a.createElement("div",{className:A})),s.a.createElement("div",{className:"quiz-multiple-response-option__text brand--body",id:_},p({optionId:n,title:v})),b&&s.a.createElement("div",{className:"visually-hidden-always",id:E},u&&c&&"Correctly checked",u&&!c&&"Incorrectly checked",!u&&c&&"Incorrectly unchecked",!u&&!c&&"Correctly unchecked"))},z=function(e){var t=e.allowTabNavigation,n=e.correctIds,r=void 0===n?[]:n,i=e.isComplete,o=e.onChange,a=e.onEnterToSubmit,c=e.options,u=void 0===c?[]:c,l=e.prefersKeyboardNavigation,f=e.renderOptionText,d=e.revealAnswers,h=e.selectedIndices,p=void 0===h?[]:h;return s.a.createElement("ul",{role:"list"},N()(u).call(u,function(e,n){return s.a.createElement(q,{allowTabNavigation:t,id:e.id,index:n,isComplete:i,isCorrect:U()(e.id,r),isSelected:U()(n,p),key:e.id,onChange:o,onEnterToSubmit:a,prefersKeyboardNavigation:l,renderOptionText:f,revealAnswers:d,title:e.title})}))};n.d(t,"a",function(){return j}),n.d(t,"b",function(){return A.a}),n.d(t,"c",function(){return B}),n.d(t,"d",function(){return z})},function(e,t,n){var r=n(462),i=n(737),o=n(738);e.exports=function(){function e(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function t(e,t,n,r){return e["@@transducer/result"](n[r](o(e["@@transducer/step"],e),t))}var n="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(o,a,s){if("function"==typeof o&&(o=i(o)),r(s))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(o,a,s);if("function"==typeof s["fantasy-land/reduce"])return t(o,a,s,"fantasy-land/reduce");if(null!=s[n])return e(o,a,s[n]());if("function"==typeof s.next)return e(o,a,s);if("function"==typeof s.reduce)return t(o,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}()},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(e){return"Const("+e+")"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Tuple:function(e){return e+"-Tuple"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e,t){return{type:function(){return r(e)(t)}}},type:r,typeFn:function(e,t,n){return"crocks/"+r(e)(n)+"@"+(t||0)}}},function(e,t,n){e.exports=n(1470)},function(e,t,n){var r=n(399);e.exports=r(1,"join")},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(90),i="compose: Functions required";function o(e,t){if(!r(t))throw new TypeError(i);return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return t.call(null,e.apply(null,n))}}e.exports=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(!arguments.length)throw new TypeError(i);var n=e.slice().reverse(),a=n[0];if(!r(a))throw new TypeError(i);return n.slice(1).concat(function(e){return e}).reduce(o,a)}},function(e,t,n){"use strict";n.d(t,"c",function(){return w}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return E}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return T}),n.d(t,"i",function(){return O}),n.d(t,"j",function(){return C}),n.d(t,"b",function(){return M}),n.d(t,"a",function(){return P});var r,i,o,a,s=n(50),c=n(5),u=n.n(c),l=n(161),f=n.n(l),d=n(79),h=n.n(d),p=n(82),m=n.n(p),v=n(31),g=n.n(v),y=n(24),b=n.n(y),_=["media","storyline"],w=b()(null,["payload","result"]),x=g()(_),k=g()(u()(r=[]).call(r,_,["thumbnail"])),E=g()(u()(i=[]).call(i,_,["meta","version"])),S=b()(null,u()(o=[]).call(o,_,["src"])),T=g()(["payload","result","completion"]),O=g()(u()(a=[]).call(a,_,["processing"])),C=b()(!1,["payload","result","score"]),j=h()(function(e,t){if(!t)return!1;var n=e.majorLimit,r=e.minorLimit,i=t.split("."),o=Object(s.a)(i,2),a=o[0],c=o[1],u=f()(a)===n&&c>=r;return a>n||u}),A={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},M=j({majorLimit:3,minorLimit:13}),P=function(e,t,n){var r,i,o,a=t&&(i=n,o=m()(i.split("-")),A[o]);return a?u()(r="".concat(e)).call(r,a):"".concat(e,"?rise=true")}},function(e,t,n){var r=n(247);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(459),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(180),i=n(2197),o=n(169),a=n(410),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(47),i=n.n(r),o=(n(31),function(e){return function(){return document.querySelector(e)}}),a=function(e){return i()(Array.prototype).call(e)}},function(e,t,n){var r=n(155),i=n(204),o=n(298);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(155),i=n(734),o=n(96),a=n(458),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90),o=n(818);e.exports=r(function(e,t){var n=o(e),r=o(t);return n===r||i(e)&&e.name===r||i(t)&&t.name===n})},function(e,t){e.exports={"@@functional/placeholder":!0}},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e(n[t])})},function(e,t,n){var r=n(18),i=n(57);e.exports=r(function(e,t){return i(e,function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i})})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(370),i=n(371),o=n(194).type("Async"),a=n(194).typeFn(o(),5),s=n(173),c=n(479),u=n(279),l=n(1451),f=n(1452),d=n(243),h=n(480),p=n(90),m=n(820),v=n(1453),g=n(206),y=function(e){return e.reduce(function(e,t){return e&&g(_,t)},!0)},b=function(e){return _(function(t,n){return n(e)})};function _(e){var t;if(!p(e))throw new TypeError("Async: Function required");var n=b,r=function(){return"Async"+i(e)};function c(t,n,r){if(!p(t)||!p(n))throw new TypeError("Async.fork: Reject and resolve functions required");var i=!1,o=!1,a=p(r)?r:f,s=function(e,t){if(!o)return o=!0,i?f():e(t)},c=e(s.bind(null,t),s.bind(null,n)),u=p(c)?c:f;return l(function(){return a((u(),void(i=!0)))})}function d(e){return function(t){if(!p(t))throw new TypeError("Async."+e+": Function required");return _(function(e,n){return c(e,u(n,t))})}}function h(e){return function(t,n){if(!p(t)||!p(n))throw new TypeError("Async."+e+": Functions required for both arguments");return _(function(e,r){return c(u(e,t),u(r,n))})}}function m(e){return function(t){if(!g(_,t))throw new TypeError("Async."+e+": Async required");return _(function(e,n){var r=f,i=f;return r=c(function(){i=t.fork(e,n)},n),l(function(){return i(r())})})}}function v(e){return function(t){if(!p(t))throw new TypeError("Async."+e+": Async returning function required");return _(function(n,r){var i=f,o=f;return i=c(n,function(i){var a=t(i);if(!g(_,a))throw new TypeError("Async."+e+": Function must return another Async");o=a.fork(n,r)}),l(function(){return o(i())})})}}return(t={fork:c,toPromise:function(){return new Promise(function(e,t){c(t,e)})},inspect:r,toString:r,type:o,swap:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.swap: Functions required for both arguments");return _(function(n,r){return c(u(r,e),u(n,t))})},race:function(e){if(!g(_,e))throw new TypeError("Async.race: Async required");return _(function(t,n){var r=l(function(e,r){return e?n(r):t(r)}),i=r.bind(null,!0),o=r.bind(null,!1),a=c(o,i),s=e.fork(o,i);return function(){a(),s()}})},coalesce:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return _(function(n,r){return c(u(r,e),u(r,t))})},ap:function(e){if(!g(_,e))throw new TypeError("Async.ap: Async required");return _(function(t,n){var r=null,i=null,o=!1,a=!1,s=!1,f=l(t);function d(){!s&&o&&a&&u(n,r)(i)}var h=c(f,function(e){if(!p(e))throw new TypeError("Async.ap: Wrapped value must be a function");o=!0,r=e,d()}),m=e.fork(f,function(e){a=!0,i=e,d()});return function(){h(),m(),s=!0}})},of:n,alt:m("alt"),bimap:h("bimap"),map:d("map"),chain:v("chain"),bichain:function(e,t){var n="Async.bichain: Both arguments must be Async returning functions";if(!p(e)||!p(t))throw new TypeError(n);return _(function(r,i){var o=f,a=f;function s(e){return function(t){var o=e(t);if(!g(_,o))throw new TypeError(n);a=o.fork(r,i)}}return o=c(s(e),s(t)),l(function(){return a(o())})})}})[s.of]=n,t[s.alt]=m(s.alt),t[s.bimap]=h(s.bimap),t[s.map]=d(s.map),t[s.chain]=v(s.chain),t["@@type"]=a,t.constructor=_,t}_.of=b,_.type=o,_[s.of]=b,_["@@type"]=a,_.Rejected=function(e){return _(function(t){return t(e)})},_.Resolved=b,_.fromPromise=function(e){if(!p(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return _(function(n,r){var i=e.apply(null,t);if(!v(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r,n)})}},_.fromNode=function(e,t){if(!p(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return _(function(r,i){e.apply(t,n.concat(function(e,t){return e?r(e):i(t)}))})}},_.all=function(e){if(!h(e)||!y(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return d(e)?c.sequence(_.of,e):e.sequence(_.of)},_.rejectAfter=function(e,t){if(!(m(e)&&e>=0))throw new TypeError("Async.rejectAfter: Positive Integer required for first argument");return _(function(n){var r=setTimeout(function(){n(t)},e);return function(){clearTimeout(r)}})},_.resolveAfter=function(e,t){if(!(m(e)&&e>=0))throw new TypeError("Async.resolveAfter: Positive Integer required for first argument");return _(function(n,r){var i=setTimeout(function(){r(t)},e);return function(){clearTimeout(i)}})},_["@@implements"]=r(["alt","ap","bimap","chain","map","of"]),e.exports=_},function(e,t,n){var r=n(623),i=n(51);e.exports=i(function(e){return r.apply(null,[{}].concat(e))})},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"d",function(){return u}),n.d(t,"h",function(){return l}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return p}),n.d(t,"e",function(){return m});var r=n(139),i=n.n(r),o=window.RiseDotCom,a=function(e){return o&&o[e]},s=function(){a("addFavorite")&&i.a.resolve().then(o.addFavorite).catch(console.error)},c=function(){a("removeFavorite")&&i.a.resolve().then(o.removeFavorite).catch(console.error)},u=function(){a("exit")&&o.exit()},l=function(){a("on")&&o.on.apply(o,arguments)},f=function(){a("off")&&o.off.apply(o,arguments)},d=function(){a("goToLearn")&&o.goToLearn.apply(o,arguments)},h=function(){if(a("downloadCertificate"))return o.downloadCertificate.apply(o,arguments)},p=function(){if(a("downloadCertificateCancel"))return o.downloadCertificateCancel.apply(o,arguments)},m=function(){if(a("fetchLpUpNext"))return o.fetchLpUpNext.apply(o,arguments)}},function(e,t,n){"use strict";var r=n(706),i=n.n(r);i.a.dynamicDrop(!0),t.a=i.a},function(e,t,n){e.exports=n(1430).default},function(e,t,n){"use strict";n.d(t,"b",function(){return Z}),n.d(t,"g",function(){return J}),n.d(t,"h",function(){return ee}),n.d(t,"a",function(){return te}),n.d(t,"d",function(){return ne}),n.d(t,"c",function(){return re}),n.d(t,"e",function(){return ie}),n.d(t,"f",function(){return oe}),n.d(t,"i",function(){return ae});var r=n(0),i=n.n(r),o=n(17),a=n.n(o),s=n(526),c=n.n(s),u=n(8),l=n.n(u),f=n(102),d=n.n(f),h=n(38),p=n.n(h),m=n(55),v=n.n(m),g=n(137),y=n.n(g),b=n(48),_=n.n(b),w=n(82),x=n.n(w),k=n(46),E=n.n(k),S=n(84),T=n.n(S),O=n(53),C=n.n(O),j=n(30),A=n.n(j),M=n(25),P=n.n(M),N=n(183),I=n.n(N),L=n(15),D=n.n(L),R=n(52),B=n.n(R),F=n(19),U=n.n(F),q=n(378),z=n.n(q),H=n(286),W=n.n(H),V=n(245),Y=n.n(V),G=n(42),K=n.n(G),$=n(40),X=c()(E.a),Q=v()(U()("correct",!0)),Z=l()(K()(p()(-1),a()(0)),y()(U()("correct",!0))),J=function(e){var t=e.answers,n=e.fillinValue,r=e.isCaseSensitive?Y.a:l()(Y.a,W.a);return P()(A()(B()("","title")),A()(r),d()(r(n)))(t)},ee=function(e){var t=e.answers,n=e.selectedIndices;return p()(z()(X,n),l()(z()(X),A()(l()(_()(y.a)(t),U()("id"))),ne)(t))},te=function(e){return{MATCHING:E.a,FILL_IN_THE_BLANK:ie,MULTIPLE_CHOICE:E.a,MULTIPLE_RESPONSE:E.a}[e]},ne=l()(I()("id"),Q),re=l()(x.a,ne),ie=v()(U()("correct",!0)),oe=l()(D()("id"),x.a),ae=l()(C.a,T.a);$.y,$.z,$.t,$.x},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(90),i=n(173);e.exports=function(e,t){return!!t&&(function(e,t){return r(t[i[e]])||r(t[e])}(e,t)||function(e,t){return r(t["@@implements"])&&!!t["@@implements"](e)}(e,t))}},function(e,t,n){var r=n(373);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";n.d(t,"e",function(){return l}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"f",function(){return p}),n.d(t,"g",function(){return m});var r=n(12),i=n(54),o=n.n(i),a=n(29),s=n.n(a),c=n(64),u=o()("rise/status/")("SET_LOADED");t.a=Object(c.c)({connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},Object(r.a)({},u,function(e,t){return s()(e,t)}));var l=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(c.a)(u,{fontsLoaded:e})},f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(c.a)(u,{courseLoaded:e})},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"connected";return Object(c.a)(u,{connection:e})},h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(c.a)(u,{coverLoaded:e})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(c.a)(u,{notFound:e})},m=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(c.a)(u,{partnerContentLoaded:e})}},function(e,t,n){var r=n(457),i=n(247);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(105),i=n(765);e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},function(e,t,n){var r=n(872),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";var r=n(1039),i=n(83);var o=function(e){i.extend(this,e),this.initialize.apply(this,arguments)};i.extend(o.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=i.clone(e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,o=t._view;return n&&1!==e?(o||(o=t._view={}),i||(i=t._start={}),function(e,t,n,i){var o,a,s,c,u,l,f,d,h,p=Object.keys(n);for(o=0,a=p.length;o<a;++o)if(l=n[s=p[o]],t.hasOwnProperty(s)||(t[s]=l),(c=t[s])!==l&&"_"!==s[0]){if(e.hasOwnProperty(s)||(e[s]=c),(f=typeof l)==typeof(u=e[s]))if("string"===f){if((d=r(u)).valid&&(h=r(l)).valid){t[s]=h.mix(d,i).rgbString();continue}}else if("number"===f&&isFinite(u)&&isFinite(l)){t[s]=u+(l-u)*i;continue}t[s]=l}}(i,o,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),o.extend=i.inherits,e.exports=o},function(e,t,n){var r=n(18),i=n(381);e.exports=r(function(e,t){var n=e<0?t.length+e:e;return i(t)?t.charAt(n):t[n]})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e*t})},function(e,t,n){var r=n(61),i=n(17),o=n(58);e.exports=r(function(e,t,n){return o(e,i(t),n)})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e<t})},function(e,t,n){var r=n(61),i=n(38),o=n(31);e.exports=r(function(e,t,n){return i(o(e,n),t)})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e>t})},function(e,t,n){var r=n(256);e.exports=r(-1)},function(e,t,n){var r=n(51),i=n(178);e.exports=r(function(e){var t=[];for(var n in e)i(n,e)&&(t[t.length]=[n,e[n]]);return t})},function(e,t,n){"use strict";n.d(t,"a",function(){return q}),n.d(t,"b",function(){return z}),n.d(t,"d",function(){return K});var r,i=n(12),o=n(16),a=n.n(o),s=n(207),c=n.n(s),u=n(26),l=n.n(u),f=n(8),d=n.n(f),h=n(54),p=n.n(h),m=n(92),v=n.n(m),g=n(68),y=n.n(g),b=n(30),_=n.n(b),w=n(29),x=n.n(w),k=n(157),E=n.n(k),S=n(25),T=n.n(S),O=n(19),C=n.n(O),j=n(136),A=n.n(j),M=n(534),P=n.n(M),N=n(64),I=n(81),L=n(557),D=n(360),R=n(535),B=n(677),F=n(218),U=p()("rise/course/"),q=U("LOAD_COURSE"),z=U("UPDATE_COURSE_PREVIEW"),H=function(e){return d()(x()(e),E()("lessonsOnly"),A()(C()("type","section")))(e.lessons)},W=P()(l()("favoritedAt",new Date)),V=P()(l()("favoritedAt",null));t.c=Object(N.c)({},(r={},Object(i.a)(r,D.a,W),Object(i.a)(r,D.b,V),Object(i.a)(r,q,function(e,t){var n=t.completedAt,r=t.course,i=t.favoritedAt,o=t.media,a=t.riseComCurrentUser,s=t.riseComCourseId,u=t.riseComEnrollmentType,l=t.riseComLearningPathId;return T()(Object(L.a)(o),H,v()({lessons:_()(Object(L.b)(o))}),x()(c.a,{completedAt:n,favoritedAt:i,riseComCourseId:s,riseComEnrollmentType:u,riseComCurrentUser:a,riseComLearningPathId:l}))(r)}),Object(i.a)(r,z,function(e,t){return t.course}),r));var Y=function(e){return function(t){return t([Object(N.a)(R.a,e),Object(F.g)(!0)])}},G=function(e){return y()(e)?Object(F.g)(!0):a()(t=Object(I.c)(e)).call(t,Y);var t},K=function(){return function(e){return Object(I.b)().then(function(e){return function(t){var n=t.course,r=Object(B.a)({course:n,lessons:n.lessons});e([Object(N.a)(q,t),Object(F.c)(!0),G(r)])}}(e)).catch(function(e){return function(t){404===t.statusCode&&e(Object(F.f)(!0))}}(e))}};Object(N.a)(z)},function(e,t,n){var r=n(280),i=0;e.exports=function(e){var t=++i;return r(e)+t}},function(e,t,n){var r=n(773),i=n(18),o=n(1332),a=n(391);e.exports=i(function(e,t){if(!o(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+a(e));return r(e).test(t)})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(119),i=n(278),o=n(622);e.exports=r(function(e,t){if(!i(e)||!i(t))throw new TypeError("assign: Objects required for both arguments");return o.assign(e,t)})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(47),i=n.n(r),o=n(345),a=n.n(o),s=n(8),c=n.n(s),u=n(22),l=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return i()(e=t.split(".")).call(e,-2).join(".")},f=c()(l,u.c),d=function(e){if(!e||h(e))return!1;"//"===i()(e).call(e,0,2)&&(e="https:".concat(e));try{var t=new a.a(e).hostname,n=l(t);return n!==f("ARTICULATE_DOMAIN")&&n!==f("RISE_DOMAIN")}catch(e){return!1}},h=function(e){return!!e&&"mailto:"===i()(e).call(e,0,7)}},function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return C});var r=n(26),i=n.n(r),o=n(8),a=n.n(o),s=(n(661),n(39),n(117)),c=n.n(s),u=n(31),l=n.n(u),f=n(24),d=n.n(f),h=n(25),p=n.n(h),m=n(15),v=n.n(m),g=n(1105),y=n.n(g),b=n(261),_=n.n(b),w=n(236),x=n.n(w),k=n(291),E=n(103),S=k.b.validIframe,T=k.b.validUrl,O=(i()("type","embed"),y()("type","embedType"),_()(/http:/i,"https:"),p()(d()({},[0]),c()(l()(["media","embed","embedType"]),l()(["media","embed","type"])))),C=c()(v()("embedType"),v()("type"));c()(a()(x()(S),E.c),x()(T))},function(e,t,n){"use strict";var r=n(1323);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,t,n){"use strict";(function(e){n.d(t,"h",function(){return N}),n.d(t,"g",function(){return I}),n.d(t,"f",function(){return L}),n.d(t,"b",function(){return D}),n.d(t,"c",function(){return R}),n.d(t,"d",function(){return B}),n.d(t,"e",function(){return F}),n.d(t,"a",function(){return U});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=n(4),m=n.n(p),v=n(16),g=n.n(v),y=n(47),b=n.n(y),_=(n(1860),n(0)),w=n(1),x=n.n(w),k=n(2),E=n.n(k),S=n(63),T=n(103),O=n(89),C=n(56),j=n(43),A=n(104);function M(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var P=n(65).b.blocks,N=function(t){Object(u.a)(r,t);var n=M(r);function r(){var e,t,i,o;Object(a.a)(this,r);for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return(o=n.call.apply(n,h()(e=[this]).call(e,u))).renderTextDelegate=m()(t=o.renderText).call(t,Object(c.a)(o)),o.renderHeadingDelegate=m()(i=o.renderHeading).call(i,Object(c.a)(o)),o}return Object(s.a)(r,[{key:"renderHeading",value:function(t){var n=t.heading,r=n||null;return e.createElement(j.a,{value:r})}},{key:"renderText",value:function(t){var n=t.paragraph;return e.createElement(O.a,{className:"block-text__col brand--body",value:n||""})}},{key:"render",value:function(){var t,n,r=this.props,i=r.items,o=r.type,a=r.heading,s=r.columns,c=r.settings,u=r.renderHeading,l=void 0===u?this.renderHeadingDelegate:u,f=r.renderText,d=void 0===f?this.renderTextDelegate:f,h=c.paddingTop,p=c.paddingBottom,m=c.backgroundColor,v=c.entranceAnimation,y=E()("block-text block-text--".concat(o),{"block-text--no-animation":!v}),w={backgroundColor:Object(S.a)("",m),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*p,"px")},x=a?"heading"===a?"h2":"h3":"span";return e.createElement("div",{className:y,style:w},e.createElement("div",{className:"block-text__container","data-ba":P.blockText},e.createElement("div",{className:"block-text__row"},""!==a?g()(t=b()(i).call(i,0,1)).call(t,function(t){return e.createElement("div",{className:"block-text__col brand--head",key:t.id},e.createElement(x,null,l(t)))}):null),e.createElement("div",{className:"block-text__row"},"heading"!==o?g()(n=b()(i).call(i,0,s)).call(n,function(t){return e.createElement(_.Fragment,{key:t.id},d(t))}):null)))}}],[{key:"propTypes",get:function(){return{lessonId:x.a.any,blockId:x.a.any,items:x.a.array.isRequired,settings:x.a.object.isRequired,type:x.a.string,heading:x.a.string,columns:x.a.number}}},{key:"defaultProps",get:function(){return{type:"onecol",heading:"",columns:1,items:[]}}}]),r}(e.Component),I=function(t){return e.createElement(N,Object(o.a)({type:"twocol",columns:2},t))},L=function(t){return e.createElement(N,Object(o.a)({type:"threecol",columns:3},t))},D=function(t){return e.createElement(N,Object(o.a)({type:"heading",heading:"heading"},t))},R=function(t){return e.createElement(N,Object(o.a)({type:"heading",heading:"subheading"},t))},B=function(t){return e.createElement(N,Object(o.a)({heading:"heading"},t))},F=function(t){return e.createElement(N,Object(o.a)({heading:"subheading"},t))},U=function(t){Object(u.a)(r,t);var n=M(r);function r(){var e,t,i;Object(a.a)(this,r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(i=n.call.apply(n,h()(e=[this]).call(e,s))).renderCaptionDelegate=m()(t=i.renderCaption).call(t,Object(c.a)(i)),i}return Object(s.a)(r,[{key:"renderCaption",value:function(t){var n=t.caption;return e.createElement(O.a,{className:"block-text__code-caption brand--body brand--linkColor",value:n||""})}},{key:"render",value:function(){var t,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,o=n.items,a=n.labels.codeGroup,s=n.settings,c=n.renderCaption,u=void 0===c?this.renderCaptionDelegate:c,l=s.paddingTop,f=s.paddingBottom,d=s.backgroundColor,h=s.entranceAnimation,p=s.snippetBackgroundColor,m=E()("block-text block-text--code",{"block-text--padding-top":2===Number(l),"block-text--padding-bottom":2===Number(f),"block-text--no-animation":!h}),v={backgroundColor:Object(S.a)("",d),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*f,"px")};return e.createElement("div",{className:m,style:v,"data-ba":P.blockText},e.createElement(C.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i},e.createElement("div",{className:"block-text__container"},g()(t=b()(o).call(o,0,1)).call(t,function(t){var n=Object(A.a)(t);return e.createElement("div",{className:"block-text__row",key:t.id},e.createElement("div",{"aria-label":a,className:"block-text__col",role:A.b},e.createElement("figure",{"aria-labelledby":n.figcaptionId,className:"block-text__figure",role:"figure"},e.createElement("pre",{className:"block-text__code","data-ba":P.blockText,style:{backgroundColor:Object(S.a)("",p)},dangerouslySetInnerHTML:{__html:Object(T.a)(t.code)}}),t.caption&&e.createElement("figcaption",{id:n.figcaptionId},u(t)))))}))))}}],[{key:"propTypes",get:function(){return{lessonId:x.a.any,blockId:x.a.any,items:x.a.array.isRequired,settings:x.a.object.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){var r,i=n(133),o=n(255);
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(i(n)&&n.length){var c=s.apply(null,n);c&&e.push(c)}else if("object"===r)for(var u in n)a.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):"object"===o(n(637))&&n(637)?void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r):window.classNames=s}()},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r,i=n(51);e.exports=(r="\t\n\v\f\r \u2028\u2029\ufeff","function"==typeof String.prototype.trim&&!r.trim()&&"".trim()?i(function(e){return e.trim()}):i(function(e){var t=new RegExp("^["+r+"]["+r+"]*"),n=new RegExp("["+r+"]["+r+"]*$");return e.replace(t,"").replace(n,"")}))},function(e,t,n){(function(t){var n="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",r=t.crypto||t.msCrypto,i=Math.floor,o=Math.random;e.exports=r&&r.getRandomValues?function(e){void 0===e&&(e=16);var t=new Uint8Array(e);return r.getRandomValues(t),"function"!=typeof t.reduce&&(t=[].slice.call(t)),t.reduce(function(e,t){return e+n[t%64]},"")}:function(e){void 0===e&&(e=16);for(var t="";t.length<e;)t+=n[i(o()*n.length)];return t}}).call(this,n(99))},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},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){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){var r=n(1055),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(129),i=n(723);function o(t){return"function"==typeof r&&"symbol"==typeof i?(e.exports=o=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),o(t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return Number(e)+Number(t)})},function(e,t,n){var r=n(399);e.exports=r(1,"split")},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e/t})},function(e,t,n){var r=n(18),i=n(134),o=n(1492);e.exports=r(i(["all"],o,function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e<=t})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return n.replace(e,t)})},function(e,t,n){e.exports=n(1319)},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return y});var r,i=n(12),o=n(54),a=n.n(o),s=n(17),c=n.n(s),u=n(29),l=n.n(u),f=n(64),d=a()("rise/sessionPreferences/"),h=d("LOAD_SESSION_PREFERENCES"),p=d("SET_PREFERS_KEYBOARD_NAVIGATION"),m=d("SET_STARTING_COURSE_LESSON_SELECTED");t.a=Object(f.c)({prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},(r={},Object(i.a)(r,h,l.a),Object(i.a)(r,p,function(e,t){return l()(e,{prefersKeyboardNavigation:t})}),Object(i.a)(r,m,function(e,t){return l()(e,{startedCourseWithLessonSelected:t})}),r));var v=c()(Object(f.a)(h,null)),g=Object(f.a)(p),y=Object(f.a)(m)},function(e,t,n){"use strict";var r=n(50),i=n(0),o=n.n(i),a=n(2),s=n.n(a),c=n(265),u=n(550),l=n(537),f=(n(1825),function(e){var t=e.align,n=e.alt,a=e.allowTabNavigation,f=void 0===a||a,d=e.caption,h=e.disableZoom,p=e.fileName,m=e.shouldFillWidth,v=e.imageKey,g=e.onLoad,y=e.src,b=Object(i.useRef)(),_=Object(i.useRef)(),w=Object(i.useCallback)(function(){return s()("img",{"img--left":"left"===t,"img--right":"right"===t,"img--center":!t||"center"===t,"img--fill":m,"img--zoom":O})},[t,m,O]),x=Object(i.useState)(w()),k=Object(r.a)(x,2),E=k[0],S=k[1],T=Object(c.a)({alt:n,caption:d,fileName:p,key:v}),O=f&&!h,C=Object(i.useCallback)(function(e){_.current.zoom(b.current,e.currentTarget,{})},[]),j=Object(i.useCallback)(function(){S(w())},[w]);Object(i.useEffect)(function(){var e=Object(u.a)();return _.current=e,function(){e.cleanup()}},[]),Object(i.useEffect)(function(){m||S(w())},[t,w,m]);var A=O?C:void 0;return o.a.createElement("div",{className:"container"},o.a.createElement("img",{alt:T,className:E,onClick:A,onLoad:g||j,ref:b,role:"img",src:y}),O&&o.a.createElement("button",{"aria-label":"Zoom image",className:"img__btn img__btn--zoom visually-hidden",onClick:C,type:"button"},o.a.createElement(l.a,{"aria-hidden":"true",className:"img__btn-symbol"})))});t.a=Object(i.memo)(f)},function(e,t,n){"use strict";n.d(t,"b",function(){return S}),n.d(t,"a",function(){return T});var r=n(47),i=n.n(r),o=n(17),a=n.n(o),s=n(8),c=n.n(s),u=n(102),l=n.n(u),f=n(38),d=n.n(f),h=n(100),p=n.n(h),m=n(143),v=n.n(m),g=n(25),y=n.n(g),b=n(52),_=n.n(b),w=n(257),x=n.n(w),k=n(103),E=c()(l()(".svg"),_()("","originalUrl")),S=p()(E,a()({width:"500rem"}),a()({})),T=function(e){var t=e.alt,n=e.caption,r=e.fileName,o=e.key;if('""'===t)return"";if(t)return t;if(n){var a=Object(k.e)(n);if(a)return a}if(r)return r;if(o){var s,c=i()(s=o.split("/")).call(s,-1)[0];if(c)return c}},O=function(e){return y()(_()("","originalUrl"),x()("."),v.a,d()(e))};O("svg"),O("gif")},function(e,t,n){"use strict";n.d(t,"a",function(){return M});var r,i,o=n(5),a=n.n(o),s=n(59),c=n.n(s),u=n(163),l=n.n(u),f=n(101),d=n.n(f),h=n(69),p=n.n(h),m=n(184),v=n.n(m),g=n(30),y=n.n(g),b=n(211),_=n.n(b),w=n(25),x=n.n(w),k=n(183),E=n.n(k),S=n(15),T=n.n(S),O=n(22),C=function(e){return"Accessibility"===e.title},j=d()(C),A=[{title:"Course Overview",labels:a()(r=[{name:"courseStart",text:"START COURSE"},{name:"courseResume",text:"RESUME COURSE"}]).call(r,O.e?[]:[{name:"courseDetails",text:"DETAILS"}])},{title:"Global",labels:a()(i=[{name:"courseHome",text:"Home"},{name:"lessonComplete",text:"80% COMPLETE"},{name:"lessonName",text:"Lesson 4 of 7"},{name:"lessonRestricted",text:"Lessons must be completed in order"},{name:"courseSkipToLesson",text:"SKIP TO LESSON"},{name:"search",text:"search"},{name:"results",text:"20 results"},{name:"result",text:"1 result"},{name:"noResults",text:'No results for "abc"'}]).call(i,O.e?[{name:"courseFinish",text:"Finish"}]:[])},{title:"Quiz & Knowledge Check",labels:[{name:"quizStart",text:"START QUIZ"},{name:"quizAcceptableResponses",text:"Acceptable responses"},{name:"quizQuestion",text:"Question"},{name:"quizAnswerPlaceholder",text:"Type your answer here"},{name:"quizSubmit",text:"SUBMIT"},{name:"quizNext",text:"NEXT"},{name:"quizIncorrect",text:"Incorrect"},{name:"quizCorrect",text:"Correct"},{name:"quizResults",text:"Quiz Results"},{name:"quizScore",text:"Your score 90%"},{name:"quizPassing",text:"PASSING 80%"},{name:"quizTakeAgain",text:"TAKE AGAIN"},{name:"quizRequirePassingScore",text:"Must pass quiz before continuing"},{name:"quizContinue",text:"Continue"}]},{title:"Process",labels:[{name:"processStepName",text:"Step 3 of 6"},{name:"processNextStep",text:"NEXT STEP"},{name:"processLessonName",text:"Lesson 5 Complete"},{name:"processStart",text:"START"},{name:"processStartAgain",text:"START AGAIN"},{name:"processSwipe",text:"Swipe to continue"}]},{title:"Sorting",labels:[{name:"sortingCardsCorrect",text:"6/8 Cards Correct"},{name:"sortingReplay",text:"REPLAY"}]},{title:"Embeds",labels:[{name:"embedViewOn",text:"VIEW ON YOUTUBE"},{name:"embedReadMore",text:"Read more"}]},{title:"Flashcards",labels:[{name:"blocksClickToFlip",text:"Click cards to flip"},{name:"blocksPreposition",text:"1 of 3"}]},{title:"Scenario",labels:[{name:"scenarioTryAgain",text:"TRY AGAIN"},{name:"scenarioContinue",text:"CONTINUE"},{name:"scenarioComplete",text:"Scenario Complete"},{name:"scenarioStartOver",text:"START OVER"}]},{title:"Exit Course (LMS)",labels:[{name:"courseExit",text:"EXIT COURSE"},{name:"salutation",text:"👋 Bye!"},{name:"exitMessage",text:"You may now leave this page."}]},{title:"Accessibility",labels:[{name:"overviewPageTitleSuffix",text:"Overview Page Title"},{name:"lessonHeaderLandmark",text:"Lesson Header"},{name:"timelineLandmark",text:"Timeline"},{name:"timelineCardGroupPrefix",text:"Timeline Card"},{name:"labeledGraphicMarkerLabel",text:"Labeled graphic marker"},{name:"labeledGraphicBubbleLabel",text:"Labeled graphic bubble"},{name:"labeledGraphicPreviousMarkerLabel",text:"Previous marker"},{name:"labeledGraphicNextMarkerLabel",text:"Next marker"},{name:"audioPlayerGroup",text:"Audio player. You can use the space bar to toggle playback and arrow keys to scrub."},{name:"seekSliderLabel",text:"Seek"},{name:"playButtonLabel",text:"Play"},{name:"pauseButtonLabel",text:"Pause"},{name:"videoPlayerGroup",text:"Video player. You can use the space bar to toggle playback and arrow keys to scrub."},{name:"embedPlayerGroup",text:"Embedded media player"},{name:"embedPhotoGroup",text:"Embedded photo"},{name:"embedLinkGroup",text:"Embedded web content"},{name:"embedVideoGroup",text:"Embedded video"},{name:"noteGroup",text:"Note"},{name:"statementGroup",text:"Statement"},{name:"numberedListGroup",text:"Numbered list"},{name:"checkboxListGroup",text:"Checkbox list"},{name:"bulletedListGroup",text:"Bulleted list"},{name:"quoteGroup",text:"Quote"},{name:"lessonContentLandmark",text:"Lesson Content"},{name:"imageGalleryGroup",text:"Image gallery"},{name:"imageAndTextGroup",text:"Image and text"},{name:"textOnImageGroup",text:"Text on image"},{name:"attachmentGroup",text:"File Attachment"},{name:"codeGroup",text:"Code"},{name:"numberedDividerGroup",text:"Numbered divider"},{name:"accordionGroup",text:"Accordion"},{name:"tabGroup",text:"Tab"},{name:"flashcardStackGroup",text:"Flashcard stack"},{name:"flashcardGridGroup",text:"Flashcard grid"},{name:"buttonGroup",text:"Button"},{name:"buttonStackGroup",text:"Button stack"},{name:"knowledgeCheckGroup",text:"Knowledge check"},{name:"storylineGroup",text:"Storyline"},{name:"processLandmark",text:"Process"},{name:"quizLandmark",text:"Quiz"},{name:"labeledGraphicLandmark",text:"Labeled Graphic"},{name:"sortingLandmark",text:"Sorting Activity"},{name:"urlEmbedLandmark",text:"URL/Embed"},{name:"flashcardFrontLabel",text:"Flashcard front"},{name:"flashcardBackLabel",text:"Flashcard back"},{name:"previousFlashCardLabel",text:"Previous flashcard"},{name:"nextFlashCardLabel",text:"Next flashcard"},{name:"feedbackGroup",text:"Feedback"}]}],M=(x()(p()(C),T()("labels"),E()("name"))(A),x()(y()(T()("labels")),v.a,y()(function(e){var t={};return t[e.name]=e.text,t}),_.a)(A));c()(A).call(A,l()(j,function(e){var t=e.title;return!O.e||"Exit Course (LMS)"!==t}))},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u});var r=n(28),i=n(120),o=(n(1949),n(0)),a=n.n(o),s=["children","side"],c=function(e){var t=e.children,n=e.className;return a.a.createElement("div",{className:"authoring-tooltip ".concat(n||"")},t)},u=function(e){var t=e.children,n=e.side,o=Object(i.a)(e,s);return a.a.createElement("span",Object(r.a)({},o,{className:"authoring-tooltip__content authoring-tooltip__content--".concat(n)}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Helpers=t.ScrollElement=t.ScrollLink=t.animateScroll=t.scrollSpy=t.Events=t.scroller=t.Element=t.Button=t.Link=void 0;var r=h(n(2599)),i=h(n(2604)),o=h(n(2605)),a=h(n(1186)),s=h(n(2177)),c=h(n(2175)),u=h(n(2239)),l=h(n(2174)),f=h(n(2241)),d=h(n(2606));function h(e){return e&&e.__esModule?e:{default:e}}t.Link=r.default,t.Button=i.default,t.Element=o.default,t.scroller=a.default,t.Events=s.default,t.scrollSpy=c.default,t.animateScroll=u.default,t.ScrollLink=l.default,t.ScrollElement=f.default,t.Helpers=d.default,t.default={Link:r.default,Button:i.default,Element:o.default,scroller:a.default,Events:s.default,scrollSpy:c.default,animateScroll:u.default,ScrollLink:l.default,ScrollElement:f.default,Helpers:d.default}},function(e,t,n){"use strict";n.d(t,"b",function(){return F});var r=n(422),i=n(103),o=n(1106),a=n.n(o),s=n(17),c=n.n(s),u=n(1107),l=n.n(u),f=n(197),d=n.n(f),h=n(121),p=n.n(h),m=n(38),v=n.n(m),g=n(270),y=n.n(g),b=n(82),_=n.n(b),w=n(1108),x=n.n(w),k=n(1109),E=n.n(k),S=n(1110),T=n.n(S),O=n(257),C=n.n(O),j=n(665),A=n.n(j),M=n(87),P=n.n(M),N=n(71),I=n.n(N),L=x()(v.a,["http","https"]),D=d()(_.a,C()(":")),R=d()(y()(E()(a.a),L),l.a),B=d()(T()(A()("//"),R),D),F=p()(function(e){return d()(function(e){return P()((t=e,n=B,function(e){return!t(e)||n(e)}),c()(""));var t,n}(e),r.htmlDecode,i.e)}),U=F(I.a);t.a=U},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90);e.exports=r(function(e,t,n){if(!i(e))throw new TypeError("flip: Function required for first argument");return r(e)(n,t)})},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){var r=n(155),i=n(456),o=n(298),a=n(219),s=n(458),c=n(176),u=n(734),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(596),i=n(204).f,o=n(203),a=n(176),s=n(1244),c=n(125)("toStringTag");e.exports=function(e,t,n,u){if(e){var l=n?e:e.prototype;a(l,c)||i(l,c,{configurable:!0,value:t}),u&&!r&&o(l,"toString",s)}}},function(e,t,n){var r,i,o,a=n(1245),s=n(122),c=n(147),u=n(203),l=n(176),f=n(584),d=n(464),h=n(384),p=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new p),v=m.get,g=m.has,y=m.set;r=function(e,t){if(g.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,y.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return g.call(m,e)}}else{var b=d("state");h[b]=!0,r=function(e,t){if(l(e,b))throw new TypeError("Object already initialized");return t.facade=e,u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){
/** @license ISC License (c) copyright 2016 original and current authors */
var n=Object.prototype.toString;e.exports=function(e){return!!e&&"[object Object]"===n.call(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(887);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";var r=n(106),i=n(83),o=n(404);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=i.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?i.merge({},[r.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=i.extend(this.defaults[e],t))},addScalesToLayout:function(e){i.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}},function(e,t,n){"use strict";e.exports={},e.exports.Arc=n(1997),e.exports.Line=n(1998),e.exports.Point=n(1999),e.exports.Rectangle=n(2e3)},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return t>e?t:e})},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(99))},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return t.match(e)||[]})},function(e,t,n){var r=n(399);e.exports=r(0,"toLowerCase")},function(e,t,n){var r=n(51);e.exports=r(function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})},function(e,t,n){"use strict";var r=n(1820),i=n(1821);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(1822);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=c.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===b.substr(0,2);!k||w&&v[w]||(b=b.substr(2),this.slashes=!0)}if(!v[w]&&(k||w&&!g[w])){for(var E,S,T=-1,O=0;O<d.length;O++){-1!==(C=b.indexOf(d[O]))&&(-1===T||C<T)&&(T=C)}-1!==(S=-1===T?b.lastIndexOf("@"):b.lastIndexOf("@",T))&&(E=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(E)),T=-1;for(O=0;O<f.length;O++){var C;-1!==(C=b.indexOf(f[O]))&&(-1===T||C<T)&&(T=C)}-1===T&&(T=b.length),this.host=b.slice(0,T),b=b.slice(T),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var A=this.hostname.split(/\./),M=(O=0,A.length);O<M;O++){var P=A[O];if(P&&!P.match(h)){for(var N="",I=0,L=P.length;I<L;I++)P.charCodeAt(I)>127?N+="x":N+=P[I];if(!N.match(h)){var D=A.slice(0,O),R=A.slice(O+1),B=P.match(p);B&&(D.push(B[1]),R.unshift(B[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(O=0,M=l.length;O<M;O++){var q=l[O];if(-1!==b.indexOf(q)){var z=encodeURIComponent(q);z===q&&(z=escape(q)),b=b.split(q).join(z)}}var H=b.indexOf("#");-1!==H&&(this.hash=b.substr(H),b=b.slice(0,H));var W=b.indexOf("?");if(-1!==W?(this.search=b.substr(W),this.query=b.substr(W+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,W)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var V=this.search||"";this.path=F+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(n[l]=e[l])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var h=f[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,x=w,k=n.pathname&&n.pathname.split("/")||[],E=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===k[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=p;else if(p.length)k||(k=[]),k.pop(),k=k.concat(p),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(E)n.hostname=n.host=k.shift(),(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],T=(n.host||e.host||k.length>1)&&("."===S||".."===S)||""===S,O=0,C=k.length;C>=0;C--)"."===(S=k[C])?k.splice(C,1):".."===S?(k.splice(C,1),O++):O&&(k.splice(C,1),O--);if(!w&&!x)for(;O--;O)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),T&&"/"!==k.join("/").substr(-1)&&k.push("");var j,A=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=A?"":k.length?k.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(w=w||n.host&&k.length)&&!A&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(1919),i=n(1922),o=n(251);e.exports=function(e){return(o(e)?r:i)(e)}},function(e,t,n){e.exports=n(1495)},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r={validEmail:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,validIframe:/^<iframe(.*)?\ssrc="(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?"(.*)?><\/iframe>$/,validUrl:/^(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/},i={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"}},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"request",function(){return Qr}),n.d(r,"callbackPath",function(){return di}),n.d(r,"errorPath",function(){return hi}),n.d(r,"getToken",function(){return pi}),n.d(r,"login",function(){return yi}),n.d(r,"initAuth",function(){return wi}),n.d(r,"logout",function(){return xi}),n.d(r,"callbackComponent",function(){return Si});var i={};n.r(i),n.d(i,"request",function(){return Qr}),n.d(i,"callbackComponent",function(){return Di}),n.d(i,"callbackPath",function(){return Ri}),n.d(i,"getToken",function(){return Bi}),n.d(i,"login",function(){return Fi}),n.d(i,"logout",function(){return Ui}),n.d(i,"initAuth",function(){return Wi});var o=n(22),a=n(12),s=n(50),c=n(139),u=n.n(c);function l(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):u.a.resolve(c).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new u.a(function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)})}}var d=n(108),h=n.n(d),p=n(5),m=n.n(p),v=n(262),g=n.n(v),y=n(60),b=n.n(y),_=n(45),w=n.n(_),x=n(59),k=n.n(x),E=n(44),S=n.n(E),T=n(34),O=n.n(T),C=n(49),j=n.n(C),A=n(75),M=n.n(A),P=n(62),N=n.n(P),I=n(290),L=n.n(I),D=n(17),R=n.n(D),B=n(8),F=n.n(B),U=n(32),q=n.n(U),z=n(182),H=n.n(z),W=n(110),V=n.n(W),Y=n(0),G=n(123),K=n(1095),$=n.n(K),X=n(1096),Q=n.n(X),Z=n(42),J=n.n(Z),ee=function(){return"visible"===document.visibilityState},te=function(e){document.addEventListener("visibilitychange",function(e){return J()(ee,function(){return e()})}(e)),window.addEventListener("focus",function(){return e()})},ne=n(39),re=n.n(ne),ie=n(115),oe=n.n(ie),ae=n(157),se=n.n(ae),ce=n(230),ue=n.n(ce),le=n(15),fe=n.n(le),de=n(71),he=n.n(de),pe=n(426),me=function(e){return Object(pe.a)({method:"POST",url:"".concat(Object(o.c)("RISE_RUNTIME_URI"),"/analytics"),json:!0,data:e})},ve=Object(o.c)("SUBSCRIPTIONS_ENDPOINT"),ge=Object(o.c)("THREESIXTY_FRONTEND_URI"),ye=ue()(["error","status"],404),be=F()(se()("error"),fe()("response")),_e=function(){return window.location.href=ge},we=[function(e,t){return t.Authorization="Bearer ".concat(Yi()),e}],xe=function(){var e=f(h.a.mark(function e(t){var n,r,i,o;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(ve,"/users/authorized_status"),e.next=3,Gi({transformRequest:we,url:n}).toPromise().catch(be);case 3:return r=e.sent,i=F()(t,V()(function(e){return me({event:"Unexpected Logout",payload:{category:"auth",data:e,detail:"Subscription Error"}})})),o=re()([[ye,_e],[oe()("error"),i],[he.a,fe()("data")]]),e.abrupt("return",o(r));case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ke=n(416),Ee=n.n(ke),Se=n(117),Te=n.n(Se),Oe=n(19),Ce=n.n(Oe),je=(Ce()("status","active"),Ce()("status","inactive")),Ae=(ue()(["features","enable_review"],!0),ue()(["features","enable_rise"],!0)),Me=Ee()([Ce()("plan","trial"),Ce()("status","inactive"),Ce()("is_retrial_eligible",!1)]),Pe=(Te()(Ce()("plan","team"),Ce()("plan","individual")),n(128)),Ne=n.n(Pe),Ie=n(4),Le=n.n(Ie),De=n(79),Re=n.n(De),Be=n(30),Fe=n.n(Be),Ue=n(145),qe=n.n(Ue),ze=n(98),He=n.n(ze),We=n(57),Ve=n.n(We),Ye=n(31),Ge=n.n(Ye),Ke=n(530),$e=n.n(Ke),Xe=n(342),Qe=n.n(Xe),Ze=Qe()(fe()("AUTH_SERVICE_URI"),function(e){return $e.a.create({baseURL:e.AUTH_SERVICE_URI,withCredentials:!0})});function Je(){return(Je=f(h.a.mark(function e(t,n,r){var i,o,a,s,c,u,l;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.email,o=r.login,a=r.oktaNamespace,s=r.password,e.prev=1,u=o||m()(c="".concat(a,"/")).call(c,i),e.next=5,Ze(t).post("/api/v1/authn",{password:s,username:u,options:{multiOptionalFactorEnroll:!1,warnBeforePasswordExpired:!1}});case 5:return l=e.sent,e.abrupt("return",Ge()(["data","sessionToken"],l));case 9:throw e.prev=9,e.t0=e.catch(1),He()(new Error,e.t0.response.data);case 12:case"end":return e.stop()}},e,null,[[1,9]])}))).apply(this,arguments)}var et=Ve()(3,function(e,t,n){return Je.apply(this,arguments)}),tt=n(1099),nt=n.n(tt),rt=n(87),it=n.n(rt);function ot(){return(ot=f(h.a.mark(function e(t,n,r,i){return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.clear(),e.next=3,Ze(r).delete("/api/v1/sessions/me").then(V()(function(){return n.emit&&t.emit("session:closed")})).catch(it()(ue()(["response","status"],404),nt.a));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var at=Ve()(4,function(e,t,n,r){return ot.apply(this,arguments)}),st=n(345),ct=n.n(st),ut=n(136),lt=n.n(ut),ft=n(1097),dt=n.n(ft)()(9),ht=lt()(q.a);function pt(e){var t=e.client_id,n=e.issuer,r=e.idp,i=e.nonce,o=e.prompt,a=void 0===o?"none":o,s=e.redirect_uri,c=void 0===s?window.location.origin:s,u=e.response_mode,l=e.scope,f=e.sessionToken,d=e.state,h=new g.a(ht({client_id:t,idp:r,nonce:i||dt(),prompt:a,redirect_uri:c,response_mode:u,response_type:"id_token token",scope:l,sessionToken:f,state:d}));return He()(new ct.a("".concat(n,"/v1/authorize"),window.location.origin),{search:h.toString()}).toString()}var mt=n(3),vt=n.n(mt),gt=n(141),yt=n(9),bt=n(10),_t=n(7),wt=n(435),xt=n(11),kt=n(14),Et=n(6),St=n(533),Tt=n.n(St);function Ot(e){var t=function(){if("undefined"==typeof Reflect||!vt.a)return!1;if(vt.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(vt()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(Et.a)(e);if(t){var i=Object(Et.a)(this).constructor;n=vt()(r,arguments,i)}else n=r.apply(this,arguments);return Object(kt.a)(this,n)}}var Ct=function(e){Object(xt.a)(n,e);var t=Ot(n);function n(){var e,r,i;Object(yt.a)(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];(r=t.call.apply(t,m()(e=[this]).call(e,a)),navigator.serviceWorker)&&navigator.serviceWorker.addEventListener("message",Le()(i=r._handleMessage).call(i,Object(_t.a)(r)));return r}return Object(bt.a)(n,[{key:"emit",value:function(){for(var e,t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];(e=Object(wt.a)(Object(Et.a)(n.prototype),"emit",this)).call.apply(e,m()(t=[this]).call(t,i)),navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(e){e.active.postMessage({jsonrpc:"2.0",method:"emit",params:i})})}},{key:"_handleMessage",value:function(e){var t,r;e.data&&"2.0"===e.data.jsonrpc&&"emit"===e.data.method&&(t=Object(wt.a)(Object(Et.a)(n.prototype),"emit",this)).call.apply(t,m()(r=[this]).call(r,Object(gt.a)(e.data.params)))}}]),n}(Tt.a),jt=n(47),At=n.n(jt),Mt=n(159),Pt=n.n(Mt),Nt=n(129),It=n.n(Nt),Lt=n(174),Dt=n.n(Lt),Rt=n(133),Bt=n.n(Rt),Ft=n(344);function Ut(e,t,n){return(Ut=function(){if("undefined"==typeof Reflect||!vt.a)return!1;if(vt.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(vt()(Boolean,[],function(){})),!0}catch(e){return!1}}()?vt.a:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Le()(Function).apply(e,r));return n&&Object(Ft.a)(i,n.prototype),i}).apply(null,arguments)}var qt=n(33),zt=n.n(qt),Ht=n(1098),Wt=n.n(Ht),Vt=n(21),Yt=n(694),Gt=n(355),Kt=n.n(Gt),$t=n(377),Xt=n.n($t),Qt=n(195),Zt=n.n(Qt);function Jt(e){var t="function"==typeof Kt.a?new Kt.a:void 0;return(Jt=function(e){if(null===e||(n=e,-1===Zt()(r=Function.toString.call(n)).call(r,"[native code]")))return e;var n,r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return Ut(e,arguments,Object(Et.a)(this).constructor)}return i.prototype=Xt()(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object(Ft.a)(i,e)})(e)}var en=n(160),tn=n.n(en),nn=n(131),rn=n.n(nn),on=n(100),an=n.n(on);function sn(e,t){return t&&(n=0,r=e*Math.pow(t,2),Math.round(n+Math.random()+(r-n)));var n,r}var cn=Ve()(2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.base,r=void 0===n?250:n,i=e.tries,o=void 0===i?10:i,a=e.when,s=void 0===a?he.a:a;return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var a=0;function c(e){return++a<o?rn.a.resolveAfter(sn(r,a)).chain(u):rn.a.Rejected(e)}function u(){return t.apply(void 0,n).bichain(an()(s,c,rn.a.Rejected),rn.a.of)}return u()}}),un=n(240);function ln(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var fn=function(e,t){var n;void 0===t&&(t=ln);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)?r:(r=e.apply(this,a),o=!0,n=this,i=a,r)}}(n.n(un).a);function dn(e,t){var n=void 0!==It.a&&Dt()(e)||e["@@iterator"];if(!n){if(Bt()(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return hn(e,t);var r=At()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Pt()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pn(e){var t=function(){if("undefined"==typeof Reflect||!vt.a)return!1;if(vt.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(vt()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(Et.a)(e);if(t){var i=Object(Et.a)(this).constructor;n=vt()(r,arguments,i)}else n=r.apply(this,arguments);return Object(kt.a)(this,n)}}var mn=5e3,vn=It()("TimeoutError"),gn=function(e){Object(xt.a)(n,e);var t=pn(n);function n(){return Object(yt.a)(this,n),t.call(this,"Authorization timed out")}return n}(Jt(Error));gn.prototype[vn]=!0;var yn=cn({tries:2,when:function(e){return e[vn]}}),bn={},_n=0,wn=Qe()(fe()("AUTH_SERVICE_URI"),function(e){window.addEventListener("message",function(t){var n=new ct.a(e.AUTH_SERVICE_URI,window.location.origin).origin;if(t.origin===n){var r=t.data,i=(r=void 0===r?{}:r).access_token,o=r.error,a=r.error_description,s=r.id_token,c=r.state,u=bn[c];u&&(o?u.reject(new Error([o,a].join(", "))):u.resolve({access_token:i,id_token:s}))}})});var xn=function(e,t){return[e.AUTH_SERVICE_URI,t].join("|")};var kn,En,Sn,Tn,On=Ve()(3,(kn=yn(function(e,t,n){return new rn.a(function(r,i){var o=V()(function(){delete bn[a],document.body.removeChild(c)});wn(e);var a=_n++,s=dt(),c=document.createElement("iframe");return c.style.display="none",document.body.appendChild(c),rn()(function(t,r){var i={resolve:r,reject:t};bn[a]=i,c.addEventListener("error",F()(t,fe()("error"))),c.src=pt({client_id:e.OKTA_CLIENT_ID,issuer:e.OIDC_ISSUER_URI,nonce:s,redirect_uri:e.REDIRECT_URI,response_mode:"okta_post_message",scope:e.OIDC_SCOPE,sessionToken:n,state:a})}).race(rn.a.rejectAfter(mn,new gn)).chain(function(e){var n,r=e.id_token,i=e.access_token,o=r?fn(r):null;return s!==o.nonce?rn.a.Reject(new Error(m()(n="Expected nonce ".concat(s," but received ")).call(n,o.nonce))):(t.set(r,i),rn.a.of(t.get()))}).bimap(o,o).fork(r,i,o)})}),En={},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rn()(function(e,n){var r={resolve:n,reject:e},i=xn.apply(void 0,t),o=It()();null==En[i]&&(En[i]={listeners:new Kt.a});var a=En[i];if(a.listeners.set(o,r),1===a.listeners.size){var s=function(e){return function(t){var n,r,o=[],s=dn(tn()(n=a.listeners).call(n));try{for(s.s();!(r=s.n()).done;){var c=r.value;try{c[e](t)}catch(e){o.push(e)}}}catch(e){s.e(e)}finally{s.f()}if(delete En[i],o.length>0)throw o[0]}};a.cancel=kn.apply(void 0,t).fork(s("reject"),s("resolve"))}return function(){a.listeners.delete(o),0===a.listeners.size&&a.cancel&&a.cancel()}})})),Cn=Ve()(3,function(){return On.apply(void 0,arguments).toPromise()}),jn=new g.a(window.location.hash.substr(1)),An=jn.get("id_token"),Mn=jn.get("access_token");function Pn(e,t){return Nn.apply(this,arguments)}function Nn(){return(Nn=f(h.a.mark(function e(t,n){return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!An){e.next=5;break}n.set(An,Mn),An=Mn=void 0,e.next=8;break;case 5:if(n.get()[0]){e.next=8;break}return e.next=8,Cn(t,n,void 0);case 8:return e.abrupt("return",n.get());case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function In(e,t){return Ln.apply(this,arguments)}function Ln(){return(Ln=f(h.a.mark(function e(t,n){return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.clear(),e.next=3,Pn(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!vt.a)return!1;if(vt.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(vt()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(Et.a)(e);if(t){var i=Object(Et.a)(this).constructor;n=vt()(r,arguments,i)}else n=r.apply(this,arguments);return Object(kt.a)(this,n)}}function Rn(e,t){var n=void 0!==It.a&&Dt()(e)||e["@@iterator"];if(!n){if(Bt()(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Bn(e,t);var r=At()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Pt()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}An&&(jn.delete("id_token"),window.history.replaceState(null,null,"#".concat(jn.toString()))),Mn&&(jn.delete("access_token"),jn.delete("expires_in"),jn.delete("scope"),jn.delete("token_type"),window.history.replaceState(null,null,"#".concat(jn.toString())));var Fn=function(){function e(t,n){var r,i,o,a;Object(yt.a)(this,e),this._emitErrorDelegate=Le()(r=this._emitError).call(r,this),this._initDelegate=Le()(i=this._init).call(i,this),this._onErrorDelegate=Le()(o=this._onError).call(o,this),this._resetRetryTimesDelegate=Le()(a=this._resetRetryTimes).call(a,this),this._onerror=this._onmessage=this._onopen=Function.prototype,this._env=t,this._state=n,this._errorEmitter=new Tt.a,this._closed=!1;for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];this._params=c,this._listeners={},this._resetRetryTimes(),this._init()}return Object(bt.a)(e,[{key:"_emitError",value:function(e){this._errorEmitter.emit("error",new ErrorEvent("error",{colno:e.colno,error:e,filename:e.filename,lineno:e.lineno,message:e.message}))}},{key:"_init",value:function(){if(!this._closed)for(var e in this._source=Ut(Yt.EventSourcePolyfill,Object(gt.a)(this._params)),this._source.addEventListener("error",this._onErrorDelegate),this._source.addEventListener("open",this._resetRetryTimesDelegate),this._source.onerror=this._onerror,this._source.onmessage=this._onmessage,this._source.onopen=this._onopen,this._listeners){var t,n=Rn(this._listeners[e]);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._source.addEventListener(e,r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"_onError",value:function(e){e.status>=500&&this._retryAttempts>0?(this._retryTimeout=zt()(this._initDelegate,this._retryIn),this._retryAttempts--,this._retryIn=250*Math.pow(2,2-this._retryAttempts+1)):401!==e.status&&403!==e.status||!this._retryAuthz?this._errorEmitter.emit("error",e):(In(this._env,this._state).then(this._initDelegate).catch(this._emitErrorDelegate),this._retryAuthz=!1)}},{key:"_resetRetryTimes",value:function(){this._retryAttempts=2,this._retryAuthz=!0,this._retryIn=250}},{key:"addEventListener",value:function(e,t){"error"===e?this._errorEmitter.on("error",t):(this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t),this._source.addEventListener(e,t))}},{key:"close",value:function(){return this._closed=!0,clearTimeout(this._retryTimeout),this._source.close()}},{key:"dispatchEvent",value:function(){var e;return(e=this._source).dispatchEvent.apply(e,arguments)}},{key:"removeEventListener",value:function(e,t){"error"===e?this._errorEmitter.off("error",t):(Wt()(this._listeners[e],[t]),this._source.removeEventListener(e,t))}}]),e}();function Un(e,t){return function(n){Object(xt.a)(i,n);var r=Dn(i);function i(){var n;Object(yt.a)(this,i);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r.call.apply(r,m()(n=[this,e,t]).call(n,a))}return i}(Fn)}O()(Sn=["onerror","onmessage","onopen"]).call(Sn,function(e){N()(Fn.prototype,e,{get:function(){return this["_".concat(e)]},set:function(t){this["_".concat(e)]=this._source[e]=t}})}),O()(Tn=["readyState","url","withCredentials"]).call(Tn,function(e){N()(Fn.prototype,e,{get:function(){return this._source[e]}})}),He()(Fn.prototype,Object(Vt.pick)(["CONNECTING","OPEN","CLOSED"],Yt.EventSourcePolyfill.prototype));var qn=n(16),zn=n.n(qn),Hn=n(112),Wn=n.n(Hn),Vn=n(417),Yn=n.n(Vn),Gn=n(695),Kn=n.n(Gn),$n=n(163),Xn=n.n($n),Qn=n(101),Zn=n.n(Qn),Jn=n(226),er=n.n(Jn),tr=n(38),nr=n.n(tr),rr=n(260),ir=n.n(rr),or=n(24),ar=n.n(or),sr=n(527),cr=n.n(sr),ur=n(666),lr=n.n(ur),fr=n(209),dr=n.n(fr);var hr=Ve()(2,function(e,t){return e?rn()(function(n,r){var i=!1,o=function(e){return function(t){i=!0,clearTimeout(s),e(t)}},a=t.fork(o(n),o(r),o(Function.prototype)),s=zt()(function(){i||(a(),n(new Error("Timeout after ".concat(e,"ms"))))},e);return a}):t}),pr=function(e){return cr()(e,["response","status"])},mr=Re()(function(e){return Xn()(R()(oe()("OKTA_CLIENT_ID",e)),pr(Yn()(Fe()(nr.a,[401,403]))))}),vr=pr(ir()(500)),gr=Zn()(pr(Boolean)),yr=cn({when:Te()(vr,gr),tries:3},Kn.a),br=ar()([],["roles"]),_r=ar()("",["subscription","status"]),wr=Re()(function(e,t,n){var r,i,o=Object(s.a)(n,2)[1],a=zn()(r=[t,o]).call(r,br),c=Object(s.a)(a,2),u=c[0],l=c[1],f=zn()(i=[t,o]).call(i,_r),d=Object(s.a)(f,2),h=d[0],p=d[1];lr()(u,l).length>0&&e.emit("change:roles",o,t),h!==p&&e.emit("change:status",o,t)}),xr=Re()(function(e,t,n){var r,i=t.RISE_ACCOUNTS_URI;return function(e){var t;return Wn()(t=window.location.hostname).call(t,e)}(t.RISE_DOMAIN)&&i&&Wn()(r=n.message).call(r,"redirect_uri")?Kn()({method:"GET",url:"".concat(i,"/api/subdomain_active")}).chain(function(t){return!1===t.data?e.emit("change:subdomain"):e.emit("unauthorized",n),rn.a.Rejected(n)}):(e.emit("unauthorized",n),rn.a.Rejected(n))}),kr=Re()(function(e,t,n,r){return null!=n&&n.sub!==r[1].sub?(e.emit("unauthorized",t),rn.a.Rejected(t)):rn.a.of(r)}),Er=Re()(function(e,t,n,r,i){var o,a=n.get(),c=Object(s.a)(a,2)[1];return zn()(o=On(t,n,void 0).bichain(xr(e,t),kr(e,i,c))).call(o,V()(wr(e,c))).chain(function(){return yr(r)})}),Sr=dr()(4,function(e,t,n,r){return an()(mr(t),Er(e,t,n,r),rn.a.Rejected)}),Tr=Re()(function(e,t,n,r){return yr(r).bichain(Sr(e,t,n,r),rn.a.of)}),Or=Re()(function(e,t,n,r){return hr(r.timeout,Tr(e,t,n,er()("timeout",r)))}),Cr=function(e){return Ge()([1,"sub"],e.get())};function jr(){return(jr=f(h.a.mark(function e(t,n,r,i){var o,a,s,c;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=Cr(r),e.next=3,at(t,{emit:!1},n,r);case 3:return e.prev=3,e.next=6,et(n,r,i);case 6:return a=e.sent,e.next=9,Cn(n,r,a);case 9:return s=e.sent,c=Cr(r),o&&o!==c&&t.emit("session:closed"),e.abrupt("return",s);case 15:throw e.prev=15,e.t0=e.catch(3),o&&t.emit("session:closed"),e.t0;case 19:case"end":return e.stop()}},e,null,[[3,15]])}))).apply(this,arguments)}var Ar=Ve()(4,function(e,t,n,r){return jr.apply(this,arguments)}),Mr=n(347),Pr=n.n(Mr);function Nr(e){return Pr.a.parse(document.cookie)[e]}var Ir=Ve()(2,function(e,t){var n=e.SESSION_COOKIE_DOMAIN||window.location.host;document.cookie=Pr.a.serialize(t,"",{domain:n,expires:new Date(0),path:"/",secure:!0})});var Lr=Ve()(3,function(e,t,n){var r=Object(s.a)(n,1)[0];if(t){var i=e.SESSION_COOKIE_DOMAIN||window.location.host;document.cookie=Pr.a.serialize(t,r,{domain:i,path:"/",secure:!0})}});function Dr(e,t){var n=b()(e);if(w.a){var r=w()(e);t&&(r=k()(r).call(r,function(t){return S()(e,t).enumerable})),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)O()(n=Dr(Object(r),!0)).call(n,function(t){Object(a.a)(e,t,r[t])});else if(j.a)M()(e,j()(r));else{var i;O()(i=Dr(Object(r))).call(i,function(t){N()(e,t,S()(r,t))})}}return e}var Br=["addListener","listenerCount","listeners","off","on","once","removeAllListeners","removeListener"],Fr=Re()(function(e,t,n){return qe()(n,[e,t])}),Ur=function(e){return Ne()(Br).call(Br,function(t,n){var r;return t[n]=Le()(r=e[n]).call(r,e),t},{})};var qr,zr,Hr,Wr=n(29),Vr=n.n(Wr),Yr=n(95),Gr=o.e?window.env:Vr()(window.env,{ACCESS_COOKIE_NAME:Object(Yr.j)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),Kr=(qr=Gr,zr=new Ct,Hr=function(e){return{clear:function(){Ir(e,e.SESSION_COOKIE_NAME),Ir(e,e.ACCESS_COOKIE_NAME)},get:function(){var t=Nr(e.SESSION_COOKIE_NAME),n=Nr(e.ACCESS_COOKIE_NAME);return[t,t?fn(t):null,n,n?fn(n):null]},set:function(t,n){var r=t?fn(t):null,i=n?fn(n):null;Lr(e,e.SESSION_COOKIE_NAME,[t,r]),Lr(e,e.ACCESS_COOKIE_NAME,[n,i])}}}(qr),Rr(Rr({getAuthorizationUrl:pt,EventSource:Un(qr,Hr)},Ur(zr)),Fe()(Fr(qr,Hr),{authenticate:et,closeSession:at(zr,{emit:!0}),request:Or(zr),resetSession:In,resumeSession:Pn,startSession:Ar(zr)}))),$r=Kr.closeSession,Xr=Kr.on,Qr=Kr.request,Zr=Kr.resetSession,Jr=Kr.resumeSession,ei=(Kr.startSession,Kr.getAuthorizationUrl),ti=n(156),ni=n.n(ti),ri=n(73),ii=n.n(ri),oi=n(52),ai=n.n(oi),si=function(e,t){var n,r;return m()(n=m()(r="".concat(Object(o.c)("ID_MAPPER_URI"),"/v1/avatars/")).call(r,encodeURIComponent(e),"?size=")).call(n,t)},ci=ni()({features:ai()({},"features"),subscription:ii()(["features"])}),ui=Yn()([Me,je,Zn()(Ae)]);function li(e,t){var n=b()(e);if(w.a){var r=w()(e);t&&(r=k()(r).call(r,function(t){return S()(e,t).enumerable})),n.push.apply(n,r)}return n}function fi(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)O()(n=li(Object(r),!0)).call(n,function(t){Object(a.a)(e,t,r[t])});else if(j.a)M()(e,j()(r));else{var i;O()(i=li(Object(r))).call(i,function(t){N()(e,t,S()(r,t))})}}return e}var di="/auth-callback",hi="/auth-error",pi=Yr.d,mi=function(){return window.location.pathname===di},vi=!1,gi=!1,yi=function(){var e=new g.a(window.location.search);return function(e){var t;if(!vi){var n=Q()();vi=!0,window.localStorage.setItem(n,e);var r=ei({client_id:Object(o.c)("OKTA_CLIENT_ID"),issuer:Object(o.c)("OIDC_ISSUER_URI"),redirect_uri:m()(t="".concat(window.location.origin)).call(t,di),response_mode:"fragment",scope:Object(o.c)("OIDC_SCOPE"),state:n,prompt:null});window.location.href=r}}(e.has("redirect_url")?e.get("redirect_url"):window.location.href)},bi=function(){if(!gi){var e=Object(Yr.b)(),t=Object(Yr.a)();q()(e)?(me({event:"Unexpected Logout",payload:{category:"auth",userId:t,detail:"id from cookie was null"}}),L.a.notify("Unexpected Logout",function(n){n.severity="info",n.addMetadata("User Meta",{idFromToken:t,idFromCookie:e,detail:"id from cookie was null"})}),gi=!0,xi({onLogout:function(){return window.location.reload(!0)},reason:"Unexpected logout: user id/session cookie missing"})):e!==t&&(me({event:"Unexpected Logout",payload:{category:"auth",userId:e,idFromToken:t,detail:"Session/Token ID Mismatch"}}),L.a.notify("Unexpected Logout",function(n){n.severity="info",n.addMetadata("User Meta",{idFromToken:t,idFromCookie:e,detail:"Session/Token ID Mismatch"})}),gi=!0,Zr().then(function(){return window.location.reload(!0)}))}},_i=function(){var e=f(h.a.mark(function e(t){var n,r,i,a,c,u,l,f,d,p,m,v,g,y,b;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Jr();case 3:if(n=e.sent,r=Object(s.a)(n,4),i=r[1],a=r[2],c=r[3],u=c.aid,me({event:"Setting Session Cookie",payload:{category:"auth",userId:u,detail:"Resuming existing session"}}),Object(Yr.k)(u),!mi()){e.next=14;break}return t(),e.abrupt("return");case 14:return l=i.first_name,f=i.last_name,d=i.launchdarkly,p=i.staff,m={large:si(h=u,"large"),medium:si(h,"medium"),micro:si(h,"micro"),mini:si(h,"mini"),small:si(h,"small")},v={author:u,profile:{avatars:m,first_name:l,user_id:u,last_name:f,staff:p}},g=function(){return xi({onLogout:R()(null)})},y=function(e){return t(fi(fi(fi({},v),ci(e)),{},{launchdarkly:d,token:a}))},e.next=22,xe(g).then(V()(y)).catch(function(){return t(fi(fi({},v),{},{token:a}))});case 22:if(b=e.sent,!ui(b)){e.next=28;break}return me({event:"Unexpected Logout",payload:{category:"auth",userId:Object(Yr.b)(),subscription:b,detail:"Invalid Subscription"}}),L.a.notify("Unexpected Logout",function(e){e.severity="info",e.addMetadata("User Meta",{userIdFromCookie:Object(Yr.b)(),subscription:b,detail:"Invalid Subscription"})}),xi({onLogout:function(){return window.location="".concat(Object(o.c)("THREESIXTY_FRONTEND_URI"),"/rise")}}),e.abrupt("return");case 28:te(bi),e.next=36;break;case 31:e.prev=31,e.t0=e.catch(0),me({event:"Unexpected Logout",payload:{category:"auth",userId:Object(Yr.b)(),error:e.t0,detail:"Error Resuming Session"}}),L.a.notify(e.t0,function(e){e.severity="info",e.addMetadata("User Meta",{userId:Object(Yr.b)(),detail:"Error Resuming Session"})}),xi({onLogout:function(){return window.location.reload(!0)}});case 36:case"end":return e.stop()}var h},e,null,[[0,31]])}));return function(t){return e.apply(this,arguments)}}(),wi=function(e){var t=e.onFetchTokens;if(mi())_i(t);else{var n=Object(Yr.b)(),r=Object(Yr.a)();q()(n)||n!==r?yi():_i(t)}},xi=function(e){var t=e.onLogout,n=e.reason;n&&me({event:"Logout",payload:{category:"auth",userId:Object(Yr.b)(),detail:n}}),Object(Yr.i)(),$r().then(t)},ki=F()($.a.parse,H()(1,1/0)),Ei=function(e){var t=e.location;return function(){var e,n,r=t.hash,i=t.pathname,o=ki(r),a=o.state,s=o.error,c=o.error_description;s?(L.a.notify(s,function(e){e.severity="info",e.addMetadata("Logout Error",{reason:"Error encountered when parsing auth callback.",error_description:c})}),xi({onLogout:(n=c,function(){var e;return window.location.href=m()(e="".concat("/auth-error","?description=")).call(e,n)}),reason:m()(e="Error encountered when parsing auth callback. Error: ".concat(s,"; description: ")).call(e,c)})):wi({onFetchTokens:function(){return e=i,t=a,n=window.localStorage.getItem(t)||"/",r=n===e?"/":n,window.localStorage.removeItem(t),void(window.location.href=r);var e,t,n,r}})}},Si=Object(G.f)(function(e){return Object(Y.useEffect)(Ei(e),[]),null}),Ti=n(207),Oi=n.n(Ti),Ci=n(102),ji=n.n(Ci),Ai=n(25),Mi=n.n(Ai),Pi=n(528),Ni=n.n(Pi),Ii=function(){var e,t=Fe()(encodeURIComponent,Ni()(["hash","pathname"],window.location)),n=Object(s.a)(t,2),r=n[0],i=n[1];window.location.href=m()(e="/login#c=".concat(i)).call(e,r)},Li=function(){window.location.href="/"},Di=null,Ri=null,Bi=Yr.d,Fi=Ii,Ui=$r,qi=Mi()(ai()([],"roles"),it()(ji()("author"),Li)),zi=Mi()(ar()("",["subscription","status"]),it()(ji()(Oi.a,["active","in_trial","non_renewing"]),Li)),Hi=function(){return window.location.reload()},Wi=function(){var e=f(h.a.mark(function e(t){var n,r,i,o,a,c,u,l,f,d;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.onFetchTokens,e.prev=1,e.next=4,Jr();case 4:return r=e.sent,i=Object(s.a)(r,2),o=i[0],a=i[1],c=a.launchdarkly,u=a.sub,l=a.staff,f=a.subscription,d={user_id:u,staff:l},zi(a),n({author:u,launchdarkly:c,profile:d,subscription:f,token:o}),Xr("change:roles",qi),Xr("change:status",zi),Xr("change:subdomain",Hi),Xr("unauthorized",Ii),Xr("session:closed",Ii),e.abrupt("return",o);case 20:e.prev=20,e.t0=e.catch(1),Ii();case 23:case"end":return e.stop()}},e,null,[[1,20]])}));return function(t){return e.apply(this,arguments)}}();n.d(t,"a",function(){return Yi}),n.d(t,"b",function(){return Gi});var Vi=o.e?i:r,Yi=Vi.getToken,Gi=Vi.request},function(e,t,n){"use strict";n.d(t,"f",function(){return X}),n.d(t,"a",function(){return Q}),n.d(t,"c",function(){return Z}),n.d(t,"e",function(){return J}),n.d(t,"b",function(){return ee}),n.d(t,"d",function(){return re});var r=n(3),i=n.n(r),o=n(28),a=n(50),s=n(9),c=n(10),u=n(7),l=n(11),f=n(14),d=n(6),h=n(5),p=n.n(h),m=n(4),v=n.n(m),g=n(34),y=n.n(g),b=n(161),_=n.n(b),w=n(16),x=n.n(w),k=(n(1862),n(0)),E=n.n(k),S=n(2),T=n.n(S),O=n(80),C=n.n(O),j=n(319),A=n.n(j),M=n(1),P=n.n(M),N=n(39),I=n.n(N),L=n(66),D=n(63),R=n(89),B=n(20),F=n(23),U=n(202),q=n(104),z=n(56);function H(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var W=n(65).b.blocks,V=function(e){var t=e.quote,n=e.name;return E.a.createElement("div",{className:"visually-hidden"},E.a.createElement(R.a,{value:t}),E.a.createElement(R.a,{value:n}))},Y=function(e){var t=e.avatar,n=e.alt,r=('""'===n?"":n)||"";return E.a.createElement("div",{"aria-hidden":!r,"aria-label":r,className:"block-quote__avatar",role:"img",style:{backgroundImage:"url('".concat(t||"","')")}})},G=function(e){var t=e.type,n=e.animateBlockEntrance,r=e.avatar,i=e.children,o=e.backgroundColor,a=e.alt,s=e.isLearner,c=T()("block-quote__col",{"block-quote__col--no-avatar":!r}),u=T()("block-quote__figure",{"brand--beforeColor":"b"===t}),l=r?E.a.createElement("div",{className:"block-quote__image"},E.a.createElement("div",{className:"block-quote__avatar-wrap"},"c"===t?E.a.createElement(z.a,{animateBlockEntrance:n,animateIn:"fadeInLeftSmall",isLearner:s},E.a.createElement(Y,{avatar:r,alt:a,title:a})):E.a.createElement(Y,{avatar:r,alt:a,title:a}))):null;return E.a.createElement("div",{className:"block-quote__container"},E.a.createElement("div",{className:"block-quote__row"},E.a.createElement("div",{className:c},E.a.createElement("div",{className:u,style:{backgroundColor:Object(D.a)("",o)}},l,i))))},K=function(e){var t=e.avatar,n=e.children,r=e.alt;return E.a.createElement("div",{className:"block-quote__figure"},E.a.createElement("div",{className:"block-quote__container"},E.a.createElement("div",{className:"block-quote__row"},E.a.createElement("div",{className:"block-quote__col"},t?E.a.createElement(Y,{avatar:t,alt:r}):null),E.a.createElement("div",{className:"block-quote__col"},n))))},$=function(e){var t=e.background,n=e.avatar,r=e.children,i=e.alt;return E.a.createElement("div",{className:"block-quote__background",style:{backgroundImage:t?"url(".concat(t,")"):""}},E.a.createElement("div",{className:"block-quote__container"},E.a.createElement("div",{className:"block-quote__row"},E.a.createElement("div",{className:"block-quote__col"},E.a.createElement("div",{className:"block-quote__figure"},n?E.a.createElement(Y,{avatar:n,alt:i}):null,r)))))},X=function(e){Object(l.a)(n,e);var t=H(n);function n(){var e,r,i,o;Object(s.a)(this,n);for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];return(o=t.call.apply(t,p()(e=[this]).call(e,c))).renderTextDelegate=v()(r=o.renderText).call(r,Object(u.a)(o)),o.renderCaptionDelegate=v()(i=o.renderCaption).call(i,Object(u.a)(o)),o}return Object(c.a)(n,[{key:"getQuoteEntranceAnimationType",value:function(){switch(this.props.type){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}},{key:"renderText",value:function(e,t){var n=e.type,r=t.paragraph||"",i=T()("block-quote__text brand--linkColor",{"brand--head":"b"===n,"brand--body":"b"!==n,"block-quote__text--blank":""===r});return E.a.createElement(R.a,{className:i,value:r})}},{key:"renderCaption",value:function(e,t){var n=e.type,r=t.name,i=T()("block-quote__caption brand--linkColor",{"brand--head":"b"!==n,"brand--body":"b"===n,"block-quote__caption--blank":""===r});return E.a.createElement(R.a,{className:i,value:r})}},{key:"render",value:function(){var e,t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.labels,s=t.settings,c=t.type,u=t.renderText,l=void 0===u?this.renderTextDelegate:u,f=t.renderCaption,d=void 0===f?this.renderCaptionDelegate:f,h=s.paddingTop,p=s.paddingBottom,m=s.backgroundColor,v=s.entranceAnimation,g=Object(a.a)(i,1)[0],y=g.paragraph,b=g.name,_=g.avatar,w=g.background,x=C()(_,"media.image"),k=Object(L.c)(x),S=C()(_,"media.image.alt"),O=Object(L.a)(C()(w,"media.image")),j=y||"",A=T()("block-quote block-quote--".concat(c),{"block-quote--no-animation":!v}),M={backgroundColor:Object(D.a)("",m),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*p,"px")},P=E.a.createElement("div",{"aria-hidden":"true",className:"block-quote__wrap"},E.a.createElement(z.a,{animateBlockEntrance:n,animateIn:this.getQuoteEntranceAnimationType(),isLearner:r,siblingDelay:.15},l(this.props,g),d(this.props,g)));switch(c){case"d":e=E.a.createElement(K,{type:c,avatar:k,alt:S},P);break;case"background":e=E.a.createElement($,{type:c,avatar:k,alt:S,background:O},P);break;default:e=E.a.createElement(G,{type:c,animateBlockEntrance:n,avatar:k,alt:S,backgroundColor:m,isLearner:r},P)}var N=o.quoteGroup;return E.a.createElement("div",{"aria-label":N,className:A,"data-ba":W.blockQuote,role:q.b,style:M},e,E.a.createElement(V,{name:b,quote:j}))}}],[{key:"propTypes",get:function(){return{lessonId:P.a.any,blockId:P.a.any,items:P.a.array.isRequired,settings:P.a.object.isRequired,type:P.a.string,editable:P.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],type:"a"}}}]),n}(E.a.Component),Q=function(e){return E.a.createElement(X,Object(o.a)({type:"b"},e))},Z=function(e){return E.a.createElement(X,Object(o.a)({type:"c"},e))},J=function(e){return E.a.createElement(X,Object(o.a)({type:"d"},e))},ee=function(e){return E.a.createElement(X,Object(o.a)({type:"background"},e))},te=function(e){var t=e.onClick;return E.a.createElement("button",{"aria-label":"Next quote",className:"block-quote__arrow block-quote__arrow--next",onClick:t,type:"button"},E.a.createElement("div",{className:"block-quote__arrow-icon"}))},ne=function(e){var t=e.onClick;return E.a.createElement("button",{"aria-label":"Previous quote",className:"block-quote__arrow block-quote__arrow--prev",onClick:t,type:"button"},E.a.createElement("div",{className:"block-quote__arrow-icon"}))},re=function(e){Object(l.a)(n,e);var t=H(n);function n(e){var r,i,o;return Object(s.a)(this,n),(o=t.call(this,e)).renderTextDelegate=v()(r=o.renderText).call(r,Object(u.a)(o)),o.renderCaptionDelegate=v()(i=o.renderCaption).call(i,Object(u.a)(o)),o.state={currentIndex:0,isDotKeyboardFocusDisabled:!1},o}return Object(c.a)(n,[{key:"disableFocusForClonedSlides",value:function(){var e=this.state.currentIndex,t=Object(U.b)(this.carousel.querySelectorAll(".slick-active.block-quote__slide"));y()(t).call(t,function(t){_()(t.getAttribute("data-index"))!==e&&Object(B.b)(t)})}},{key:"disableCarouselDotsIfNecessary",value:function(){var e=this.sliderContainer.querySelector(".block-quote__dots-list"),t=this.state.isDotKeyboardFocusDisabled;e&&!t&&(Object(B.b)(e),this.setState({isDotKeyboardFocusDisabled:!0}))}},{key:"componentDidUpdate",value:function(){this.disableCarouselDotsIfNecessary(),this.disableFocusForClonedSlides()}},{key:"onKeyDown",value:function(e){var t,n,r=this.slider;I()([[F.i,v()(t=r.slickNext).call(t,r)],[F.g,v()(n=r.slickPrev).call(n,r)]])(e)}},{key:"renderText",value:function(e,t,n){var r=t.paragraph,i=n.allowTabNavigation,o=r||"",a=T()("block-quote__text brand--body brand--linkColor",{"block-quote__text--blank":""===r});return E.a.createElement(R.a,{className:a,value:o,allowTabNavigation:i})}},{key:"renderCaption",value:function(e,t,n){var r=t.name,i=n.allowTabNavigation,o=T()("block-quote__caption brand--head brand--linkColor",{"block-quote__caption--blank":""===r});return E.a.createElement(R.a,{className:o,value:r,allowTabNavigation:i})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,a=n.items,s=n.type,c=n.settings,u=n.editable,l=n.renderText,f=void 0===l?this.renderTextDelegate:l,d=n.renderCaption,h=void 0===d?this.renderCaptionDelegate:d,p=c.paddingTop,m=c.paddingBottom,g=c.backgroundColor,y=c.entranceAnimation,b=c.showBorder,_=void 0===b||b,w=T()("block-quote block-quote--".concat(s),{"block-quote--no-animation":!y,"block-quote--editable":u,"block-quote--show-border":_}),k={backgroundColor:Object(D.a)("",g),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*m,"px")},S=this.state.currentIndex,O=x()(a).call(a,function(e,n){var o=n===S,a=C()(e.avatar,"media.image.alt"),s=C()(e.avatar,"media.image"),c=Object(L.c)(s),u=e.paragraph||"",l={allowTabNavigation:o};return E.a.createElement("div",{className:"block-quote__slide",key:e.id},E.a.createElement("div",{className:"block-quote__figure"},c?E.a.createElement(Y,{avatar:c,alt:a}):null,E.a.createElement(z.a,{animateBlockEntrance:r,animateIn:"fadeInUp",siblingDelay:.25,isLearner:i},E.a.createElement(V,{name:name,quote:u}),E.a.createElement("div",{"aria-hidden":"true"},f(t.props,e,l),h(t.props,e,l)))))}),j={slidesToShow:1,slidesToScroll:1,arrows:O.length>1,nextArrow:E.a.createElement(te,null),prevArrow:E.a.createElement(ne,null),dots:O.length>1,dotsClass:"block-quote__dots-list brand--background-all brand--shadow-all",accessibility:!1,draggable:!u,beforeChange:function(e,n){var r=t.props,i=r.items;(0,r.onStep)(i[n]),t.setState({currentIndex:n})}};return E.a.createElement("div",{"aria-label":"Quote Carousel",className:"block-quote__slider-container",onKeyDown:v()(e=this.onKeyDown).call(e,this),ref:function(e){t.carousel=e},role:q.b,tabIndex:B.a},E.a.createElement("div",{className:w,"data-ba":W.blockQuote,style:k},E.a.createElement("div",{className:"block-quote__wrap"},E.a.createElement("div",{className:"block-quote__container"},E.a.createElement("div",{className:"block-quote__row"},E.a.createElement("div",{className:"block-quote__col"},E.a.createElement("div",{className:"block-quote__box",ref:function(e){t.sliderContainer=e}},E.a.createElement(A.a,Object(o.a)({className:"block-quote__wrapper",ref:function(e){t.slider=e}},j),O))))))))}}],[{key:"propTypes",get:function(){return{lessonId:P.a.any,blockId:P.a.any,items:P.a.array.isRequired,settings:P.a.object.isRequired,type:P.a.string,editable:P.a.bool,onStep:P.a.func}}},{key:"defaultProps",get:function(){return{type:"carousel",items:[],onStep:Function.prototype}}}]),n}(E.a.Component)},function(e,t,n){var r=n(596),i=n(380),o=n(125)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){n(441);var r=n(1271),i=n(122),o=n(294),a=n(203),s=n(329),c=n(125)("toStringTag");for(var u in r){var l=i[u],f=l&&l.prototype;f&&o(f)!==c&&a(f,c,u),s[u]=s.Array}},function(e,t,n){var r=n(570),i=n(1067),o=n(217),a=n(187),s=n(1073);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,h=t||s;return function(t,s,p){for(var m,v,g=o(t),y=i(g),b=r(s,p,3),_=a(y.length),w=0,x=n?h(t,_):c?h(t,0):void 0;_>w;w++)if((d||w in y)&&(v=b(m=y[w],w,g),e))if(n)x[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(l)return!1;return f?-1:u||l?l:x}}},function(e,t,n){"use strict";n.d(t,"a",function(){return ee}),n.d(t,"c",function(){return ae}),n.d(t,"b",function(){return ue}),n.d(t,"e",function(){return le}),n.d(t,"d",function(){return fe});var r=n(120),i=n(12),o=n(128),a=n.n(o),s=n(26),c=n.n(s),u=n(8),l=n.n(u),f=n(258),d=n.n(f),h=n(38),p=n.n(h),m=n(92),v=n.n(m),g=n(55),y=n.n(g),b=n(48),_=n.n(b),w=n(68),x=n.n(w),k=n(84),E=n.n(k),S=n(53),T=n.n(S),O=n(94),C=n.n(O),j=n(88),A=n.n(j),M=n(29),P=n.n(M),N=n(73),I=n.n(N),L=n(518),D=n.n(L),R=n(58),B=n.n(R),F=n(25),U=n.n(F),q=n(15),z=n.n(q),H=n(19),W=n.n(H),V=n(76),Y=n.n(V),G=n(42),K=n.n(G),$=n(77),X=n(70),Q=n(359),Z=["lessonId"],J=["lessonId"],ee=l()(_()(P.a)({isComplete:!0,percentComplete:100}),B()(A()("items"),Object($.e)(l()(B()(A()("items"),Object($.e)(c()("isComplete",!0))),c()("isComplete",!0))))),te=function(e){var t=e.id,n=e.items;return U()(B()(C()(["items",t,"items"]),ce(n)),B()(C()(["items",t]),se),X.f,K()(W()("percentComplete",100),c()("isComplete",!0)))},ne=function(e,t){var n=t.id;return P()(e,Object(i.a)({},n,c()("isComplete",!0)))},re=I()(["correctlyAnswered","percentComplete","percentViewed","isComplete"]),ie=B()(A()("items"),Object($.e)(I()(["isComplete","isCorrect","isViewed"]))),oe=Object($.e)(l()(ie,re)),ae=U()(I()(["isComplete","percentComplete"]),B()(A()("items"),oe)),se=K()(function(e){return D()(l()(x.a,z()("items"))(e),function(e){return U()(z()("items"),Y.a,y()(W()("isComplete",!0)),T.a,_()(d.a)(l()(T.a,E.a,z()("items"))(e)),p()(1))(e)}(e))},c()("isComplete",!0)),ce=function(e){return function(t){return v()(a()(e).call(e,ne,{}),t)}},ue=function(e){var t=e.lessonId,n=Object(r.a)(e,Z);return function(e){return e(Object(X.g)({id:t,updateFn:(r=n,i=r.blockId,B()(C()(["items",i]),Q.a))}));var r,i}},le=function(e){var t=e.id,n=e.lessonId,r=e.items;return function(e){return e(Object(X.g)({id:n,updateFn:te({id:t,items:r})}))}},fe=function(e){var t=e.lessonId,n=Object(r.a)(e,J);return function(e){return e(Object(X.g)({id:t,updateFn:(r=n,i=r.itemId,o=r.blockId,a=r.isCorrect,U()(B()(C()(["items",o]),Object(Q.b)({itemId:i,isCorrect:a})),X.f))}));var r,i,o,a}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,i=n(96),o=n(587),a=n(590),s=n(384),c=n(740),u=n(581),l=n(464),f=l("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;p=r?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[f]=e):n=p(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(203);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){var r=n(758);e.exports=function(e,t){return r(t,e,0)>=0}},function(e,t,n){"use strict";var r=n(472),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=n(394);o.inherits=n(221);var a=n(783),s=n(609);o.inherits(f,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r(t,e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(249),i=n(487);e.exports=function(e,t){return!!t&&(function(e,t){return r(t[i[e]])||r(t[e])}(e,t)||function(e,t){return r(t["@@implements"])&&!!t["@@implements"](e)}(e,t))}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(250),i=n(488);e.exports=function(e,t){return!!t&&(function(e,t){return r(t[i[e]])||r(t[e])}(e,t)||function(e,t){return r(t["@@implements"])&&!!t["@@implements"](e)}(e,t))}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return jt(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)r=g[n],s(i=t[r])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function x(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=x(t)),n}function E(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&k(e[r])!==k(t[r]))&&a++;return a+o}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return d(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var O,C={};function j(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),C[e]||(S(t),C[e]=!0)}function A(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e,t){var n,r=d({},e);for(n in t)f(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function P(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var N={};function I(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function L(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function D(e){var t,n,r={};for(n in e)f(e,n)&&(t=L(n))&&(r[t]=e[n]);return r}var R={};function B(e,t){R[e]=t}function F(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=Y(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,i=e.match(U);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=A(i[r])?i[r].call(t,e):i[r];return o}}(t),z[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var G=/\d/,K=/\d\d/,$=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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,ue={};function le(e,t,n){ue[e]=A(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return f(ue,e)?ue[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n<e.length;n++)he[e[n]]=r}function me(e,t){pe(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ve(e,t,n){null!=t&&f(he,e)&&he[e](t,n._a,n,e)}var ge=0,ye=1,be=2,_e=3,we=4,xe=5,ke=6,Ee=7,Se=8;function Te(e){return Oe(e)?366:365}function Oe(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),I("year","y"),B("year",1),le("Y",oe),le("YY",Z,K),le("YYYY",ne,X),le("YYYYY",re,Q),le("YYYYYY",re,Q),pe(["YYYYY","YYYYYY"],ge),pe("YYYY",function(e,t){t[ge]=2===e.length?i.parseTwoDigitYear(e):k(e)}),pe("YY",function(e,t){t[ge]=i.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[ge]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Ce,je=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Pe(this,e,n),i.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Oe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Oe(e)?29:28:31-r%7%2}Ce=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},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),B("month",8),le("M",Z),le("MM",Z,K),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[ye]=k(e)-1}),pe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:p(n).invalidMonth=e});var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Be(e){return null!=e?(Re(this,e),i.updateOffset(this,!0),this):Me(this,"Month")}var Fe=ce,Ue=ce;function qe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=de(r[t]),i[t]=de(i[t]);for(t=0;t<24;t++)o[t]=de(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,i=(7+ze(e,0,r).getUTCDay()-t)%7;return-i+r-1}function We(e,t,n,r,i){var o,a,s=(7+n-r)%7,c=He(e,r,i),u=1+7*(t-1)+s+c;return u<=0?a=Te(o=e-1)+u:u>Te(e)?(o=e+1,a=u-Te(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Ve(e,t,n){var r,i,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ye(i,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ye(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Te(e)-r+i)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),B("week",5),B("isoWeek",5),le("w",Z),le("ww",Z,K),le("W",Z),le("WW",Z,K),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=ce,Qe=ce,Ze=ce;function Je(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),c.push(o),u.push(r),u.push(i),u.push(o);for(a.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),c[t]=de(c[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,et),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+et.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+et.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),tt("a",!0),tt("A",!1),I("hour","h"),B("hour",13),le("a",nt),le("A",nt),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,K),le("hh",Z,K),le("kk",Z,K),le("hmm",J),le("hmmss",ee),le("Hmm",J),le("Hmmss",ee),pe(["H","HH"],_e),pe(["k","kk"],function(e,t,n){var r=k(e);t[_e]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[_e]=k(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[xe]=k(e.substr(i)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[xe]=k(e.substr(i))});var rt,it=Ae("Hours",!0),ot={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:De,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:$e,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function ct(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(2011)("./"+t),lt(r)}catch(e){}return at[t]}function lt(e,t){var n;return e&&((n=s(t)?dt(e):ft(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function ft(e,t){if(null!==t){var n,r=ot;if(t.abbr=e,null!=at[e])j("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=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])r=at[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return at[e]=new P(M(r,t)),st[e]&&st[e].forEach(function(e){ft(e.name,e.config)}),lt(e),at[e]}return delete at[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!o(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(i=ct(e[o]).split("-"),t=i.length,n=(n=ct(e[o+1]))?n.split("-"):null;t>0;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&E(i,n,!0)>=t-1)break;t--}o++}return rt}(e)}function ht(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ne(n[ge],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[xe]||0!==n[ke])?_e:n[we]<0||n[we]>59?we:n[xe]<0||n[xe]>59?xe:n[ke]<0||n[ke]>999?ke:-1,p(e)._overflowDayOfYear&&(t<ge||t>be)&&(t=be),p(e)._overflowWeeks&&-1===t&&(t=Ee),p(e)._overflowWeekday&&-1===t&&(t=Se),p(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,i,o,a,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=pt(t.GG,e._a[ge],Ve(At(),1,4).year),r=pt(t.W,1),((i=pt(t.E,1))<1||i>7)&&(c=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Ve(At(),o,a);n=pt(t.gg,e._a[ge],u.year),r=pt(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(c=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o}r<1||r>Ye(n,o,a)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(s=We(n,r,i,o,a),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=pt(e._a[ge],r[ge]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=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[_e]&&0===e._a[we]&&0===e._a[xe]&&0===e._a[ke]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:function(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var vt=/^\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)?)?$/,gt=/^\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)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["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}/]],_t=[["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/]],wt=/^\/?Date\((\-?\d+)/i;function xt(e){var t,n,r,i,o,a,s=e._i,c=vt.exec(s)||gt.exec(s);if(c){for(p(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(c[1])){i=bt[t][0],r=!1!==bt[t][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(c[3])){o=(c[2]||" ")+_t[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(c[4]){if(!yt.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Ot(e)}else e._isValid=!1}var kt=/^(?:(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}))$/;function Et(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,a,s,c=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){var u=(t=c[4],n=c[3],r=c[2],i=c[5],o=c[6],a=c[7],s=[Et(t),De.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ke.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return p(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(c[1],u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}(c[8],c[9],c[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Ot(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,a,s=""+e._i,c=s.length,u=0;for(r=Y(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(fe(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),H[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),ve(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,s.length>0&&p(e).unusedInput.push(s),e._a[_e]<=12&&!0===p(e).bigHour&&e._a[_e]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[_e]=(l=e._locale,f=e._a[_e],null==(d=e._meridiem)?f:null!=l.meridiemHour?l.meridiemHour(f,d):null!=l.isPM?((h=l.isPM(d))&&f<12&&(f+=12),h||12!==f||(f=0),f):f),mt(e),ht(e)}else Tt(e);else xt(e);var l,f,d,h}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(ht(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),m(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));d(e,n||t)}(e):n?Ot(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(xt(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=l(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=D(e._i);e._a=l([t.year,t.month,t.day||t.date,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):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function jt(e,t,n,r,i){var s,c={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new _(ht(Ct(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function At(e,t,n,r){return jt(e,t,n,r,!1)}i.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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Mt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Pt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Nt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=D(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,c=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ce.call(It,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<It.length;++r)if(e[It[r]]){if(n)return!1;parseFloat(e[It[r]])!==k(e[It[r]])&&(n=!0)}return!0}(t),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Dt(e){return e instanceof Lt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Bt(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}Bt("Z",":"),Bt("ZZ",""),le("Z",se),le("ZZ",se),pe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var Ft=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ft)||["-",0,0],o=60*i[1]+k(i[2]);return 0===o?0:"+"===i[0]?o:-o}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||u(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):At(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,r,i,o,a,s,u=e,l=null;return Dt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(u={},t?u[t]=e:u.milliseconds=e):(l=Wt.exec(e))?(n="-"===l[1]?-1:1,u={y:0,d:k(l[be])*n,h:k(l[_e])*n,m:k(l[we])*n,s:k(l[xe])*n,ms:k(Rt(1e3*l[ke]))*n}):(l=Vt.exec(e))?(n="-"===l[1]?-1:1,u={y:Gt(l[2],n),M:Gt(l[3],n),w:Gt(l[4],n),d:Gt(l[5],n),h:Gt(l[6],n),m:Gt(l[7],n),s:Gt(l[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=At(u.from),a=At(u.to),i=o.isValid()&&a.isValid()?(a=qt(a,o),o.isBefore(a)?s=Kt(o,a):((s=Kt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=i.milliseconds,u.M=i.months),r=new Lt(u),Dt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function Gt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};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 $t(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(j(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."),i=n,n=r,r=i),Xt(this,Yt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var o=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Me(e,"Month")+s*n),a&&Pe(e,"Date",Me(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Yt.fn=Lt.prototype,Yt.invalid=function(){return Yt(NaN)};var Qt=$t(1,"add"),Zt=$t(-1,"subtract");function Jt(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=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 nn(){return this._locale}function rn(e,t){W(0,[e,e.length],0,t)}function on(e,t,n,r,i){var o;return null==e?Ve(this,r,i).year:(o=Ye(e,r,i),t>o&&(t=o),function(e,t,n,r,i){var o=We(e,t,n,r,i),a=ze(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),le("G",oe),le("g",oe),le("GG",Z,K),le("gg",Z,K),le("GGGG",ne,X),le("gggg",ne,X),le("GGGGG",re,Q),le("ggggg",re,Q),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),I("quarter","Q"),B("quarter",7),le("Q",G),pe("Q",function(e,t){t[ye]=3*(k(e)-1)}),W("D",["DD",2],"Do","date"),I("date","D"),B("date",9),le("D",Z),le("DD",Z,K),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],be),pe("Do",function(e,t){t[be]=k(e.match(Z)[0])});var an=Ae("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),B("dayOfYear",4),le("DDD",te),le("DDDD",$),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),W("m",["mm",2],0,"minute"),I("minute","m"),B("minute",14),le("m",Z),le("mm",Z,K),pe(["m","mm"],we);var sn=Ae("Minutes",!1);W("s",["ss",2],0,"second"),I("second","s"),B("second",15),le("s",Z),le("ss",Z,K),pe(["s","ss"],xe);var cn,un=Ae("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),B("millisecond",16),le("S",te,G),le("SS",te,K),le("SSS",te,$),cn="SSSS";cn.length<=9;cn+="S")le(cn,ie);function ln(e,t){t[ke]=k(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")pe(cn,ln);var fn=Ae("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var dn=_.prototype;function hn(e){return e}dn.add=Qt,dn.calendar=function(e,t){var n=e||At(),r=qt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(A(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,At(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=L(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:x(o)},dn.endOf=function(e){return void 0===(e=L(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(At(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(At(),e)},dn.get=function(e){return A(this[e=L(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var i=w(e)?e:At(e),o=w(t)?t:At(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},dn.isSame=function(e,t){var n,r=w(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=tn,dn.locale=en,dn.localeData=nn,dn.max=Pt,dn.min=Mt,dn.parsingFlags=function(){return d({},p(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(A(this[e=L(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=L(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Zt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.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()}},dn.toDate=function(){return new Date(this.valueOf())},dn.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?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=je,dn.isLeapYear=function(){return Oe(this.year())},dn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Be,dn.daysInMonth=function(){return Ne(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},dn.date=an,dn.day=dn.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},dn.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")},dn.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},dn.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")},dn.hour=dn.hours=it,dn.minute=dn.minutes=sn,dn.second=dn.seconds=un,dn.millisecond=dn.milliseconds=fn,dn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Xt(this,Yt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ht,dn.isUTC=Ht,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",an),dn.months=T("months accessor is deprecated. Use month instead",Be),dn.years=T("years accessor is deprecated. Use year instead",je),dn.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()}),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ct(e))._a){var t=e._isUTC?h(e._a):At(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=P.prototype;function mn(e,t,n,r){var i=dt(),o=h().set(r,t);return i[n](o,e)}function vn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mn(e,r,n,"month");return i}function gn(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 i,o=dt(),a=e?o._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=mn(t,(i+a)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)A(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)},pn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ce.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ce.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ce.call(this._shortMonthsParse,a))?i:-1!==(i=Ce.call(this._longMonthsParse,a))?i:null:-1!==(i=Ce.call(this._longMonthsParse,a))?i:-1!==(i=Ce.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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}},pn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||qe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ce.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ce.call(this._weekdaysParse,a))?i:-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:-1!==(i=Ce.call(this._weekdaysParse,a))?i:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ce.call(this._minWeekdaysParse,a))?i:-1!==(i=Ce.call(this._weekdaysParse,a))?i:-1!==(i=Ce.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},lt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",lt),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var yn=Math.abs;function bn(e,t,n,r){var i=Yt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function xn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var En=kn("ms"),Sn=kn("s"),Tn=kn("m"),On=kn("h"),Cn=kn("d"),jn=kn("w"),An=kn("M"),Mn=kn("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Pn("milliseconds"),In=Pn("seconds"),Ln=Pn("minutes"),Dn=Pn("hours"),Rn=Pn("days"),Bn=Pn("months"),Fn=Pn("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);e=x(n/60),t=x(e/60),n%=60,e%=60;var o=x(i/12),a=i%=12,s=r,c=t,u=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",h=Hn(this._months)!==Hn(f)?"-":"",p=Hn(this._days)!==Hn(f)?"-":"",m=Hn(this._milliseconds)!==Hn(f)?"-":"";return d+"P"+(o?h+o+"Y":"")+(a?h+a+"M":"")+(s?p+s+"D":"")+(c||u||l?"T":"")+(c?m+c+"H":"")+(u?m+u+"M":"")+(l?m+l+"S":"")}var Vn=Lt.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Vn.add=function(e,t){return bn(this,e,t,1)},Vn.subtract=function(e,t){return bn(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(xn(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)}},Vn.asMilliseconds=En,Vn.asSeconds=Sn,Vn.asMinutes=Tn,Vn.asHours=On,Vn.asDays=Cn,Vn.asWeeks=jn,Vn.asMonths=An,Vn.asYears=Mn,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Vn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,c=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*_n(xn(s)+a),a=0,s=0),c.milliseconds=o%1e3,e=x(o/1e3),c.seconds=e%60,t=x(e/60),c.minutes=t%60,n=x(t/60),c.hours=n%24,a+=x(n/24),i=x(wn(a)),s+=i,a-=_n(xn(i)),r=x(s/12),s%=12,c.days=a,c.months=s,c.years=r,this},Vn.clone=function(){return Yt(this)},Vn.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},Vn.milliseconds=Nn,Vn.seconds=In,Vn.minutes=Ln,Vn.hours=Dn,Vn.days=Rn,Vn.weeks=function(){return x(this.days()/7)},Vn.months=Bn,Vn.years=Fn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Yt(e).abs(),i=Un(r.as("s")),o=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),c=Un(r.as("M")),u=Un(r.as("y")),l=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||c<=1&&["M"]||c<qn.M&&["MM",c]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Vn.toISOString=Wn,Vn.toString=Wn,Vn.toJSON=Wn,Vn.locale=en,Vn.localeData=nn,Vn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Vn.lang=tn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",oe),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(k(e))}),i.version="2.23.0",t=At,i.fn=dn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(e){return At(1e3*e)},i.months=function(e,t){return vn(e,t,"months")},i.isDate=u,i.locale=lt,i.invalid=v,i.duration=Yt,i.isMoment=w,i.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},i.parseZone=function(){return At.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=Dt,i.monthsShort=function(e,t){return vn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},i.defineLocale=ft,i.updateLocale=function(e,t){if(null!=t){var n,r,i=ot;null!=(r=ut(e))&&(i=r._config),t=M(i,t),(n=new P(t)).parentLocale=at[e],at[e]=n,lt(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return O(at)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},i.normalizeUnits=L,i.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},i.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"},i.prototype=dn,i.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"},i}()}).call(this,n(248)(e))},function(e,t,n){var r=n(2041),i=n(2046);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(201),i=n(651);e.exports=n(180)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(514),i=n(1188);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return null!=t&&t.constructor===e||t instanceof e})},function(e,t,n){var r=n(205),i=n(61);e.exports=i(function(e,t,n){if(t>=n.length||t<-n.length)return n;var i=(t<0?n.length:0)+t,o=r(n);return o[i]=e(n[i]),o})},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a});var r=n(79),i=n.n(r)()(function(e,t,n){return n>=e&&n<t}),o=function(e){return e<10?"0".concat(e):String(e)},a=function(e){return Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(e)}},function(e,t,n){var r=n(301),i=n(18),o=n(48),a=n(136);e.exports=i(function(e,t){return a(o(r)(e),t)})},function(e,t,n){"use strict";n.d(t,"b",function(){return I}),n.d(t,"a",function(){return L});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(47),p=n.n(h),m=(n(1818),n(0)),v=n.n(m),g=n(2),y=n.n(g),b=n(1),_=n.n(b),w=n(39),x=n.n(w),k=n(24),E=n.n(k),S=n(41),T=n(22),O=n(23),C=n(20),j=n(97),A=n(266),M=n(104);function P(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var N=function(e){var t=e.currentTime,n=e.duration;return Math.round(t/n*100)||0},I=function(e){Object(c.a)(n,e);var t=P(n);function n(){var e,r,i;return Object(o.a)(this,n),(i=t.call(this)).state={shouldLoadPlayheadPosition:!0,playheadPositionSaveThrottle:0},i.handleChange=d()(e=i.handleChange).call(e,Object(s.a)(i)),i.onPlayClick=d()(r=i.onPlayClick).call(r,Object(s.a)(i)),i}return Object(a.a)(n,[{key:"mouseSeek",value:function(e){var t=e.currentTarget,r=e.nativeEvent,i=e.pageX,o=this.audio,a=(r.touches?r.touches[0].pageX:i)-n.getElementOffset(t).left,s=t.offsetWidth,c=o.duration;a>s?a=s:a<1&&(a=1),o.currentTime=a/s*c,this.props.onSeek(n.timeMs(o.currentTime))}},{key:"keySeek",value:function(e){var t=this;this.setState({isSeeking:!0},function(){var r=t.audio,i=r.duration;r.currentTime=e<0?Math.max(r.currentTime+e,0):Math.min(r.currentTime+e,i),t.props.onSeek(n.timeMs(r.currentTime)),t.onSeekEnd()})}},{key:"componentDidMount",value:function(){S.a.addChangeListener(this.handleChange)}},{key:"componentDidUpdate",value:function(e){!e.shouldPause&&this.props.shouldPause&&S.a.isPlaying&&(this.audio.pause(),S.a.pause())}},{key:"componentWillUnmount",value:function(){var e=this.props.recordMediaPlayheadPosition;S.a.pause(),S.a.removeChangeListener(this.handleChange),e&&e(N(this.audio))}},{key:"handleChange",value:function(){S.a.playerId===this.props.id&&(S.a.isPlaying?this.audio.play():this.audio&&this.audio.pause(),this.audio&&(this.audio.muted=S.a.isMuted),this.forceUpdate())}},{key:"render",value:function(){var e,t,n,r,i,o,a,s,c,u,l,f=this,h=this.props,p=h.allowTabNavigation,m=h.id,g=h.labels,b=h.mediaSrc,_=S.a.isPlaying&&S.a.playerId===m,w=S.a.isMuted&&S.a.playerId===m,x=y()("audio-player__play",{"audio-player__play--pause":_}),k=y()("audio-player__volume",{"audio-player__volume--muted":w}),O=E()(null,["audio","currentTime"],this),j=E()(null,["audio","duration"],this),A=Object(C.m)(p),P=g.audioPlayerGroup,N=g.pauseButtonLabel,I=g.playButtonLabel,L=g.seekSliderLabel;return v.a.createElement("div",{key:"player-"+m,className:"audio-player"},v.a.createElement("div",{"aria-hidden":!p,"aria-label":P,className:"audio-player__housing",onKeyDown:d()(e=this.onKeyDown).call(e,this),role:M.b,tabIndex:A},v.a.createElement("div",{"aria-label":_?N:I,className:x,onClick:this.onPlayClick,role:"button",tabIndex:A}),v.a.createElement("div",{className:"audio-player__tracker",onMouseDown:d()(t=this.onMouseSeekStart).call(t,this),onTouchStart:d()(n=this.onMouseSeekStart).call(n,this),onMouseUp:d()(r=this.onSeekEnd).call(r,this),onTouchEnd:d()(i=this.onSeekEnd).call(i,this),onMouseMove:d()(o=this.onSeek).call(o,this),onTouchMove:d()(a=this.onSeek).call(a,this)},v.a.createElement("div",{ref:function(e){return f.trackerbar=e},className:"audio-player__tracker-bar brand--background"}),v.a.createElement("div",{className:"audio-player__tracker-handle brand--background","aria-label":L,"aria-live":"polite","aria-valuemax":j,"aria-valuemin":"0","aria-valuenow":O,ref:function(e){return f.trackerhandle=e},role:"slider",tabIndex:A})),v.a.createElement("div",{className:"audio-player__timer"},this.state.currentTime),v.a.createElement("div",{className:k,onClick:d()(s=this.onVolumeClick).call(s,this)},v.a.createElement("i",{className:"icon-volume"}),v.a.createElement("i",{className:"icon-mute"}))),v.a.createElement("audio",{ref:function(e){return f.audio=e},className:"audio-player__audio-element",onTimeUpdate:d()(c=this.onTimeUpdate).call(c,this),onLoadedMetadata:d()(u=this.onLoadedMetadata).call(u,this),onEnded:d()(l=this.onEnded).call(l,this),src:Object(T.g)("".concat(b)),key:"audio-"+m}))}},{key:"onKeyDown",value:function(e){var t=this,n=Object(j.b)(this.onPlayClick),r=Object(j.b)(function(){return t.keySeek(5)}),i=Object(j.b)(function(){return t.keySeek(-5)});x()([[O.e,n],[O.j,r],[O.h,i]])(e)}},{key:"onPlayClick",value:function(e){e.preventDefault();var t=this.props,r=t.audioVideoPlayhead,i=t.id,o=t.onPause,a=t.onPlay,s=t.recordMediaPlayheadPosition,c=this.audio,u=c.currentTime,l=c.duration;S.a.isPlaying&&S.a.playerId!==i&&(S.a.isPlaying=!1),S.a.playerId=i,S.a.isPlaying=!S.a.isPlaying,S.a.isPlaying?(a(n.timeMs(u)),r&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=l*r/100||0)):(o(n.timeMs(u)),s&&s(N(this.audio))),this.setState({shouldLoadPlayheadPosition:!1})}},{key:"onVolumeClick",value:function(){S.a.isMuted?S.a.isMuted=!1:S.a.isMuted=!0}},{key:"onMouseSeekStart",value:function(e){this.setState({isSeeking:!0}),this.mouseSeek(e)}},{key:"onSeekEnd",value:function(){var e=this.props,t=e.id,r=e.onPlay,i=e.recordMediaPlayheadPosition,o=this.audio.currentTime;this.setState({isSeeking:!1}),S.a.isPlaying&&S.a.playerId!==t&&(S.a.isPlaying=!1),S.a.playerId=t,S.a.isPlaying=!0,r(n.timeMs(o)),i&&i(N(this.audio))}},{key:"onSeek",value:function(e){this.state.isSeeking&&this.mouseSeek(e)}},{key:"onLoadedMetadata",value:function(e){this.setState({currentTime:n.calcTime(e.target.duration,e.target.currentTime)})}},{key:"onEnded",value:function(e){this.audio.currentTime=0,this.setState({currentTime:n.calcTime(e.target.duration,e.target.currentTime)}),S.a.isPlaying=!1,this.props.onEnd(n.timeMs(e.target.currentTime)),this.forceUpdate()}},{key:"onTimeUpdate",value:function(e){var t=this.props.recordMediaPlayheadPosition,r=e.target,i=r.currentTime,o=r.duration,a=Math.floor(i);Object(T.h)();var s=i/o*100;this.trackerbar.style.width=s+"%",this.trackerhandle.style.left=s+"%",this.setState({currentTime:n.calcTime(o,i)}),a%5==0&&this.state.playheadPositionSaveThrottle!==a&&t&&(t(N(e.target)),this.setState({playheadPositionSaveThrottle:a}))}},{key:"currentTime",value:function(){return n.timeMs(this.audio.currentTime)}}],[{key:"defaultProps",get:function(){return{allowTabNavigation:!0,labels:{audioPlayerGroup:A.a.audioPlayerGroup,pauseButtonLabel:A.a.pauseButtonLabel,playButtonLabel:A.a.playButtonLabel,seekSliderLabel:A.a.seekSliderLabel},mediaSrc:null,onEnd:function(){},onPause:function(){},onPlay:function(){},onSeek:function(){},shouldPause:!1}}},{key:"propTypes",get:function(){return{allowTabNavigation:_.a.bool,labels:_.a.object,mediaSrc:_.a.string,shouldPause:_.a.bool}}},{key:"calcTime",value:function(e,t){var n=Math.round(e-t),r=Math.floor(n/60),i=n-60*r;function o(e,t,n){var r;return p()(r=new Array(n+1).join(t)+e).call(r,-n)}return o(r,"0",2)+":"+o(i,"0",2)}},{key:"getElementOffset",value:function(e){var t=document.documentElement,n=e.getBoundingClientRect();return{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}},{key:"timeMs",value:function(e){return Math.round(1e3*e)}}]),n}(v.a.Component),L=v.a.createElement(I,null).type},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=r.useRef();return r.useEffect(function(){t.current=e}),t.current}},function(e,t,n){var r=n(887),i=n(1037),o=n(501),a=n(305),s=n(2135),c=n(2137),u=n(1038),l=n(890),f=n(280),d=30,h="...",p=/\w*$/;e.exports=function(e,t){var n=d,m=h;if(a(t)){var v="separator"in t?t.separator:v;n="length"in t?l(t.length):n,m="omission"in t?r(t.omission):m}var g=(e=f(e)).length;if(o(e)){var y=u(e);g=y.length}if(n>=g)return e;var b=n-c(m);if(b<1)return m;var _=y?i(y,0,b).join(""):e.slice(0,b);if(void 0===v)return _+m;if(y&&(b+=_.length-b),s(v)){if(e.slice(b).search(v)){var w,x=_;for(v.global||(v=RegExp(v.source,f(p.exec(v))+"g")),v.lastIndex=0;w=v.exec(x);)var k=w.index;_=_.slice(0,void 0===k?b:k)}}else if(e.indexOf(r(v),b)!=b){var E=_.lastIndexOf(v);E>-1&&(_=_.slice(0,E))}return _+m}},function(e,t,n){"use strict";var r=n(115),i=n.n(r),o=n(32),a=n.n(o),s=n(22),c=n(357),u=n.n(c),l=n(121),f=n.n(l),d=Object(s.c)("SESSION_COOKIE_DOMAIN"),h=function(){try{var e="__pay_no_attention_to_that_man_behind_the_curtain__",t=window.localStorage;return t.setItem(e,e),t.removeItem(e),!0}catch(e){return!1}}(),p=function(e){return h?window.localStorage.getItem(e):null},m=function(e,t){if(!h)return null;window.localStorage.setItem(e,t)},v=(f()(function(e,t){return m(e,t),u.a.save(e,t,{domain:d}),t}),n(95));n.d(t,"a",function(){return _});var g={copyLink:{name:"Course Copy Link",description:"Enables course copy link availability."},customVideo:{name:"Custom Videos",description:"Enables custom video blocks for streaming videos."},modernOverview:{name:"Modern Overview",defaults:{rise:!0},description:"Enables modern course overview.",overrides:{360:!1}},questionBanks:{name:"Question Banks",description:"Enables question banks."}},y=function(e){return"feature-".concat(e)},b=function(e){var t=g[e];return!!t&&(!(!t.defaults||!t.defaults[Object(s.c)("SERVICE_PRODUCT")])&&t.defaults[Object(s.c)("SERVICE_PRODUCT")])},_=function(e){return function(e){var t=(g[e]||{}).overrides,n=Object(s.c)("SERVICE_PRODUCT");return t&&i()(n,t)}(e)?function(e){var t=(g[e]||{}).overrides,n=Object(s.c)("SERVICE_PRODUCT");return t&&t[n]}(e):Object(v.h)()?function(e){if(g[e]){var t=y(e),n=p(t);return a()(n)?b(e):"true"===n}}(e):b(e)}},function(e,t,n){var r=n(18),i=n(758),o=n(273);e.exports=r(function(e,t){return"function"!=typeof t.indexOf||o(t)?i(t,e,0):t.indexOf(e)})},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(1863),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){var r=n(1988)();r.helpers=n(83),n(1992)(r),r.Animation=n(1040),r.animationService=n(1041),r.defaults=n(106),r.Element=n(224),r.elements=n(282),r.Interaction=n(1042),r.layouts=n(404),r.platform=n(1043),r.plugins=n(1044),r.Scale=n(405),r.scaleService=n(281),r.Ticks=n(406),r.Tooltip=n(1045),n(2003)(r),n(2004)(r),n(2005)(r),n(2006)(r),n(2007)(r),n(2008)(r),n(2009)(r),n(2010)(r),n(2012)(r),n(2013)(r),n(2014)(r),n(2015)(r),n(2016)(r),n(2017)(r),n(2018)(r),n(2019)(r),n(2020)(r),n(2021)(r),n(2022)(r),n(2023)(r),n(2024)(r),n(2025)(r);var i=n(2026);for(var o in i)i.hasOwnProperty(o)&&r.plugins.register(i[o]);r.platform.initialize(),e.exports=r,"undefined"!=typeof window&&(window.Chart=r),r.Legend=i.legend._element,r.Title=i.title._element,r.pluginService=r.plugins,r.PluginBase=r.Element.extend({}),r.canvasHelpers=r.helpers.canvas,r.layoutService=r.layouts},function(e,t,n){e.exports=n(1883)},function(e,t,n){var r,i,o=n(122),a=n(323),s=o.process,c=s&&s.versions,u=c&&c.v8;u?i=(r=u.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(177);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(168),i=n(457),o=n(199),a=n(200),s=n(744),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,f=6==e,d=7==e,h=5==e||f;return function(p,m,v,g){for(var y,b,_=o(p),w=i(_),x=r(m,v,3),k=a(w.length),E=0,S=g||s,T=t?S(p,k):n||d?S(p,0):void 0;k>E;E++)if((h||E in w)&&(b=x(y=w[E],E,_),e))if(t)T[E]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return E;case 2:c.call(T,y)}else switch(e){case 4:return!1;case 7:c.call(T,y)}return f?-1:u||l?l:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},function(e,t,n){var r=n(180),i=n(1066),o=n(651),a=n(335),s=n(410),c=n(244),u=n(2197),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(127),i=n(308),o=n(244),a=n(2154),s=n(2198),c=n(374),u=c.get,l=c.enforce,f=String(s).split("toString");n(1068)("inspectSource",function(e){return s.call(e)}),(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||s.call(this)})},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(747).charAt,i=n(275),o=n(597),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,n){var r=n(390),i=n(191),o=n(179),a=n(1326),s=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var r=n(1359),i=n(1360),o=n(784);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return z(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return _(e,t,n,r)}function x(e,t,n,r){return z(q(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function A(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:U(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(99))},function(e,t,n){var r=n(1749),i=n(1754);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(492),i=n(1750),o=n(1751),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(1067),i=n(373);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(2157),i=n(244),o=n(2203),a=n(201).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(373),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,""")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(113);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,c=0;c<a;c++)u[c].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){var r=n(382),i=n(51),o=n(182);e.exports=i(r("tail",o(1,1/0)))},function(e,t,n){var r=n(46),i=n(757);e.exports=i(r)},function(e,t,n){var r=n(220),i=n(18),o=n(178);e.exports=i(function(e,t){var n={};return r(t.length,function(){var r=e.apply(this,arguments);return o(r,n)||(n[r]=t.apply(this,arguments)),n[r]})})},function(e,t,n){var r=n(205),i=n(18);e.exports=i(function(e,t){return r([e],t)})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(413),i=n.n(r);function o(e,t){return(o=i.a||function(e,t){return e.__proto__=t,e})(e,t)}},function(e,t,n){e.exports=n(1411)},function(e,t,n){e.exports=n(1487)},function(e,t,n){var r=n(34),i=n(195),o=n(358),a=n(47);
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var n={},c=t||{},u=e.split(/; */),l=c.decode||s;return r(u).call(u,function(e){var t,r,s=i(e).call(e,"=");if(!(s<0)){var c=o(t=e.substr(0,s)).call(t),u=o(r=e.substr(++s,e.length)).call(r);'"'==u[0]&&(u=a(u).call(u,1,-1)),null==n[c]&&(n[c]=function(e,t){try{return t(e)}catch(t){return e}}(u,l))}}),n},t.serialize=function(e,t,n){var r=n||{},i=r.encode||c;if(!u.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!u.test(o))throw new TypeError("argument val is invalid");var a=[e+"="+o];if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");a.push("Max-Age="+s)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");a.push("Domain="+r.domain)}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");a.push("Path="+r.path)}r.expires&&a.push("Expires="+r.expires.toUTCString());r.httpOnly&&a.push("HttpOnly");r.secure&&a.push("Secure");return a.join("; ")};var s=decodeURIComponent,c=encodeURIComponent,u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},function(e,t,n){var r=n(256),i=n(109);e.exports=i(r,0)},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=[],r=0,i=Math.min(e.length,t.length);r<i;)n[r]=[e[r],t[r]],r+=1;return n})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(206),o=n(443),a=n(173);e.exports=r(function(e,t){if(!o(t)||!i(e,t))throw new TypeError("concat: Semigroups of the same type required for both arguments");return(t[a.concat]||t.concat).call(t,e)})},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(5),f=n.n(l),d=n(4),h=n.n(d),p=n(161),m=n.n(p),v=n(112),g=n.n(v),y=(n(1819),n(114)),b=n(1104),_=n.n(b),w=n(1),x=n.n(w),k=n(288),E=n.n(k),S=n(156),T=n.n(S),O=n(259),C=n.n(O),j=n(2),A=n.n(j),M=n(8),P=n.n(M),N=n(39),I=n.n(N),L=n(46),D=n.n(L),R=n(31),B=n.n(R),F=n(42),U=n.n(F),q=n(43),z=n(22),H=n(264),W=n(41),V=n(20),Y=n(266),G=n(239),K=n(238),$=n(97),X=n(104),Q=n(85),Z=n(269),J=n(103),ee=n(23);function te(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var ne=function(e){var t,n=Object(z.c)("CDN_USER_CONTENT_URI"),r=new RegExp(Object(z.c)("CDN_URI"),"g");return Object(z.d)()?e:r.test(e)?f()(t="".concat(n)).call(t,E.a.parse(e).path):e},re=P()(U()(D.a,z.g),Z.a),ie=function(t){Object(s.a)(r,t);var n=te(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={isReady:!1,duration:0},t}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e=this.props.allowTabNavigation;this.iFrameContainer&&!e&&this.updateIframeFocusability({allowFocus:!1})}},{key:"componentDidUpdate",value:function(e){!e.shouldPause&&this.props.shouldPause&&W.a.isPlaying&&(this.player.pause(),W.a.isPlaying=!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,n=e.data,r=t.originalUrl!==n.originalUrl,i=this.props.allowTabNavigation,o=e.allowTabNavigation,a=i!==o;r&&"video"===Object(G.b)(t)&&this.teardownPlayer(),this.iFrameContainer&&a&&this.updateIframeFocusability({allowFocus:o})}},{key:"componentWillUnmount",value:function(){"video"===Object(G.b)(this.props.data)&&this.teardownPlayer()}},{key:"setupPlayer",value:function(){var e=this;this.player=new _.a.Player(this.media),this.props.progressChanged&&this.player.on("ready",this.videoReady=function(){e.player.on("timeupdate",e.videoUpdate=function(t){e.props.progressChanged({done:t.seconds/t.duration*100})}),e.setState({isReady:!0})}),this.player.on("play",this.videoPlay=function(){var t=e.props.id;W.a.isPlaying&&W.a.playerId!==t&&(W.a.isPlaying=!1),W.a.playerId=t,W.a.isPlaying=!0}),W.a.addChangeListener(this.onChange=function(){var t=e.props.id;W.a.playerId===t&&(W.a.isPlaying?e.player.play():e.player.pause())})}},{key:"teardownPlayer",value:function(){W.a.isPlaying=!1,this.onChange&&W.a.removeChangeListener(this.onChange),this.player&&(this.player.off("play",this.videoPlay),this.player.off("ready",this.videoReady),this.player.off("timeupdate",this.videoUpdate))}},{key:"updateIframeFocusability",value:function(e){var t=e.allowFocus;Object(V.k)({element:this.iFrameContainer,selector:"iframe",tabIndex:Object(V.m)(t)})}},{key:"playerSupportsMethods",value:function(e){var t=this;return C()(function(e){return t.player.supports("method",e)})(e)}},{key:"togglePlay",value:function(){var e=this;this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",function(){e.player.getPaused(function(t){t?e.player.play():e.player.pause()})})}},{key:"keySeek",value:function(e){var t=this;this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",function(){t.player.getCurrentTime(function(n){t.player.setCurrentTime(n+e)})})}},{key:"changeVolume",value:function(e){var t=this;this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(function(n){t.player.setVolume(n+e)})}},{key:"onKeyDown",value:function(e){var t,n=this,r=Object($.b)(h()(t=this.togglePlay).call(t,this)),i=Object($.b)(function(){return n.keySeek(5)}),o=Object($.b)(function(){return n.keySeek(-5)}),a=Object($.b)(function(){return n.changeVolume(10)}),s=Object($.b)(function(){return n.changeVolume(-10)});I()([[ee.k,r],[ee.i,i],[ee.g,o],[ee.m,a],[ee.b,s]])(e)}},{key:"renderProvider",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.externalLinksDisabled,i=t.showExternalLinksModal,o=t.showMetaData,a=t.data,s=a.providerUrl,c=a.provider,u=a.favicon;if(!o)return null;var l=Object(Z.a)(s),f=r&&Object(K.a)(l),d=f?"":void 0,h=f?i:void 0,p=f?void 0:l,m=f?void 0:"noopener noreferrer",v=f?"button":void 0,g=f?void 0:"_blank";return e.createElement("h2",{className:"embed__provider"},e.createElement("a",{className:"brand--hoverColor","data-external":d,href:p,onClick:h,rel:m,role:v,tabIndex:Object(V.m)(n),target:g},e.createElement("img",{className:"embed__providerIcon",src:u,alt:u?c:null}),e.createElement("span",{className:"embed__providerName"},c)))}},{key:"renderMetaData",value:function(){var t,n,r=this.props,i=r.allowTabNavigation,o=r.data,a=r.externalLinksDisabled,s=r.labels,c=r.showExternalLinksModal,u=r.showMetaData,l=o.src,d=o.title,h=o.description,p=o.provider,m=s.embedReadMore,v=s.embedViewOn,g=Object(G.b)(o);if(!u&&"link"!==g)return null;var y=Object(Z.a)(l),b=a&&Object(K.a)(y),_=b?"":void 0,w=b?c:void 0,x=b?void 0:y,k=b?void 0:"noopener noreferrer",E=b?"button":void 0,S=b?void 0:"_blank";return e.createElement("div",{className:"embed__meta__content"},e.createElement("h2",{className:"embed__title brand--head"},e.createElement("a",{className:"brand--hoverColor","data-external":_,href:x,onClick:w,rel:k,role:E,tabIndex:Object(V.m)(i),target:S},e.createElement(q.a,{value:d}))),e.createElement(q.a,{className:"embed__description brand--body brand--linkColor",value:h}),e.createElement("a",{className:"embed__readMore brand--hoverColor","data-external":_,href:x,onClick:w,rel:k,role:E,tabIndex:Object(V.m)(i),target:S},"link"===g?f()(t="".concat(m," ")).call(t,p):f()(n="".concat(v," ")).call(n,p),e.createElement("i",{className:"icon icon-chevron-right"})))}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.data,o=n.externalLinksDisabled,a=n.isLesson,s=n.labels,c=n.showExternalLinksModal,u=n.showMetaData,l=i.description,f=i.src,d=i.thumbnail,h=i.title,p=s.embedLinkGroup,v=s.embedPlayerGroup,y=s.embedReadMore,b=Object(G.b)(i);if("iframe"===b){var _=document.createElement("div");_.innerHTML=Object(J.c)(f);var w=_.firstChild,x=w&&w.tagName&&"iframe"===w.tagName.toLowerCase(),k=100,E=32,S=f;if(x){var T=w.width.match(/%/),O=m()(w.width);w.src=Object(Z.a)(w.src),S=_.innerHTML,k=T?O/100*700:O||16,E=m()(w.height)}var C=x?"".concat(100*(E/k),"%"):"3rem",j=x?S:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return e.createElement("div",{"aria-hidden":!r,"aria-label":v,className:"embed",role:X.b},e.createElement("div",{className:"embed--iframe",dangerouslySetInnerHTML:{__html:j},style:{paddingBottom:C},ref:function(e){t.iFrameContainer=e}}))}if(a){var A,M=Object(Z.a)(f),P=o&&Object(K.a)(M),N=P?"":void 0,I=P?c:void 0,L=P?void 0:M,D=P?void 0:"noopener noreferrer",R=P?"button":void 0,B=P?void 0:"_blank";return e.createElement("div",{"aria-hidden":!r,"aria-label":oe(s,b),className:"embed embed--link embed--rich",role:X.b},this.renderProvider(),g()(A=["link","photo"]).call(A,b)?e.createElement("a",{"data-external":N,href:L,onClick:I,rel:D,role:R,tabIndex:Object(V.m)(r),target:B},e.createElement("img",{alt:d?h:null,className:"embed__img",src:ne(d)})):this.renderEmbedIframe({allowTabNavigation:r,labels:s,src:f,thumbnail:d,title:h,type:b}),this.renderMetaData())}if("link"===b){var F=Object(Z.a)(f),U=o&&Object(K.a)(F),z=U?"":void 0,H=U?c:void 0,W=U?void 0:F,Y=U?void 0:"noopener noreferrer",$=U?"button":void 0,Q=U?void 0:"_blank";return e.createElement("div",{"aria-hidden":!r,"aria-label":p,className:"embed embed--link brand--head brand--linkColor",role:X.b},e.createElement(q.a,{className:"embed__title brand--head",value:h}),e.createElement(q.a,{className:"embed__description",value:l}),e.createElement("a",{className:"embed__readMore brand--hoverColor",dataExternal:z,href:W,onClick:H,rel:Y,role:$,target:Q},y))}return e.createElement("div",{className:"embed embed--media brand--head"},u?e.createElement(q.a,{"aria-hidden":!r,className:"embed__title brand--head",value:h}):null,this.renderEmbedIframe({allowTabNavigation:r,labels:s,src:f,thumbnail:d,title:h,type:b}))}},{key:"renderEmbedIframe",value:function(t){var n=this,r=t.allowTabNavigation,i=t.labels.embedPlayerGroup,o=t.src,a=t.thumbnail,s=t.title;if("photo"===t.type)return e.createElement("figure",{className:"embed__media-wrap"},e.createElement(H.a,{src:ne(a),title:s,allowTabNavigation:r}));var c,u,l=Q.a.isIe11||Q.a.isEdge,f=A()("embed__media-wrap",{"embed__media-wrap--ms_browser":l});return e.createElement("figure",{"aria-hidden":!r,"aria-label":i,className:f,onKeyDown:h()(c=this.onKeyDown).call(c,this),ref:function(e){n.iFrameContainer=e},tabIndex:Object(V.m)(r)},e.createElement("iframe",{ref:function(e){n.media=e},className:"embed__media",src:re(o),alt:s,frameBorder:"0",scrolling:"no",onLoad:h()(u=this.setupPlayer).call(u,this),allowFullScreen:!0,title:s}))}}],[{key:"defaultProps",get:function(){return{allowTabNavigation:!0,labels:{embedReadMore:Y.a.embedReadMore,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}},{key:"propTypes",get:function(){return{allowTabNavigation:x.a.bool,data:x.a.object.isRequired,progressChanged:x.a.func,isLesson:x.a.bool,shouldPause:x.a.bool,showMetaData:x.a.bool}}}]),r}(e.Component),oe=function(e,t){var n=e.embedLinkGroup,r=e.embedPhotoGroup,i=e.embedVideoGroup;switch(t){case"photo":return r;case"video":return i;default:return n}},ae=T()({externalLinksDisabled:B()(["course","externalLinksDisabled"])}),se=Object(y.b)(ae,{showExternalLinksModal:function(){return{type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0}}});t.a=se(ie)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return me});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(49),p=n.n(h),m=n(75),v=n.n(m),g=n(62),y=n.n(g),b=n(12),_=n(9),w=n(10),x=n(7),k=n(11),E=n(14),S=n(6),T=n(4),O=n.n(T),C=n(34),j=n.n(C),A=n(33),M=n.n(A),P=n(5),N=n.n(P),I=n(16),L=n.n(I),D=n(112),R=n.n(D),B=(n(1832),n(2)),F=n.n(B),U=n(8),q=n.n(U),z=n(39),H=n.n(z),W=n(524),V=n.n(W),Y=n(15),G=n.n(Y),K=n(1),$=n.n(K),X=n(91),Q=n.n(X),Z=n(288),J=n.n(Z),ee=n(1111),te=n.n(ee),ne=n(85),re=n(266),ie=n(41),oe=n(202),ae=n(40),se=n(97),ce=n(22),ue=n(1119),le=n(20),fe=n(23);function de(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function he(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(S.a)(e);if(t){var o=Object(S.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(E.a)(this,n)}}var pe=function(e){return Math.round(e.currentTime()/e.duration()*100)||0},me=function(t){Object(k.a)(r,t);var n=he(r);function r(e){var t,i,o,a,s;return Object(_.a)(this,r),(s=n.call(this,e)).state={isReady:!1,shouldLoadPlayheadPosition:!1,playbackStarted:!1,playheadPositionSaveThrottle:0,showRestrictSeekTooltip:!1},s.showRestrictSeekTooltip=O()(t=s.showRestrictSeekTooltip).call(t,Object(x.a)(s)),s.updateSeekTooltip=O()(i=s.updateSeekTooltip).call(i,Object(x.a)(s)),s.getMaxTime=O()(o=s.getMaxTime).call(o,Object(x.a)(s)),s.onMediaStoreChange=O()(a=s.onMediaStoreChange).call(a,Object(x.a)(s)),s}return Object(w.a)(r,[{key:"updateContentFocusability",value:function(){var e=this.props.allowTabNavigation,t=Object(oe.b)(this.container.getElementsByTagName("button"));j()(t).call(t,function(t){Object(le.j)(t,Object(le.m)(e))}),Object(le.k)({element:this.container,selector:".vjs-progress-holder",tabIndex:Object(le.m)(e)}),Object(le.k)({element:this.container,selector:".vjs-volume-bar",tabIndex:Object(le.m)(e)}),Object(le.k)({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Object(le.m)(e)})}},{key:"componentDidUpdate",value:function(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&ie.a.isPlaying&&(this.video.player.pause(),ie.a.isPlaying=!1)}},{key:"componentDidMount",value:function(){var e=this,t=this.video.player,n=this.props,r=n.audioVideoPlayhead,i=n.canRestrictSeek,o=n.currentTime,a=n.id,s=n.onFullScreenChange,c=n.percentComplete,u=n.progressChanged,l=n.recordMediaPlayheadPosition,f=n.type;this.setState({shouldLoadPlayheadPosition:!0}),this.wasPaused=!1,this.seeking=!1,this.maxTime=o,this.updateContentFocusability(),i&&(this.configureVideoSeekBar(),this.configureSeekDiv()),t.ready(function(){t.el_&&(t.el_.removeAttribute("role"),t.el_.removeAttribute("aria-label")),c&&c<100&&"customVideo"!==f&&(t.play(),t.currentTime(o),t.pause()),t.on("timeupdate",e.videoUpdate=function(){Object(ce.h)();var n=t.currentTime(),o=t.duration(),a=t.paused(),s=Math.floor(n),c=o*r/100||0;a&&!e.wasPaused&&n>e.maxTime&&(e.maxTime=n),i&&e.updateSeekTooltip();var f=t.ended()&&!e.seeking,d=!a&&!e.seeking;if(!i||f||d){n>e.maxTime&&(e.maxTime=n);var h=n/o*100;f&&(h=100),u&&u({currentTime:n,percentComplete:h}),s%5==0&&e.state.playheadPositionSaveThrottle!==s&&l&&(l(pe(t)),e.setState({playheadPositionSaveThrottle:s}))}else i&&!e.restrictingSeek&&n>e.maxTime&&c<e.maxTime&&(e.restrictingSeek=!0,a||t.pause(),t.currentTime(e.maxTime));e.wasPaused=a}),e.setState({isReady:!0})}),t.on("play",this.videoPlay=function(){e.seeking=!1,e.showRestrictSeekTooltip(!1)}),t.on("playing",this.videoPlaying=function(){ie.a.isPlaying&&ie.a.playerId!==a&&(ie.a.isPlaying=!1),ie.a.playerId=a,ie.a.isPlaying=!0,!1===e.state.playbackStarted&&e.setState({playbackStarted:!0}),r&&e.state.shouldLoadPlayheadPosition&&t.currentTime(t.duration()*r/100||0),e.setState({shouldLoadPlayheadPosition:!1})}),t.on("pause",this.videoPaused=function(){ie.a.playerId===a&&(ie.a.isPlaying=!1),l&&l(pe(t))}),t.on("seeking",this.videoSeeking=function(){e.seeking=!0}),t.on("seeked",this.videoSeeked=function(){e.restrictingSeek=!1,e.seekTimeout&&clearTimeout(e.seekTimeout),l&&l(pe(t)),e.seekTimeout=M()(function(){e.seeking=!1},1e3)}),t.on("fullscreenchange",s),t.on("keyup",le.h),t.on("contextmenu",function(e){e.preventDefault()}),ie.a.addChangeListener(this.onMediaStoreChange)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onFullScreenChange,n=e.recordMediaPlayheadPosition,r=this.video.player;n&&n(pe(r)),ie.a.isPlaying=!1,ie.a.removeChangeListener(this.onMediaStoreChange),r.off("timeupdate",this.videoUpdate),r.off("play",this.videoPlay),r.off("playing",this.videoPlaying),r.off("pause",this.videoPaused),r.off("seeking",this.videoSeeking),r.off("seeked",this.videoSeeked),r.off("fullscreenchange",t),r.dispose()}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.allowTabNavigation,o=r.labels.videoPlayerGroup,a=this.state,s=a.isReady,c=a.showRestrictSeekTooltip,u=a.playbackStarted,l=F()("video-a11y figure-video",{"figure-video--visible":s,"figure-video--restrict-seek":c,"video-playback-started":u});return e.createElement("div",{"aria-hidden":!i,"aria-label":o,className:"figure-container",onKeyDown:O()(t=this.onKeyDown).call(t,this),ref:function(e){n.container=e},role:"region"},e.createElement("figure",{className:l},this.renderPlayer()))}},{key:"renderCaptionTrack",value:function(t){var n=t.code,r=t.id,i=t.key,o=t.name,a=t.url||Object(ce.g)(i);return e.createElement("track",{key:r,kind:"captions",label:o,src:a,srcLang:n})}},{key:"renderPlayer",value:function(){var t,n,r=this,i=this.props,o=i.canAdjustPlaybackSpeed,a=i.captionUID,s=i.captions,c=i.id,u=i.subtitle,l="customVideo"===i.type,f=q()(V()(1),G()("pathname"),J.a.parse),h=l?f(this.props.src):this.props.src,m=l?this.props.poster:Object(ce.g)(this.props.poster),g=l?this.props.src:Object(ce.g)(this.props.src),_=l?"application/x-mpegURL":void 0,w=o?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,x=ne.a.isSafariVersion13OrLower||ne.a.isLocalFilesystem?{}:{crossOrigin:"anonymous"},k={controlBar:{remainingTimeDisplay:!0,volumeMenuButton:{inline:!1}},controls:!0,playbackRates:w,preload:"none",textTrackSettings:!1},E=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)j()(n=de(Object(r),!0)).call(n,function(t){Object(b.a)(e,t,r[t])});else if(p.a)v()(e,p()(r));else{var i;j()(i=de(Object(r))).call(i,function(t){y()(e,t,d()(r,t))})}}return e}({className:"figure-video__video",key:N()(t=N()(n="".concat(c,"-")).call(n,h,"-")).call(t,a),options:k,poster:m,ref:function(e){return r.video=e}},x),S=e.createElement("track",{kind:"captions",label:"English",src:l?u:Object(ce.g)(u),srcLang:"en"}),T="".concat(g,"?v=1");return e.createElement(te.a,E,e.createElement("source",{src:T,type:_}),!s&&u&&S,s&&L()(s).call(s,this.renderCaptionTrack))}},{key:"onKeyDown",value:function(e){var t,n,r=this;if(!ve(e)){var i=Object(se.b)(O()(t=this.togglePlay).call(t,this)),o=O()(n=this.toggleFullScreen).call(n,this),a=Object(se.b)(function(){return r.keySeek(5)}),s=Object(se.b)(function(){return r.keySeek(-5)});H()([[fe.k,i],[fe.d,o],[fe.j,a],[fe.h,s]])(e)}}},{key:"togglePlay",value:function(){var e=this.video.player;e.userActive(!0),e.paused()?e.play():e.pause()}},{key:"toggleFullScreen",value:function(){if(!ne.a.isIe11){var e=this.video.player;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}}},{key:"changeVolume",value:function(e){var t=this.video.player,n=t.volume();t.userActive(!0),t.volume(n+e)}},{key:"keySeek",value:function(e){var t=this.video.player,n=this.props.canRestrictSeek;t.userActive(!0);var r=t.currentTime(),i=t.duration();t.paused()&&!r&&!i&&t.play();var o=r+e;n&&(o>this.maxTime?(o=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));var a=e<0?Math.max(o,0):Math.min(o,i);a!==r&&t.currentTime(a)}},{key:"configureVideoSeekBar",value:function(){var e=this.video.player,t=e.controlBar.progressControl,n=t.seekBar;t.removeChild(n);var r={showRestrictSeekTooltip:this.showRestrictSeekTooltip,getMaxTime:this.getMaxTime};this.videoSeekBar=new ue.a(e,r),t.addChild(this.videoSeekBar)}},{key:"configureSeekDiv",value:function(){var t,n=this.video.player.controlBar.el();this.progressBarElement=this.videoSeekBar.playProgressBar.el(),this.seekDiv=((t=document.createElement("div")).classList.add("seek-tooltip"),t.classList.add("seek-tooltip--hidden"),t),n.appendChild(this.seekDiv),Q.a.render(e.createElement(ae.A,null),this.seekDiv)}},{key:"showRestrictSeekTooltip",value:function(e){this.props.canRestrictSeek&&this.seekDiv&&e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove("seek-tooltip--hidden"):this.seekDiv.classList.add("seek-tooltip--hidden"),this.setState({showRestrictSeekTooltip:e}))}},{key:"updateSeekTooltip",value:function(){var e=this.video.player,t=this.progressBarElement.getBoundingClientRect(),n=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width/2,i=t.left-n.left+t.width-r;this.seekDiv.style.left="".concat(i,"px"),this.seekDiv.style.top="".concat(-5,"px")}},{key:"getMaxTime",value:function(){return this.maxTime}},{key:"onMediaStoreChange",value:function(){if(this.video){var e=this.props.id,t=this.video.player;ie.a.playerId===e&&(ie.a.isPlaying?t.play():t.pause())}}}],[{key:"propTypes",get:function(){return{allowTabNavigation:$.a.bool,id:$.a.string.isRequired,percentComplete:$.a.number,poster:$.a.string,progressChanged:$.a.func,shouldPause:$.a.bool,src:$.a.string.isRequired}}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,currentTime:0,labels:{videoPlayerGroup:re.a.videoPlayerGroup},onFullScreenChange:function(){},percentComplete:0,progressChanged:Function.prototype,shouldPause:!1}}}]),r}(e.Component),ve=function(e){var t=e.target.className,n=Object(fe.n)(e)&&R()(t).call(t,"vjs-volume-bar");return Object(fe.e)(e)&&(R()(t).call(t,"vjs-control")||R()(t).call(t,"vjs-big-play-button"))||n}}).call(this,n(0))},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(63);t.a=function(e){var t=e.children,n=e.settings,r=e.type,a=n.backgroundColor,s=n.paddingTop,c=n.paddingBottom,u={backgroundColor:Object(o.a)("",a),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*c,"px")};return i.a.createElement("div",{className:"block-".concat(r),style:u},t)}},function(e,t,n){"use strict";n.d(t,"c",function(){return he}),n.d(t,"b",function(){return pe}),n.d(t,"d",function(){return ge}),n.d(t,"a",function(){return Se});var r=n(256),i=n.n(r),o=n(259),a=n.n(o),s=n(17),c=n.n(s),u=n(26),l=n.n(u),f=n(163),d=n.n(f),h=n(101),p=n.n(h),m=n(8),v=n.n(m),g=n(121),y=n.n(g),b=n(149),_=n.n(b),w=n(258),x=n.n(w),k=n(38),E=n.n(k),S=n(55),T=n.n(S),O=n(48),C=n.n(O),j=n(100),A=n.n(j),M=n(124),P=n.n(M),N=n(32),I=n.n(N),L=n(84),D=n.n(L),R=n(53),B=n.n(R),F=n(94),U=n.n(F),q=n(88),z=n.n(q),H=n(29),W=n.n(H),V=n(227),Y=n.n(V),G=n(73),K=n.n(G),$=n(58),X=n.n($),Q=n(24),Z=n.n(Q),J=n(107),ee=n.n(J),te=n(15),ne=n.n(te),re=n(19),ie=n.n(re),oe=n(76),ae=n.n(oe),se=n(42),ce=n.n(se),ue=n(81),le=n(77),fe=n(144),de=n(70),he=function(e){var t=e.activeIndex,n=e.id;return function(e){return e(Object(de.g)({id:n,updateFn:me({activeIndex:t})}))}},pe=function(e){var t=e.currentPassingScore,n=e.id;return function(e){return e(Object(de.g)({id:n,updateFn:ve(t)}))}},me=function(e){var t=e.activeIndex;return l()("activeIndex",t)},ve=function(e){return v()(X()(z()("retryAttempts"),v()(P.a,_()(0))),ce()(ie()("passed",!1),K()(["passed"])),ce()(ie()("isComplete",!1),K()(["isComplete"])),K()(["activeIndex","originalItemProgress","percentComplete","score","reportResults","questionsDrawn","questionList"]),X()(z()("items"),Object(le.e)(ee()(["id","index"]))),X()(z()("passingScore"),c()(e)))},ge=function(e){var t=e.finalRetryAttempt,n=e.id,r=e.isCorrect,i=e.itemId,o=e.passingScore,a=e.passToContinue;return function(e){return e(Object(de.g)({id:n,type:"quiz",updateFn:ye({finalRetryAttempt:t,id:n,isCorrect:r,itemId:i,passingScore:o,passToContinue:a})}))}},ye=function(e){var t=e.finalRetryAttempt,n=e.id,r=e.itemId,i=e.isCorrect,o=e.passingScore,a=e.passToContinue;return v()(ce()(ie()("percentComplete",100),be({finalRetryAttempt:t,id:n,passingScore:o,passToContinue:a})),de.f,_e,X()(U()(["items",r]),C()(W.a)({isComplete:!0,isCorrect:i})))},be=function(e){var t=e.finalRetryAttempt,n=e.id,r=e.passingScore,i=e.passToContinue;return function(e){var o=ne()("score",e),a=o>=r,s=!i||a;return Object(ue.e)(a,o,n,t),W()({passed:a,isComplete:s,reportResults:!0},e)}},_e=function(e){return l()("score",v()(Math.round,Y()(100),C()(x.a)(v()(B.a,D.a,ne()("items"))(e)),B.a,T()(ie()("isCorrect",!0)),ae.a,ne()("items"))(e),e)},we=d()(v()(E()(3),B.a),a()(p()(I.a))),xe=v()(ae.a,ee()(["passed","retryAttempts","score"])),ke=v()(we,xe),Ee=function(e){var t=e.id,n=e.state;return Object(fe.c)(n,Z()({},["lessons",t,"items"]),D.a,B.a,i()(1))},Se=y()(function(e){return A()(ke,function(e){return function(t){var n=t.id,r=t.passed,i=t.passingScore,o=t.score,a=t.retryAttempts;return X()(U()(["lessons",n]),C()(W.a)({isComplete:!0,activeIndex:Ee({id:n,state:e}),reportResults:!0,passed:r,passingScore:i,percentComplete:100,retryAttempts:a,score:o}),e)}}(e),c()(e))})},function(e,t,n){e.exports=n(1605)},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){var r=n(1322);"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});var i={},o=void 0;function a(){return!!o&&!0!==o.headersSent}function s(e){i=e?r.parse(e):{}}var c={load:function(e,t){var n="undefined"==typeof document?i:r.parse(document.cookie),o=n&&n[e];if(void 0===t&&(t=!o||"{"!==o[0]&&"["!==o[0]),!t)try{o=JSON.parse(o)}catch(e){}return o},select:function(e){var t="undefined"==typeof document?i:r.parse(document.cookie);return t?e?Object.keys(t).reduce(function(n,r){if(!e.test(r))return n;var i={};return i[r]=t[r],Object.assign({},n,i)},{}):t:{}},save:function(e,t,n){i[e]=t,"object"==typeof t&&(i[e]=JSON.stringify(t)),"undefined"!=typeof document&&(document.cookie=r.serialize(e,i[e],n)),a()&&o.cookie&&o.cookie(e,t,n)},remove:function(e,t){delete i[e],t=void 0===t?{}:"string"==typeof t?{path:t}:Object.assign({},t),"undefined"!=typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=r.serialize(e,"",t)),a()&&o.clearCookie&&o.clearCookie(e,t)},setRawCookie:s,plugToRequest:function(e,t){return e.cookie?i=e.cookie:e.cookies?i=e.cookies:e.headers&&e.headers.cookie?s(e.headers.cookie):i={},o=t,function(){o=null,i={}}}};"undefined"!=typeof window&&(window.reactCookie=c),e.exports=c},function(e,t,n){e.exports=n(1482)},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return V});var r=n(26),i=n.n(r),o=n(8),a=n.n(o),s=n(149),c=n.n(s),u=n(55),l=n.n(u),f=n(48),d=n.n(f),h=n(124),p=n.n(h),m=n(53),v=n.n(m),g=n(94),y=n.n(g),b=n(88),_=n.n(b),w=n(29),x=n.n(w),k=n(73),E=n.n(k),S=n(58),T=n.n(S),O=n(230),C=n.n(O),j=n(25),A=n.n(j),M=n(15),P=n.n(M),N=n(19),I=n.n(N),L=n(87),D=n.n(L),R=n(76),B=n.n(R),F=n(42),U=n.n(F),q=n(77),z=n(428),H=function(e){return i()("correctlyAnswered",A()(P()("items"),B.a,l()(I()("isCorrect",!0)),v.a)(e),e)},W=A()(T()(_()("items"),Object(q.e)(E()(["isViewed","isCorrect"]))),E()(["percentViewed","correctlyAnswered"]),T()(_()("retryAttempts"),a()(p.a,c()(0)))),V=function(e){var t=e.itemId,n=e.isCorrect;return A()(T()(y()(["items",t]),A()(d()(x.a)({isComplete:n,isViewed:n}),x()({isCorrect:n}))),U()(C()(["items",t,"isCorrect"],!1),i()("lastIncorrectCardId",t)),H,D()(I()("percentComplete",100),z.a),z.b,U()(I()("percentComplete",100),i()("isComplete",!0)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return f}),n.d(t,"f",function(){return d}),n.d(t,"e",function(){return h});var r=n(54),i=n.n(r),o=n(64),a=n(212),s=i()("rise/rise-com/"),c=s("FAVORITE_ADDED"),u=s("FAVORITE_REMOVED"),l=function(){return Object(o.d)(a.a)},f=function(){return Object(o.a)(c,void 0)},d=function(){return Object(o.d)(a.i)},h=function(){return Object(o.a)(u,void 0)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(479).chain,i=n(119),o=n(243),a=n(1714),s=n(90),c=n(173);e.exports=i(function(e,t){if(!s(e))throw new TypeError("chain: Chain returning function required for first argument");if(!a(t)&&!o(t))throw new TypeError("chain: Chain of the same type required for second argument");return o(t)?r(e,t):(t[c.chain]||t.chain).call(t,e)})},function(e,t,n){"use strict";var r,i,o,a,s,c=n(639).toUnsigned,u=n(639).toHexString,l=n(525);r=function(e){return l.findBox(e,["moov","trak"]).reduce(function(e,t){var n,r,i,o,a;return(n=l.findBox(t,["tkhd"])[0])?(r=n[0],o=c(n[i=0===r?12:20]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]),(a=l.findBox(t,["mdia","mdhd"])[0])?(i=0===(r=a[0])?12:20,e[o]=c(a[i]<<24|a[i+1]<<16|a[i+2]<<8|a[i+3]),e):null):null},{})},i=function(e,t){var n,r,i;return n=l.findBox(t,["moof","traf"]),r=[].concat.apply([],n.map(function(t){return l.findBox(t,["tfhd"]).map(function(n){var r,i;return r=c(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),i=e[r]||9e4,(l.findBox(t,["tfdt"]).map(function(e){var t,n;return t=e[0],n=c(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=c(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n})[0]||1/0)/i})})),i=Math.min.apply(null,r),isFinite(i)?i:0},o=function(e,t){var n,r=l.findBox(t,["moof","traf"]),i=0,o=0;if(r&&r.length)for(var a=l.parseTraf(r[0]),s=0;s<a.boxes.length;s++)"tfhd"===a.boxes[s].type?n=a.boxes[s].trackId:"tfdt"===a.boxes[s].type?i=a.boxes[s].baseMediaDecodeTime:"trun"===a.boxes[s].type&&a.boxes[s].samples.length&&(o=a.boxes[s].samples[0].compositionTimeOffset||0);return(i+o)/(e[n]||9e4)},a=function(e){var t=l.findBox(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=l.findBox(e,["mdia","hdlr"]),r=l.findBox(e,["tkhd"]);t.forEach(function(e,t){var i,o,a=l.parseType(e.subarray(8,12)),s=r[t];"vide"===a&&(o=0===(i=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0)?i.getUint32(12):i.getUint32(20),n.push(o))})}),n},s=function(e){var t=l.findBox(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,r,i={},o=l.findBox(e,["tkhd"])[0];o&&(r=(t=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0),i.id=0===r?t.getUint32(12):t.getUint32(20));var a=l.findBox(e,["mdia","hdlr"])[0];if(a){var s=l.parseType(a.subarray(8,12));i.type="vide"===s?"video":"soun"===s?"audio":s}var f=l.findBox(e,["mdia","minf","stbl","stsd"])[0];if(f){var d=f.subarray(8);i.codec=l.parseType(d.subarray(4,8));var h,p=l.findBox(d,[i.codec])[0];p&&(/^[a-z]vc[1-9]$/i.test(i.codec)?(h=p.subarray(78),"avcC"===l.parseType(h.subarray(4,8))&&h.length>11?(i.codec+=".",i.codec+=u(h[9]),i.codec+=u(h[10]),i.codec+=u(h[11])):i.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(i.codec)&&(h=p.subarray(28),"esds"===l.parseType(h.subarray(4,8))&&h.length>20&&0!==h[19]?(i.codec+="."+u(h[19]),i.codec+="."+u(h[20]>>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"))}var m=l.findBox(e,["mdia","mdhd"])[0];if(m&&o){var v=0===r?12:20;i.timescale=c(m[v]<<24|m[v+1]<<16|m[v+2]<<8|m[v+3])}n.push(i)}),n},e.exports={findBox:l.findBox,parseType:l.parseType,timescale:r,startTime:i,compositionStartTime:o,videoTrackIds:a,tracks:s}},function(e,t,n){"use strict";(function(e){n.d(t,"d",function(){return P}),n.d(t,"c",function(){return N}),n.d(t,"a",function(){return I}),n.d(t,"b",function(){return L});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=n(4),m=n.n(p),v=(n(1879),n(2)),g=n.n(v),y=n(80),b=n.n(y),_=n(1),w=n.n(_),x=n(63),k=n(264),E=n(89),S=n(56),T=n(66),O=n(104),C=n(265),j=n(151);function A(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var M=n(65).b.blocks,P=function(t){Object(u.a)(r,t);var n=A(r);function r(){var e,t,i;Object(a.a)(this,r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(i=n.call.apply(n,h()(e=[this]).call(e,s))).renderCaptionDelegate=m()(t=i.renderCaption).call(t,Object(c.a)(i)),i}return Object(s.a)(r,[{key:"renderCaption",value:function(t,n){return e.createElement(E.a,{className:"block-image__caption brand--body brand--linkColor",value:n})}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.editable,i=t.isLearner,o=t.items,a=t.type,s=t.settings,c=t.renderCaption,u=void 0===c?this.renderCaptionDelegate:c,l=s.paddingTop,f=s.paddingBottom,d=s.backgroundColor,h=s.entranceAnimation,p=s.zoomOnClick,m=g()("block-image block-image--".concat(a),{"block-image--no-animation":!h,"block-image--dark":Object(j.a)(d)}),v={backgroundColor:Object(x.a)("",d),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*f,"px")},y=o[0],_=y.id,w=y.caption,E=b()(y,"media.image.alt"),C=b()(y,"media.image.key"),A=Object(T.a)(b()(y,"media.image")),P=Object(O.a)({caption:w,editable:r,id:_}),N=b()(y,"media.image.originalUrl");return e.createElement("div",{className:m,"data-ba":M.blockImage,style:v},e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},e.createElement(S.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:i,offset:300},e.createElement(P.tagName,{"aria-labelledby":P.figcaptionId,className:"block-image__figure",role:P.role},e.createElement("div",{className:"block-image__image"},e.createElement(k.a,{alt:E,caption:w,disableZoom:!p,fileName:N,imageKey:C,src:A})),(r||w)&&e.createElement("figcaption",{id:P.figcaptionId},u(_,w))))))))}}],[{key:"propTypes",get:function(){return{lessonId:w.a.any,blockId:w.a.any,items:w.a.array.isRequired,settings:w.a.object.isRequired,type:w.a.string}}},{key:"defaultProps",get:function(){return{type:"hero",editable:!1,lessonId:"",blockId:"",items:[]}}}]),r}(e.Component),N=function(t){Object(u.a)(r,t);var n=A(r);function r(){var e,t,i,o;Object(a.a)(this,r);for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return(o=n.call.apply(n,h()(e=[this]).call(e,u))).renderParagraphDelegate=m()(t=o.renderParagraph).call(t,Object(c.a)(o)),o.renderCaptionDelegate=m()(i=o.renderCaption).call(i,Object(c.a)(o)),o}return Object(s.a)(r,[{key:"renderParagraph",value:function(t,n){return e.createElement(E.a,{className:"block-image__text brand--body brand--linkColor",value:n})}},{key:"renderCaption",value:function(t,n){return e.createElement(E.a,{className:"block-image__caption brand--body brand--linkColor",value:n})}},{key:"renderImage",value:function(t,n,r,i){var o=this.props,a=o.editable,s=o.renderCaption,c=void 0===s?this.renderCaptionDelegate:s,u=b()(r,"media.image.alt"),l=b()(r,"media.image.key"),f=Object(T.a)(b()(r,"media.image")),d=Object(O.a)({caption:n,editable:a,id:t}),h=b()(r,"media.image.originalUrl"),p=this.props,m=p.animateBlockEntrance,v=p.isLearner,g=p.settings.zoomOnClick;return e.createElement(S.a,{animateBlockEntrance:m,animateIn:"right"===i?"fadeInRight":"fadeInLeft",isLearner:v},e.createElement(d.tagName,{"aria-labelledby":d.figcaptionId,className:"block-image__figure",role:d.role},e.createElement("div",{className:"block-image__image"},e.createElement(k.a,{alt:u,caption:n,disableZoom:!g,fileName:h,imageKey:l,src:f})),(a||n)&&e.createElement("figcaption",{id:d.figcaptionId},c(t,n))))}},{key:"render",value:function(){var t=this.props,n=t.items,r=t.settings,i=t.type,o=t.renderParagraph,a=void 0===o?this.renderParagraphDelegate:o,s=r.paddingTop,c=r.paddingBottom,u=r.backgroundColor,l=r.entranceAnimation,f=r.imagePosition,d=r.imageSize,h="right"===f,p=g()("block-image block-image--".concat(i),{"block-image--small":"small"===d,"block-image--large":"large"===d,"block-image--reverse":h,"block-image--no-animation":!l,"block-image--dark":Object(j.a)(u)}),m={backgroundColor:Object(x.a)("",u),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*c,"px")},v=n[0],y=v.id,b=v.caption,_=v.paragraph;return e.createElement("div",{className:p,"data-ba":M.blockImage,style:m},e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},h?a(y,_):this.renderImage(y,b,v,"left")),e.createElement("div",{className:"block-image__col"},h?this.renderImage(y,b,v,"right"):a(y,_)))))}}],[{key:"propTypes",get:function(){return{lessonId:w.a.any,blockId:w.a.any,items:w.a.array.isRequired,settings:w.a.object.isRequired,type:w.a.string,editable:w.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",type:"text-aside"}}}]),r}(e.Component),I=function(t){Object(u.a)(r,t);var n=A(r);function r(){var e,t,i,o;Object(a.a)(this,r);for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return(o=n.call.apply(n,h()(e=[this]).call(e,u))).renderCaptionDelegate=m()(t=o.renderCaption).call(t,Object(c.a)(o)),o.renderOverlayDelegate=m()(i=o.renderOverlay).call(i,Object(c.a)(o)),o}return Object(s.a)(r,[{key:"renderCaption",value:function(t,n){return e.createElement(E.a,{className:"block-image__caption brand--head brand--linkColor",value:n})}},{key:"renderOverlay",value:function(t,n){return e.createElement(E.a,{className:"block-image__paragraph brand--head brand--linkColor",value:n})}},{key:"renderOverlayCaption",value:function(t,n){var r=this.props,i=r.animateBlockEntrance,o=r.isLearner,a=r.renderOverlay,s=void 0===a?this.renderOverlayDelegate:a;return e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},e.createElement(S.a,{animateBlockEntrance:i,animateIn:"fadeInUp",isLearner:o,duration:1},s(t,n)))))}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.editable,i=t.isLearner,o=t.items,a=t.settings,s=t.type,c=t.renderCaption,u=void 0===c?this.renderCaptionDelegate:c,l=a.paddingTop,f=a.paddingBottom,d=a.backgroundColor,h=a.entranceAnimation,p=a.opacity,m=a.opacityColor,v=g()("block-image block-image--".concat(s),{"block-image--no-animation":!h,"block-image--dark":Object(j.a)(d)}),y={backgroundColor:Object(x.a)("",d),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*f,"px")},_={opacity:p||.6,backgroundColor:m||"transparent"},w=o[0],k=w.id,E=w.caption,A=b()(w,"media.image.key"),P=Object(T.a)(b()(w,"media.image")),N=b()(w,"media.image.alt"),I=b()(w,"media.image.originalUrl"),L=Object(C.a)({alt:N,caption:E,fileName:I,key:A}),D="overlay"===s,R=Object(O.a)({caption:E,editable:r,id:k,isOverlayType:D});return e.createElement(R.tagName,{"aria-labelledby":R.figcaptionId,className:v,"data-ba":M.blockImage,role:R.role,style:y},function(t,n,r,i){return n?i:e.createElement(S.a,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:r,duration:1},i)}(n,D,i,e.createElement("div",{className:"block-image__figure"},A&&e.createElement("div",{className:"block-image__image",style:{backgroundImage:"url('".concat(P,"')")}},e.createElement("img",{src:P,alt:L,role:"img"}),e.createElement("div",{className:"block-image__overlay",style:_})),D?this.renderOverlayCaption(k,E,s):null)),!D&&(r||E)&&e.createElement("figcaption",{className:"block-image__container brand--body",id:R.figcaptionId},u(k,E)))}}],[{key:"propTypes",get:function(){return{lessonId:w.a.any,blockId:w.a.any,items:w.a.array.isRequired,settings:w.a.object.isRequired,type:w.a.string,editable:w.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",type:"full"}}}]),r}(e.Component),L=function(t){return e.createElement(I,Object(o.a)({type:"overlay"},t))}}).call(this,n(0))},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(39),a=n.n(o),s=n(38),c=n.n(s),u=n(71),l=n.n(u),f={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"},d={label:"Any Response",prop:"feedback"};a()([[c()(f.ANY),i()(d)],[c()(f.CHOICE),i()({label:"By Choice",prop:"choice"})],[c()(f.CORRECT_INCORRECT),i()({correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"})],[l.a,i()(d)]]);t.a=f},function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return j}),n.d(t,"a",function(){return A}),n.d(t,"b",function(){return M}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return N});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=n(4),m=n.n(p),v=n(16),g=n.n(v),y=n(47),b=n.n(y),_=(n(1861),n(2)),w=n.n(_),x=n(1),k=n.n(x),E=n(63),S=n(89),T=n(56);function O(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var C=n(65).b.blocks,j=function(t){Object(u.a)(r,t);var n=O(r);function r(){var e,t,i;Object(a.a)(this,r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(i=n.call.apply(n,h()(e=[this]).call(e,s))).renderTextDelegate=m()(t=i.renderText).call(t,Object(c.a)(i)),i}return Object(s.a)(r,[{key:"getEntranceAnimationType",value:function(){switch(this.props.type){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}},{key:"getEntranceAnimationDuration",value:function(){switch(this.props.type){case"a":return 1;case"b":case"c":case"d":return.75;case"note":return.5}}},{key:"renderText",value:function(t,n){var r=t.type,i=n.paragraph,o="note"===r,a=w()("block-impact__quote brand--linkColor",{"brand--body":"a"===r,"brand--head brand--beforeBackground":"b"===r,"brand--head":"c"===r,"brand--body brand--beforeBackground":"d"===r,"brand--head brand--border brand--background-transparent":o});return e.createElement(S.a,{className:a,value:i})}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.animateBlockEntrance,o=r.isLearner,a=r.items,s=r.type,c=r.settings,u=r.renderText,l=void 0===u?this.renderTextDelegate:u,f=c.paddingTop,d=c.paddingBottom,h=c.backgroundColor,p=c.entranceAnimation,m=w()("block-impact block-impact--".concat(s),{"block-impact--no-animation":!p}),v={backgroundColor:Object(E.a)("",h),paddingTop:"".concat(10*f,"px"),paddingBottom:"".concat(10*d,"px")};return e.createElement("div",{className:m,"data-ba":C.blockImpact,style:v},e.createElement("div",{className:"block-impact__wrap"},e.createElement("div",{className:"block-impact__container"},e.createElement("div",{className:"block-impact__row"},g()(t=b()(a).call(a,0,1)).call(t,function(t){return e.createElement(T.a,{animateBlockEntrance:i,animateIn:n.getEntranceAnimationType(),duration:n.getEntranceAnimationDuration(),isLearner:o,key:t.id},e.createElement("div",{className:"block-impact__col"},e.createElement("div",{className:"block-impact__note-icon brand--color"},e.createElement("i",{className:"icon icon-info"})),l(n.props,t)))})))))}}],[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array.isRequired,settings:k.a.object.isRequired,type:k.a.string}}},{key:"defaultProps",get:function(){return{items:[],type:"a"}}}]),r}(e.Component),A=function(t){return e.createElement(j,Object(o.a)({type:"b"},t))},M=function(t){return e.createElement(j,Object(o.a)({type:"c"},t))},P=function(t){return e.createElement(j,Object(o.a)({type:"d"},t))},N=function(t){return e.createElement(j,Object(o.a)({type:"note"},t))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return te}),n.d(t,"d",function(){return ne}),n.d(t,"c",function(){return re}),n.d(t,"a",function(){return ae});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(47),v=n.n(m),g=n(16),y=n.n(g),b=(n(1895),n(114)),_=n(156),w=n.n(_),x=n(1),k=n.n(x),E=n(2),S=n.n(E),T=n(1124),O=n.n(T),C=n(69),j=n.n(C),A=n(115),M=n.n(A),P=n(68),N=n.n(P),I=n(29),L=n.n(I),D=n(31),R=n.n(D),B=n(24),F=n.n(B),U=n(19),q=n.n(U),z=n(314),H=n(89),W=n(351),V=n(56),Y=n(43),G=n(1125),K=n(352),$=n(239),X=n(22),Q=n(63),Z=n(40);function J(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ee=n(65).b.blocks,te=function(t){Object(c.a)(r,t);var n=J(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).renderCaptionDelegate=p()(t=i.renderCaption).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"renderCaption",value:function(t){var n=t.caption;return e.createElement(H.a,{className:"block-audio__caption brand--body brand--linkColor",value:n})}},{key:"renderItem",value:function(t){var n,r,i,o=this.props,a=o.blockId,s=o.labels,c=o.lessonId,u=o.loadMedia,l=o.progress,f=o.recordMediaPlayheadPosition,h=o.renderCaption,m=void 0===h?this.renderCaptionDelegate:h,v=t.id,g=t.media,y=void 0===g?{}:g,b=y.audio,_=y.tmp,w=((void 0===_?{}:_).audio||b).key,x=d()(n=d()(r="".concat(c,"-")).call(r,a,"-")).call(n,v),k=F()(0,["items",a,"items",v,"audioVideoPlayhead"],l);return e.createElement("div",{key:v,className:"block-audio__item"},u?e.createElement(z.b,{audioVideoPlayhead:k,key:x,id:x,labels:s,mediaSrc:w,onEnd:p()(i=this.handleOnEnd).call(i,this,v),recordMediaPlayheadPosition:f}):null,m(t))}},{key:"handleOnEnd",value:function(e){this.props.onStep({id:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,o=n.items,a=n.settings,s=a.paddingTop,c=a.paddingBottom,u=a.backgroundColor,l=a.entranceAnimation,f=S()("block-audio",{"block-audio--no-animation":!l}),d={backgroundColor:Object(Q.a)("",u),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*c,"px")},h=o.length>0?v()(o).call(o,0,1):[];return e.createElement("div",{className:f,"data-ba":ee.blockAudio,style:d},e.createElement(V.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i,offset:150},e.createElement("div",{className:"block-audio__wrapper"},y()(h).call(h,function(e,n){return t.renderItem(e,n)}))))}}],[{key:"propTypes",get:function(){return{audioVideoPlayhead:k.a.number,blockId:k.a.any,editable:k.a.bool,items:k.a.array,lessonId:k.a.any,loadMedia:k.a.bool.isRequired,onStep:k.a.func,recordMediaPlayheadPosition:k.a.func,settings:k.a.object.isRequired}}},{key:"defaultProps",get:function(){return{audioVideoPlayhead:0,blockId:"",editable:!1,items:[],lessonId:"",onStep:Function.prototype,recordMediaPlayheadPosition:Function.prototype}}}]),r}(e.Component),ne=function(t){Object(c.a)(r,t);var n=J(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).renderCaptionDelegate=p()(t=i.renderCaption).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"renderVideo",value:function(t){var n,r=this.props,i=r.blockId,o=r.editable,a=r.enableVideoPlaybackSpeed,s=r.labels,c=r.partnerContent,u=r.progress,l=r.recordMediaPlayheadPosition,f=r.settings,d=r.takingSnapshot,h=r.type,m=t.captions,v=t.captionUID,g=t.id,y=t.key,b=t.keyId,_=t.partnerContentId,w=t.poster,x=t.subtitle,k=y||t.src,E=F()(0,["items",i,"items",g,"audioVideoPlayhead"],u),S=j()(q()("id",_),c)||{},T=e.createElement("div",null,e.createElement("img",{className:"block-video__poster",src:w,alt:"Video Poster"})),O=e.createElement("div",null,e.createElement("div",{className:"block-video__placeholder"})),C=e.createElement("div",null,e.createElement(K.a,{audioVideoPlayhead:E,canAdjustPlaybackSpeed:a,canRestrictSeek:f.forwardSeekRestricted&&!o,captionUID:v,captions:m,id:b,key:b,labels:s,partnerContent:S,poster:w,progressChanged:p()(n=this.handleProgressChanged).call(n,this,g),recordMediaPlayheadPosition:l,src:k,subtitle:x,type:y?"video":h}));return d?T:k?C:O}},{key:"renderCaption",value:function(t){var n=t.caption;return e.createElement(H.a,{className:"block-audio__caption brand--body brand--linkColor",value:n})}},{key:"renderItem",value:function(t){var n,r,i=this.props,o=i.courseId,a=i.lessonId,s=i.blockId,c=i.loadMedia,u=i.partnerContent,l=i.publishedAt,f=i.settings,h=i.tenantId,p=i.renderCaption,m=void 0===p?this.renderCaptionDelegate:p,v=f.backgroundColor,g=f.mediaWidth,y=void 0===g?"1":g,b=t.id,_=t.media,w=t.partnerContentId,x=_.customVideo,k=void 0===x?{}:x,E=_.tmp,T=void 0===E?{}:E,O=_.video,C=void 0===O?{}:O,A=M()("poster",C)?C:L()(C,k),P=M()("poster",T.video||{})&&T.video,I=Object(X.d)()?A:P||A,D=I.captionUID,R=I.captions,B=I.key,F=I.poster,U=I.src,z=I.subtitle,H={captionUID:D,captions:R,id:b,key:B,keyId:d()(n=d()(r="".concat(a,"-")).call(r,s,"-")).call(n,b),partnerContentId:w,poster:F,src:U,subtitle:z},W=j()(q()("id",w),u)||{},V=W&&!N()(W),Y=S()("block-video__item",{"block-video__item--small":"0"===y,"block-video__item--medium":"1"===y,"block-video__item--full":"2"===y});return e.createElement("div",{key:b,className:Y,"data-ba":ee.blockVideo},c&&this.renderVideo(H),e.createElement("div",{className:"block-video__wrapper"},m(t)),V&&e.createElement(G.a,{backgroundColor:v,blockId:s,courseId:o,partnerContent:W,publishedAt:l,tenantId:h}))}},{key:"handleProgressChanged",value:function(e,t){t.percentComplete>=100&&this.props.onStep({id:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,o=n.items,a=n.settings,s=a.paddingTop,c=a.paddingBottom,u=a.backgroundColor,l=a.entranceAnimation,f=S()("block-video",{"block-video--no-animation":!l}),d={backgroundColor:Object(Q.a)("",u),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*c,"px")},h=o.length>0?v()(o).call(o,0,1):[];return e.createElement("div",{className:f,style:d},e.createElement(V.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i,offset:250},y()(h).call(h,function(e,n){return t.renderItem(e,n)})))}}],[{key:"propTypes",get:function(){return{audioVideoPlayhead:k.a.number,blockId:k.a.any,courseId:k.a.string,editable:k.a.bool,items:k.a.array,labels:k.a.object,lessonId:k.a.any,loadMedia:k.a.bool.isRequired,onStep:k.a.func,partnerContent:k.a.array,publishedAt:k.a.string,settings:k.a.object.isRequired,tenantId:k.a.string,type:k.a.string}}},{key:"defaultProps",get:function(){return{audioVideoPlayhead:0,items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype,partnerContent:[]}}}]),r}(e.Component),re=function(t){Object(c.a)(r,t);var n=J(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"renderItem",value:function(t,n){var r,i=t.id,o=t.media.embed,a=t.settings,s=void 0===a?{}:a,c=this.props,u=c.loadMedia,l=c.labels,f=c.settings,h=s.showMetaData,p=f.showBorder,m=void 0===p||p,v=S()("block-embed__item",{"block-embed__item--border":m});return e.createElement("section",{key:i,className:v,"data-ba":ee.blockEmbed},u&&e.createElement(W.a,{id:d()(r="".concat(n,"-")).call(r,i),labels:l,isLesson:!0,data:o,showMetaData:h}))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.blockId,o=n.isLearner,a=n.items,s=n.settings,c=s.paddingTop,u=s.paddingBottom,l=s.backgroundColor,f=s.entranceAnimation,d=s.mediaWidth,h=void 0===d?0:d,p="link"!==Object($.a)(a),m=S()("block-embed",{"block-video--no-animation":!f}),g=S()("block-embed__wrapper",{"block-embed__wrapper--medium":p&&"1"===h,"block-embed__wrapper--full":p&&"2"===h}),b={backgroundColor:Object(Q.a)("",l),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},_=a.length>0?v()(a).call(a,0,1):[];return e.createElement("div",{className:m,style:b},e.createElement(V.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:o,offset:300},e.createElement("div",{className:g},y()(_).call(_,function(e){return t.renderItem(e,i)}))))}}],[{key:"propTypes",get:function(){return{lessonId:k.a.any,blockId:k.a.any,items:k.a.array,settings:k.a.object.isRequired,editable:k.a.bool,loadMedia:k.a.bool.isRequired}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:""}}}]),r}(e.Component),ie=function(t){Object(c.a)(r,t);var n=J(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.settings,a=i[0].media.attachment;return e.createElement("div",{style:this.styles(o)},e.createElement(V.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r},e.createElement("div",{className:"block-text--onecol"},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},e.createElement("div",{className:"block-text__col"},this.renderAttachment(a)))))))}},{key:"renderAttachment",value:function(e){return e.key?this.renderDownload(e):this.renderNoFile()}},{key:"renderDownload",value:function(t){var n=t.key,r=t.mimeType,i=t.originalUrl,o=t.size,a=this.props,s=a.externalLinksDisabled,c=a.showExternalLinksModal,u=Object(X.g)(n),l=s?"":void 0,f=s?c:void 0,d=s?void 0:u,h=s?void 0:"noopener noreferrer",p=s?"button":void 0,m=s?void 0:"_blank";return e.createElement("a",{className:"block-attachment brandHover","data-external":l,download:i,href:d,onClick:f,rel:h,role:p,target:m},e.createElement("div",{className:"block-attachment__main"},e.createElement("div",{className:"block-attachment__icon"},this.fileIcon(r)),e.createElement("div",{className:"block-attachment__info brand--head"},e.createElement(Y.a,{className:"block-attachment__title",value:i}),e.createElement("div",{className:"block-attachment__size"},O()(o,{round:1})))),e.createElement("div",{className:"block-attachment__rest"},e.createElement(Z.i,{className:"brandHover__target--fill"})))}},{key:"renderNoFile",value:function(){return e.createElement("div",{className:"block-attachment block-attachment--none","data-ba":ee.blockAttachment},e.createElement("div",{className:"block-attachment__main"},e.createElement("div",{className:"block-attachment__icon"},e.createElement(Z.m,{"aria-label":"File"})),e.createElement("div",{className:"block-attachment__info brand--head"},e.createElement("div",{className:"block-attachment__title"},"File Attachment Block"),e.createElement("div",{className:"block-attachment__size"},"No file added"))))}},{key:"fileIcon",value:function(t){return/excel|spreadsheet/.test(t)?e.createElement(Z.r,{"aria-label":"Microsoft Excel Spreadsheet"}):/pdf/.test(t)?e.createElement(Z.o,{"aria-label":"PDF File"}):/word/.test(t)?e.createElement(Z.n,{"aria-label":"Microsoft Word Document"}):/powerpoint|presentation/.test(t)?e.createElement(Z.p,{"aria-label":"PowerPoint Presentation"}):/rtf|richtext/.test(t)?e.createElement(Z.q,{"aria-label":"Rich Text File"}):/zip/.test(t)?e.createElement(Z.s,{"aria-label":"ZIP File"}):e.createElement(Z.m,{"aria-label":"File"})}},{key:"styles",value:function(e){return{backgroundColor:Object(Q.a)("",e.backgroundColor),paddingTop:"".concat(10*e.paddingTop,"px"),paddingBottom:"".concat(10*e.paddingBottom,"px")}}}],[{key:"propTypes",get:function(){return{blockId:k.a.string.isRequired,items:k.a.array.isRequired,lessonId:k.a.string,loadMedia:k.a.bool.isRequired,settings:k.a.object.isRequired}}}]),r}(e.Component),oe=w()({externalLinksDisabled:R()(["course","externalLinksDisabled"])}),ae=Object(b.b)(oe,{showExternalLinksModal:function(){return{type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0}}})(ie)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return we});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(112),v=n.n(m),g=n(33),y=n.n(g),b=n(47),_=n.n(b),w=n(16),x=n.n(w),k=(n(1918),n(190)),E=n.n(k),S=n(8),T=n.n(S),O=n(26),C=n.n(O),j=n(38),A=n.n(j),M=n(68),P=n.n(M),N=n(32),I=n.n(N),L=n(53),D=n.n(L),R=n(111),B=n.n(R),F=n(24),U=n.n(F),q=n(136),z=n.n(q),H=n(289),W=n.n(H),V=n(313),Y=n.n(V),G=n(2),K=n.n(G),$=n(1),X=n.n($),Q=n(63),Z=n(20),J=n(171),ee=n(77),te=n(89),ne=n(56),re=n(43),ie=n(175),oe=n(364),ae=n(158),se=n(192),ce=n(215),ue=n(707);function le(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var fe=n(65).b.blocks,de=ae.a.FILL_IN_THE_BLANK,he=ae.a.MATCHING,pe=ae.a.MULTIPLE_CHOICE,me=ae.a.MULTIPLE_RESPONSE,ve=oe.a.ANY,ge=oe.a.CHOICE,ye=oe.a.CORRECT_INCORRECT,be={FILL_IN_THE_BLANK:"Knowledge Check: Fill In The Blank",MATCHING:"Knowledge Check: Matching",MULTIPLE_CHOICE:"Knowledge Check: Multiple Choice",MULTIPLE_RESPONSE:"Knowledge Check: Multiple Response"},_e=U()(null,[0,"type"]),we=function(t){Object(c.a)(r,t);var n=le(r);function r(){var e,t,i,a,c,u,l,f,h,m;Object(o.a)(this,r);for(var v=arguments.length,g=new Array(v),y=0;y<v;y++)g[y]=arguments[y];return(m=n.call.apply(n,d()(e=[this]).call(e,g))).state={selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillinValue:"",matches:{}},m.retakeAnimationStageOne=null,m.retakeAnimationStageTwo=null,m.handleFillIn=p()(t=m.handleFillIn).call(t,Object(s.a)(m)),m.handleChoiceSelect=p()(i=m.handleChoiceSelect).call(i,Object(s.a)(m)),m.handleMatch=p()(a=m.handleMatch).call(a,Object(s.a)(m)),m.handleMultipleResponseChange=p()(c=m.handleMultipleResponseChange).call(c,Object(s.a)(m)),m.handleRetake=p()(u=m.handleRetake).call(u,Object(s.a)(m)),m.renderQuestionTitle=p()(l=m.renderQuestionTitle).call(l,Object(s.a)(m)),m.renderMultipleResponseOptionText=p()(f=m.renderMultipleResponseOptionText).call(f,Object(s.a)(m)),m.renderMultipleChoiceOptionText=p()(h=m.renderMultipleChoiceOptionText).call(h,Object(s.a)(m)),m}return Object(a.a)(r,[{key:"componentDidUpdate",value:function(e,t){t.answered&&!this.state.answered&&this.getType()!==de&&Object(Z.c)(this.wrapper)}},{key:"componentWillUnmount",value:function(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null)}},{key:"handleMatch",value:function(e){var t=e.dragIndex,n=e.dropZoneIndex,r=this.state.matches,i=T()(C()(t,n),z()(A()(n)),J.d)(r);this.setState({matches:i})}},{key:"handleMultipleResponseChange",value:function(e){var t=e.optionIndex,n=this.state.selectedIndices,r=v()(n).call(n,t)?Y()([t]):E()(t);this.setState({selectedIndices:r(n)})}},{key:"handleChoiceSelect",value:function(e){var t=e.selectedIndex;this.state.answered||this.setState({selectedAnswer:t,chosen:!0})}},{key:"onSubmit",value:function(e,t){var n=this;t&&this.setState({answered:!0,retake:!1},function(){return n.props.onStep({id:e})})}},{key:"handleFillIn",value:function(e){this.setState({fillinValue:e})}},{key:"handleRetake",value:function(){var e=this;this.setState({retake:!0}),this.retakeAnimationStageOne=y()(function(){e.setState({answered:!1,chosen:!1,matches:{}},function(){e.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=y()(function(){e.setState({fillinValue:"",selectedAnswer:null,selectedIndices:[]},function(){e.getType()===de&&Object(Z.c)(e.wrapper),e.retakeAnimationStageTwo=null})},950)}},{key:"renderQuestionTitle",value:function(t,n){var r=t.title;return e.createElement(te.a,{className:"quiz-card__title brand--body brand--linkColor",value:r,component:"div",id:n})}},{key:"renderQuestion",value:function(t){var n,r=this.state,i=r.answered,o=r.retake,a=r.selectedAnswer,s=this.props,c=s.blockId,u=s.enableVideoPlaybackSpeed,l=s.labels,f=s.renderQuestionTitle,d=void 0===f?this.renderQuestionTitle:f,h=l.quizCorrect,m=l.quizIncorrect,v=l.quizSubmit,g=l.quizTakeAgain,y=t.id,b=t.media,_=t.settings,w=t.type,x=this.state.answered,k=this.getIsCorrect({item:t}),E=this.getCanSubmit({item:t}),S=p()(n=this.onSubmit).call(n,this,y,E),T=this.getFeedback({item:t,isCorrect:k,selectedAnswer:a}),O="q-".concat(y),C=K()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":i}),j=K()("block-knowledge__retake","brand--hoverColor",{"block-knowledge__retake--active":i&&!o});return e.createElement(ie.b,{key:y},d(t,O),e.createElement(ie.e,{blockId:c,enableVideoPlaybackSpeed:u,labels:l,media:b,opts:_}),e.createElement(ie.d,{type:w},this.renderType({isCorrect:k,item:t,onSubmit:S,canSubmit:E,questionHtmlId:O})),e.createElement(ie.a,{allowTabNavigation:!i,canProceed:x,canSubmit:E,onSubmit:S,quizSubmit:v}),e.createElement(ie.c,{allowTabNavigation:x,canProceed:x,feedback:T,hasFeedback:!!T,isCorrect:k,labels:l,quizCorrect:h,quizIncorrect:m,renderText:function(){return e.createElement(re.a,{className:"quiz-card__feedback-text brand--body brand--linkColor",allowTabNavigation:i,value:T})}}),e.createElement("div",{className:C},e.createElement("button",{"aria-hidden":!i,className:j,onClick:this.handleRetake,tabIndex:Object(Z.m)(i),type:"button"},e.createElement("div",{className:"block-knowledge__retake-content"},e.createElement("div",{className:"block-knowledge__retake-text brand--ui"},g),e.createElement("i",{className:"block-knowledge__retake-icon icon icon-reload"})))))}},{key:"getIsCorrect",value:function(e){var t=e.item,n=this.state,r=n.fillinValue,i=n.matches,o=n.selectedAnswer,a=n.selectedIndices,s=t.answers,c=t.type,u=t.isCaseSensitive;switch(c){case de:return Object(ce.g)({answers:Object(ce.e)(s),fillinValue:r,isCaseSensitive:u});case he:return Object(ee.b)(i);case me:return Object(ce.h)({answers:s,selectedIndices:a});case pe:default:return o===Object(ce.b)(s)}}},{key:"getType",value:function(){var e=this.props.items;return _e(e)}},{key:"getCanSubmit",value:function(e){var t=e.item,n=t.answers,r=this.state,i=r.answered,o=r.fillinValue,a=r.matches,s=r.selectedAnswer,c=r.selectedIndices;switch(t.type){case de:return B()(P()(o))&&B()(i);case he:return Object(ce.i)(a)===D()(n);case me:return B()(P()(c))&&B()(i);case pe:default:return B()(I()(s))&&B()(i)}}},{key:"getFeedback",value:function(e){var t=e.item,n=e.isCorrect,r=e.selectedAnswer,i=t.answers,o=t.feedback,a=t.feedbackCorrect,s=t.feedbackIncorrect;switch(t.feedbackType){case ge:return U()("",[r,"feedback"],i);case ye:return n?a:s;case ve:default:return o}}},{key:"getTypeLabel",value:function(){var e=this.getType();return e&&be[e]||"Knowledge Check"}},{key:"renderMultipleResponseOptionText",value:function(t,n){var r=n.title;return e.createElement(te.a,{className:"cursorAuto",value:r,onClick:ue.a,component:"span"})}},{key:"renderMultipleChoiceOptionText",value:function(t,n){var r=n.title;return e.createElement(te.a,{className:"quiz-multiple-choice-option__label brand--body cursorAuto",value:r,onClick:ue.a,component:"div"})}},{key:"renderType",value:function(t){var n=t.isCorrect,r=t.item,i=t.onSubmit,o=t.canSubmit,a=t.questionHtmlId,s=this.props,c=s.isLearner,u=s.labels,l=s.prefersKeyboardNavigation,f=s.renderMultipleResponseOptionText,d=void 0===f?this.renderMultipleResponseOptionText:f,h=s.renderMultipleChoiceOptionText,m=void 0===h?this.renderMultipleChoiceOptionText:h,v=this.state,g=v.answered,y=v.fillinValue,b=v.matches,_=v.retake,w=v.selectedAnswer,x=v.selectedIndices,k=r.answers,E=void 0===k?[]:k,S=r.type,T=u.quizAcceptableResponses,O=u.quizAnswerPlaceholder,C=Object(ee.i)(E),j=C,A=W()(C);switch(S){case de:return e.createElement(se.a,{allowTabNavigation:!0,isComplete:g,isCorrect:n,onChange:this.handleFillIn,onEnterToSubmit:i,options:Object(ce.e)(E),revealAnswers:!0,questionHtmlId:a,quizAcceptableResponses:T,quizAnswerPlaceholder:O,value:y});case he:return e.createElement(se.b,{allowTabNavigation:!0,answers:Object(ce.a)(S)(E),canSubmit:o,isActive:!0,isComplete:g,isLearner:c,matchIndices:j,matches:b,onEnterToSubmit:i,onMatch:this.handleMatch,prefersKeyboardNavigation:!0,revealAnswers:!0,titleIndices:A,isKnowledgeCheck:!0,isRetake:_});case me:return e.createElement(se.d,{allowTabNavigation:!0,correctIds:Object(ce.d)(E),isComplete:g,onChange:this.handleMultipleResponseChange,onEnterToSubmit:i,options:E,prefersKeyboardNavigation:l,renderOptionText:p()(d).call(d,this,r),revealAnswers:!0,selectedIndices:x});case pe:default:return e.createElement(se.c,{allowTabNavigation:!0,correctId:Object(ce.c)(E)||Object(ce.f)(E),isComplete:g,onChange:this.handleChoiceSelect,onEnterToSubmit:i,options:E,prefersKeyboardNavigation:l,questionHtmlId:a,renderOptionText:p()(m).call(m,this,r),revealAnswers:!0,selectedIndex:w})}}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,o=n.items,a=n.settings,s=this.state,c=s.answered,u=s.retake,l=a.paddingTop,f=a.paddingBottom,d=a.backgroundColor,h=a.entranceAnimation,p=K()("block-knowledge",{"block-knowledge--no-animation":!h,"block-knowledge--answered":c,"block-knowledge--retake":u}),m={backgroundColor:Object(Q.a)("",d),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*f,"px")},v=o.length>0?_()(o).call(o,0,1):[];return e.createElement("div",{className:p,"data-ba":fe.blockKnowledge,style:m,ref:function(e){t.block=e}},e.createElement(ne.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i},e.createElement("div",{className:"block-knowledge__container"},e.createElement("div",{className:"block-knowledge__row"},e.createElement("div",{className:"block-knowledge__col"},e.createElement("div",{"aria-label":this.getTypeLabel(),className:"block-knowledge__wrapper",ref:function(e){t.wrapper=e}},x()(v).call(v,function(e){return t.renderQuestion(e)})))))))}}],[{key:"propTypes",get:function(){return{lessonId:X.a.any,blockId:X.a.any,items:X.a.array,settings:X.a.object.isRequired,onStep:X.a.func}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(643);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";var r=n(118);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(243),i=n(90),o=n(278),a=n(372),s=n(1447),c=n(1448);function u(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(u).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" { "+Object.keys(e).reduce(function(t,n){return t.concat([n+":"+u(e[n])])},[]).join(", ")+" }":a(e)?' "'+e+'"':s(e)||c(e)?" "+e.toString():" "+e;var t}e.exports=u},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,i,o,a=n(2199),s=n(162),c=n(308),u=n(244),l=n(1170),f=n(1070),d=n(127).WeakMap;if(a){var h=new d,p=h.get,m=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},i=function(e){return p.call(h,e)||{}},o=function(e){return m.call(h,e)}}else{var g=l("state");f[g]=!0,r=function(e,t){return c(e,g,t),t},i=function(e){return u(e,g)?e[g]:{}},o=function(e){return u(e,g)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){e.exports=n(1234)},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return y}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return _});var r,i=n(12),o=n(26),a=n.n(o),s=n(64),c=n(54),u=n.n(c)()("rise/search/"),l=u("RESET_SEARCH"),f=u("SET_SEARCH_ACTIVE"),d=u("SET_SEARCH_ACTIVE_LESSONS"),h=u("SET_SEARCH_LESSONS"),p=u("SET_SEARCH_TERM"),m={active:!1,activeLessons:[],lessons:[],term:null};t.a=Object(s.c)(m,(r={},Object(i.a)(r,l,function(e,t){return t?a()("active",e.active,m):e}),Object(i.a)(r,f,function(e,t){return a()("active",t,e)}),Object(i.a)(r,d,function(e,t){return a()("activeLessons",t,e)}),Object(i.a)(r,h,function(e,t){return a()("lessons",t,e)}),Object(i.a)(r,p,function(e,t){return a()("term",t,e)}),r));var v=Object(s.a)(l),g=Object(s.a)(f),y=Object(s.a)(d),b=Object(s.a)(h),_=Object(s.a)(p)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(273);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return r(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t,n){var r=n(739),i=n(590);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports={}},function(e,t,n){var r=n(380);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(176),i=n(199),o=n(464),a=n(750),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(294),i=n(329),o=n(125)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(191),i=n(179),o=n(470);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t,n){var r=n(51),i=n(1333);e.exports=r(function(e){return i(e,[])})},function(e,t,n){var r=n(779),i=n(1354);function o(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:r,Tokenizer:n(780),ElementType:n(393),DomHandler:i,get FeedHandler(){return o("FeedHandler",n(1356))},get Stream(){return o("Stream",n(1357))},get WritableStream(){return o("WritableStream",n(782))},get ProxyHandler(){return o("ProxyHandler",n(1372))},get DomUtils(){return o("DomUtils",n(1373))},get CollectingHandler(){return o("CollectingHandler",n(1387))},DefaultHandler:i,get RssHandler(){return o("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new i(t);return new r(n,t).end(e),n.dom},parseFeed:function(t,n){var i=new e.exports.FeedHandler(n);return new r(i,n).end(t),i.dom},createDomStream:function(e,t,n){var o=new i(e,t,n);return new r(o,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(331).Buffer)},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var a,s=t.isAbsolute(n),c=n.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(a=c[l])?c.splice(l,1):".."===a?u++:u>0&&(""===a?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),r?(r.path=n,o(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),s=i(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var c="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,o(s)):c}t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=f(e.source,t.source);return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:f(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=f(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:f(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:f(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var c=r.path.lastIndexOf("/");c>=0&&(r.path=r.path.substring(0,c+1))}t=s(o(r),t)}return a(t)}},function(e,t,n){var r=n(96),i=n(140),o=n(125)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r=n(380),i=n(122);e.exports="process"==r(i.process)},function(e,t,n){"use strict";var r=n(140),i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(18),i=n(476),o=n(57),a=n(391);e.exports=r(function(e,t){return o(e+1,function(){var n=arguments[e];if(null!=n&&i(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(a(n)+' does not have a method named "'+t+'"')})})},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(194).proxy("Pred"),i=n(90),o=n(206);e.exports=function(e){return i(e)||o(r,e)}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,c){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,a,s,c],f=0;(u=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(83);function i(e,t){return r.where(e,function(e){return e.position===t})}function o(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r._tmpIndex_-i._tmpIndex_:r.weight-i.weight}),e.forEach(function(e){delete e._tmpIndex_})}e.exports={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)r=i[a],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var a=e.options.layout||{},s=r.options.toPadding(a.padding),c=s.left,u=s.right,l=s.top,f=s.bottom,d=i(e.boxes,"left"),h=i(e.boxes,"right"),p=i(e.boxes,"top"),m=i(e.boxes,"bottom"),v=i(e.boxes,"chartArea");o(d,!0),o(h,!1),o(p,!0),o(m,!1);var g=t-c-u,y=n-l-f,b=y/2,_=(t-g/2)/(d.length+h.length),w=(n-b)/(p.length+m.length),x=g,k=y,E=[];r.each(d.concat(h,p,m),function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?g:x,w),k-=t.height):(t=e.update(_,k),x-=t.width),E.push({horizontal:n,minSize:t,box:e})});var S=0,T=0,O=0,C=0;r.each(p.concat(m),function(e){if(e.getPadding){var t=e.getPadding();S=Math.max(S,t.left),T=Math.max(T,t.right)}}),r.each(d.concat(h),function(e){if(e.getPadding){var t=e.getPadding();O=Math.max(O,t.top),C=Math.max(C,t.bottom)}});var j=c,A=u,M=l,P=f;r.each(d.concat(h),F),r.each(d,function(e){j+=e.width}),r.each(h,function(e){A+=e.width}),r.each(p.concat(m),F),r.each(p,function(e){M+=e.height}),r.each(m,function(e){P+=e.height}),r.each(d.concat(h),function(e){var t=r.findNextWhere(E,function(t){return t.box===e}),n={left:0,right:0,top:M,bottom:P};t&&e.update(t.minSize.width,k,n)}),j=c,A=u,M=l,P=f,r.each(d,function(e){j+=e.width}),r.each(h,function(e){A+=e.width}),r.each(p,function(e){M+=e.height}),r.each(m,function(e){P+=e.height});var N=Math.max(S-j,0);j+=N,A+=Math.max(T-A,0);var I=Math.max(O-M,0);M+=I,P+=Math.max(C-P,0);var L=n-M-P,D=t-j-A;D===x&&L===k||(r.each(d,function(e){e.height=L}),r.each(h,function(e){e.height=L}),r.each(p,function(e){e.fullWidth||(e.width=D)}),r.each(m,function(e){e.fullWidth||(e.width=D)}),k=L,x=D);var R=c+N,B=l+I;r.each(d.concat(p),U),R+=x,B+=k,r.each(h,U),r.each(m,U),e.chartArea={left:j,top:M,right:j+x,bottom:M+k},r.each(v,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(x,k)})}function F(e){var t=r.findNextWhere(E,function(t){return t.box===e});if(t)if(e.isHorizontal()){var n={left:Math.max(j,S),right:Math.max(A,T),top:0,bottom:0};e.update(e.fullWidth?g:x,y/2,n)}else e.update(t.minSize.width,k)}function U(e){e.isHorizontal()?(e.left=e.fullWidth?c:j,e.right=e.fullWidth?t-u:j+x,e.top=B,e.bottom=B+e.height,B=e.bottom):(e.left=R,e.right=R+e.width,e.top=M,e.bottom=M+k,R=e.right)}}}},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83),a=n(406);function s(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(e[t].label);return r}function c(e,t,n){var r=e.getPixelForTick(t);return n&&(r-=0===t?(e.getPixelForTick(1)-r)/2:(r-e.getPixelForTick(t-1))/2),r}function u(e,t,n){return o.isArray(t)?o.longestText(e,n,t):e.measureText(t).width}function l(e){var t=o.valueOrDefault,n=r.global,i=t(e.fontSize,n.defaultFontSize),a=t(e.fontStyle,n.defaultFontStyle),s=t(e.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:s,font:o.fontString(i,a,s)}}function f(e){return o.options.toLineHeight(o.valueOrDefault(e.lineHeight,1.2),o.valueOrDefault(e.fontSize,r.global.defaultFontSize))}r._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:a.formatters.values,minor:{},major:{}}}),e.exports=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){o.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,i,a,s,c,u,l=this;for(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=o.extend({left:0,right:0,top:0,bottom:0},n),l.longestTextCache=l.longestTextCache||{},l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),c=l.buildTicks()||[],l.afterBuildTicks(),l.beforeTickToLabelConversion(),a=l.convertTicksToLabels(c)||l.ticks,l.afterTickToLabelConversion(),l.ticks=a,r=0,i=a.length;r<i;++r)s=a[r],(u=c[r])?u.label=s:c.push(u={label:s,major:!1});return l._ticks=c,l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l.afterUpdate(),l.minSize},afterUpdate:function(){o.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){o.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){o.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){o.callback(this.options.beforeDataLimits,[this])},determineDataLimits:o.noop,afterDataLimits:function(){o.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){o.callback(this.options.beforeBuildTicks,[this])},buildTicks:o.noop,afterBuildTicks:function(){o.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){o.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){o.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){o.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,r=s(e._ticks),i=l(n);t.font=i.font;var a=n.minRotation||0;if(r.length&&e.options.display&&e.isHorizontal())for(var c,u=o.longestText(t,i.font,r,e.longestTextCache),f=u,d=e.getPixelForTick(1)-e.getPixelForTick(0)-6;f>d&&a<n.maxRotation;){var h=o.toRadians(a);if(c=Math.cos(h),Math.sin(h)*u>e.maxHeight){a--;break}a++,f=c*u}e.labelRotation=a},afterCalculateTickRotation:function(){o.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){o.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=s(e._ticks),r=e.options,i=r.ticks,a=r.scaleLabel,c=r.gridLines,d=r.display,h=e.isHorizontal(),p=l(i),m=r.gridLines.tickMarkLength;if(t.width=h?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:d&&c.drawTicks?m:0,t.height=h?d&&c.drawTicks?m:0:e.maxHeight,a.display&&d){var v=f(a)+o.options.toPadding(a.padding).height;h?t.height+=v:t.width+=v}if(i.display&&d){var g=o.longestText(e.ctx,p.font,n,e.longestTextCache),y=o.numberOfLabelLines(n),b=.5*p.size,_=e.options.ticks.padding;if(h){e.longestLabelWidth=g;var w=o.toRadians(e.labelRotation),x=Math.cos(w),k=Math.sin(w)*g+p.size*y+b*(y-1)+b;t.height=Math.min(e.maxHeight,t.height+k+_),e.ctx.font=p.font;var E=u(e.ctx,n[0],p.font),S=u(e.ctx,n[n.length-1],p.font);0!==e.labelRotation?(e.paddingLeft="bottom"===r.position?x*E+3:x*b+3,e.paddingRight="bottom"===r.position?x*b+3:x*S+3):(e.paddingLeft=E/2+3,e.paddingRight=S/2+3)}else i.mirror?g=0:g+=_+b,t.width=Math.min(e.maxWidth,t.width+g),e.paddingTop=p.size/2,e.paddingBottom=p.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){o.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(o.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:o.noop,getPixelForValue:o.noop,getValueForPixel:o.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var r=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),i=r*e+t.paddingLeft;n&&(i+=r/2);var o=t.left+Math.round(i);return o+=t.isFullWidth()?t.margins.left:0}var a=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(a/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,r=t.left+Math.round(n);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,i,a=this,s=a.isHorizontal(),c=a.options.ticks.minor,u=e.length,l=o.toRadians(a.labelRotation),f=Math.cos(l),d=a.longestLabelWidth*f,h=[];for(c.maxTicksLimit&&(i=c.maxTicksLimit),s&&(t=!1,(d+c.autoSkipPadding)*u>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((d+c.autoSkipPadding)*u/(a.width-(a.paddingLeft+a.paddingRight)))),i&&u>i&&(t=Math.max(t,Math.floor(u/i)))),n=0;n<u;n++)r=e[n],(t>1&&n%t>0||n%t==0&&n+t>=u)&&n!==u-1&&delete r.label,h.push(r);return h},draw:function(e){var t=this,n=t.options;if(n.display){var i=t.ctx,a=r.global,s=n.ticks.minor,u=n.ticks.major||s,d=n.gridLines,h=n.scaleLabel,p=0!==t.labelRotation,m=t.isHorizontal(),v=s.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),g=o.valueOrDefault(s.fontColor,a.defaultFontColor),y=l(s),b=o.valueOrDefault(u.fontColor,a.defaultFontColor),_=l(u),w=d.drawTicks?d.tickMarkLength:0,x=o.valueOrDefault(h.fontColor,a.defaultFontColor),k=l(h),E=o.options.toPadding(h.padding),S=o.toRadians(t.labelRotation),T=[],O=t.options.gridLines.lineWidth,C="right"===n.position?t.left:t.right-O-w,j="right"===n.position?t.left+w:t.right,A="bottom"===n.position?t.top+O:t.bottom-w-O,M="bottom"===n.position?t.top+O+w:t.bottom+O;if(o.each(v,function(r,i){if(!o.isNullOrUndef(r.label)){var u,l,f,h,g,y,b,_,x,k,E,P,N,I,L=r.label;i===t.zeroLineIndex&&n.offset===d.offsetGridLines?(u=d.zeroLineWidth,l=d.zeroLineColor,f=d.zeroLineBorderDash,h=d.zeroLineBorderDashOffset):(u=o.valueAtIndexOrDefault(d.lineWidth,i),l=o.valueAtIndexOrDefault(d.color,i),f=o.valueOrDefault(d.borderDash,a.borderDash),h=o.valueOrDefault(d.borderDashOffset,a.borderDashOffset));var D="middle",R="middle",B=s.padding;if(m){var F=w+B;"bottom"===n.position?(R=p?"middle":"top",D=p?"right":"center",I=t.top+F):(R=p?"middle":"bottom",D=p?"left":"center",I=t.bottom-F);var U=c(t,i,d.offsetGridLines&&v.length>1);U<t.left&&(l="rgba(0,0,0,0)"),U+=o.aliasPixel(u),N=t.getPixelForTick(i)+s.labelOffset,g=b=x=E=U,y=A,_=M,k=e.top,P=e.bottom+O}else{var q,z="left"===n.position;s.mirror?(D=z?"left":"right",q=B):(D=z?"right":"left",q=w+B),N=z?t.right-q:t.left+q;var H=c(t,i,d.offsetGridLines&&v.length>1);H<t.top&&(l="rgba(0,0,0,0)"),H+=o.aliasPixel(u),I=t.getPixelForTick(i)+s.labelOffset,g=C,b=j,x=e.left,E=e.right+O,y=_=k=P=H}T.push({tx1:g,ty1:y,tx2:b,ty2:_,x1:x,y1:k,x2:E,y2:P,labelX:N,labelY:I,glWidth:u,glColor:l,glBorderDash:f,glBorderDashOffset:h,rotation:-1*S,label:L,major:r.major,textBaseline:R,textAlign:D})}}),o.each(T,function(e){if(d.display&&(i.save(),i.lineWidth=e.glWidth,i.strokeStyle=e.glColor,i.setLineDash&&(i.setLineDash(e.glBorderDash),i.lineDashOffset=e.glBorderDashOffset),i.beginPath(),d.drawTicks&&(i.moveTo(e.tx1,e.ty1),i.lineTo(e.tx2,e.ty2)),d.drawOnChartArea&&(i.moveTo(e.x1,e.y1),i.lineTo(e.x2,e.y2)),i.stroke(),i.restore()),s.display){i.save(),i.translate(e.labelX,e.labelY),i.rotate(e.rotation),i.font=e.major?_.font:y.font,i.fillStyle=e.major?b:g,i.textBaseline=e.textBaseline,i.textAlign=e.textAlign;var n=e.label;if(o.isArray(n))for(var r=n.length,a=1.5*y.size,c=t.isHorizontal()?0:-a*(r-1)/2,u=0;u<r;++u)i.fillText(""+n[u],0,c),c+=a;else i.fillText(n,0,0);i.restore()}}),h.display){var P,N,I=0,L=f(h)/2;if(m)P=t.left+(t.right-t.left)/2,N="bottom"===n.position?t.bottom-L-E.bottom:t.top+L+E.top;else{var D="left"===n.position;P=D?t.left+L+E.top:t.right-L-E.top,N=t.top+(t.bottom-t.top)/2,I=D?-.5*Math.PI:.5*Math.PI}i.save(),i.translate(P,N),i.rotate(I),i.textAlign="center",i.textBaseline="middle",i.fillStyle=x,i.font=k.font,i.fillText(h.labelString,0,0),i.restore()}if(d.drawBorder){i.lineWidth=o.valueAtIndexOrDefault(d.lineWidth,0),i.strokeStyle=o.valueAtIndexOrDefault(d.color,0);var R=t.left,B=t.right+O,F=t.top,U=t.bottom+O,q=o.aliasPixel(i.lineWidth);m?(F=U="top"===n.position?t.bottom:t.top,F+=q,U+=q):(R=B="left"===n.position?t.right:t.left,R+=q,B+=q),i.beginPath(),i.moveTo(R,F),i.lineTo(B,U),i.stroke()}}}})},function(e,t,n){"use strict";var r=n(83);e.exports={formatters:{values:function(e){return r.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var o=r.log10(Math.abs(i)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=r.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(o))}else{var c=-1*Math.floor(o);c=Math.max(Math.min(c,20),0),a=e.toFixed(c)}else a="0";return a},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(r.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}}},function(e,t,n){var r=n(505),i=n(2042),o=n(2043),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(162);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(61),i=n(311),o=n(17);e.exports=r(function(e,t,n){return i(o(t),e,n)})},function(e,t,n){var r=n(51),i=n(519);e.exports=r(function(e){return i(function(){return Array.prototype.slice.call(arguments,0)},e)})},function(e,t,n){e.exports=n(1237)},function(e,t,n){var r=n(51),i=n(1294);e.exports=r(i)},function(e,t,n){var r=n(18),i=n(805);e.exports=r(function(e,t){if(!i(e)||!i(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n})},function(e,t,n){var r=n(51),i=n(57),o=n(283),a=n(183),s=n(109);e.exports=r(function(e){return i(s(o,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})})},function(e,t,n){var r=n(51),i=n(57),o=n(283),a=n(183),s=n(109);e.exports=r(function(e){return i(s(o,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e>=t})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(47),i=n.n(r),o=n(159),a=n.n(o),s=n(425);function c(e,t){var n;if(e){if("string"==typeof e)return Object(s.a)(e,t);var r=i()(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?a()(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(s.a)(e,t):void 0}}},function(e,t,n){var r=n(382),i=n(18);e.exports=i(r("forEach",function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t}))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(1734),o=n(90),a=n(173);e.exports=r(function(e,t,n){if(!o(e)||!o(t))throw new TypeError("bimap: Functions required for first two arguments");if(!i(n))throw new TypeError("bimap: Bifunctor required for third argument");return(n[a.bimap]||n.bimap).call(n,e,t)})},function(e,t,n){(function(t,r){var i;
/**
* [js-htmlencode]{@link https://github.com/emn178/js-htmlencode}
*
* @version 0.3.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/
/**
* [js-htmlencode]{@link https://github.com/emn178/js-htmlencode}
*
* @version 0.3.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/
!function(){"use strict";var o="object"==typeof window?window:{};!o.JS_HTMLENCODE_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(o=r);var a=!o.JS_HTMLENCODE_NO_COMMON_JS&&"object"==typeof e&&e.exports,s=n(637),c={" ":" ","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©","ª":"ª","«":"«","¬":"¬","­":"","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´","µ":"µ","¶":"¶","·":"·","¸":"¸","¹":"¹","º":"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","×":"×","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","÷":"÷","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ",""":'"',"&":"&","<":"<",">":">","'":"'","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"","‍":"","‎":"","‏":"","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","⟨":"〈","⟩":"〉","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"},u=function(e){if("#"!==e.charAt(1))return c[e]||e;var t,n=e.charAt(2);return"x"===n||"X"===n?(n=e.substring(3,e.length-1),t=parseInt(n,16)):(n=e.substring(2,e.length-1),t=parseInt(n)),isNaN(t)?e:String.fromCharCode(t)},l=function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},f=function(e){return e.replace(/&#?\w+;/g,u)},d=l;l.htmlEncode=l,l.htmlDecode=f,a?e.exports=d:(o.htmlEncode=l,o.htmlDecode=f,s&&(void 0===(i=function(){return d}.call(d,n,d,e))||(e.exports=i)))}()}).call(this,n(277),n(99))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(4),h=n.n(d),p=n(86);function m(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var v=function(t){Object(u.a)(r,t);var n=m(r);function r(e){var t,i,o,s,u,l;return Object(a.a)(this,r),(l=n.call(this,e)).handleTransition=h()(t=l.handleTransition).call(t,Object(c.a)(l)),l.onEnter=h()(i=l.onEnter).call(i,Object(c.a)(l)),l.onEntered=h()(o=l.onEntered).call(o,Object(c.a)(l)),l.onExit=h()(s=l.onExit).call(s,Object(c.a)(l)),l.onExited=h()(u=l.onExited).call(u,Object(c.a)(l)),l}return Object(s.a)(r,[{key:"handleTransition",value:function(e,t){var n=this.transitionState;"entering"===n?this.onEnter(t):"exiting"===n&&this.onExit(t)}},{key:"onEnter",value:function(e){var t=this.child;t&&t.componentWillEnter?t.componentWillEnter(e):e()}},{key:"onEntered",value:function(){var e=this.child;e&&e.componentDidEnter&&e.componentDidEnter()}},{key:"onExit",value:function(e){var t=this.child;t&&t.componentWillExit?t.componentWillExit(e):e()}},{key:"onExited",value:function(){var e=this.child;e&&e.componentDidExit&&e.componentDidExit()}},{key:"render",value:function(){var t=this,n=this.props.children;return e.createElement(p.b,Object(o.a)({addEndListener:this.handleTransition,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0},this.props),function(r){return t.transitionState=r,n&&e.cloneElement(e.Children.only(n),{ref:function(e){return t.child=e}})})}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";var r=n(516),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=c(t),m=c(n),v=0;v<a.length;++v){var g=a[v];if(!(o[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=d(n,g);try{u(t,g,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return P});var r=n(358),i=n.n(r),o=n(195),a=n.n(o),s=n(128),c=n.n(s),u=n(346),l=n.n(u),f=n(139),d=n.n(f),h=n(4),p=n.n(h),m=n(1092),v=n.n(m),g=n(197),y=n.n(g),b=n(553),_=n.n(b),w=n(1093),x=n.n(w),k=n(149),E=n.n(k),S=n(257),T=n.n(S),O=n(286),C=n.n(O),j=n(95);function A(e,t){return void 0===t?e:t}y()(x()(function(e,t){var n,r,o=t.split("=");return v()(i()(n=o[0]).call(n),i()(r=o[1]).call(r),e)},{}),T()(/; */));function M(e,t){var n,r,o=a()(t).call(t,":"),s=i()(n=t.substr(0,o)).call(n).toLowerCase(),c=i()(r=t.substr(o+1)).call(r);return s&&(e[s]=e[s]?e[s]+", "+c:c),e}function P(e){var t,n=e.data,r=A(_.a,e.deserialize),i=A({},e.headers),o=A(!1,e.json),a=A(!1,e.jwt),s=A(null,e.token),u=A("GET",e.method),f=e.onUploadProgress,h=A(_.a,e.serialize),m=e.url,v=A(!1,e.withCredentials),g=new XMLHttpRequest;if(g.withCredentials=v,o&&(r=JSON.parse,h=l.a,i["Content-Type"]="application/json"),a){var y=s||Object(j.d)();i.Authorization="Bearer "+y}"GET"===u&&n&&(m+="?"+function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}(n));var b=new d.a(function(e,t){for(var o in g.addEventListener("abort",t),g.addEventListener("error",t),g.addEventListener("load",function(){var n,i;g.status>=400?t(r(g.response)):e({body:r(g.response),headers:(n=g.getAllResponseHeaders(),n?c()(i=n.split("\n")).call(i,M,{}):{}),status:g.status})}),g.upload&&"function"==typeof f&&g.upload.addEventListener("progress",f),g.open(u,m),i)g.setRequestHeader(o,i[o]);"GET"!==u&&n?g.send(h(n)):g.send()});return b.abort=p()(t=g.abort).call(t,g),b}y()(C.a,E()(""))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(821)},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return V});var r=n(188),i=n.n(r),o=n(26),a=n.n(o),s=n(101),c=n.n(s),u=n(8),l=n.n(u),f=n(258),d=n.n(f),h=n(55),p=n.n(h),m=n(48),v=n.n(m),g=n(32),y=n.n(g),b=n(84),_=n.n(b),w=n(53),x=n.n(w),k=n(94),E=n.n(k),S=n(227),T=n.n(S),O=n(25),C=n.n(O),j=n(15),A=n.n(j),M=n(19),P=n.n(M),N=n(109),I=n.n(N),L=n(228),D=n.n(L),R=n(76),B=n.n(R),F=n(42),U=n.n(F),q=c()(y.a),z=i()(I.a),H=function(e){var t=e.key,n=e.percent;return function(e){return a()(n,C()(A()("items"),B.a,p()(P()(t,!0)),x.a,v()(d.a)(l()(x.a,_.a,A()("items"))(e)),T()(100),Math.round)(e),e)}},W=(z(function e(t,n,r){var i=n.id,o=n.items;return C()(a()(i,{index:r}),U()(function(){return q(o)},function(t){return D()(E()([i,"items"]),z(e,{},o))(t)}))(t)},{}),H({key:"isComplete",percent:"percentComplete"})),V=H({key:"isViewed",percent:"percentViewed"})},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return Ie}),n.d(t,"a",function(){return Be}),n.d(t,"b",function(){return Ue});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(7),x=n(12),k=n(9),E=n(10),S=n(11),T=n(14),O=n(6),C=n(98),j=n.n(C),A=n(128),M=n.n(A),P=n(5),N=n.n(P),I=n(16),L=n.n(I),D=n(4),R=n.n(D),B=n(112),F=n.n(B),U=n(1103),q=n.n(U),z=n(47),H=n.n(z),W=(n(1816),n(1)),V=n.n(W),Y=n(256),G=n.n(Y),K=n(53),$=n.n(K),X=n(285),Q=n.n(X),Z=n(116),J=n.n(Z),ee=n(227),te=n.n(ee),ne=n(662),re=n.n(ne),ie=n(39),oe=n.n(ie),ae=n(79),se=n.n(ae),ce=n(48),ue=n.n(ce),le=n(25),fe=n.n(le),de=n(185),he=n(41),pe=n(2),me=n.n(pe),ve=n(103),ge=n(538),ye=n(63),be=n(1120),_e=n.n(be),we=n(150),xe=n.n(we),ke=n(89),Ee=n(56),Se=n(43),Te=n(23),Oe=n(20),Ce=n(104),je=n(97);function Ae(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=Ae(Object(r),!0)).call(n,function(t){Object(x.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=Ae(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(O.a)(e);if(t){var o=Object(O.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(T.a)(this,n)}}var Ne=n(65).b.blocks,Ie=function(t){Object(S.a)(r,t);var n=Pe(r);function r(){return Object(k.a)(this,r),n.apply(this,arguments)}return Object(E.a)(r,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.blockId,i=t.editable,o=t.isLearner,a=t.items,s=t.lessonId,c=t.onStep,u=t.settings,l=t.enableVideoPlaybackSpeed,f=u.paddingTop,d=u.paddingBottom,h=u.backgroundColor,p=u.entranceAnimation,m=u.accordionBehavior,v=void 0===m?"keepOpen":m,g=me()("blocks-accordion",{"blocks-accordion--no-animation":!p}),y={backgroundColor:Object(ye.a)("",h),paddingTop:"".concat(10*f,"px"),paddingBottom:"".concat(10*d,"px")};return e.createElement("div",{className:g,"data-ba":Ne.blockAccordion,style:y},e.createElement(Ee.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:o,duration:.75},e.createElement("div",{className:"blocks-accordion__container"},e.createElement("div",{className:"blocks-accordion__row"},e.createElement("div",{className:"blocks-accordion__col"},e.createElement(Re,{keepOpen:"keepOpen"===v,lessonId:s,blockId:r,items:a,editable:i,settings:u,onStep:c,enableVideoPlaybackSpeed:l}))))))}}],[{key:"propTypes",get:function(){return{lessonId:V.a.any,blockId:V.a.any,items:V.a.array,settings:V.a.object.isRequired,editable:V.a.bool,onStep:V.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),r}(e.Component),Le={isOpen:!1,isActive:!1},De=function(e,t){return M()(t).call(t,function(e){return function(t,n){var r=n.id;return j()({},t,Object(x.a)({},r,e[r]||Le))}}(e),{})},Re=function(t){Object(S.a)(r,t);var n=Pe(r);function r(){var e,t;Object(k.a)(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=(t=n.call.apply(n,N()(e=[this]).call(e,o))).props.items;return t.state={itemStatusMap:De({},s)},t}return Object(E.a)(r,[{key:"componentWillReceiveProps",value:function(e){var t=e.items,n=$()(t)!==$()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference(t):n&&this.rebuildItemStatusMap(t)}},{key:"updateMapForOneAtATimePreference",value:function(){var e=this.state.itemStatusMap,t=this.props.items,n=re()(function(t){return e[t.id].isOpen},t);if(n){var r,i=(r=n.id,function(e,t){return{isOpen:t==r,isActive:e.isActive}});this.setState({itemStatusMap:J()(i,e)})}}},{key:"rebuildItemStatusMap",value:function(e){var t=this.state.itemStatusMap;this.setState({itemStatusMap:De(t,e)})}},{key:"handleItemClick",value:function(e){var t=this.props,n=t.items,r=t.keepOpen,i=t.onStep,o=this.state.itemStatusMap,a=function(e,t){return function(n,r){var i=e==r,o=i?!n.isOpen:n.isOpen,a=i&&!n.isOpen;return{isOpen:t?o:a,isActive:i}}}(n[e].id,r);this.setState({itemStatusMap:J()(a,o)}),open&&i(n[e])}},{key:"render",value:function(){var t=this,n=this.props,r=n.items,i=n.settings,o=n.editable,a=n.labels,s=n.lessonId,c=n.blockId,u=n.enableVideoPlaybackSpeed,l=this.state.itemStatusMap,f=i.zoomOnClick;return e.createElement("div",{className:"blocks-accordion__wrapper"},L()(r).call(r,function(n,r){var i;return e.createElement(Be,{blockId:c,disableZoom:!f,editable:o,focused:l[n.id].isActive,index:r,item:Me(Me({},n),{},{enableVideoPlaybackSpeed:u}),key:n.id,labels:a,lessonId:s,onClick:R()(i=t.handleItemClick).call(i,t,r),open:l[n.id].isOpen})}))}}],[{key:"propTypes",get:function(){return{lessonId:V.a.any,blockId:V.a.any,items:V.a.array,settings:V.a.object.isRequired,editable:V.a.bool,keepOpen:V.a.bool,onStep:V.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",keepOpen:!1,onStep:Function.prototype}}}]),r}(e.Component),Be=function(t){Object(S.a)(r,t);var n=Pe(r);function r(){var e,t,i,o,a;Object(k.a)(this,r);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return(a=n.call.apply(n,N()(e=[this]).call(e,c))).toggle=R()(t=a.toggle).call(t,Object(w.a)(a)),a.renderDescription=R()(i=a.renderDescription).call(i,Object(w.a)(a)),a.renderTitle=R()(o=a.renderTitle).call(o,Object(w.a)(a)),a}return Object(E.a)(r,[{key:"componentDidUpdate",value:function(){if(this.props.open){var e=this.content;e&&(e.offsetHeight,e.classList.add("blocks-accordion__content--visible"))}}},{key:"toggle",value:function(e){var t=this.props,n=t.blockId,r=t.index,i=he.a.playerId;open&&i&&F()(i).call(i,n)&&q()(i).call(i,r)&&he.a.pause(),this.props.onClick(),e.preventDefault()}},{key:"renderTitle",value:function(t){var n=this.props.item.title;return e.createElement(Se.a,{id:t,className:"blocks-accordion__title brand--head brand--linkColor",value:n})}},{key:"renderDescription",value:function(){var t=this.props.item.description,n=void 0===t?"":t;return e.createElement(ke.a,{className:"blocks-accordion__description brand--body brand--linkColor",value:n||"",component:"div"})}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.blockId,o=r.editable,a=r.disableZoom,s=r.index,c=r.item,u=r.focused,l=r.labels,f=r.open,d=r.renderDescription,h=void 0===d?this.renderDescription:d,p=r.renderTitle,m=void 0===p?this.renderTitle:p,v=c.settings,g=void 0===v?{}:v,y=c.media,b=void 0===y?{}:y,_=c.id,w=c.enableVideoPlaybackSpeed,x=j()({},g,{disableZoom:a,fullEmbed:!0}),k=me()("blocks-accordion__item",{"blocks-accordion__item--closed":!f}),E=me()("blocks-accordion__header",{"brand--border":f&&u}),S=me()("blocks-accordion__content",{"blocks-accordion__content--will-enter":f,"brand--border":f&&u}),T=me()("blocks-accordion__media","blocks-accordion__".concat(Fe(b))),O="title-".concat(_),C="panel-".concat(_);return e.createElement("section",{className:k},e.createElement("div",{role:Ce.c,"aria-level":"2"},e.createElement("div",{"aria-controls":C,"aria-expanded":f,"aria-labelledby":O,className:E,onClick:this.toggle,onKeyDown:!o&&Object(Te.a)(this.toggle)||null,role:"button",tabIndex:Oe.a},m(O),e.createElement("span",{className:"blocks-accordion__toggler"},f?"–":"+"))),e.createElement("section",{"aria-labelledby":O,className:S,id:C,ref:function(e){n.content=e}},h(),e.createElement("div",{className:T},e.createElement(de.a,{className:"blocks-accordion__img",index:N()(t="".concat(i,"-")).call(t,s),labels:l,media:b,opts:x,enableVideoPlaybackSpeed:w}))))}}],[{key:"propTypes",get:function(){return{lessonId:V.a.any,blockId:V.a.any,index:V.a.number.isRequired,item:V.a.object.isRequired,editable:V.a.bool,open:V.a.bool,focused:V.a.bool,disableZoom:V.a.bool,onClick:V.a.func,labels:V.a.object}}},{key:"defaultProps",get:function(){return{editable:!1,onClick:function(){},lessonId:"",blockId:"",open:null}}}]),r}(e.Component),Fe=function(e){var t=e.image,n=e.embed,r=e.video,i=e.audio;return t?"image":n?"embed":r?"video":i?"audio":"image"},Ue=function(t){Object(S.a)(r,t);var n=Pe(r);function r(){var e,t,i;Object(k.a)(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];(i=n.call.apply(n,N()(e=[this]).call(e,a))).renderDescription=R()(t=i.renderDescription).call(t,Object(w.a)(i));var c=i.props.activeIndex;return i.state={activeIndex:c,activeTouch:!1,activeMouse:!1},i.tabs=[],i.tabPanels=[],i}return Object(E.a)(r,[{key:"componentDidMount",value:function(){var e,t;this.setContentActive(),this.handleControls(),this.tabsHeaderEl.addEventListener("scroll",this.tabScroll=xe()(R()(e=this.handleControls).call(e,this),50)),window.addEventListener("resize",this.tabResize=xe()(R()(t=this.handleControls).call(t,this),100))}},{key:"componentDidUpdate",value:function(){this.setContentActive(),this.handleControls()}},{key:"componentWillUnmount",value:function(){this.sweetScroll&&this.sweetScroll.destroy(),this.tabsHeaderEl.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize)}},{key:"setContentActive",value:function(){var e=this.container.querySelector(".blocks-tabs__content-item--will-enter");e&&(e.offsetHeight,e.classList.add("blocks-tabs__content-item--active"))}},{key:"setActive",value:function(e,t){t.preventDefault(),this.setState({activeIndex:e});var n=this.props.blockId,r=he.a.playerId;this.state.activeIndex!=e&&r&&F()(r).call(r,n)&&he.a.pause(),this.props.onStep(this.props.items[e])}},{key:"handleControls",value:function(){this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(0===this.tabsHeaderEl.scrollLeft?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}},{key:"handleMouseEnter",value:function(){this.state.activeTouch||this.setState({activeMouse:!0})}},{key:"handleMouseLeave",value:function(){this.setState({activeMouse:!1})}},{key:"handleTouchStart",value:function(){this.setState({activeTouch:!0})}},{key:"scrollTabs",value:function(e){var t=this.tabsHeaderEl.offsetWidth,n=this.tabsHeaderEl.scrollLeft,r={};this.sweetScroll||(this.sweetScroll=new _e.a({duration:600,verticalScroll:!1,horizontalScroll:!0},this.tabsHeaderEl)),r="next"===e?{left:n+.8*t}:{left:n-.8*t},this.sweetScroll.to(r)}},{key:"arrowPrevInset",value:function(e){var t=this.arrowPrevEl.getBoundingClientRect();return t.right-e+(t.left-e)}},{key:"focusTab",value:function(e){var t=e.target,n=document.querySelector(".blocks-tabs__header"),r=n.getBoundingClientRect(),i=r.left,o=r.right,a=t.getBoundingClientRect(),s=a.left;if(a.right>o||s<i){var c=this.arrowPrevInset(i);n.scrollLeft=s+n.scrollLeft-i-c}}},{key:"handleTabKeyDown",value:function(e,t){var n=this,r=Object(je.a)(function(){var r=Object(Oe.g)({list:n.tabs,currentIndex:e});n.setActive(r,t)}),i=Object(je.a)(function(){var r=Object(Oe.f)({list:n.tabs,currentIndex:e});n.setActive(r,t)});oe()([[Te.g,r],[Te.i,i]])(t)}},{key:"renderHeader",value:function(t){var n,r,i,o,a,s=this,c=this.state,u=c.activeIndex,l=c.activeTouch,f=c.activeMouse,d=me()("blocks-tabs__header-wrap",{touch:l,mouse:f});return e.createElement("div",{className:d,onMouseEnter:R()(n=this.handleMouseEnter).call(n,this),onMouseLeave:R()(r=this.handleMouseLeave).call(r,this),onTouchStart:R()(i=this.handleTouchStart).call(i,this)},e.createElement("div",{className:"blocks-tabs__header",id:"tabsheader",ref:function(e){s.tabsHeaderEl=e},role:Ce.e},L()(t).call(t,function(n,r){var i,o,a,c=n.title,l=1===t.length||r===u,f=me()("blocks-tabs__header-item brand--head",{"brand--color":l,"blocks-tabs__header-item--active":l}),d=fe()(Q()(/<mark>/),$.a,te()(13),G()(30))(c),h=fe()(ve.d,ue()(se()(ge.a))(d),function(e){return"<span>".concat(e,"</span>")})(c),p="item-header-".concat(r),m=s.tabPanels[r];return e.createElement("a",{"aria-controls":m?m.id:null,"aria-selected":l,className:f,dangerouslySetInnerHTML:{__html:h},href:"#",id:p,key:p,onClick:R()(i=s.setActive).call(i,s,r),onKeyDown:R()(o=s.handleTabKeyDown).call(o,s,r),onFocus:R()(a=s.focusTab).call(a,s),ref:function(e){s.tabs[r]=e},role:Ce.g,tabIndex:Object(Oe.m)(l)})})),e.createElement("div",{className:"blocks-tabs__controls",ref:function(e){s.tabControls=e}},e.createElement("div",{className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",ref:function(e){s.arrowPrevEl=e},onClick:R()(o=this.scrollTabs).call(o,this,"previous")},e.createElement("i",{className:"icon icon-chevron-left"})),e.createElement("div",{className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",ref:function(e){s.arrowNextEl=e},onClick:R()(a=this.scrollTabs).call(a,this,"next")},e.createElement("i",{className:"icon icon-chevron-right"}))))}},{key:"renderDescription",value:function(t){var n=t.description;return e.createElement(ke.a,{className:"blocks-tabs__description brand--body brand--linkColor",value:n,component:"div"})}},{key:"renderItem",value:function(t,n,r){var i,o=this,a=this.props,s=a.blockId,c=a.renderDescription,u=void 0===c?this.renderDescription:c,l=this.state.activeIndex===n,f=t.id,d=t.media,h=void 0===d?{}:d,p=t.settings,m=void 0===p?{}:p,v=t.enableVideoPlaybackSpeed,g=me()("blocks-tabs__content-item",{"blocks-tabs__content-item--will-enter":l}),y=j()({},m,{disableZoom:r,fullEmbed:!0}),b=this.tabs[n],_="item-".concat(f);return e.createElement("div",{"aria-labelledby":b?b.id:null,className:g,id:_,key:_,ref:function(e){o.tabPanels[n]=e},role:Ce.f},u(t),e.createElement("div",{className:"blocks-tabs__".concat(Fe(h))},e.createElement(de.a,{className:"blocks-tabs__img",index:N()(i="".concat(s,"-")).call(i,n),media:h,opts:y,enableVideoPlaybackSpeed:v})))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,o=n.items,a=n.settings,s=n.enableVideoPlaybackSpeed,c=a.paddingTop,u=a.paddingBottom,l=a.backgroundColor,f=a.entranceAnimation,d=a.zoomOnClick,h=me()("blocks-tabs",{"blocks-tabs--no-animation":!f}),p={backgroundColor:Object(ye.a)("",l),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},m=o.length>0?H()(o).call(o,0,30):[],v=me()("blocks-tabs__container",{"blocks-tabs--single":1===m.length});return e.createElement("div",{className:h,"data-ba":Ne.blockTabs,style:p},e.createElement(Ee.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i,offset:350},e.createElement("div",{className:v},e.createElement("div",{className:"blocks-tabs__row"},e.createElement("div",{className:"blocks-tabs__col"},e.createElement("div",{className:"blocks-tabs__wrapper",ref:function(e){t.container=e}},this.renderHeader(m),e.createElement("div",{className:"blocks-tabs__content"},L()(m).call(m,function(e,n){return t.renderItem(Me(Me({},e),{},{enableVideoPlaybackSpeed:s}),n,!d)}))))))))}}],[{key:"propTypes",get:function(){return{lessonId:V.a.any,blockId:V.a.any,items:V.a.array,settings:V.a.object.isRequired,activeIndex:V.a.number,editable:V.a.bool,onStep:V.a.func}}},{key:"defaultProps",get:function(){return{items:[],activeIndex:0,lessonId:"",blockId:"",onStep:Function.prototype}}}]),r}(e.Component)}).call(this,n(0))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){!function(t){"use strict";var n=0,r=Math.pow(36,4),i=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},o=function(){return i((Math.random()*r<<0).toString(36),4)},a=function(){return n=n<r?n:0,++n-1},s=function(){var e=(new Date).getTime().toString(36),t=s.fingerprint(),n=o()+o();return"c"+e+i(a().toString(36),4)+t+n};s.slug=function(){var e,t=(new Date).getTime().toString(36),n=s.fingerprint().slice(0,1)+s.fingerprint().slice(-1),r=o().slice(-2);return e=a().toString(36).slice(-4),t.slice(-2)+e+n+r},s.globalCount=function(){var e=function(){var e,t=0;for(e in window)t++;return t}();return s.globalCount=function(){return e},e},s.fingerprint=function(){return i((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+s.globalCount().toString(36),4)},t.register?t.register("cuid",s):e.exports=s}(this.applitude||this)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(278)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(243)},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return _}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return x});var r=n(0),i=n.n(r),o=n(166),a=n.n(o),s=n(320),c=n.n(s),u=n(368),l=n.n(u),f=(n(2091),n(1154)),d=n.n(f),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=void 0!==e&&Object({BUGSNAG_API_KEY:"f3fd51abf4bdabb1dd460597574d9972",CLIENT_VERSION:"5ebeb56a66a26b681d8cec61aebd778528b41dcf",NODE_ENV:"production"})&&"production",b=function(e){function t(){var n,r;m(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=v(this,e.call.apply(e,[this].concat(o))),r.handleOnClick=function(e){var t=r.chartInstance,n=r.props,i=n.getDatasetAtEvent,o=n.getElementAtEvent,a=n.getElementsAtEvent,s=n.onElementsClick;i&&i(t.getDatasetAtEvent(e),e),o&&o(t.getElementAtEvent(e),e),a&&a(t.getElementsAtEvent(e),e),s&&s(t.getElementsAtEvent(e),e)},r.ref=function(e){r.element=e},v(r,n)}return g(t,e),t.prototype.componentWillMount=function(){this.chartInstance=void 0},t.prototype.componentDidMount=function(){this.renderChart()},t.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,i=t.plugins,o=t.legend,a=t.height,s=t.width;if(!0===e.redraw)return!0;if(a!==e.height||s!==e.width)return!0;if(n!==e.type)return!0;if(!l()(o,e.legend))return!0;if(!l()(r,e.options))return!0;var c=this.transformDataProp(e);return!l()(this.shadowDataProp,c)||!l()(i,e.plugins)},t.prototype.componentWillUnmount=function(){this.chartInstance.destroy()},t.prototype.transformDataProp=function(e){var t=e.data;return"function"==typeof t?t(this.element):t},t.prototype.memoizeDataProps=function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=h({},e,{datasets:e.datasets&&e.datasets.map(function(e){return h({},e)})}),e}},t.prototype.checkDatasets=function(e){var n="production"!==y&&"prod"!==y,r=this.props.datasetKeyProvider!==t.getLabelAsKey,i=e.length>1;if(n&&i&&!r){var o=!1;e.forEach(function(e){e.label||(o=!0)}),o&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},t.prototype.updateChart=function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=c.a.helpers.configMerge(this.chartInstance.options,t));var r=this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[],i=n.datasets||[];this.checkDatasets(r);var o=d()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=i.map(function(t){var n=o[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type){n.data.splice(t.data.length),t.data.forEach(function(e,r){n.data[r]=t.data[r]});t.data;var r=p(t,["data"]);return h({},n,r)}return t});n.datasets;var a=p(n,["datasets"]);this.chartInstance.config.data=h({},this.chartInstance.config.data,a),this.chartInstance.update()}},t.prototype.renderChart=function(){var e=this.props,n=e.options,r=e.legend,i=e.type,o=(e.redraw,e.plugins),a=this.element,s=this.memoizeDataProps();void 0===r||l()(t.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new c.a(a,{type:i,data:s,options:n,plugins:o})},t.prototype.render=function(){var e=this.props,t=e.height,n=e.width,r=(e.onElementsClick,e.id);return i.a.createElement("canvas",{ref:this.ref,height:t,width:n,id:r,onClick:this.handleOnClick})},t}(i.a.Component);b.getLabelAsKey=function(e){return e.label},b.propTypes={data:a.a.oneOfType([a.a.object,a.a.func]).isRequired,getDatasetAtEvent:a.a.func,getElementAtEvent:a.a.func,getElementsAtEvent:a.a.func,height:a.a.number,legend:a.a.object,onElementsClick:a.a.func,options:a.a.object,plugins:a.a.arrayOf(a.a.object),redraw:a.a.bool,type:function(e,t,n){if(!c.a.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:a.a.number,datasetKeyProvider:a.a.func},b.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:b.getLabelAsKey};!function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}(i.a.Component);var _=function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))},t}(i.a.Component),w=function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))},t}(i.a.Component),x=function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))},t}(i.a.Component);(function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}})(i.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}(i.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}(i.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}(i.a.Component),function(e){function t(){return m(this,t),v(this,e.apply(this,arguments))}g(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,h({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}(i.a.Component),c.a.defaults}).call(this,n(277))},function(e,t,n){"use strict";var r=n(693),i=n.n(r),o=n(44),a=n.n(o),s=n(6);function c(e,t,n){return(c="undefined"!=typeof Reflect&&i.a?i.a:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(s.a)(e)););return e}(e,t);if(r){var i=a()(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}n.d(t,"a",function(){return c})},function(e,t,n){"use strict";n.d(t,"b",function(){return j}),n.d(t,"e",function(){return A}),n.d(t,"d",function(){return M}),n.d(t,"a",function(){return L}),n.d(t,"c",function(){return D});var r=n(26),i=n.n(r),o=n(8),a=n.n(o),s=n(48),c=n.n(s),u=n(32),l=n.n(u),f=n(94),d=n.n(f),h=n(88),p=n.n(h),m=n(29),v=n.n(m),g=n(111),y=n.n(g),b=n(73),_=n.n(b),w=n(58),x=n.n(w),k=n(19),E=n.n(k),S=n(42),T=n.n(S),O=n(77),C=n(70),j=function(e){var t=e.id;return function(e){return e(Object(C.g)({id:t,updateFn:P}))}},A=function(e){var t=e.activeIndex,n=e.id;return function(e){return e(Object(C.g)({id:n,updateFn:N(t)}))}},M=function(e){var t=e.activeIndex,n=e.id,r=e.itemId;return function(e){return e(Object(C.g)({id:n,updateFn:I({activeIndex:t,itemId:r})}))}},P=_()(["activeIndex","direction"]),N=function(e){return c()(v.a)({activeIndex:e,direction:"backwards"})},I=function(e){var t=e.activeIndex,n=e.itemId;return a()(T()(E()("percentComplete",100),i()("isComplete",!0)),C.f,T()(function(){return y()(l()(n))},x()(d()(["items",n]),i()("isComplete",!0))),i()("activeIndex",t),_()(["direction"]))},L=a()(c()(v.a)({isComplete:!0,percentComplete:100}),P,x()(p()("items"),Object(O.e)(i()("isComplete",!0)))),D=a()(_()(["activeIndex","direction","isComplete","percentComplete"]),x()(p()("items"),Object(O.e)(_()(["isComplete"]))))},function(e,t,n){"use strict";var r=n(671);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){Object(r.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,"a",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return f});var s="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(a(2));var i=e,o=t,c=[],d=c,h=!1;function p(){d===c&&(d=c.slice())}function m(){if(h)throw new Error(a(3));return o}function v(e){if("function"!=typeof e)throw new Error(a(4));if(h)throw new Error(a(5));var t=!0;return p(),d.push(e),function(){if(t){if(h)throw new Error(a(6));t=!1,p();var n=d.indexOf(e);d.splice(n,1),c=null}}}function g(e){if(!l(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(h)throw new Error(a(9));try{h=!0,o=i(o,e)}finally{h=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}return g({type:u.INIT}),(r={dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));i=e,g({type:u.REPLACE})}})[s]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e},r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))})}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},c=0;c<s.length;c++){var u=s[c],l=n[u],f=e[u],d=l(f,t);if(void 0===d){t&&t.type;throw new Error(a(14))}i[u]=d,r=r||d!==f}return(r=r||s.length!==Object.keys(e).length)?i:e}}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return Z});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=n(4),m=n.n(p),v=n(34),g=n.n(v),y=n(16),b=n.n(y),_=(n(1891),n(0)),w=n.n(_),x=n(319),k=n.n(x),E=n(2),S=n.n(E),T=n(80),O=n.n(T),C=n(1),j=n.n(C),A=n(39),M=n.n(A),P=n(264),N=n(63),I=n(20),L=n(23),D=n(202),R=n(89),B=n(56),F=n(66),U=n(104),q=n(265),z=n(550),H=n(537);function W(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var V=n(65).b.blocks;function Y(e){var t=function(t){Object(u.a)(r,t);var n=W(r);function r(){var e,t,i;Object(a.a)(this,r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(i=n.call.apply(n,h()(e=[this]).call(e,s))).renderCaptionDelegate=m()(t=i.renderCaption).call(t,Object(c.a)(i)),i}return Object(s.a)(r,[{key:"renderCaption",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return w.a.createElement(R.a,{className:"block-gallery__caption brand--body brand--linkColor",value:t,allowTabNavigation:n})}},{key:"render",value:function(){var t=this.props.renderCaption,n=void 0===t?this.renderCaptionDelegate:t;return w.a.createElement(e,Object(o.a)({},this.props,{renderCaption:n}))}}]),r}(w.a.Component);return t.displayName="withCaption(".concat(e.displayName||e.name,")"),t}var G=function(e){Object(u.a)(n,e);var t=W(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,e)).state={isDotKeyboardFocusDisabled:!1},r}return Object(s.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.sliderContainer.querySelector(".block-gallery__dots-list"),t=this.state.isDotKeyboardFocusDisabled;e&&!t&&(Object(I.b)(e),this.setState({isDotKeyboardFocusDisabled:!0}))}},{key:"onKeyDown",value:function(e){var t,n,r=this.slider;M()([[L.i,m()(t=r.slickNext).call(t,r)],[L.g,m()(n=r.slickPrev).call(n,r)]])(e)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.children,i=n.className,a=n.beforeChange,s=n.menuOpen,c={adaptiveHeight:!0,slidesToShow:1,slidesToScroll:1,arrows:r.length>1,nextArrow:w.a.createElement(K,{menuOpen:s}),prevArrow:w.a.createElement(K,{menuOpen:s,previous:!0}),dots:r.length>1,dotsClass:"block-gallery__dots-list brand--background-all brand--shadow-all",beforeChange:a};return w.a.createElement("div",{className:"block-gallery__slider-container",tabIndex:I.a,onKeyDown:m()(e=this.onKeyDown).call(e,this),ref:function(e){t.sliderContainer=e}},w.a.createElement(k.a,Object(o.a)({className:i,ref:function(e){t.slider=e}},c),r))}}],[{key:"propTypes",get:function(){return{children:j.a.node.isRequired,className:j.a.string.isRequired,beforeChange:j.a.func.isRequired,menuOpen:j.a.bool}}}]),n}(w.a.Component),K=function(e){Object(u.a)(n,e);var t=W(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"render",value:function(){var e=this.props,t=e.menuOpen,n=e.onClick,r=e.previous,i=S()("block-gallery__arrow",{"block-gallery__arrow--next":!r,"block-gallery__arrow--prev":r}),o=window.document.documentMode,a=S()("block-gallery__controls",{"block-gallery__controls--ie":o&&!t,"block-gallery__controls--ie-menu-open":o&&t});return w.a.createElement("div",{className:a},w.a.createElement("div",{className:i,onClick:n},w.a.createElement("div",{className:"block-gallery__arrow-icon"})))}}],[{key:"propTypes",get:function(){return{menuOpen:j.a.bool,onClick:j.a.func,previous:j.a.bool}}},{key:"defaultProps",get:function(){return{previous:!1}}}]),n}(w.a.Component),$=function(e){Object(u.a)(n,e);var t=W(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"slickGoTo",value:function(e){this.slider.slickGoTo(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className;return w.a.createElement(k.a,Object(o.a)({ref:function(t){e.slider=t},className:r},{adaptiveHeight:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,draggable:!1,swipe:!1,accessibility:!1}),n)}}],[{key:"propTypes",get:function(){return{children:j.a.node.isRequired,className:j.a.string}}}]),n}(w.a.Component),X=function(e){var t=e.children;return w.a.createElement("div",{className:"block-gallery__container"},w.a.createElement("div",{className:"block-gallery__row--slide-row"},w.a.createElement("div",{className:"block-gallery__col"},t)))},Q=function(e){Object(u.a)(n,e);var t=W(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,e)).state={currentIndex:0},r}return Object(s.a)(n,[{key:"componentDidUpdate",value:function(){var e=Object(D.b)(this.carousel.querySelectorAll(".slick-slide.slick-active button")),t=Object(D.b)(this.carousel.querySelectorAll(".slick-slide:not(.slick-active) button"));g()(e).call(e,function(e){var t=e.getAttribute("data-tabindex");t&&(e.tabIndex=t)}),g()(t).call(t,function(e){e.setAttribute("data-tabindex",e.tabIndex),e.tabIndex=I.i})}},{key:"handleSlideChangeBefore",value:function(e,t){this.captions.slickGoTo(t),this.props.onStep(this.props.items[t]),this.setState({currentIndex:t})}},{key:"renderImages",value:function(e,t){var n=this.state.currentIndex;return b()(e).call(e,function(e,r){var i=e.id,o=e.caption,a=r===n,s=O()(e,"media.image.alt"),c=O()(e,"media.image.originalUrl"),u=O()(e,"media.image.key"),l=Object(F.a)(O()(e,"media.image"));return w.a.createElement("div",{key:i,className:"block-gallery__slide"},w.a.createElement(X,null,w.a.createElement("div",{className:"block-gallery__figure"},w.a.createElement("div",{className:"block-gallery__image"},w.a.createElement(P.a,{allowTabNavigation:a,alt:s,caption:o,disableZoom:!t,fileName:c,imageKey:u,src:l})))))})}},{key:"renderCaptions",value:function(e){var t=this.state.currentIndex,n=this.props,r=n.editable,i=n.renderCaption;return b()(e).call(e,function(e,n){var o=e.id,a=e.caption,s=n===t;return w.a.createElement("div",{key:o,className:"block-gallery__slide"},a||r?w.a.createElement(X,null,i(o,a,s)):null)})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,o=n.items,a=n.menuOpen,s=n.type,c=n.settings,u=c.paddingTop,l=c.paddingBottom,f=c.backgroundColor,d=c.entranceAnimation,h=c.zoomOnClick,p=S()("block-gallery block-gallery--".concat(s),{"block-gallery--no-animation":!d}),v={backgroundColor:Object(N.a)("",f),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*l,"px")};return w.a.createElement("div",{style:v},w.a.createElement(B.a,{animateBlockEntrance:r,animateIn:"fadeIn",offset:200,isLearner:i},w.a.createElement("div",{className:p,"data-ba":V.blockGallery,ref:function(e){t.carousel=e}},w.a.createElement(G,{className:"block-gallery__images",beforeChange:m()(e=this.handleSlideChangeBefore).call(e,this),menuOpen:a},this.renderImages(o,h)),w.a.createElement($,{className:"block-gallery__captions",ref:function(e){t.captions=e}},this.renderCaptions(o)))))}}],[{key:"propTypes",get:function(){return{lessonId:j.a.any,blockId:j.a.any,items:j.a.array.isRequired,settings:j.a.object.isRequired,type:j.a.string,editable:j.a.bool,onStep:j.a.func,menuOpen:j.a.bool}}},{key:"defaultProps",get:function(){return{type:"carousel",lessonId:"",blockId:"",items:[],onStep:Function.prototype}}}]),n}(w.a.Component);t.b=Y(Q);var Z=Y(function(e){Object(u.a)(n,e);var t=W(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"render",value:function(){var e=this.props,t=e.animateBlockEntrance,n=e.editable,r=e.isLearner,i=e.items,o=e.settings,a=e.width,s=e.renderCaption,c=o.paddingTop,u=o.paddingBottom,l=o.backgroundColor,f=o.entranceAnimation,d=o.zoomOnClick,h=S()("block-gallery block-gallery--".concat(function(e){switch(e){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}}(a)),{"block-gallery--no-animation":!f}),p={backgroundColor:Object(N.a)("",l),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")};return w.a.createElement("div",{className:h,"data-ba":V.blockGallery,style:p},w.a.createElement("div",{className:"block-gallery__container"},w.a.createElement("div",{className:"block-gallery__row"},w.a.createElement(B.a,{animateBlockEntrance:t,animateIn:"fadeIn",className:"block-gallery__col",isLearner:r,siblingDelay:.25},b()(i).call(i,function(e){var r=e.id,i=e.caption,o=O()(e,"media.image.alt"),a=O()(e,"media.image.key"),c=Object(F.a)(O()(e,"media.image")),u=Object(U.a)({caption:i,editable:n,id:r}),l=O()(e,"media.image.originalUrl");return w.a.createElement("div",{key:r,className:t?"":"block-gallery__col"},w.a.createElement(u.tagName,{"aria-labelledby":u.figcaptionId,className:"block-gallery__figure",role:u.role},a&&w.a.createElement(J,{alt:o,caption:i,disableZoom:!d,fileName:l,imageKey:a,src:c}),(n||i)&&w.a.createElement("figcaption",{id:u.figcaptionId},s(r,i))))})))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:j.a.bool.isRequired,lessonId:j.a.any,blockId:j.a.any,isLearner:j.a.bool.isRequired,items:j.a.array.isRequired,settings:j.a.object.isRequired,width:j.a.number,editable:j.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",items:[],lessonId:"",width:2}}}]),n}(w.a.Component)),J=function(e){var t=e.alt,n=e.caption,r=e.disableZoom,i=e.fileName,o=e.imageKey,a=e.src,s=Object(_.useRef)(),c=Object(_.useRef)(),u=Object(q.a)({alt:t,caption:n,fileName:i,key:o}),l=a?{backgroundImage:"url('".concat(a,"')")}:void 0,f=Object(_.useCallback)(function(e){c.current.zoom(s.current,e.currentTarget,{})},[]);Object(_.useEffect)(function(){var e=Object(z.a)();return c.current=e,function(){e.cleanup()}},[]);var d=S()("block-gallery__image",{"img-zoom":!r}),h=r?void 0:f;return w.a.createElement("div",{className:d,style:l},w.a.createElement("div",{className:"img"},w.a.createElement("img",{alt:u,onClick:h,ref:s,role:"img",src:a})),!r&&w.a.createElement("button",{"aria-label":"Zoom image",className:"img-btn img-zoom visually-hidden",onClick:f,type:"button"},w.a.createElement(H.a,{"aria-hidden":"true",className:"img-btn-symbol"})))}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(710),a=n(172),s=n.n(a);function c(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}var u={above:"above",inside:"inside",below:"below",invisible:"invisible"};var l="<Waypoint> expected to receive a single React element child.\n\nSee https://goo.gl/LrBNgw for more info.";function f(e){if(e)try{i.a.Children.only(e)}catch(e){throw new Error(l)}}function d(e){return"string"==typeof e.type}var h="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.";var p=void 0,m=[];function v(e){m.push(e),p||(p=setTimeout(function(){p=null;for(var e=void 0;e=m.shift();)e()},0));var t=!0;return function(){return function(){if(t){t=!1;var n=m.indexOf(e);-1!==n&&(m.splice(n,1),!m.length&&p&&(clearTimeout(p),p=null))}}}()}var g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var y={topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){return function(){}}(),onLeave:function(){return function(){}}(),onPositionChange:function(){return function(){}}(),fireOnRapidScroll:!0},b=void 0!==i.a.PureComponent?i.a.PureComponent:i.a.Component,_=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.refElement=function(e){return t._ref=e},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,b),g(n,[{key:"componentWillMount",value:function(){return function(){f(this.props.children)}}()},{key:"componentDidMount",value:function(){return function(){var e=this;n.getWindow()&&(this.cancelOnNextTick=v(function(){e.cancelOnNextTick=null,function(e,t){if(e&&!d(e)&&!t)throw new Error(h)}(e.props.children,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=Object(o.a)(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=Object(o.a)(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)}))}}()},{key:"componentWillReceiveProps",value:function(){return function(e){f(e.children)}}()},{key:"componentDidUpdate",value:function(){return function(){var e=this;n.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=v(function(){e.cancelOnNextTick=null,e._handleScroll(null)})))}}()},{key:"componentWillUnmount",value:function(){return function(){n.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}}()},{key:"_findScrollableAncestor",value:function(){return function(){var t=this.props,n=t.horizontal,r=t.scrollableAncestor;if(r)return function(t){return"window"===t?e.window:t}(r);for(var i=this._ref;i.parentNode;){if((i=i.parentNode)===document.body)return window;var o=window.getComputedStyle(i),a=(n?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===a||"scroll"===a)return i}return window}}()},{key:"_handleScroll",value:function(){return function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?u.invisible:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom?u.inside:e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom?u.inside:e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?u.inside:e.viewportBottom<e.waypointTop?u.below:e.waypointTop<e.viewportTop?u.above:u.invisible}(t),r=this._previousPosition;if(this._previousPosition=n,r!==n){var i={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};this.props.onPositionChange.call(this,i),n===u.inside?this.props.onEnter.call(this,i):r===u.inside&&this.props.onLeave.call(this,i);var o=r===u.below&&n===u.above,a=r===u.above&&n===u.below;this.props.fireOnRapidScroll&&(o||a)&&(this.props.onEnter.call(this,{currentPosition:u.inside,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),this.props.onLeave.call(this,{currentPosition:n,previousPosition:u.inside,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}}}()},{key:"_getBounds",value:function(){return function(){var e=this.props.horizontal,t=this._ref.getBoundingClientRect(),n=t.left,r=t.top,i=t.right,o=t.bottom,a=e?n:r,s=e?i:o,u=void 0,l=void 0;this.scrollableAncestor===window?(u=e?window.innerWidth:window.innerHeight,l=0):(u=e?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,l=e?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var f=this.props,d=f.bottomOffset;return{waypointTop:a,waypointBottom:s,viewportTop:l+c(f.topOffset,u),viewportBottom:l+u-c(d,u)}}}()},{key:"render",value:function(){return function(){var e=this,t=this.props.children;if(!t)return i.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(d(t)){var n=function(n){e.refElement(n),t.ref&&t.ref(n)};return i.a.cloneElement(t,{ref:n})}return i.a.cloneElement(t,{innerRef:this.refElement})}}()}]),n}();_.propTypes={children:s.a.node,debug:s.a.bool,onEnter:s.a.func,onLeave:s.a.func,onPositionChange:s.a.func,fireOnRapidScroll:s.a.bool,scrollableAncestor:s.a.any,horizontal:s.a.bool,topOffset:s.a.oneOfType([s.a.string,s.a.number]),bottomOffset:s.a.oneOfType([s.a.string,s.a.number])},_.above=u.above,_.below=u.below,_.inside=u.inside,_.invisible=u.invisible,_.getWindow=function(){if("undefined"!=typeof window)return window},_.defaultProps=y,_.displayName="Waypoint",t.a=_}).call(this,n(99))},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(12),a=n(120),s=n(28),c=n(9),u=n(10),l=n(11),f=n(14),d=n(6),h=n(33),p=n.n(h),m=n(139),v=n.n(m),g=n(5),y=n.n(g),b=n(16),_=n.n(b),w=(n(2696),n(0)),x=n.n(w),k=n(152),E=n(114),S=n(268),T=n.n(S),O=n(207),C=n.n(O),j=n(17),A=n.n(j),M=n(163),P=n.n(M),N=n(2),I=n.n(N),L=n(101),D=n.n(L),R=n(8),B=n.n(R),F=n(54),U=n.n(F),q=n(55),z=n.n(q),H=n(69),W=n.n(H),V=n(32),Y=n.n(V),G=n(30),K=n.n(G),$=n(29),X=n.n($),Q=n(153),Z=n.n(Q),J=n(157),ee=n.n(J),te=n(31),ne=n.n(te),re=n(24),ie=n.n(re),oe=n(107),ae=n.n(oe),se=n(19),ce=n.n(se),ue=n(52),le=n.n(ue),fe=n(1083),de=n.n(fe),he=n(559),pe=n.n(he),me=n(86),ve=n(40),ge=n(66),ye=n(22),be=n(317),_e=n(711),we=n(165),xe=n(81),ke=n(1202),Ee=n(690),Se=n(43),Te=n(1203),Oe=n(50),Ce=n(128),je=n.n(Ce),Ae=n(4),Me=n.n(Ae),Pe=n(47),Ne=n.n(Pe),Ie=(n(2697),n(1204)),Le=n(7),De=(n(2698),n(123)),Re=n(74),Be=n(144),Fe=n(263),Ue=n(549),qe=n(1205),ze=n(267);function He(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var We=function(e){Object(l.a)(n,e);var t=He(n);function n(){var e,r,i,o,a,s,u;Object(c.a)(this,n);for(var l=arguments.length,f=new Array(l),d=0;d<l;d++)f[d]=arguments[d];return(u=t.call.apply(t,y()(e=[this]).call(e,f))).handleClick=Me()(r=u.handleClick).call(r,Object(Le.a)(u)),u.handleBlur=Me()(i=u.handleFocusChange).call(i,Object(Le.a)(u),!1),u.handleFocus=Me()(o=u.handleFocusChange).call(o,Object(Le.a)(u),!0),u.handleMouseEnter=Me()(a=u.handleMouseHover).call(a,Object(Le.a)(u),!0),u.handleMouseLeave=Me()(s=u.handleMouseHover).call(s,Object(Le.a)(u),!1),u.state={hasRestrictedFocus:!1},u}return Object(u.a)(n,[{key:"handleClick",value:function(e){var t=this.props.history,n=e.currentTarget.hash;e.preventDefault(),T.a.Events.scrollEvent.register("end",function(){t.push(Ne()(n).call(n,1)),T.a.Events.scrollEvent.remove("end")}),T.a.animateScroll.scrollTo(0,{containerId:"overview"}),Object(Re.a)(Object(Fe.d)(!0))}},{key:"handleFocusChange",value:function(e){this.setState({hasRestrictedFocus:e})}},{key:"handleMouseHover",value:function(e){e?this.props.onMouseEnter():this.props.onMouseLeave()}},{key:"render",value:function(){var e=this.props,t=e.allowTooltip,n=e.isRestricted,r=e.lesson,i=r.icon,o=r.id,a=r.title,s=e.passedQuiz,c=e.percentComplete,u=e.restrictedText,l=this.state.hasRestrictedFocus,f="#/lessons/".concat(o),d=x.a.createElement(w.Fragment,null,x.a.createElement("div",{className:"overview-list-item__icon","aria-hidden":"true"},x.a.createElement(Ue.a,{icon:i})),x.a.createElement("div",{className:"overview-list-item__title brand--ui"},a),x.a.createElement("div",{className:"overview-list-item__pie"},x.a.createElement(qe.a,{percentComplete:c,passedQuiz:s})));if(n){var h,p=I()("runtime-tooltip",{"runtime-tooltip--show":t&&l});return x.a.createElement("li",{className:"overview-list-item overview-list-item--restricted",role:"listitem"},x.a.createElement(ze.a,{className:p},x.a.createElement("span",{"aria-disabled":"true","aria-label":y()(h="The ".concat(a," lesson is currently unavailable: ")).call(h,u,"."),className:"overview-list-item__link",onBlur:this.handleBlur,onFocus:this.handleFocus,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:"link",tabIndex:"0"},d,x.a.createElement(ze.b,{"aria-hidden":"true",side:"top"},u))))}return x.a.createElement("li",{className:"overview-list-item",role:"listitem"},x.a.createElement("a",{className:"overview-list-item__link",href:f,onClick:this.handleClick},d))}}],[{key:"defaultProps",get:function(){return{allowTooltip:!0,onMouseEnter:Be.b,onMouseLeave:Be.b}}}]),n}(w.PureComponent),Ve=Object(De.f)(We),Ye=Object(be.a)("modernOverview"),Ge=function(e){var t=e.course,n=e.courseProgress,r=e.labels,i=e.lessons,o=e.restrictingQuiz,a=Object(w.useState)(!1),s=Object(Oe.a)(a,2),c=s[0],u=s[1],l=Object(w.useCallback)(Me()(u).call(u,null,!0),[]),f=Object(w.useCallback)(Me()(u).call(u,null,!1),[]),d=function(e){return je()(e).call(e,function(e,t){return"section"===t.type?e.push([t]):e[e.length-1].push(t),e},[[]])}(i),h=I()("overview-list",{"overview-list--modern":Ye});return x.a.createElement("nav",{className:h},_()(d).call(d,function(e,i){var a=Object(Te.a)(e),s=a[0],u=void 0===s?{}:s,d=Ne()(a).call(a,1),h=u.title,p="section"===u.type,m=p?d:e;return x.a.createElement("section",{key:i},p&&h&&x.a.createElement("h3",{className:"overview-list__section-title brand--ui"},h),x.a.createElement("ol",{className:"overview-list__list",role:"list"},_()(m).call(m,function(e){var i=Object(we.b)({course:t,courseProgress:n,lesson:e,restrictingQuiz:o}),a=Object(we.a)({labels:r,restrictions:i}),s=Object(Ie.a)(n,e.id),u=s.percentComplete,d=s.passedQuiz;return x.a.createElement(Ve,{allowTooltip:!c,isRestricted:i.isRestricted,key:e.id,lesson:e,onMouseEnter:l,onMouseLeave:f,passedQuiz:d,percentComplete:u,restrictedText:a,failedQuizWithNoAttempts:void 0})})))}))},Ke=Object(w.memo)(Ge),$e=n(149),Xe=n.n($e),Qe=n(196),Ze=n.n(Qe),Je=n(25),et=n.n(Je),tt=n(528),nt=n.n(tt),rt=n(245),it=n.n(rt),ot=et()(Xe()({}),nt()(["first_name","last_name"]),Ze()(" "),it.a),at=(n(2699),["className","decorative","size"]),st=function(e){var t=e.className,n=e.decorative,r=e.size,i=Object(a.a)(e,at),o=ne()(["avatars","medium"],i),s=n?"":ot(i)||"Unknown User";return o?x.a.createElement("img",{alt:s,className:t||"user-avatar",src:o,style:{height:r,width:r}}):x.a.createElement(ve.B,{decorative:n,height:r,title:s,width:r})},ct=n(714),ut=n(59),lt=n.n(ut),ft=n(680),dt=n(681),ht=(n(2700),U()("partner-content-author-card__")),pt=function(e){var t=e.courseId,n=e.partnerContent,r=e.publishedAt,i=e.tenantId,o=n.data,a=n.type,s=o.authors,c=o.bookImage,u=o.bookTitle,l=o.buyLink,f=o.internalId,d=o.nbicLink,h=lt()(s).call(s,function(e){return e.name}),p={courseId:t,partnerContentId:n.id,partnerContentInternalId:f,tenantId:i,contentSubtype:a},m=I()(ht("flex"),ht("author-container")),v=function(e){return Object(ge.f)({width:"122",height:"122",imageKey:e})};return x.a.createElement("ol",{className:"partner-content-author-card",role:"list"},x.a.createElement("li",{role:"listitem"},x.a.createElement("section",null,x.a.createElement("h2",{className:"visually-hidden"},"Authors"),_()(h).call(h,function(e){return x.a.createElement("li",{key:e.name,className:m},(t=e.image,n=e.name,x.a.createElement("div",{"aria-hidden":"true",className:ht("image-container")},t?x.a.createElement("img",{src:v(t),alt:n,className:ht("author-image")}):x.a.createElement("div",{className:ht("author-image")}))),x.a.createElement("p",{className:ht("author-name-text")},e.name));var t,n}))),x.a.createElement("li",{role:"listitem"},x.a.createElement(ft.a,{authors:s,bookImage:c,bookTitle:u,buyLink:l,publishedAt:r,trackingInfo:p})),x.a.createElement("li",{role:"listitem"},x.a.createElement(dt.a,{link:d,publishedAt:r,trackingInfo:p})))},mt=n(65);n.d(t,"j",function(){return kt}),n.d(t,"e",function(){return Et}),n.d(t,"d",function(){return St}),n.d(t,"a",function(){return Mt}),n.d(t,"i",function(){return Pt}),n.d(t,"b",function(){return It}),n.d(t,"c",function(){return Lt}),n.d(t,"f",function(){return Dt}),n.d(t,"h",function(){return Qt}),n.d(t,"g",function(){return Zt});var vt=["children"],gt=["children","coverImage","enrolled","favoritedAt","hasModernOverview","isPreview","startAgain"];function yt(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var bt=mt.a.learn.course.overview,_t=Object(be.a)("modernOverview")||Object(xe.k)(),wt=de()(K()(B()(ee()(C.a,!_t),U()("brand--"))),X.a,{}),xt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return I()(e,wt(n))},kt=function(e){Object(l.a)(n,e);var t=yt(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(u.a)(n,[{key:"render",value:function(){var e=I()("overview",{"overview--modern":_t});return x.a.createElement("div",{className:e,"data-ba":bt.container,"data-overview":!0,id:"overview"},this.props.children)}},{key:"animate",value:function(e){var t=this,n=this.props.sidebarOpen,r=document.querySelector("[data-overview]"),i=document.querySelector("[data-overview-side]"),o=document.querySelector("[data-overview-side-panel]"),a=document.querySelector("[data-overview-side-panel-content]"),s=n?document.querySelector("[data-lesson-side] [data-overview-sidebar-header-wrap]"):{offsetWidth:0,offsetHeight:0},c={width:e?s.offsetWidth:i.offsetWidth,height:e?s.offsetHeight:i.offsetHeight},u={width:e?i.offsetWidth:s.offsetWidth,height:e?i.offsetHeight:s.offsetHeight};return a.style.width="".concat(s.offsetWidth,"px"),o.style.width="".concat(c.width,"px"),o.style.height="".concat(c.height,"px"),r.classList.add(e?"overview--will-enter":"overview--will-exit"),p()(function(){r.classList.add(e?"overview--will-enter-active":"overview--will-exit-active"),(e&&window.innerWidth<960||window.innerWidth>=960)&&(o.style.width="".concat(u.width,"px"),o.style.height="".concat(u.height,"px"))},10),new v.a(function(n){r.addEventListener("transitionend",t.sidePanelTransitionEndRef=function(i){var a=i.target;(e&&a.hasAttribute("data-overview-content")||!e&&a.hasAttribute("data-overview-side-panel-content")||!e&&a.hasAttribute("data-overview")&&window.innerWidth<960)&&(r.removeEventListener("transitionend",t.sidePanelTransitionEndRef),o.style.width=o.style.height="",r.classList.remove("overview--will-enter","overview--will-enter-active","overview--will-exit","overview--will-exit-active"),n())})})}}]),n}(x.a.Component),Et=function(e){Object(l.a)(n,e);var t=yt(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this,e)).state={coverImageLoaded:!1},r}return Object(u.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.coverImage.media,n=(void 0===t?{}:t).image,r=void 0===n?{}:n,i=r.key,o=r.src,a=i?Object(ge.a)(r):o;(i||o)&&(this.image=new Image,this.image.src=a,this.image.addEventListener("load",this.imageLoadRef=function(){e.setState({coverImageLoaded:!0})}))}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.removeEventListener("load",this.imageLoadRef),this.image=null)}},{key:"render",value:function(){var e=this.props.coverImage,t=e.media,n=void 0===t?{}:t,r=e.alpha,i=n.image,o=void 0===i?{}:i,a=o.key,s=x.a.Children.toArray(this.props.children),c=a?{backgroundImage:"url('".concat(Object(ge.a)(o),"')")}:null,u=I()("overview__side-panel",{"brand--background":!a});return x.a.createElement("div",{className:"overview__side","data-overview-side":!0},x.a.createElement("div",{className:u,"data-overview-side-panel":!0,style:c},this.state.coverImageLoaded?x.a.createElement(Ee.a,{alpha:r}):null,x.a.createElement("div",{className:"overview__side-panel-content","data-overview-side-panel-content":!0},z()(ce()("type",ct.a),s))),x.a.createElement("div",{className:"overview__side-content","data-overview-content":!0},x.a.createElement("div",{className:"overview__side-container"},x.a.createElement("div",{className:"overview__side-container-content"},z()(D()(ce.a)("type",ct.a),s)))))}}]),n}(x.a.Component),St=function(e){var t=e.children;return x.a.createElement("div",{className:"overview__main",id:"overview-main",tabIndex:"-1"},x.a.createElement("div",{className:"overview__content"},x.a.createElement("div",{className:"overview__container"},t)))},Tt=function(e){return x.a.createElement("div",Object(s.a)({},e,{className:"overview__columns"}))},Ot=function(e){return x.a.createElement("div",Object(s.a)({},e,{className:"overview__main-col"}))},Ct=_t?function(e){return x.a.createElement("div",Object(s.a)({},e,{className:"overview__aside"}))}:A()(null),jt=function(e){var t=_t?"overview__section-header":"visually-hidden";return x.a.createElement("header",Object(s.a)({},e,{className:t}))},At=function(e){var t=e.children,n=Object(a.a)(e,vt),r=_t?xt("overview__heading","ui"):null;return x.a.createElement("h2",Object(s.a)({},n,{className:r}),t)},Mt=function(e){var t=e.avatar,n=e.authorName;return t&&n?x.a.createElement("div",{className:xt("overview__author","ui")},x.a.createElement("div",{className:"overview__author-image",style:{backgroundImage:"url(".concat(Object(xe.p)(t),")")}}),x.a.createElement("div",null,x.a.createElement("span",{"aria-hidden":"true"},n),x.a.createElement("span",{className:"visually-hidden"},"By ",n))):null},Pt=function(e){var t=e.children;return x.a.createElement("div",{className:"overview__title-wrap"},x.a.createElement(Se.a,{className:xt("overview__title","head"),tagName:"h1",value:t}))},Nt=B()(ae()(["hasModernOverview","isPreview"]),le()({},"global")),It=Object(E.b)(Nt,{})(function(e){var t=e.children,n=e.coverImage,r=e.enrolled,i=e.favoritedAt,o=e.hasModernOverview,c=e.isPreview,u=e.startAgain,l=Object(a.a)(e,gt),f=ne()(["media","image","key"],n),d=I()("overview__button",{"brand--color":!f,"brand--ui":!o,"overview__outline-btn":u,"overview__start-again":u,"overview__button-enrolled":r||i||c||Object(xe.k)()});return x.a.createElement(k.b,Object(s.a)({className:d},l),t)}),Lt=function(e){var t=e.text;return x.a.createElement(T.a.Link,{className:"overview__details-trigger",containerId:"overview",duration:1e3,href:"#overview-main",smooth:!0,to:"overview-main"},x.a.createElement("span",{className:xt("overview__details-trigger-text","ui")},t),x.a.createElement(ve.f,null))},Dt=function(e){var t=e.src,n=e.width,r=e.height;return t?x.a.createElement("div",{className:"overview__logo"},x.a.createElement("img",{src:t,width:n,height:r,alt:"Logo"})):null},Rt=function(e){return"<p><br></p>"===e?"":e},Bt=function(e){var t=e.publishedAt;if(!ye.e)return null;var n=Z()(t);return n.isValid()&&x.a.createElement("span",{className:"overview__description-published"},n.format("[Published] MMMM D, YYYY"))},Ft=pe()("(min-width: 960px)","isDesktop")(function(e){var t=e.text,n=e.publishedAt,r=e.numLessons,i=e.timeToComplete,o=e.showTimeToComplete,a=e.isDesktop;return Rt(t)?x.a.createElement(w.Fragment,null,x.a.createElement(jt,null,x.a.createElement(At,null,"Description"),a&&x.a.createElement(Bt,{publishedAt:n}),!a&&x.a.createElement(qt,{numLessons:r,timeToComplete:i,showTimeToComplete:o,standalone:!1})),x.a.createElement(Se.a,{key:"text",value:Rt(t),className:xt("overview__description brand--linkColor","body")})):null}),Ut=function(e,t){return 1===e?t:y()(t).call(t,"s")},qt=function(e){var t,n=e.numLessons,r=e.timeToComplete,i=e.showTimeToComplete,o=e.standalone,a=void 0===o||o,s=r>=36e5?(t=Z.a.duration(r).asHours(),Math.round(10*t)/10):Z.a.duration(r).asMinutes(),c=I()("overview__stat",{"overview__stat-standalone":!a});return x.a.createElement("ul",{className:c,role:"list"},x.a.createElement("li",{className:"overview__stat-value-wrap",role:"listitem"},x.a.createElement("span",{className:"overview__stat-value"},n)," Lessons"),ye.e&&i&&x.a.createElement("li",{className:"overview__stat-value-wrap",role:"listitem"},x.a.createElement("span",{className:"overview__stat-value"},s)," ",Ut(s,r>=36e5?"Hour":"Minute")))},zt=function(e){var t=e.avatar,n=e.authorName,r=e.authorTitle;return t&&n?x.a.createElement("section",{className:xt("overview__author-card","ui")},x.a.createElement("h2",{className:"visually-hidden"},"Course Author"),x.a.createElement("img",{className:"overview__author-card-image",src:Object(xe.p)(t),alt:""}),x.a.createElement("span",{className:"overview__author-card-wrap"},x.a.createElement("span",{className:"overview__author-card-name"},n),r&&x.a.createElement("span",{className:"overview__author-card-title"},r))):null},Ht=function(e){var t,n=e.dueAt;if(!n)return null;var r=Object(_e.b)(n),i=I()("overview__due-date","brand--border",(t={},Object(o.a)(t,"brand--color",!r),Object(o.a)(t,"overview__due-date--urgent brand--background",r),t));return x.a.createElement("div",{className:i},Object(_e.a)(n))},Wt=function(e){var t=e.component;return x.a.createElement("span",{"aria-hidden":"true",className:"overview__requirements-icon"},x.a.createElement(t,{className:"overview__requirements-icon-svg"}))},Vt=function(e){var t,n=e.completedAt,r=e.courseProgress,i=e.dueAt,o=e.lessons,a=void 0===o?[]:o,s=e.numLessons,c=e.trackingCompletionPercentage,u=e.trackingQuizId,l=!Y()(c),f=!!u,d=Math.ceil(c/100*s),h=W()(P()(ce()("type","quiz"),ce()("id",u)),a),p=le()(void 0,"title",h),m=ne()(["settings","passingScore"],h),v=!l||r.percentComplete>=c,g=Object(we.d)(r,h,u),b=g.outOfAttempts,_=g.quizPassed,k=!_&&b,E=v&&(_||k);return l||f?x.a.createElement("section",{className:"overview__requirements"},x.a.createElement("h2",{className:"overview__requirements-header"},"Course Requirements"),x.a.createElement("ul",{className:"overview__requirements-list",role:"list"},l&&!isNaN(d)&&x.a.createElement("li",{className:"overview__requirements-list-item",role:"listitem"},v?x.a.createElement("span",{className:"overview__requirements-icon"},x.a.createElement(ve.e,{"aria-label":"Requirement complete"})):x.a.createElement(Wt,{component:ve.C}),x.a.createElement("span",null,"Complete",d===s?" all ":y()(t=" ".concat(d," of ")).call(t,s," "),"lessons in this course")),f&&p&&x.a.createElement("li",{className:"overview__requirements-list-item",role:"listitem"},_?x.a.createElement("span",{className:"overview__requirements-icon"},x.a.createElement(ve.e,{"aria-label":"Requirement complete"})):k?x.a.createElement("span",{className:"overview__requirements-icon"},x.a.createElement(ve.H,{"aria-label":"Quiz failed"})):x.a.createElement(Wt,{component:ve.t}),x.a.createElement("div",null,x.a.createElement("span",null,p,!Y()(m)&&x.a.createElement(w.Fragment,null,x.a.createElement("span",{"aria-hidden":"true",className:"overview__requirements-separator"}," | "),"Score of ",m,"% or higher")),k&&x.a.createElement("div",{className:"overview__requirements-no-attempts"},"No attempts remaining."))),ye.e&&!E&&i&&x.a.createElement("li",{role:"listitem"},x.a.createElement(Ht,{dueAt:i})),n&&x.a.createElement("li",{className:"overview__requirements-completed",role:"listitem"},"Completed ",Z()(n).format("L")))):null},Yt=function(e){return x.a.createElement("div",Object(s.a)({},e,{className:"overview__author-requirements-wrap"}))},Gt=function(e){var t=e.categories,n=void 0===t?[]:t;return 0===n.length?null:x.a.createElement("div",{className:"overview__categories-wrap"},x.a.createElement("section",{className:"overview__categories"},x.a.createElement("h2",{className:"overview__categories-header"},"Topics"),x.a.createElement("ul",{className:"overview__categories-list",role:"list"},_()(n).call(n,function(e,t){return x.a.createElement("li",{className:"overview__categories-list-item",key:t,role:"listitem"},x.a.createElement("span",{className:"overview__categories-icon","aria-hidden":"true"},x.a.createElement(ve.c,null)),x.a.createElement("span",{className:"overview__categories-name"},e))}))))},Kt=function(e){var t=e.favoritedAt,n=e.onClick,r=e.onRemove,i=t?r:n,o=t?"Saved to My List":"Save to My List",a=I()({"overview__enroll-heart-filled":t,"overview__enroll-heart-outline":!t});return x.a.createElement("button",{"aria-pressed":!!t,className:"overview__enroll-button","data-ba":bt.favoriteButton,onClick:i,type:"button"},x.a.createElement(ve.v,{isFilled:t,className:a}),o)},$t="".concat(Object(ye.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/trophy.svg"),Xt=pe()("(max-width: 500px)","smallAvatar")(function(e){var t=e.certificateDownload,n=e.currentUser,r=e.smallAvatar;return x.a.createElement("div",{className:"overview__completion-wrap"},x.a.createElement("div",{className:"overview__completion-avatar"},x.a.createElement(st,Object(s.a)({},n,{decorative:!0,size:r?40:60})),x.a.createElement("img",{className:"overview__trophy",src:$t,alt:""})),x.a.createElement("div",{className:"overview__completed"},x.a.createElement("span",{"aria-hidden":"true"},"Completed"),x.a.createElement("span",{className:"visually-hidden"},"Course Completed")),t&&x.a.createElement("div",{className:"overview__certificate"},x.a.createElement(ke.b,null)))}),Qt=function(e){var t=e.certificateDownload,n=e.completedQuizRequirement,r=e.courseBtnText,i=e.coverImage,o=e.currentUser,a=e.enrolled,s=e.enrollmentType,c=e.favoritedAt,u=e.handleAddFavoriteClick,l=e.handleRemoveFavoriteClick,f=e.nextLessonId,d=e.percentComplete,h=e.startAgain;return x.a.createElement("div",{className:I()("overview__continueWrapper",{"overview__start-again-wrapper":h&&a})},x.a.createElement("div",{className:"overview__continueButtonsWrap"},x.a.createElement(me.a,{classNames:"overview__button-transition",in:a||!!c,timeout:0},x.a.createElement(It,{to:"/lessons/".concat(f),coverImage:i,"data-ba":bt.startButton,startAgain:h,enrolled:a,favoritedAt:c},x.a.createElement("span",{className:"overview__continueBtn"},r))),ye.e&&"preview"!==window.viewType&&x.a.createElement(Kt,{enrolled:a,enrollmentType:s,favoritedAt:c,onClick:u,onRemove:l,percentComplete:d,startAgain:h})),x.a.createElement("span",{className:"overview__spacer"}),h&&n&&!Object(xe.k)()&&x.a.createElement(Xt,{currentUser:o,certificateDownload:t}))},Zt=Object(E.b)(function(e){return{partnerContent:ie()([],["partnerContent","content"],e)}})(pe()("(min-width: 960px)","isDesktop")(function(e){var t=e.authorName,n=e.authorTitle,r=e.avatar,i=e.categories,o=e.completedAt,a=e.course,s=e.courseProgress,c=e.dueAt,u=e.isDesktop,l=e.labels,f=e.lessons,d=e.numLessons,h=e.partnerContent,p=e.restrictingQuiz,m=e.showTimeToComplete,v=e.sidebarEnabled,g=e.timeToComplete,y=e.trackingCompletionPercentage,b=e.trackingQuizId,_=a.description,k=a.id,E=a.publishedAt,S=a.selectedAuthorId,T=a.tenantId,O=W()(function(e){return e.id===S},h);return u?x.a.createElement(w.Fragment,null,x.a.createElement(Tt,null,x.a.createElement(Ct,null,x.a.createElement("section",null,x.a.createElement("h2",{className:"visually-hidden"},"Course Length"),x.a.createElement(qt,{numLessons:d,timeToComplete:g,showTimeToComplete:m})),x.a.createElement(Yt,null,O?x.a.createElement(pt,{courseId:k,partnerContent:O,publishedAt:E,tenantId:T}):x.a.createElement(zt,{avatar:r,authorName:t,authorTitle:n}),x.a.createElement(Vt,{lessons:f,numLessons:d,trackingCompletionPercentage:y,trackingQuizId:b,courseProgress:s,dueAt:c,completedAt:o})),x.a.createElement(Gt,{categories:i})),x.a.createElement(Ot,null,x.a.createElement("section",null,x.a.createElement(Ft,{text:_,publishedAt:E})),v&&x.a.createElement("section",null,x.a.createElement(jt,null,x.a.createElement(At,null,"Course Outline"),!_&&x.a.createElement(Bt,{publishedAt:E})),x.a.createElement(Ke,{course:a,courseProgress:s,labels:l,lessons:f,restrictingQuiz:p,trackingQuizId:b}))))):x.a.createElement(w.Fragment,null,x.a.createElement(Tt,null,_t?x.a.createElement(Ct,null,x.a.createElement("section",null,x.a.createElement(Ft,{text:_,publishedAt:E,numLessons:d,timeToComplete:g,showTimeToComplete:m})),x.a.createElement(Yt,null,x.a.createElement(Vt,{lessons:f,numLessons:d,trackingCompletionPercentage:y,trackingQuizId:b,courseProgress:s,dueAt:c,completedAt:o})),x.a.createElement(Gt,{categories:i})):x.a.createElement("section",null,x.a.createElement(Ft,{text:_,publishedAt:E,numLessons:d,timeToComplete:g,showTimeToComplete:m})),x.a.createElement(Ot,null,v&&x.a.createElement("section",null,x.a.createElement(jt,null,x.a.createElement(At,null,"Course Outline"),!_&&x.a.createElement(Bt,{publishedAt:E})),x.a.createElement(Ke,{course:a,courseProgress:s,labels:l,lessons:f,restrictingQuiz:p,trackingQuizId:b})))))}))},function(e,t,n){"use strict";var r=n(219),i=n(564),o=n(329),a=n(275),s=n(597),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(216),i=n(619);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(372),i=n(216);e.exports=function(e){return r(e)||!!e&&i("concat",e)}},function(e,t,n){var r=n(201).f,i=n(244),o=n(181)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(244),i=n(217),o=n(1170)("IE_PROTO"),a=n(2162),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1890))&&r.__esModule?r:{default:r};var o=function(e){return e?parseFloat((parseInt(e,16)/255).toFixed(2)):1},a=function(e){var t=(0,i.default)(e),n=t.slice(0,6),r=t.slice(6),a=parseInt(n,16);return[a>>16&255,a>>8&255,a>>0&255,o(r)]};t.default=a},function(e,t,n){"use strict";var r=n(12),i=n(120),o=n(16),a=n.n(o),s=(n(2145),n(2)),c=n.n(s),u=n(32),l=n.n(u),f=n(0),d=n.n(f),h=["ariaControls","ariaExpanded","ariaHidden","ariaLabel","ariaPressed","onClick","onMouseDown","tabIndex"],p=function(e){var t=e.ariaControls,n=e.ariaExpanded,r=e.ariaHidden,o=e.ariaLabel,a=e.ariaPressed,s=e.onClick,c=e.onMouseDown,u=e.tabIndex,l=Object(i.a)(e,h);return d.a.createElement("button",{"aria-controls":t,"aria-expanded":n,"aria-hidden":r,"aria-label":o,"aria-pressed":a,className:m(l),"data-ba":l["data-ba"],disabled:l.disabled,onClick:s,onMouseDown:c,tabIndex:u},v(l.icon),g(l))},m=function(e){var t;return c()("button",(t={},Object(r.a)(t,e.className,!l()(e.className)),Object(r.a)(t,"button--default",void 0===e.mode),Object(r.a)(t,"button--extraPadding",e.extraPadding),Object(r.a)(t,"button--menu",e.menu),Object(r.a)(t,"button--menu button--menuMobile",e.mobileMenu),Object(r.a)(t,"button--sidebar brand--ui",e.sidebar),Object(r.a)(t,"button--header",e.header),Object(r.a)(t,"button--header-done",e.headerDone),Object(r.a)(t,"button--outline",e.outline),Object(r.a)(t,"button--outline button--outline-transparent",e.outlineTransparent),Object(r.a)(t,"button--condensed",e.condensed),Object(r.a)(t,"button--inverted",e.inverted),Object(r.a)(t,"button--inline","inline"===e.mode),Object(r.a)(t,"button--next",e.next),Object(r.a)(t,"button--disabled",e.disabled),Object(r.a)(t,"button--controls",e.controls),Object(r.a)(t,"brand--ui",e.accent),Object(r.a)(t,"brand--background brand--border",e.branded),t))},v=function(e){return e?d.a.createElement("i",{className:"button__icon icon-".concat(e)}):null},g=function(e){var t,n=e.onlyIcon,r=e.children;return a()(t=d.a.Children).call(t,r,function(e){return n&&void 0===e.type?null:e})};p.defaultProps={onClick:Function.prototype,onMouseDown:Function.prototype},t.a=p},function(e,t,n){"use strict";var r=n(0),i=n(2587),o=n(2590);function a(){}a.prototype=Object.create(r.Component.prototype),a.displayName="DocumentTitle",a.propTypes={title:i.string.isRequired},a.prototype.render=function(){return this.props.children?r.Children.only(this.props.children):null},e.exports=o(function(e){var t=e[e.length-1];if(t)return t.title},function(e){var t=e||"";t!==document.title&&(document.title=t)})(a)},function(e,t,n){"use strict";var r=n(22);t.a=function(e){return Object(r.d)()?e:((t=e)?"".concat(t," | "):"")+r.a;var t}},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return _}),n.d(t,"d",function(){return w});var r=n(48),i=n.n(r),o=n(88),a=n.n(o),s=n(29),c=n.n(s),u=n(73),l=n.n(u),f=n(58),d=n.n(f),h=n(25),p=n.n(h),m=n(77),v=n(359),g=n(70),y=i()(c.a)({isComplete:!0,percentComplete:100,percentViewed:100}),b=function(e){return function(t){return t(Object(g.g)({id:e,updateFn:v.a}))}},_=p()(d()(a()("items"),Object(m.e)(l()(["isComplete","isCorrect","isViewed"]))),l()(["correctlyAnswered","percentComplete","isComplete","percentViewed"])),w=function(e){var t=e.id,n=e.itemId,r=e.isCorrect;return function(e){return e(Object(g.g)({id:t,updateFn:Object(v.b)({itemId:n,isCorrect:r})}))}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ee}),n.d(t,"b",function(){return ne});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(4),h=n.n(d),p=n(5),m=n.n(p),v=n(16),g=n.n(v),y=n(33),b=n.n(y),_=(n(1917),n(1)),w=n.n(_),x=n(2),k=n.n(x),E=n(85),S=n(8),T=n.n(S),O=n(39),C=n.n(O),j=n(124),A=n.n(j),M=n(53),P=n.n(M),N=n(260),I=n.n(N),L=n(261),D=n.n(L),R=n(80),B=n.n(R),F=n(150),U=n.n(F),q=n(63),z=n(319),H=n.n(z),W=n(43),V=n(103),Y=n(20),G=n(23),K=n(56),$=n(1129),X=n(66);function Q(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Z=n(65).b.blocks,J={small:{longMin:51,totalMax:150},medium:{longMin:208,totalMax:390},large:{longMin:258,totalMax:707}},ee=function(t){Object(u.a)(r,t);var n=Q(r);function r(e){var t,i,o,s,u;return Object(a.a)(this,r),(u=n.call(this,e)).state={flipped:e.flipped,hasFlippedOnce:e.hasFlippedOnce},u.flip=h()(t=u.flip).call(t,Object(c.a)(u)),u.scrollDownIfNecessary=h()(i=u.scrollDownIfNecessary).call(i,Object(c.a)(u)),u.scrollUpIfNecessary=h()(o=u.scrollUpIfNecessary).call(o,Object(c.a)(u)),u.onKeyDown=h()(s=u.onKeyDown).call(s,Object(c.a)(u)),u}return Object(s.a)(r,[{key:"anchorClicked",value:function(e){return"a"===e.tagName.toLowerCase()||e!==this.container&&this.anchorClicked(e.parentElement)}},{key:"flip",value:function(e){var t=e.target;if(!this.anchorClicked(t)){var n=this.state.flipped;this.setState({flipped:!n,hasFlippedOnce:!0}),n?(this.frontSide.scrollToTop(),this.cardFront.focus()):(this.props.onStep(this.props.card),this.backSide.scrollToTop(),this.cardBack.focus()),e&&e.preventDefault()}}},{key:"showFront",value:function(){this.setState({flipped:!1}),this.frontSide.scrollToTop()}},{key:"focus",value:function(){this.cardFront.focus()}},{key:"scrollUpIfNecessary",value:function(e){e.target===this.cardFront?this.frontSide.scrollUp(e):this.backSide.scrollUp(e)}},{key:"scrollDownIfNecessary",value:function(e){e.target===this.cardFront?this.frontSide.scrollDown(e):this.backSide.scrollDown(e)}},{key:"onKeyDown",value:function(e){C()([[G.e,this.flip],[G.m,this.scrollUpIfNecessary],[G.b,this.scrollDownIfNecessary]])(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.card,o=n.index,a=n.labels,s=void 0===a?{}:a,c=n.showHint,u=n.size,l=s.blocksClickToFlip,f=this.state,d=f.flipped,h=f.hasFlippedOnce,p=i.front,m=void 0===p?{}:p,v=i.back,g=void 0===v?{}:v,y=B()(m,"type")||"description",b=B()(g,"type")||"description",_=Object(X.a)(B()(m,"media.image")),w=Object(X.a)(B()(g,"media.image")),x=B()(m,"media.image.alt"),S=B()(g,"media.image.alt"),T=m.description||"",O=g.description||"",C=k()("block-flashcard",{"block-flashcard--large":"large"===u,"block-flashcard--medium":"medium"===u,"block-flashcard--small":"small"===u,"block-flashcard--first":0===o,"block-flashcard--flipped":d,"block-flashcard--in-edge":E.a.isEdge,"block-flashcard--in-ie":E.a.isIe11}),j=k()("block-flashcard__front",{"block-flashcard__front--description":"description"===y,"block-flashcard__front--image":"image"===y,"block-flashcard__front--fullimage":"fullimage"===y}),A=k()("block-flashcard__back",{"block-flashcard__back--description":"description"===b,"block-flashcard__back--image":"image"===b,"block-flashcard__back--fullimage":"fullimage"===b}),M=k()("block-flashcard__content",{"brand--border":"fullimage"!==y}),P=k()("block-flashcard__flip brand--ui",{"block-flashcard__flip--detailed":!h}),N="fullimage"===y?{backgroundImage:"url('".concat(_,"')")}:{},I="fullimage"===b?{backgroundImage:"url('".concat(w,"')")}:{},L=r&&!d,D=r&&d,R=0===o&&!h&&l,F=e.createElement("button",{className:P,onClick:this.flip,ref:function(e){t.flipLink=e},tabIndex:Y.i,type:"button"},e.createElement("span",{className:"flip-text"},R),e.createElement("span",{className:"flip-icon"},e.createElement($.a,null)));return e.createElement("section",{className:C,onTouchEnd:function(e){e.stopPropagation()},ref:function(e){t.container=e}},e.createElement("div",{className:"block-flashcard__wrapper"},e.createElement("div",{"aria-hidden":!L,className:j,onClick:this.flip,onKeyDown:this.onKeyDown,ref:function(e){t.cardFront=e},role:"button",tabIndex:Object(Y.m)(L)},e.createElement("div",{className:M,style:N},e.createElement(te,{allowTabNavigation:L,alt:x,description:T,image:_,labels:s,ref:function(e){t.frontSide=e},side:"front",size:u,type:y})),c&&F),e.createElement("div",{"aria-hidden":!D,className:A,onBlur:function(){t.container.style.zIndex--},onFocus:function(){t.container.style.zIndex++},onClick:this.flip,onKeyDown:this.onKeyDown,ref:function(e){t.cardBack=e},role:"button",tabIndex:Object(Y.m)(D)},e.createElement("div",{className:"block-flashcard__content",style:I},e.createElement(te,{allowTabNavigation:D,alt:S,description:O,image:w,labels:s,ref:function(e){t.backSide=e},side:"back",size:u,type:b})),c&&F)))}}],[{key:"propTypes",get:function(){return{allowTabNavigation:w.a.bool,card:w.a.object.isRequired,index:w.a.number,onStep:w.a.func,showHint:w.a.bool,size:w.a.oneOf(["large","medium","small"])}}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,flipped:!1,hasFlippedOnce:!1,index:0,onStep:Function.prototype,showHint:!0,size:"large"}}}]),r}(e.Component),te=function(t){Object(u.a)(r,t);var n=Q(r);function r(e){var t,i,o;return Object(a.a)(this,r),(o=n.call(this,e)).state={hasOverflow:!1,isLong:!1},o.handleScroll=h()(t=o.handleScroll).call(t,Object(c.a)(o)),o.overflowMask=h()(i=o.overflowMask).call(i,Object(c.a)(o)),o}return Object(s.a)(r,[{key:"componentDidMount",value:function(){this.scrollContent.addEventListener("scroll",this.scrollRef=U()(this.handleScroll,50)),window.addEventListener("resize",this.maskRef=U()(this.overflowMask,50)),this.overflowMask()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.maskRef),this.scrollContent.removeEventListener("scroll",this.scrollRef)}},{key:"scrollToTop",value:function(){this.scrollContent.scrollTop=0}},{key:"scrollUp",value:function(e){Object(G.q)(this.scrollContent,e)}},{key:"scrollDown",value:function(e){Object(G.p)(this.scrollContent,this.state.hasOverflow,e)}},{key:"handleScroll",value:function(){var e=this.state.hasOverflow,t=this.scrollContent,n=t.scrollTop,r=t.scrollHeight;n+t.offsetHeight+10>=r?this.setState({hasOverflow:!1}):e||this.setState({hasOverflow:!0})}},{key:"overflowMask",value:function(){var e=this.scrollContent,t=e.offsetHeight<e.scrollHeight-10;this.setState({hasOverflow:t,isLong:t})}},{key:"ariaLabel",value:function(){var e,t,n=this.props,r=n.alt,i=n.description,o=n.labels,a=n.side,s=n.type,c=o.flashcardBackLabel,u=o.flashcardFrontLabel,l="front"===a?u:c;return"image"===s||"fullimage"===s?r?m()(t="".concat(l," - ")).call(t,r):l:i?m()(e="".concat(l," - ")).call(e,Object(V.e)(i)):l}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.alt,o=n.size,a=n.type,s=n.description,c=n.image,u=n.side,l=this.state,f=l.hasOverflow,d=l.isLong,h=J[o],p=s,m=!!T()(I()(h.longMin),P.a,V.e,D()(" "," "))(s)||d,v=k()("block-flashcard__center brand--linkColor",{"block-flashcard__center--long":m,"block-flashcard__center--long--front":m&&"front"===u,"block-flashcard__center--long--back":m&&"back"===u,"block-flashcard__center--overflow":f,"block-flashcard__center--column":"image"===a}),g='""'===i?"":i,y="fullimage"===a?g:null;return e.createElement("div",{ref:function(e){t.scrollContent=e},className:v,alt:y,title:y,"aria-label":this.ariaLabel()},"image"===a&&c&&e.createElement("figure",{className:"block-flashcard__image",style:{backgroundImage:"url(".concat(c,")")},title:g},e.createElement("img",{alt:g,src:c})),"description"===a&&e.createElement(W.a,{allowTabNavigation:r,className:"block-flashcard__description brand--head",value:p}))}}],[{key:"propTypes",get:function(){return{size:w.a.string,type:w.a.string,description:w.a.string,image:w.a.string}}}]),r}(e.Component),ne=function(t){Object(u.a)(r,t);var n=Q(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.settings,a=t.stack,s=t.labels,c=t.onStep,u=o.backgroundColor,l=o.entranceAnimation,f=o.paddingBottom,d=o.paddingTop,h=o.showHint,p=k()("block-flashcards",{"blocks-flashcard--column":!a,"blocks-flashcard--stack":a,"block-flashcards--no-animation":!l}),m={backgroundColor:Object(q.a)("",u),paddingTop:"".concat(10*d,"px"),paddingBottom:"".concat(10*f,"px")},v=i.length,y=1===v?"large":2===v?"medium":"small",b=s.flashcardGridGroup,_=s.flashcardStackGroup,w=a?_:b;return e.createElement("div",{"aria-label":w,className:p,"data-ba":Z.blockFlashcards,style:m},a?e.createElement(K.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r,offset:400},e.createElement(re,{items:i,labels:s,onStep:c,showHint:h})):e.createElement(K.a,{animateBlockEntrance:n,animateIn:"fadeIn",className:"block-flashcards__animation",isLearner:r,siblingDelay:.25},e.createElement("div",{className:"block-flashcards__wrapper"},g()(i).call(i,function(t,n){return e.createElement(ee,{card:t,index:n,key:t.id,labels:s,onStep:c,showHint:h,size:y})}))))}}],[{key:"propTypes",get:function(){return{items:w.a.array,settings:w.a.object.isRequired,stack:w.a.bool,onStep:w.a.func}}},{key:"defaultProps",get:function(){return{items:[],stack:!1,editable:!1,onStep:Function.prototype}}}]),r}(e.Component),re=function(t){Object(u.a)(r,t);var n=Q(r);function r(){var e,t;Object(a.a)(this,r);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(t=n.call.apply(n,m()(e=[this]).call(e,o))).state={current:1},t}return Object(s.a)(r,[{key:"handleBeforeChange",value:function(e,t){for(var n=this,r=this.props.items.length,i=0;i<r;i++){var o=this["flashcard-".concat(i)];o&&o.showFront()}this.sliderInfo.setCurrent(t+1),this["flashcard-".concat(t)].focus(),b()(function(){n.setState({current:t+1})},500)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.items,a=r.labels,s=r.onStep,c=r.showHint,u=this.state.current,l=i.length,f={dots:!1,draggable:!1,swipe:!1,speed:500,slidesToShow:1,slidesToScroll:1,fade:!0,infinite:!1,arrows:!0,beforeChange:h()(t=this.handleBeforeChange).call(t,this),nextArrow:e.createElement(oe,{current:u,labels:a,length:l}),prevArrow:e.createElement(oe,{previous:!0,current:u,labels:a,length:l})};return e.createElement("section",{className:"block-flashcards-slider block-flashcards-slider--full-carousel"},e.createElement("div",{className:"block-flashcards-slider__wrap"},e.createElement(H.a,Object(o.a)({className:"block-flashcards-slider__slides"},f),g()(i).call(i,function(t,r){return e.createElement("div",{className:"block-flashcards-slider__slide",key:"flashcard-".concat(r)},e.createElement(ee,{allowTabNavigation:u===A()(r),card:t,index:r,labels:a,onStep:s,ref:function(e){n["flashcard-".concat(r)]=e},showHint:c}))})),e.createElement(ie,{ref:function(e){n.sliderInfo=e},labels:a,current:u,itemCount:i.length})))}}],[{key:"propTypes",get:function(){return{items:w.a.array,onStep:w.a.func,showHint:w.a.bool}}},{key:"defaultProps",get:function(){return{items:[],onStep:Function.prototype}}}]),r}(e.Component),ie=function(t){Object(u.a)(r,t);var n=Q(r);function r(e){var t;return Object(a.a)(this,r),(t=n.call(this,e)).state={current:e.current},t}return Object(s.a)(r,[{key:"setCurrent",value:function(e){this.setState({current:e})}},{key:"render",value:function(){var t,n,r=this.props,i=r.itemCount,o=r.labels,a=void 0===o?{}:o,s=this.state.current,c=100*(s/i).toFixed(2),u={width:"".concat(c,"%")},l=a.blocksPreposition,f=void 0===l?"of":l;return e.createElement("div",{className:"block-flashcards-slider__info"},e.createElement("div",{className:"block-flashcards-slider__progress"},e.createElement("p",{className:"block-flashcards-slider__progress-text brand--body brand--linkColor"},m()(t=m()(n="".concat(s," ")).call(n,f," ")).call(t,i)),e.createElement("div",{className:"block-flashcards-slider__progress-line brand--background",style:u})))}}],[{key:"propTypes",get:function(){return{current:w.a.number.isRequired,itemCount:w.a.number.isRequired}}}]),r}(e.Component),oe=function(t){Object(u.a)(r,t);var n=Q(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"render",value:function(){var t=this.props,n=t.current,r=t.labels,i=t.length,o=t.onClick,a=t.previous,s=r.nextFlashCardLabel,c=r.previousFlashCardLabel,u=1===n,l=n===i,f=k()("block-flashcards-slider__controls",{"block-flashcards-slider__controls--beginning":u,"block-flashcards-slider__controls--end":l}),d=k()("brand--background block-flashcards-slider__arrow",{"block-flashcards-slider__arrow--next":!a,"block-flashcards-slider__arrow--prev":a}),h=k()("icon",{"icon-chevron-right":!a,"icon-chevron-left":a}),p=a&&u||!a&&l;return e.createElement("div",{className:f},e.createElement("div",{"aria-disabled":p,"aria-label":a?c:s,className:d,onClick:o,onKeyDown:Object(G.a)(o),role:"button",tabIndex:Object(Y.m)(!p)},e.createElement("i",{className:h})))}}],[{key:"propTypes",get:function(){return{onClick:w.a.func,previous:w.a.bool,current:w.a.number,length:w.a.number}}},{key:"defaultProps",get:function(){return{previous:!1,onClick:function(){},current:0,length:-1}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";var r=n(26),i=n.n(r),o=n(48),a=n.n(o),s=n(88),c=n.n(s),u=n(29),l=n.n(u),f=n(73),d=n.n(f),h=n(58),p=n.n(h),m=n(25),v=n.n(m),g=n(77),y=n(226),b=n.n(y),_=n(94),w=n.n(_),x=n(19),k=n.n(x),E=n(42),S=n.n(E),T=n(428),O=(b()("activeIndex"),n(70));n.d(t,"a",function(){return C}),n.d(t,"b",function(){return j}),n.d(t,"c",function(){return A});var C=function(e){var t=e.id,n=e.payload;return function(e){return e(Object(O.g)({id:t,updateFn:(r=n,o=r.itemId,a=r.activeIndex,v()(i()("activeIndex",a),p()(w()(["items",o]),i()("isComplete",!0)),T.a,S()(k()("percentComplete",100),i()("isComplete",!0))))}));var r,o,a}},j=v()(p()(c()("items"),Object(g.e)(i()("isComplete",!0))),a()(l.a)({isComplete:!0,percentComplete:100})),A=v()(p()(c()("items"),Object(g.e)(d()(["isComplete"]))),d()(["isComplete","percentComplete","activeIndex"]))},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u});var r=n(101),i=n.n(r),o=n(19),a=n.n(o),s=a()("navigationMode","restricted"),c=i()(a()("sidebarMode","hidden")),u=a()("sidebarMode","open")},function(e,t,n){"use strict";e.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},,function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(118),i=n(380),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(147);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t,n){var r=n(51),i=n(273),o=n(381);e.exports=r(function(e){return!!i(e)||!!e&&("object"==typeof e&&(!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})},function(e,t,n){var r=n(51),i=n(381);e.exports=r(function(e){return i(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})},function(e,t,n){var r=n(583),i=n(460),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var r=n(96),i=n(1240);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){"use strict";var r=n(458),i=n(204),o=n(298);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(118),i=n(125),o=n(322),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},function(e,t,n){var r=n(220),i=n(461);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,c=t,u=0;u<n.length||s<arguments.length;){var l;u<n.length&&(!i(n[u])||s>=arguments.length)?l=n[u]:(l=arguments[s],s+=1),a[u]=l,i(l)||(c-=1),u+=1}return c<=0?o.apply(this,a):r(c,e(t,a,o))}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t,n){var r=n(179),i=n(1336),o=n(774),a=n(606),s=n(1338),c=n(330),u=n(775),l=r(i(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return c(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},u(t));default:return o(e,t)}}));e.exports=l},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick(function(){e.apply(null,o)})}}:e.exports=t.nextTick}).call(this,n(277))},function(e,t,n){var r=n(331),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(617);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="atrule",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.prototype.append).call.apply(t,[this].concat(r))},t.prototype.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(617)),o=a(n(804));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="rule",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectors",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(i.default);t.default=s,e.exports=t.default},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(51),i=n(806);e.exports=r(function(e){return i(e.length,e)})},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(442),i=n(243),o=n(620),a=n(90),s=n(206),c=n(443),u=n(819),l=function(e){return e},f=function(e){return function(t){return e.concat(t)}};function d(e,t){return function(n,o){var a=t(o);if(!r(n)&&!i(n)||!s(n,a))throw new TypeError("Array."+e+": Must wrap Applys of the same type");return i(a)?m(n,p(function(e){return f([e])},a)):a.map(function(e){return f([e])}).ap(n)}}var h=function(e){return e.reduce(function(e,t){return e&&a(t)},!0)},p=function(e,t){return t.map(function(t){return e(t)})};function m(e,t){if(!t.length||!h(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(p(n,e))},[])}e.exports={ap:m,chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!i(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},fold:function(e){if(o(e))throw new TypeError("Array.fold: Non-empty Array of Semigroups required");var t=e[0];if(!c(t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return e.reduce(function(e,t){if(!s(e,t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return e.concat(t)})},foldMap:function(e,t){if(o(t))throw new TypeError("Array.foldMap: Non-empty Array required");var n=e(t[0]);if(!c(n))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return 1===t.length?n:t.slice(1).reduce(function(t,n){var r=e(n);if(!s(t,r)||!c(r))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return t.concat(r)},n)},map:p,sequence:function(e,t){var n=u(e);return t.reduceRight(d("sequence",l),n([]))},set:function(e,t,n){var r=n.slice();return r[e]=t,r},traverse:function(e,t,n){var r=u(e);return n.reduceRight(d("traverse",t),r([]))},unset:function(e,t){return t.slice(0,e).concat(t.slice(e+1))}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(216);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(18),i=n(30);e.exports=r(function(e,t){return function(n){return function(r){return i(function(e){return t(e,r)},n(e(r)))}}})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,o){return t.call(this,e,n,r,i,o)};case 6:return function(e,n,r,i,o,a){return t.call(this,e,n,r,i,o,a)};case 7:return function(e,n,r,i,o,a,s){return t.call(this,e,n,r,i,o,a,s)};case 8:return function(e,n,r,i,o,a,s,c){return t.call(this,e,n,r,i,o,a,s,c)};case 9:return function(e,n,r,i,o,a,s,c,u){return t.call(this,e,n,r,i,o,a,s,c,u)};case 10:return function(e,n,r,i,o,a,s,c,u,l){return t.call(this,e,n,r,i,o,a,s,c,u,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})},function(e,t,n){var r=n(469),i=n(134),o=n(178),a=n(193),s=n(1522);e.exports=r(4,[],i([],s,function(e,t,n,r){return a(function(r,i){var a=n(i);return r[a]=e(o(a,r)?r[a]:t,i),r},{},r)}))},function(e,t){e.exports=function(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}},function(e,t,n){var r=n(61),i=n(600),o=n(627);e.exports=r(function e(t,n,r){return o(function(n,r,o){return i(r)&&i(o)?e(t,r,o):t(n,r,o)},n,r)})},function(e,t){
/** @license ISC License (c) copyright 2018 original and current authors */
e.exports={alt:"fantasy-land/alt",bimap:"fantasy-land/bimap",chain:"fantasy-land/chain",compose:"fantasy-land/compose",concat:"fantasy-land/concat",contramap:"fantasy-land/contramap",empty:"fantasy-land/empty",equals:"fantasy-land/equals",extend:"fantasy-land/extend",filter:"fantasy-land/filter",id:"fantasy-land/id",map:"fantasy-land/map",of:"fantasy-land/of",promap:"fantasy-land/promap",reduce:"fantasy-land/reduce",zero:"fantasy-land/zero"}},function(e,t){
/** @license ISC License (c) copyright 2018 original and current authors */
e.exports={alt:"fantasy-land/alt",bimap:"fantasy-land/bimap",chain:"fantasy-land/chain",compose:"fantasy-land/compose",concat:"fantasy-land/concat",contramap:"fantasy-land/contramap",empty:"fantasy-land/empty",equals:"fantasy-land/equals",extend:"fantasy-land/extend",filter:"fantasy-land/filter",id:"fantasy-land/id",map:"fantasy-land/map",of:"fantasy-land/of",promap:"fantasy-land/promap",reduce:"fantasy-land/reduce",zero:"fantasy-land/zero"}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(632),i=n(400);e.exports=function(e){if(!i(e))throw new TypeError("curry: Function required");return r(e)}},function(e,t,n){var r=n(1739),i=n(1740),o=n(1741),a=n(1742),s=n(1743);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(870);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(223).Symbol;e.exports=r},function(e,t,n){var r=n(332)(Object,"create");e.exports=r},function(e,t,n){var r=n(1763);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(1784),i=n(1789),o=n(882);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(333),i=n(334),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(496),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(90);e.exports=function(e,t){return r(e)?e(t):e.runWith(t)}},function(e,t,n){"use strict";t.__esModule=!0,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=a(n(0)),o=a(n(91));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.getOnDemandLazySlides=function(e){for(var t=[],n=c(e),r=u(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},c=(t.getRequiredLazySlides=function(e){for(var t=[],n=c(e),r=u(e),i=n;i<r;i++)t.push(i);return t},t.lazyStartIndex=function(e){return e.currentSlide-l(e)}),u=t.lazyEndIndex=function(e){return e.currentSlide+f(e)},l=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},f=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},d=t.getWidth=function(e){return e&&e.offsetWidth||0},h=t.getHeight=function(e){return e&&e.offsetHeight||0},p=t.getSwipeDirection=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"},m=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1?t=!1:(e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1)),t},v=(t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t=i.default.Children.count(e.children),n=Math.ceil(d(o.default.findDOMNode(e.listRef))),r=Math.ceil(d(o.default.findDOMNode(e.trackRef))),a=void 0;if(e.vertical)a=n;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=n/100),a=Math.ceil((n-c)/e.slidesToShow)}var u=o.default.findDOMNode(e.listRef)&&h(o.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),l=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=t-1-e.initialSlide);var p=e.lazyLoadedList||[],m=s({currentSlide:f,lazyLoadedList:p},e);p.concat(m);var v={slideCount:t,slideWidth:a,listWidth:n,trackWidth:r,currentSlide:f,slideHeight:u,listHeight:l,lazyLoadedList:p};return null===e.autoplaying&&e.autoplay&&(v.autoplaying="playing"),v},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,o=e.infinite,a=e.index,c=e.slideCount,u=e.lazyLoadedList,l=e.lazyLoad,f=e.currentSlide,d=e.centerMode,h=e.slidesToScroll,p=e.slidesToShow,v=e.useCSS;if(t&&n)return{};var g=a,y=void 0,b=void 0,k=void 0,E={},S={};if(i){if(!o&&(a<0||a>=c))return{};a<0?g=a+c:a>=c&&(g=a-c),l&&u.indexOf(g)<0&&u.push(g),E={animating:!0,currentSlide:g,lazyLoadedList:u},S={animating:!1}}else y=g,g<0?(y=g+c,o?c%h!=0&&(y=c-c%h):y=0):!m(e)&&g>f?g=y=f:d&&g>=c?(g=o?c:c-1,y=o?0:c-1):g>=c&&(y=g-c,o?c%h!=0&&(y=0):y=c-p),b=x(r({},e,{slideIndex:g})),k=x(r({},e,{slideIndex:y})),o||(b===k&&(g=y),b=k),l&&u.concat(s(r({},e,{currentSlide:g}))),v?(E={animating:!0,currentSlide:y,trackStyle:w(r({},e,{left:b})),lazyLoadedList:u},S={animating:!1,currentSlide:y,trackStyle:_(r({},e,{left:k})),swipeLeft:null}):E={currentSlide:y,trackStyle:_(r({},e,{left:k})),lazyLoadedList:u};return{state:E,nextState:S}},t.changeSlide=function(e,t){var n,i,o,a,s=e.slidesToScroll,c=e.slidesToShow,u=e.slideCount,l=e.currentSlide,f=e.lazyLoad,d=e.infinite;if(n=u%s!=0?0:(u-l)%s,"previous"===t.message)a=l-(o=0===n?s:c-n),f&&!d&&(a=-1===(i=l-o)?u-1:i);else if("next"===t.message)a=l+(o=0===n?s:n),f&&!d&&(a=(l+s)%u+n);else if("dots"===t.message){if((a=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((a=t.index)===t.currentSlide)return null;if(d){var h=T(r({},e,{targetSlide:a}));a>t.currentSlide&&"left"===h?a-=u:a<t.currentSlide&&"right"===h&&(a+=u)}}else if("index"===t.message&&(a=Number(t.index))===t.currentSlide)return null;return a},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,i=t.animating,o=t.vertical,a=t.swipeToSlide,s=t.verticalSwiping,c=t.rtl,u=t.currentSlide,l=t.edgeFriction,f=t.edgeDragged,d=t.onEdge,h=t.swiped,v=t.swiping,g=t.slideCount,y=t.slidesToScroll,b=t.infinite,w=t.touchObject,k=t.swipeEvent,E=t.listHeight,S=t.listWidth;if(!n){if(i)return e.preventDefault();o&&a&&s&&e.preventDefault();var T=void 0,O={},C=x(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var j=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!v&&j>10)return{scrolling:!0};s&&(w.swipeLength=j);var A=(c?-1:1)*(w.curX>w.startX?1:-1);s&&(A=w.curY>w.startY?1:-1);var M=Math.ceil(g/y),P=p(t.touchObject,s),N=w.swipeLength;return b||(0===u&&"right"===P||u+1>=M&&"left"===P||!m(t)&&"left"===P)&&(N=w.swipeLength*l,!1===f&&d&&(d(P),O.edgeDragged=!0)),!h&&k&&(k(P),O.swiped=!0),T=o?C+N*(E/S)*A:c?C-N*A:C+N*A,s&&(T=C+N*A),O=r({},O,{touchObject:w,swipeLeft:T,trackStyle:_(r({},t,{left:T}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?O:(w.swipeLength>10&&(O.swiping=!0,e.preventDefault()),O)}},t.swipeEnd=function(e,t){var n=t.dragging,i=t.swipe,o=t.touchObject,a=t.listWidth,s=t.touchThreshold,c=t.verticalSwiping,u=t.listHeight,l=t.currentSlide,f=t.swipeToSlide,d=t.scrolling,h=t.onSwipe;if(!n)return i&&e.preventDefault(),{};var m=c?u/s:a/s,v=p(o,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!o.swipeLength)return b;if(o.swipeLength>m){e.preventDefault(),h&&h(v);var _=void 0,k=void 0;switch(v){case"left":case"up":k=l+y(t),_=f?g(t,k):k,b.currentDirection=0;break;case"right":case"down":k=l-y(t),_=f?g(t,k):k,b.currentDirection=1;break;default:_=l}b.triggerSlideHandler=_}else{var E=x(t);b.trackStyle=w(r({},t,{left:E}))}return b},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i}),g=t.checkNavigable=function(e,t){var n=v(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},y=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n=void 0,r=o.default.findDOMNode(e.listRef).querySelectorAll(".slick-slide");if(Array.from(r).every(function(r){if(e.vertical){if(r.offsetTop+h(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+d(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},b=t.checkSpecKeys=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},_=t.getTrackCSS=function(e){b(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t=void 0,n=void 0,i=e.slideCount+2*e.slidesToShow;e.vertical?n=i*e.slideHeight:t=S(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",c=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=r({},o,{WebkitTransform:a,transform:s,msTransform:c})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},w=t.getTrackAnimateCSS=function(e){b(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=_(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},x=t.getTrackLeft=function(e){if(e.unslick)return 0;b(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,a=e.infinite,s=e.centerMode,c=e.slideCount,u=e.slidesToShow,l=e.slidesToScroll,f=e.slideWidth,d=e.listWidth,h=e.variableWidth,p=e.slideHeight,m=e.fade,v=e.vertical;if(m||1===e.slideCount)return 0;var g=0;if(a?(g=-k(e),c%l!=0&&r+l>c&&(g=-(r>c?u-(r-c):c%l)),s&&(g+=parseInt(u/2))):(c%l!=0&&r+l>c&&(g=u-c%l),s&&(g=parseInt(u/2))),t=v?r*p*-1+g*p:r*f*-1+g*f,!0===h){var y,_=o.default.findDOMNode(i);if(y=r+k(e),t=(n=_&&_.childNodes[y])?-1*n.offsetLeft:0,!0===s){y=a?r+k(e):r,n=_&&_.children[y],t=0;for(var w=0;w<y;w++)t-=_&&_.children[w]&&_.children[w].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},k=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},E=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},S=t.getTotalSlides=function(e){return 1===e.slideCount?1:k(e)+e.slideCount+E(e)},T=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+O(e)?"left":"right":e.targetSlide<e.currentSlide-C(e)?"right":"left"},O=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1},C=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0};t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(252);e.exports=function(e,t){return r(t[e])||r(t["@@implements"])&&!!t["@@implements"](e)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";var r,i={noop:function(){},uid:(r=0,function(){return r++}),isNullOrUndef:function(e){return null==e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return i.valueOrDefault(i.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var o,a,s;if(i.isArray(e))if(a=e.length,r)for(o=a-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<a;o++)t.call(n,e[o],o);else if(i.isObject(e))for(a=(s=Object.keys(e)).length,o=0;o<a;o++)t.call(n,e[s[o]],s[o])},arrayEquals:function(e,t){var n,r,o,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],a=t[n],o instanceof Array&&a instanceof Array){if(!i.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},clone:function(e){if(i.isArray(e))return e.map(i.clone);if(i.isObject(e)){for(var t={},n=Object.keys(e),r=n.length,o=0;o<r;++o)t[n[o]]=i.clone(e[n[o]]);return t}return e},_merger:function(e,t,n,r){var o=t[e],a=n[e];i.isObject(o)&&i.isObject(a)?i.merge(o,a,r):t[e]=i.clone(a)},_mergerIf:function(e,t,n){var r=t[e],o=n[e];i.isObject(r)&&i.isObject(o)?i.mergeIf(r,o):t.hasOwnProperty(e)||(t[e]=i.clone(o))},merge:function(e,t,n){var r,o,a,s,c,u=i.isArray(t)?t:[t],l=u.length;if(!i.isObject(e))return e;for(r=(n=n||{}).merger||i._merger,o=0;o<l;++o)if(t=u[o],i.isObject(t))for(c=0,s=(a=Object.keys(t)).length;c<s;++c)r(a[c],e,t,n);return e},mergeIf:function(e,t){return i.merge(e,t,{merger:i._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,r=arguments.length;n<r;++n)i.each(arguments[n],t);return e},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=i.inherits,e&&i.extend(n.prototype,e),n.__super__=t.prototype,n}};e.exports=i,i.callCallback=i.callback,i.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},i.getValueOrDefault=i.valueOrDefault,i.getValueAtIndexOrDefault=i.valueAtIndexOrDefault},function(e,t,n){var r=n(2031),i=n(2032),o=n(2033),a=n(2034),s=n(2035);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(1053);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(253).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(307)(Object,"create");e.exports=r},function(e,t,n){var r=n(2055);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(2075),i=n(2082),o=n(647);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(407),i=n(408),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(510),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){"use strict";var r=n(113);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){"use strict";if(n(180)){var r=n(127),i=n(37),o=n(2173),a=n(170),s=n(1175),c=n(571),u=n(651),l=n(308),f=n(187),d=n(2216),h=n(2233),p=n(410),m=n(244),v=n(1173),g=n(162),y=n(568),b=n(719),_=n(652).f,w=n(2234),x=n(296)(0),k=n(720),E=n(201),S=n(325),T=n(374),O=T.get,C=T.set,j=E.f,A=S.f,M=r.RangeError,P=s.ArrayBuffer,N=s.DataView,I=a.NATIVE_ARRAY_BUFFER_VIEWS,L=a.TYPED_ARRAY_TAG,D=a.TypedArray,R=a.TypedArrayPrototype,B=a.aTypedArrayConstructor,F=a.isTypedArray,U=function(e,t){for(var n=0,r=t.length,i=new(B(e))(r);r>n;)i[n]=t[n++];return i},q=function(e,t){j(e,t,{get:function(){return O(this)[t]}})},z=function(e){var t;return e instanceof P||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},H=function(e,t){return F(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},W=function(e,t){return H(e,t=p(t,!0))?u(2,e[t]):A(e,t)},V=function(e,t,n){return!(H(e,t=p(t,!0))&&g(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?j(e,t,n):(e[t]=n.value,e)};I||(S.f=W,E.f=V,q(R,"buffer"),q(R,"byteOffset"),q(R,"byteLength"),q(R,"length")),i({target:"Object",stat:!0,forced:!I},{getOwnPropertyDescriptor:W,defineProperty:V}),e.exports=function(e,t,n,a){var s=e+(a?"Clamped":"")+"Array",u="get"+e,p="set"+e,m=r[s],v=m,E=v&&v.prototype,S={},T=function(e,n){j(e,n,{get:function(){return function(e,n){var r=O(e);return r.view[u](n*t+r.byteOffset,!0)}(this,n)},set:function(e){return function(e,n,r){var i=O(e);a&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.view[p](n*t+i.byteOffset,r,!0)}(this,n,e)},enumerable:!0})};I?o&&(v=n(function(e,n,r,i){return c(e,v,s),g(n)?z(n)?void 0!==i?new m(n,h(r,t),i):void 0!==r?new m(n,h(r,t)):new m(n):F(n)?U(v,n):w.call(v,n):new m(d(n))}),b&&b(v,D),x(_(m),function(e){e in v||l(v,e,m[e])}),v.prototype=E):(v=n(function(e,n,r,i){c(e,v,s);var o,a,u,l=0,p=0;if(g(n)){if(!z(n))return F(n)?U(v,n):w.call(v,n);o=n,p=h(r,t);var m=n.byteLength;if(void 0===i){if(m%t)throw M("Wrong length");if((a=m-p)<0)throw M("Wrong length")}else if((a=f(i)*t)+p>m)throw M("Wrong length");u=a/t}else u=d(n),o=new P(a=u*t);for(C(e,{buffer:o,byteOffset:p,byteLength:a,length:u,view:new N(o)});l<u;)T(e,l++)}),b&&b(v,D),E=v.prototype=y(R)),E.constructor!==v&&l(E,"constructor",v),L&&l(E,L,s),S[s]=v,i({global:!0,forced:v!=m,sham:!I},S),"BYTES_PER_ELEMENT"in v||l(v,"BYTES_PER_ELEMENT",t),"BYTES_PER_ELEMENT"in E||l(E,"BYTES_PER_ELEMENT",t),k(s)}}else e.exports=function(){}},function(e,t,n){var r=n(1188);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(205),i=n(18),o=n(193),a=n(30);e.exports=i(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:o(function(e,n){return r(e,a(n,t))},[],e)})},function(e,t,n){"use strict";e.exports=n(1224)},function(e,t,n){var r=n(220),i=n(1317),o=n(109),a=n(340);e.exports=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e||t})},function(e,t,n){var r=n(18),i=n(468),o=n(57),a=n(283),s=n(183),c=n(109);e.exports=r(function(e,t){return o(c(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,i(function(e){return e.apply(r,n)},t))})})},function(e,t,n){var r=n(18),i=n(134),o=n(826);e.exports=r(i(["any"],o,function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1}))},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e.apply(this,t)})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r})},function(e,t,n){var r=n(301),i=n(18);e.exports=i(function(e,t){for(var n=[],i=0,o=e.length;i<o;)r(e[i],t)||r(e[i],n)||(n[n.length]=e[i]),i+=1;return n})},function(e,t,n){var r=n(18),i=n(134),o=n(1525),a=n(182);e.exports=r(i(["drop"],o,function(e,t){return a(Math.max(0,e),1/0,t)}))},function(e,t,n){"use strict";var r,i,o=n(639).toUnsigned,a=function(e){return new Date(1e3*e-20828448e5)},s=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},c=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},u=function(e,t){var n,r,i,a,s,l=[];if(!t.length)return null;for(n=0;n<e.byteLength;)r=o(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),i=c(e.subarray(n+4,n+8)),a=r>1?n+r:e.byteLength,i===t[0]&&(1===t.length?l.push(e.subarray(n+8,a)):(s=u(e.subarray(n+8,a),t.slice(1))).length&&(l=l.concat(s))),n=a;return l},l=function(e){var t,n,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=[];for(t=0;t+4<e.length;t+=n)if(n=r.getUint32(t),t+=4,n<=0)i.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&e[t]){case 1:i.push("slice_layer_without_partitioning_rbsp");break;case 5:i.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:i.push("sei_rbsp");break;case 7:i.push("seq_parameter_set_rbsp");break;case 8:i.push("pic_parameter_set_rbsp");break;case 9:i.push("access_unit_delimiter_rbsp");break;default:i.push("UNKNOWN NAL - "+e[t]&31)}return i},f={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:r(e.subarray(78,e.byteLength))}},avcC:function(e){var t,n,r,i,o=new DataView(e.buffer,e.byteOffset,e.byteLength),a={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},s=31&e[5];for(r=6,i=0;i<s;i++)n=o.getUint16(r),r+=2,a.sps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;for(t=e[r],r++,i=0;i<t;i++)n=o.getUint16(r),r+=2,a.pps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;return a},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={majorBrand:c(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},r=8;r<e.byteLength;)n.compatibleBrands.push(c(e.subarray(r,r+4))),r+=4;return n},dinf:function(e){return{boxes:r(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:r(e.subarray(8))}},hdlr:function(e){var t={version:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:c(e.subarray(8,12)),name:""},n=8;for(n=24;n<e.byteLength;n++){if(0===e[n]){n++;break}t.name+=String.fromCharCode(e[n])}return t.name=decodeURIComponent(escape(t.name)),t},mdat:function(e){return{byteLength:e.byteLength,nals:l(e)}},mdhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=4,i={version:n.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===i.version?(r+=4,i.creationTime=a(n.getUint32(r)),r+=8,i.modificationTime=a(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=8,i.duration=n.getUint32(r)):(i.creationTime=a(n.getUint32(r)),r+=4,i.modificationTime=a(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=4,i.duration=n.getUint32(r)),r+=4,t=n.getUint16(r),i.language+=String.fromCharCode(96+(t>>10)),i.language+=String.fromCharCode(96+((992&t)>>5)),i.language+=String.fromCharCode(96+(31&t)),i},mdia:function(e){return{boxes:r(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:r(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&(n.streamDescriptor=r(e.subarray(28))[0]),n},moof:function(e){return{boxes:r(e)}},moov:function(e){return{boxes:r(e)}},mvex:function(e){return{boxes:r(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=a(t.getUint32(n)),n+=8,r.modificationTime=a(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=8,r.duration=t.getUint32(n)):(r.creationTime=a(t.getUint32(n)),n+=4,r.modificationTime=a(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=4,r.duration=t.getUint32(n)),n+=4,r.rate=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,n+=8,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,n+=24,r.nextTrackId=t.getUint32(n),r},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)n.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return n},sidx:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8),earliestPresentationTime:n.getUint32(12),firstOffset:n.getUint32(16)},i=n.getUint16(22);for(t=24;i;t+=12,i--)r.references.push({referenceType:(128&e[t])>>>7,referencedSize:2147483647&n.getUint32(t),subsegmentDuration:n.getUint32(t+4),startsWithSap:!!(128&e[t+8]),sapType:(112&e[t+8])>>>4,sapDeltaTime:268435455&n.getUint32(t+8)});return r},smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:r(e)}},stco:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},i=n.getUint32(4);for(t=8;i;t+=4,i--)r.chunkOffsets.push(n.getUint32(t));return r},stsc:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n.getUint32(4),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;r;t+=12,r--)i.sampleToChunks.push({firstChunk:n.getUint32(t),samplesPerChunk:n.getUint32(t+4),sampleDescriptionIndex:n.getUint32(t+8)});return i},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:r(e.subarray(8))}},stsz:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:n.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)r.entries.push(n.getUint32(t));return r},stts:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},i=n.getUint32(4);for(t=8;i;t+=8,i--)r.timeToSamples.push({sampleCount:n.getUint32(t),sampleDelta:n.getUint32(t+4)});return r},styp:function(e){return f.ftyp(e)},tfdt:function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:o(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=o(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},tfhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],o=2&r.flags[2],a=8&r.flags[2],s=16&r.flags[2],c=32&r.flags[2],u=65536&r.flags[0],l=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),o&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),c&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&l&&(r.baseDataOffsetIsMoof=!0),r},tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=a(t.getUint32(n)),n+=8,r.modificationTime=a(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=8,r.duration=t.getUint32(n)):(r.creationTime=a(t.getUint32(n)),n+=4,r.modificationTime=a(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=4,r.duration=t.getUint32(n)),n+=4,n+=8,r.layer=t.getUint16(n),n+=2,r.alternateGroup=t.getUint16(n),n+=2,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,r.width=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.height=t.getUint16(n)+t.getUint16(n+2)/16,r},traf:function(e){return{boxes:r(e)}},trak:function(e){return{boxes:r(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],o=4&n.flags[2],a=1&n.flags[1],c=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],f=r.getUint32(4),d=8;for(i&&(n.dataOffset=r.getInt32(d),d+=4),o&&f&&(t={flags:s(e.subarray(d,d+4))},d+=4,a&&(t.duration=r.getUint32(d),d+=4),c&&(t.size=r.getUint32(d),d+=4),l&&(t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t),f--);f--;)t={},a&&(t.duration=r.getUint32(d),d+=4),c&&(t.size=r.getUint32(d),d+=4),u&&(t.flags=s(e.subarray(d,d+4)),d+=4),l&&(t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t);return n},"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};r=function(e){for(var t,n,r,i,o,a=0,s=[],u=new ArrayBuffer(e.length),l=new Uint8Array(u),d=0;d<e.length;++d)l[d]=e[d];for(t=new DataView(u);a<e.byteLength;)n=t.getUint32(a),r=c(e.subarray(a+4,a+8)),i=n>1?a+n:e.byteLength,(o=(f[r]||function(e){return{data:e}})(e.subarray(a+8,i))).size=n,o.type=r,s.push(o),a=i;return s},i=function(e,t){var n;return t=t||0,n=new Array(2*t+1).join(" "),e.map(function(e,r){return n+e.type+"\n"+Object.keys(e).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(t){var r=n+" "+t+": ",i=e[t];if(i instanceof Uint8Array||i instanceof Uint32Array){var o=Array.prototype.slice.call(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return o?1===o.length?r+"<"+o.join("").slice(1)+">":r+"<\n"+o.map(function(e){return n+" "+e}).join("\n")+"\n"+n+" >":r+"<>"}return r+JSON.stringify(i,null,2).split("\n").map(function(e,t){return 0===t?e:n+" "+e}).join("\n")}).join("\n")+(e.boxes?"\n"+i(e.boxes,t+1):"")}).join("\n")},e.exports={inspect:r,textify:i,parseType:c,findBox:u,parseTraf:f.traf,parseTfdt:f.tfdt,parseHdlr:f.hdlr,parseTfhd:f.tfhd,parseTrun:f.trun,parseSidx:f.sidx}},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})},function(e,t,n){var r=n(61),i=n(31);e.exports=r(function(e,t,n){return t.length>0&&e(i(t,n))})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=e.length,r=[],i=0;i<n;)r[i]=t[e[i]],i+=1;return r})},function(e,t,n){var r,i=n(18);e.exports=(r=function(e){return{value:e,"fantasy-land/map":function(){return this}}},i(function(e,t){return e(r)(t).value}))},function(e,t,n){e.exports=n(1666)},function(e,t,n){e.exports=n(1272)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90);e.exports=r(function(e,t,n){if(!i(e)||!i(t))throw new TypeError("substitution: Functions required for first two arguments");return r(e)(n,t(n))})},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},u.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,o),!0;case 6:return l.fn.call(l.context,t,n,r,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,u=[],l=a.length;s<l;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,e.exports=u},function(e,t,n){var r=n(51),i=n(483);e.exports=r(function(e){return i(1,e)})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(54),i=n.n(r)()("rise/partnerContent/")("SET_ALL_PARTNER_CONTENT")},function(e,t,n){"use strict";var r=n(1102),i=n.n(r);t.a=function(e){var t=e.authors,n=e.author,r=e.selectedAuthorId;return i()(t,{id:r||n})||{}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=function(e){var t=e["aria-hidden"],n=e["aria-label"],r=e.className,o=e.desc,a=e.height,s=e.role,c=void 0===s?"img":s,u=e.title,l=e.width;return i.a.createElement("svg",{"aria-hidden":t,"aria-label":n,className:r,focusable:"false",height:a,role:c,viewBox:"0 0 493 493",width:l,xmlns:"http://www.w3.org/2000/svg"},u&&i.a.createElement("title",null,u),o&&i.a.createElement("desc",null,o),i.a.createElement("path",{d:"M72.1125 306.317L102.113 306.318L102.112 369.127L369.124 102.115L306.316 102.115L306.315 72.1142L420.31 72.1149L420.311 186.11L390.311 186.109L390.311 123.355L123.352 390.313L186.107 390.312L186.108 420.313L72.1125 420.313V306.317Z"}))}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(311),i=n.n(r),o=n(8),a=n.n(o),s=n(196),c=n.n(s),u=(n(53),n(182),n(257)),l=n.n(u),f=n(667),d=n.n(f);n(42);function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",r=e?e.toString():"";return r.length>t?r.substr(0,t-1)+n:r}new RegExp(/^[0-9]+$/),a()(c()(""),i()(d.a,0),l()(""))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(90)},function(e,t,n){e.exports=n(1931)},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(1032)),i=l(n(1033)),o=l(n(0)),a=l(n(91)),s=l(n(1034)),c=l(n(1035)),u=l(n(1947));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,e.call.apply(e,[this].concat(o))),r.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;r._portalContainerNode=(0,s.default)(e.container,(0,c.default)(r).body)},r.getMountNode=function(){return r._portalContainerNode},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?a.default.createPortal(this.props.children,this._portalContainerNode):null},t}(o.default.Component);d.displayName="Portal",d.propTypes={container:r.default.oneOfType([i.default,r.default.func]),onRendered:r.default.func},t.default=a.default.createPortal?d:u.default,e.exports=t.default},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(39),a=n.n(o),s=n(48),c=n.n(s),u=n(231),l=n.n(u),f=n(229),d=n.n(f),h=n(71),p=n.n(h),m=function(e){return function(t){e.setState({xTouchDown:t.touches[0].clientX,yTouchDown:t.touches[0].clientY})}},v=function(e){return function(t){e.setState({xTouchMove:t.touches[0].clientX,yTouchMove:t.touches[0].clientY})}},g=function(e,t,n,r){return function(){if(e.state.xTouchDown&&e.state.xTouchMove){var o=e.state.xTouchDown-e.state.xTouchMove,s=e.state.yTouchDown-e.state.yTouchMove,u=c()(l.a),f=c()(d.a),h=b(e);if(Math.abs(o)>Math.abs(s))a()([[u(r),t],[f(-r),n],[p.a,i()()]])(o),h()}}},y=function(e){return function(){b(e)}},b=function(e){return function(){e.setState({xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null})}};t.a=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={touchstart:m(t),touchmove:v(t),touchend:g(t,n,r,i),touchcancel:y(t)};return{addListeners:function(){e.addEventListener("touchstart",o.touchstart),e.addEventListener("touchmove",o.touchmove),e.addEventListener("touchend",o.touchend),e.addEventListener("touchcancel",o.touchcancel)},removeListeners:function(){e.removeEventListener("touchstart",o.touchstart),e.removeEventListener("touchmove",o.touchmove),e.removeEventListener("touchend",o.touchend),e.removeEventListener("touchcancel",o.touchcancel)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return k});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(33),f=n.n(l),d=n(4),h=n.n(d),p=n(5),m=n.n(p),v=(n(1961),n(2)),g=n.n(v),y=n(1),b=n.n(y),_=n(43),w=n(213);function x(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var k=function(t){Object(s.a)(r,t);var n=x(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={isMoving:!1,failed:!1,position:{x:0,y:0},reset:!0},t}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e,t,n,r=this;f()(function(){r.setState({reset:!1})},300),Object(w.a)(this.card).draggable({inertia:!0,autoScroll:!1,snap:{targets:[function(e,t){return{x:e,y:t}}],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]}}).on("dragstart",this.onDragStartRef=h()(e=this.onStartSortAttempt).call(e,this)).on("dragmove",this.onDragMoveRef=h()(t=this.onDragMove).call(t,this)).on("dragend",this.onDragEndRef=h()(n=this.onEndSortAttempt).call(n,this))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.resetTimeout),Object(w.a)(this.card).off("dragstart",this.onDragStartRef).off("dragmove",this.onDragMoveRef).off("dragend",this.onDragEndRef)}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.isMoving&&!this.state.isMoving&&(this.setState({failed:!0}),this.resetTimeout=f()(function(){n.setState({position:{x:0,y:0},failed:!1}),delete n.resetTimeout},300))}},{key:"cardStyle",value:function(){var e,t=this.state.position,n=t.x,r=t.y,i=m()(e="translate3d(".concat(n,"px, ")).call(e,r,"px, 0)");return{WebkitTransform:i,transform:i}}},{key:"render",value:function(){var t=this,n=this.state,r=n.isMoving,i=n.failed,o=n.reset,a=this.props,s=a.id,c=a.isDeckTopCard,u=a.title,l=g()("playing-card playing-card--draggable",{"playing-card--moving":r,"playing-card--fail":i,reset:o});return e.createElement("div",{"aria-hidden":!c,className:l,id:s,key:"card-".concat(s),ref:function(e){return t.card=e},style:this.cardStyle(),onMouseDown:function(e){e.preventDefault()}},e.createElement("div",{className:"playing-card__content brand--border"},e.createElement(_.a,{className:"playing-card__title brand--head",value:u}),e.createElement("div",{className:"playing-card__handle"}),e.createElement("div",{className:"playing-card__status brand--background"},e.createElement("i",{className:"icon icon-check"}))))}},{key:"onStartSortAttempt",value:function(){this.setState({isMoving:!0,failed:!1})}},{key:"onDragMove",value:function(e){var t=e.dx,n=e.dy,r=this.state.position,i=r.x+t,o=r.y+n;this.setState({position:{x:i,y:o}})}},{key:"onEndSortAttempt",value:function(){this.setState({isMoving:!1})}}],[{key:"propTypes",get:function(){return{id:b.a.any.isRequired,isIncorrect:b.a.bool,title:b.a.string}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(1962);var r=n(20),i=n(144);t.a=function(t){var n=t.allowTabNavigation,o=void 0===n||n,a=t.onClick,s=t.onFocus,c=void 0===s?i.b:s,u=t.text;return e.createElement("button",{"aria-hidden":!o,className:"restart-button button brand--hoverColor",onClick:a,onFocus:c,tabIndex:Object(r.m)(o),type:"button"},e.createElement("div",{className:"restart-button__content"},e.createElement("span",{className:"restart-button__text brand--ui"},u),e.createElement("i",{"aria-hidden":"true",className:"restart-button__icon icon icon-reload"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2;var s=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function c(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(c,t);i=e}return u}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=b(0,0,0,0);function p(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),c=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=m(r,"left","right")+o),Math.round(c+a)!==n&&(c-=m(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(s+o)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return b(i.left,i.top,s,c)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?g(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):v(e):h}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(){return function(e,t){var n,r,i,o,a,s,c,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),f(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);f(this,{target:e,contentRect:u})}}(),x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new n,E=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new x(t,n,this);k.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}});var S=void 0!==i.ResizeObserver?i.ResizeObserver:E;t.a=S}).call(this,n(99))},function(e,t,n){"use strict";e.exports=n(1984)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2128)),i=s(n(2129)),o=s(n(446)),a=s(n(2130));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var u=function(e,t,n){var s=c((0,o.default)(e),4),u=s[0],l=s[1],f=s[2],d=s[3],h=c((0,o.default)(t),4),p=h[0],m=h[1],v=h[2],g=h[3],y=(0,a.default)([(0,r.default)(u,p,n),(0,r.default)(l,m,n),(0,r.default)(f,v,n),(0,i.default)(d,g,n)]);return 1===d&&1===g?y.slice(0,7):y};t.default=u},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return o});var r=n(126),i=n(1160);function o(t){var n=function(n){return e.createElement(i.a,n,e.createElement(t,null))};return n.displayName="ChartWrap(".concat(Object(r.b)(t),")"),n}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return M});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(575),f=n.n(l),d=n(5),h=n.n(d),p=n(0),m=n.n(p),v=n(17),g=n.n(v),y=n(2),b=n.n(y),_=n(39),w=n.n(_),x=n(38),k=n.n(x),E=n(1),S=n.n(E),T=n(71),O=n.n(T),C=n(40),j=n(291);function A(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}m.a.Component;function M(e){switch(e.icon){case j.a.ARTICLE:return m.a.createElement(C.a,null);case j.a.INTERACTION:return m.a.createElement(C.F,null);case j.a.QUIZ:return m.a.createElement(C.D,null);case j.a.VIDEO:return m.a.createElement(C.G,null);default:return m.a.createElement("i",{className:"icon icon-Master-02"})}}},function(e,t,n){"use strict";var r=n(50),i=n(5),o=n.n(i),a=n(34),s=n.n(a),c=n(4),u=n.n(c),l=function(){return window.innerWidth},f=function(){return window.innerHeight},d=function(e,t,n){return n.setAttribute(e,t)},h=function(e,t){for(var n,r=(null===(n=t.parentNode)||void 0===n?void 0:n.children)||[],i=0;i<r.length;i++){var o=r[i];o&&o!==t&&e(o)}},p=function(e,t){t.removeAttribute(e)},m=function(e,t,n,r){r.style.setProperty(t,n,e)},v=function(e){return document.createElement(e)},g=function(e,t,n,r){void 0===r&&(r=!1),n.addEventListener(e,t,r)},y=function(e,t){return t.appendChild(e)},b=function(e,t,n,r){void 0===r&&(r=!1),n.removeEventListener(e,t,r)},_=function(e,t,n){var r=l()/(e+n),i=f()/(t+n);return Math.min(r,i)},w=function(e,t){void 0===e&&(e={preventScroll:!1}),null==t||t.focus(e)};n.d(t,"a",function(){return x});var x=function(){var e,t,n,i,a,c,u,_,w,x,C={closeText:"Unzoom image",modalText:"Zoomed item",openText:"Zoom image",overlayBgColor:"#fff",overlayOpacity:1,transitionDuration:300,zoomMargin:0,zoomZindex:2147483647},j=[],A="UNLOADED",M=C.transitionDuration,P=function(e){var t,n,r=e?0:M,a=(t=i)?t.getBoundingClientRect():{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},s=a.height,u=a.left,h=a.top,p=a.width,m=i,v=m.naturalHeight,g=m.naturalWidth,y=function(e,t){return function(e){return e.style}(t)[e]}("transform",i),b=S.test(i.currentSrc);if("LOADED"!==A)n="scale(1) translate(0,0)"+(y?" ".concat(y):"");else{var _,w,x=k(p,g,s,v,b,C.zoomMargin),E=(l()/2-(u+p/2))/x,T=(f()/2-(h+s/2))/x;n=o()(_=o()(w="scale(".concat(x,") translate(")).call(w,E,"px,")).call(_,T,"px)")+(y?" ".concat(y):"")}d("style","position:absolute;"+"width:".concat(p,"px;")+"height:".concat(s,"px;")+"left:".concat(u,"px;")+"top:".concat(h,"px;")+"transition:transform ".concat(r,"ms ease;")+"-webkit-transform:".concat(n,";")+"-ms-transform:".concat(n,";")+"transform:".concat(n,";"),c)},N=function(){m("","visibility","",i),A="UNLOADED",P(!0),z(),O(w),w=void 0},I=function(){O(n)},L=function(e){E(e)&&(e.stopPropagation(),W())},D=function(){"LOADED"===A?W():"UNLOADING"===A&&P(!1)},R=function(){P(!0)},B=function(){O(n)},F=function(){W()},U=function(){W()},q=function(){u=function(){var r=v("div");d("data-iz-overlay","",r),d("style","position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;"+"z-index:".concat(C.zoomZindex,";"),r),g("click",U,r),x=v("div");var i=v("div");return d("aria-label",C.modalText,i),d("aria-modal","true",i),d("role","dialog",i),e=v("div"),d("tabindex","0",e),g("focus",B,e),t=v("div"),d("tabindex","0",t),g("focus",B,t),n=v("button"),d("aria-label",C.closeText,n),d("style","position:absolute;touch-action:manipulation;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;margin:0;padding: 0;top:0;right:0;bottom:0;left:0;height:100%;width:100%;cursor:pointer;cursor:-webkit-zoom-out;cursor:zoom-out;z-index:1;",n),d("type","button",n),g("click",F,n),y(n,i),c=v("div"),y(a,c),y(c,i),y(x,r),y(e,r),y(i,r),y(t,r),r}(),y(u,document.body),g("keydown",L,document),g("scroll",D,window),g("resize",R,window),m("","visibility","hidden",i),g("transitionend",I,c),A="LOADED",P(!1),u&&h(function(e){if(!T(e)){var t=function(e,t){return t.getAttribute(e)}("aria-hidden",e);t&&j.push([e,t]),d("aria-hidden","true",e)}},u),d("style","position:absolute;top:0;right:0;bottom:0;left:0;"+"background-color:".concat(C.overlayBgColor,";")+"transition:opacity ".concat(M,"ms ease;")+"opacity:0;",x),m("","opacity",C.overlayOpacity,x)},z=function(){var r,o;b("resize",R,window),b("scroll",D,window),b("keydown",L,document),a&&b("load",q,a),c&&(b("transitionend",N,c),b("transitionend",I,c)),n&&b("click",F,n),e&&b("focus",B,e),t&&b("focus",B,t),u&&(b("click",U,u),r=u,(o=document.body).contains(r)&&o.removeChild(r)),_&&_.removeListener(H),j=[],e=void 0,t=void 0,n=void 0,i=void 0,a=void 0,c=void 0,u=void 0,_=void 0,x=void 0,A="UNLOADED"},H=function(){M=0},W=function(){var e;"LOADED"===A?(null==(e=n)||e.blur(),u&&h(function(e){T(e)||p("aria-hidden",e)},u),s()(j).call(j,function(e){var t=Object(r.a)(e,2),n=t[0],i=t[1];n&&d("aria-hidden",i,n)}),j=[],g("transitionend",N,c),A="UNLOADING",P(!1),m("","opacity","0",x)):P(!1)};return(_=window.matchMedia("(prefers-reduced-motion:reduce)")).addListener(H),{cleanup:function(){z()},zoom:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("UNLOADED"===A){for(var r in i=e,w=t,n)C[r]=n[r];a=function(e,t){return void 0===e&&(e=!0),t.cloneNode(e)}(!0,e),p("id",a),d("data-iz-zoomed","",a),m("","max-width","100%",a),m("","max-height","100%",a),m("","width","100%",a),m("","height","auto",a),g("load",q,a)}}}},k=function(e,t,n,r,i,o){return!i&&r&&t?function(e,t,n,r,i){var o=_(t,r,i),a=t>r?t/e:r/n;return o>1?a:o*a}(e,t,n,r,o):_(e,n,o)},E=function(e){return"Escape"===e.key||27===e.keyCode},S=/\.svg$/i,T=function(e){var t=e.tagName;return"SCRIPT"===t||"NOSCRIPT"===t||"STYLE"===t},O=u()(w).call(w,null,{preventScroll:!0})},function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(26),a=n.n(o),s=n(115),c=n.n(s),u=n(25),l=n.n(u),f=n(87),d=n.n(f),h=n(42),p=n.n(h),m=n(60),v=n.n(m),g=n(45),y=n.n(g),b=n(59),_=n.n(b),w=n(44),x=n.n(w),k=n(34),E=n.n(k),S=n(49),T=n.n(S),O=n(75),C=n.n(O),j=n(62),A=n.n(j),M=n(12),P=n(5),N=n.n(P),I=n(346),L=n.n(I),D=n(210),R=n.n(D),B=n(290),F=n.n(B),U=n(1126),q=n.n(U),z=n(1127),H=n.n(z),W=n(156),V=n.n(W),Y=n(421),G=n.n(Y),K=n(361),$=n.n(K),X=n(54),Q=n.n(X),Z=n(48),J=n.n(Z),ee=n(100),te=n.n(ee),ne=n(32),re=n.n(ne),ie=n(157),oe=n.n(ie),ae=n(24),se=n.n(ae),ce=n(107),ue=n.n(ce),le=n(15),fe=n.n(le),de=n(209),he=n.n(de),pe=n(186),me=n(144),ve=n(292),ge=n(22);function ye(e,t){var n=v()(e);if(y.a){var r=y()(e);t&&(r=_()(r).call(r,function(t){return x()(e,t).enumerable})),n.push.apply(n,r)}return n}var be=J()(Q.a),_e=function(e){return function(t){var n;return N()(n="".concat(e,"/")).call(n,t.id)}},we=function(e,t){return V()(function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)E()(n=ye(Object(r),!0)).call(n,function(t){Object(M.a)(e,t,r[t])});else if(T.a)C()(e,T()(r));else{var i;E()(i=ye(Object(r))).call(i,function(t){A()(e,t,x()(r,t))})}}return e}({data:Object(pe.action)(t),method:"POST",url:Object(me.a)(be("/".concat(t)),fe()("url"),e)},ue()(["headers","withCredentials"],e)))},xe=function(e){return function(t,n){return q()(t,_e(n),Oe(e,n))}},ke=function(){return!ge.e&&re()(Object(ve.a)())},Ee=function(e){var t=new Error("Nil token detected");return F.a.notify(t,function(e){return function(t){t.severity="info",t.addMetadata("payload",e)}}(e)),R.a.Rejected(t)},Se=function(e){return function(t){return function(n){return function(r){return Object(me.c)(r,we(t,n),te()(ke,Ee,e),G()(function(e){return l()(se()({},["response","data"]),d()(fe()("type"),Object(pe.error)(e)))}(n),p()(c()("data"),fe()("data"))),$()(te()(fe()("error"),R.a.Rejected,R.a.of)),function(e,t){return function(n){return e.postRequest?e.postRequest(t,n):n}}(t,{type:n,payload:r}))}}}},Te=R.a.fromPromise(function(e){var t=e.url,n=e.method,r=e.data;return fetch(t,{method:n,credentials:"include",headers:{"Content-Type":"application/json"},body:L()(r),keepalive:!0}).then(function(e){return e.json()}).then(oe()("data"))}),Oe=he()(3,Se(ve.b)),Ce=he()(3,Se(Te)),je=function(e){return function(t,n){return H()(t,_e(n),Oe(e,n))}},Ae=function(e){return{debounce:xe(e),send:Oe(e),fetchWithKeepAlive:Ce(e),throttle:je(e)}}({headers:function(){return{"x-rise-authoring-client":"5ebeb56a66a26b681d8cec61aebd778528b41dcf"}},postRequest:function(e,t){return t},url:"".concat(Object(ge.c)("RISE_RUNTIME_URI"),"/ducks"),withCredentials:!0}),Me=n(663),Pe=n.n(Me),Ne=n(95),Ie=Pe()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:Object(Ne.h)(),userRole:Object(Ne.c)(),subId:Object(Ne.g)(),subPlan:Object(Ne.e)(),subStatus:Object(Ne.f)()}}),Le=Q()("rise/track/")("TRACK");n.d(t,"a",function(){return De});var De=l()(d()(c()("userId"),a()("userId",Object(Ne.a)())),p()(i()(ge.e),Ie),Ae.send(Le))},function(e,t,n){"use strict";var r=n(1085),i=n(8),o=n.n(i),a=n(42),s=n.n(a)()(function(e){return void 0!==e},o()(JSON.parse,r.Base64.decode));t.a=s},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"a",function(){return f}),n.d(t,"b",function(){return d});var r=n(48),i=n.n(r),o=n(29),a=n.n(o),s=n(73),c=n.n(s),u=n(70),l=function(e){return function(t){return t(Object(u.g)({id:e,updateFn:f}))}},f=i()(a.a)({isComplete:!0,percentComplete:100}),d=c()(["isComplete","percentComplete"])},function(e,t,n){"use strict";n.d(t,"a",function(){return S}),n.d(t,"b",function(){return T}),n.d(t,"c",function(){return O});var r=n(26),i=n.n(r),o=n(8),a=n.n(o),s=n(48),c=n.n(s),u=n(94),l=n.n(u),f=n(88),d=n.n(f),h=n(29),p=n.n(h),m=n(73),v=n.n(m),g=n(58),y=n.n(g),b=n(19),_=n.n(b),w=n(42),x=n.n(w),k=n(77),E=n(70),S=function(e){var t=e.id,n=e.itemId;return function(e){return e(Object(E.g)({id:t,updateFn:C(n)}))}},T=a()(c()(p.a)({isComplete:!0,percentComplete:100}),y()(d()("items"),Object(k.e)(i()("isComplete",!0)))),O=a()(v()(["isComplete","percentComplete"]),y()(d()("items"),Object(k.e)(v()(["isComplete"])))),C=function(e){return a()(x()(_()("percentComplete",100),i()("isComplete",!0)),E.f,y()(l()(["items",e]),i()("isComplete",!0)))}},function(e,t,n){"use strict";n.d(t,"c",function(){return C}),n.d(t,"a",function(){return j}),n.d(t,"b",function(){return A});var r=n(17),i=n.n(r),o=n(26),a=n.n(o),s=n(8),c=n.n(s),u=n(48),l=n.n(u),f=n(229),d=n.n(f),h=n(283),p=n.n(h),m=n(29),v=n.n(m),g=n(157),y=n.n(g),b=n(73),_=n.n(b),w=n(19),x=n.n(w),k=n(52),E=n.n(k),S=n(42),T=n.n(S),O=n(70),C=function(e){var t=e.currentTime,n=e.id,r=e.percentComplete;return function(e){return e(Object(O.g)({id:n,updateFn:P({currentTime:t,percentComplete:r})}))}},j=l()(v.a)({currentTime:0,isComplete:!0,percentComplete:100}),A=_()(["currentTime","isComplete","percentComplete"]),M=T()(x()("percentComplete",100),a()("isComplete",!0)),P=function(e){var t=e.currentTime,n=e.percentComplete;return c()(a()("currentTime",t),M,function(e){return function(t){return c()(v()(t),y()("percentComplete"),Math.round,T()(d()(90),i()(100)),p()(e),E()(0,"percentComplete"))(t)}}(n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return C});var r=n(121),i=n.n(r),o=n(57),a=n.n(o),s=n(149),c=n.n(s),u=n(117),l=n.n(u),f=n(92),d=n.n(f),h=n(310),p=n.n(h),m=n(30),v=n.n(m),g=n(116),y=n.n(g),b=n(31),_=n.n(b),w=n(25),x=n.n(w),k=n(87),E=n.n(k),S=i()(function(e){return d()({avatar:j(e),back:j(e),background:j(e),front:j(e),media:M(e)})}),T=i()(function(e){return d()({items:v()(S(e)),media:M(e)})}),O=i()(function(e){return d()({coverImage:j(e),lessons:v()(E()(p()(String),C(e))),media:M(e)})}),C=i()(function(e){return d()({items:v()(T(e)),media:M(e)})}),j=i()(function(e){return d()({media:M(e)})}),A=(i()(function(e){return x()(l()(_()(["media",e]),_()(["media","tmp",e])),c()({}))}),i()(function(e,t,n){return"tmp"===n?M(e,t):"string"==typeof t?e[t]:t})),M=a()(2,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y()(A(e),t)})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return z}),n.d(t,"b",function(){return H});var r=n(3),i=n.n(r),o=n(28),a=n(12),s=n(9),c=n(10),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=(n(1953),n(17)),m=n.n(p),v=n(26),g=n.n(v),y=n(2),b=n.n(y),_=n(54),w=n.n(_),x=n(39),k=n.n(x),E=n(231),S=n.n(E),T=n(32),O=n.n(T),C=n(229),j=n.n(C),A=n(116),M=n.n(A),P=n(1),N=n.n(P),I=n(71),L=n.n(I),D=n(40),R=n(20),B=n(43),F=n(23),U=n(185);function q(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var z=function(t){Object(u.a)(r,t);var n=q(r);function r(){return Object(s.a)(this,r),n.apply(this,arguments)}return Object(c.a)(r,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.current,i=t.description,o=t.entered,a=t.fade,s=t.hasNavigation,c=t.index,u=t.initiating,l=t.media,f=t.position,d=f.next,h=f.prev,p=t.previous,v=t.title,g=t.type,y=!O()(h)&&!O()(d),_=w()("process-card__"),x=b()("process-card",{"process-card--initiating":u,"process-card--entered":o,"process-card--intro":"intro"===g,"process-card--summary":"summary"===g,"process-card--active":r===c,"process-card--prev-active":p===c,"process-card--next":r+1===c,"process-card--prev":r-1===c,"process-card--slide-fade":a}),E=k()([[S()(c),m()({transform:"translate3d(".concat(d,"px, 0px, 0px)")})],[j()(c),m()({transform:"translate3d(-".concat(h,"px, 0px, 0px)")})],[L.a,m()(null)]])(r),T={className:x,style:y?E:null};return e.createElement("div",T,e.createElement("div",{className:"process-card__inner"},e.createElement("div",null,"step"===g&&$(this.props,_),v&&X(this.props,_),l&&Y(this.props,_),i&&W(this.props,_),s&&"intro"===g&&K(this.props,_),"intro"!==g&&n,s&&"summary"===g&&G(this.props,_))))}},{key:"shouldComponentUpdate",value:function(e){if(e.current!==this.props.current||e.fade!==this.props.fade||e.initiating!==this.props.initiating||e.position!==this.props.position||e.previous!==this.props.previous||e.settings!==this.props.settings)return!0;var t=e.current,n=e.index,r=e.entered!==this.props.entered;return t===n&&r}}],[{key:"propTypes",get:function(){return{blockId:N.a.string.isRequired,children:N.a.node,current:N.a.number.isRequired,description:N.a.string,enableVideoPlaybackSpeed:N.a.bool,entered:N.a.bool,fade:N.a.bool,hasNavigation:N.a.bool,index:N.a.any.isRequired,initiating:N.a.bool,media:N.a.object,onMediaLoad:N.a.func,onNextClick:N.a.func.isRequired,onRestartClick:N.a.func.isRequired,number:N.a.number,position:N.a.object.isRequired,previous:N.a.number,settings:N.a.object.isRequired,title:N.a.string,type:N.a.oneOf(["intro","step","summary"])}}}]),r}(e.Component),H=function(t){Object(u.a)(r,t);var n=q(r);function r(){return Object(s.a)(this,r),n.apply(this,arguments)}return Object(c.a)(r,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.current,i=t.description,o=t.entered,a=t.hasNavigation,s=t.index,c=t.initiating,u=t.media,l=t.title,f=t.type,d=t.width,h=k()([[S()(s),m()({transform:"translate3d(".concat(d,"px, 0px, 0px)")})],[j()(s),m()({transform:"translate3d(-".concat(d,"px, 0px, 0px)")})],[L.a,m()(null)]])(r),p=b()("process-card-mobile",{"process-card-mobile--entered":o,"process-card-mobile--intro":"intro"===f,"process-card-mobile--summary":"summary"===f,"process-card-mobile--active":r===s,"process-card-mobile--initiating":c}),v=w()("process-card-mobile__");return e.createElement("div",{className:p,style:h},e.createElement("div",{className:"process-card-mobile__inner"},e.createElement("div",null,"step"===f&&$(this.props,v),l&&X(this.props,v),u&&Y(this.props,v),i&&W(this.props,v),a&&"intro"===f&&K(this.props,v),"intro"!==f&&n,a&&"summary"===f&&G(this.props,v),V(this.props,v))))}},{key:"shouldComponentUpdate",value:function(e){if(e.current!==this.props.current||e.initiating!==this.props.initiating||e.width!==this.props.width)return!0;var t=e.current,n=e.index,r=e.entered!==this.props.entered||e.showHelp!==this.props.showHelp;return t===n&&r}}],[{key:"propTypes",get:function(){return{blockId:N.a.string.isRequired,children:N.a.node,current:N.a.number.isRequired,description:N.a.string,enableVideoPlaybackSpeed:N.a.bool,entered:N.a.bool,hasNavigation:N.a.bool,id:N.a.string.isRequired,index:N.a.any.isRequired,initiating:N.a.bool.isRequired,labels:N.a.object.isRequired,media:N.a.object,onMediaLoad:N.a.func,onNextClick:N.a.func.isRequired,onRestartClick:N.a.func.isRequired,number:N.a.number,settings:N.a.object.isRequired,showHelp:N.a.bool,title:N.a.string,type:N.a.oneOf(["intro","step","summary"]),width:N.a.number}}}]),r}(e.Component),W=function(t,n){var r=t.current,i=t.description,o=t.index;return e.createElement(B.a,{allowTabNavigation:r===o,className:"".concat(n("description")," brand--body"),value:i})},V=function(t,n){var r=t.current,i=t.index,o=t.labels,s=t.showHelp,c=o.processSwipe,u=b()(n("help"),Object(a.a)({},"".concat(n("help"),"--show"),r===i&&s));return e.createElement("div",{className:u},e.createElement("span",null,c," ",e.createElement(D.f,null)))},Y=function(t,n){var r,i,o=t.blockId,a=t.current,s=t.enableVideoPlaybackSpeed,c=t.id,u=t.index,l=t.media,f=t.onMediaLoad,d=t.settings.zoomOnClick,p=a===u,v=M()(g()("pause",!0),l);return e.createElement("div",{className:n("media")},e.createElement(U.a,{allowTabNavigation:p,defaultAlign:"center",enableVideoPlaybackSpeed:s,hasPadding:!1,index:h()(r=h()(i="".concat(o,"-")).call(i,c,"-")).call(r,u),media:p?l:v,onLoad:p&&f?f:m.a,opts:{disableZoom:!d}}))},G=function(t,n){var r=t.current,i=t.index,o=t.labels,a=t.onRestartClick,s=o.processStartAgain,c=r===i?R.a:R.i,u={className:"".concat(n("restart")," brand--color"),onClick:a,onKeyDown:Object(F.a)(a),role:"button",tabIndex:c};return e.createElement("div",u,e.createElement("span",null,s),e.createElement("i",{className:"icon icon-reload"}))},K=function(t,n){var r=t.current,i=t.index,a=t.labels,s=t.onNextClick,c=a.processStart,u=r===i?R.a:R.i,l={className:"".concat(n("button")," brand--background"),onClick:s,onKeyDown:Object(F.a)(s),role:"button",tabIndex:u};return e.createElement("button",Object(o.a)({},l,{type:"button"}),e.createElement("span",null,c," ",e.createElement(D.f,null)))},$=function(t,n){var r,i=t.labels,o=t.number,a=t.settings,s=i.processStepName,c=a.stepLabel||s;return e.createElement("div",{className:"".concat(n("number")," brand--background brand--head")},e.createElement("p",null,h()(r="".concat(c," ")).call(r,o)))},X=function(t,n){return e.createElement("div",{className:"".concat(n("title")," brand--head")},e.createElement("h2",null,t.title))}}).call(this,n(0))},function(e,t,n){"use strict";e.exports=n(1985)},function(e,t,n){"use strict";
/*! @name @videojs/vhs-utils @version 1.3.0 @license MIT */function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(1843)),o=r(n(284));e.exports=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=i.buildAbsoluteURL(o.location&&o.location.href||"",e)),i.buildAbsoluteURL(e,t))}},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return ue}),n.d(t,"b",function(){return fe}),n.d(t,"a",function(){return de});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(28),x=n(12),k=n(9),E=n(10),S=n(7),T=n(11),O=n(14),C=n(6),j=n(5),A=n.n(j),M=n(4),P=n.n(M),N=n(161),I=n.n(N),L=n(16),D=n.n(L),R=(n(1878),n(17)),B=n.n(R),F=n(2),U=n.n(F),q=n(54),z=n.n(q),H=n(39),W=n.n(H),V=n(431),Y=n.n(V),G=n(38),K=n.n(G),$=n(92),X=n.n($),Q=n(1),Z=n.n(Q),J=n(71),ee=n.n(J),te=n(20),ne=n(23),re=n(63),ie=n(89),oe=n(56);function ae(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function se(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(C.a)(e);if(t){var o=Object(C.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(O.a)(this,n)}}var ce=n(65).b.blocks,ue=function(t){Object(T.a)(r,t);var n=se(r);function r(){var e,t,i;Object(k.a)(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=n.call.apply(n,A()(e=[this]).call(e,a))).renderItemDelegate=P()(t=i.renderItem).call(t,Object(S.a)(i)),i}return Object(E.a)(r,[{key:"nextNumber",value:function(e){var t,n=this.props.items,r=n.length>0?n[e].number:null;return isNaN(r)||""===r||(t=I()(r,10)+1),(t<1||t>99)&&(t=null),t}},{key:"renderItem",value:function(t){return e.createElement(le,t)}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.lessonId,o=n.blockId,a=n.isLearner,s=n.items,c=n.type,u=n.settings,l=n.editable,f=n.onStep,h=n.renderItem,m=void 0===h?this.renderItemDelegate:h,g=u.paddingTop,b=u.paddingBottom,w=u.backgroundColor,k=u.entranceAnimation,E=U()("block-list block-list--".concat(c),{"block-list--no-animation":!k}),S={backgroundColor:Object(re.a)("",w),paddingTop:"".concat(10*g,"px"),paddingBottom:"".concat(10*b,"px")};return e.createElement("div",{className:E,"data-ba":ce.blockList,style:S},e.createElement("div",{className:"block-list__container"},e.createElement("div",{className:"block-list__row"},e.createElement("div",{className:"block-list__col"},e.createElement(oe.a,{animateBlockEntrance:r,animateIn:"fadeInRight",className:"block-list__animated-item",isLearner:a,keepStructure:!0,siblingDelay:.25},e.createElement("ul",{className:"block-list__list",role:"list"},D()(s).call(s,function(e,n){var r;return m(function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=ae(Object(r),!0)).call(n,function(t){Object(x.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=ae(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}({key:e.id,index:n,lessonId:i,blockId:o,isDone:e.isDonw,type:c,editable:l,nextNumber:P()(r=t.nextNumber).call(r,t),onStep:f},e))})))))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:Z.a.bool.isRequired,lessonId:Z.a.any,blockId:Z.a.any,isLearner:Z.a.bool.isRequired,items:Z.a.array.isRequired,settings:Z.a.object.isRequired,type:Z.a.string,editable:Z.a.bool,onStep:Z.a.func}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered"}}}]),r}(e.Component),le=function(t){Object(T.a)(r,t);var n=se(r);function r(e){var t,i;Object(k.a)(this,r),(i=n.call(this,e)).renderTextDelegate=P()(t=i.renderText).call(t,Object(S.a)(i));var o="checkboxes"===e.type?Y()():null;return i.state={labelId:o,isChecked:!1},i}return Object(E.a)(r,[{key:"checkBox",value:function(e){e.preventDefault(),this.setState({isChecked:!this.state.isChecked}),this.props.onStep(this.props)}},{key:"renderText",value:function(t){return e.createElement(ie.a,t)}},{key:"renderItemText",value:function(t){var n=t.paragraphProps,r=this.props.renderText,i=void 0===r?this.renderTextDelegate:r,o=this.state.labelId;return o?e.createElement("div",{id:o},i(n)):i(n)}},{key:"renderIdentifier",value:function(t){return"checkboxes"===this.props.type?null:e.createElement("div",{className:"visually-hidden"},t)}},{key:"render",value:function(){var t,n,r=this,i=this.props,o=i.type,a=i.index,s=i.number,c=i.paragraph,u=i.editable,l=i.className,f=i.style,d=this.state,h=d.isChecked,p=d.labelId,m={allowTabNavigation:!0,className:"block-list__content brand--body brand--linkColor",editable:u,value:c},v=s||a+1,g="numbered"===o?v:"bullet",y=z()("hidden "),b=X()({allowTabNavigation:B()(!1),className:y},m),_=e.createElement("div",{"aria-hidden":!0,className:"block-list__number brand--background"},v),w=e.createElement("div",{className:"block-list__bullet brand--background"}),x=U()("block-list__checkbox","brand--border",{"block-list__checkbox--checked":h,"brand--background":h}),k=e.createElement("div",{className:x},e.createElement("i",{className:"block-list__checkbox__icon icon icon-checkmark-valid"}),e.createElement("div",{"aria-checked":h,"aria-labelledby":p,className:"block-list__checkbox__hitarea",onClick:P()(t=this.checkBox).call(t,this),onKeyDown:Object(ne.a)(P()(n=this.checkBox).call(n,this)),role:"checkbox",tabIndex:te.a})),E=W()([[K()("numbered"),B()(_)],[K()("bulleted"),B()(w)],[K()("checkboxes"),B()(k)],[ee.a,B()(_)]]);return e.createElement("li",{role:"listitem",ref:function(e){return r.animateRef=e},className:"block-list__item ".concat(l),style:f},e.createElement("div",{className:"block-list__content__left"},E(o),this.renderText(b)),this.renderIdentifier(g),this.renderItemText({paragraphProps:m}))}}],[{key:"propTypes",get:function(){return{id:Z.a.any.isRequired,lessonId:Z.a.any,blockId:Z.a.any.isRequired,isDone:Z.a.bool,index:Z.a.number.isRequired,type:Z.a.string.isRequired,number:Z.a.oneOfType([Z.a.string,Z.a.number]),paragraph:Z.a.string,isNewlyInserted:Z.a.bool,editable:Z.a.bool,nextNumber:Z.a.func.isRequired,onStep:Z.a.func}}},{key:"defaultProps",get:function(){return{className:""}}}]),r}(e.Component),fe=function(t){return e.createElement(ue,Object(w.a)({type:"checkboxes"},t))},de=function(t){return e.createElement(ue,Object(w.a)({type:"bulleted"},t))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return y}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return _});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(11),u=n(14),l=n(6),f=(n(1892),n(2)),d=n.n(f),h=n(1),p=n.n(h),m=n(63);function v(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var g=n(65).b.blocks,y=function(t){Object(c.a)(r,t);var n=v(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"render",value:function(){var t=this.props,n=t.labels.numberedDividerGroup,r=t.number,i=t.settings,o=t.type,a=i.paddingTop,s=i.paddingBottom,c=i.backgroundColor,u=i.entranceAnimation,l=d()("block-divider block-divider--".concat(o," brand--afterHead"),{"block-divider--no-animation":!u}),f="numbered"===o,h=d()("block-divider__wrap",{"brand--beforeBorder brand--afterBackground":f}),p={backgroundColor:Object(m.a)("",c),paddingTop:"".concat(10*a,"px"),paddingBottom:"".concat(10*s,"px")},v=f?e.createElement("span",{className:"visually-hidden"},n," ",r):null;return e.createElement("div",{className:l,"data-ba":g.blockDivider,style:p},e.createElement("div",{"aria-hidden":"true",className:h,"data-number":r}),v)}}],[{key:"propTypes",get:function(){return{settings:p.a.object.isRequired,number:p.a.number,type:p.a.string}}},{key:"defaultProps",get:function(){return{type:"divider"}}}]),r}(e.Component),b=function(t){return e.createElement(y,Object(o.a)({type:"numbered"},t))},_=function(t){return e.createElement(y,Object(o.a)({type:"spacing"},t))}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return D}),n.d(t,"b",function(){return R});var r=n(237),i=n.n(r),o=n(101),a=n.n(o),s=n(8),c=n.n(s),u=n(39),l=n.n(u),f=n(79),d=n.n(f),h=n(137),p=n.n(h),m=n(32),v=n.n(m),g=n(414),y=n.n(g),b=n(107),_=n.n(b),w=n(25),x=n.n(w),k=n(343),E=n.n(k),S=n(52),T=n.n(S),O=n(19),C=n.n(O),j=n(208),A=n.n(j),M=n(71),P=n.n(M),N=a()(v.a),I=function(e){var t=L(e)[0],n=(t||{}).feedback,r=x()(_()(["action","emotion","goTo","nextSlide"]),i()({description:n,type:"dialogue"}));return t?[t,r(t)]:[r(e)]},L=function(e){return[e.responses[e.response]]},D=function(e){var t=A()(N,"response"),n=C()("hasFeedback",!0),r=function(t){return c()(E()(e),t)};return l()([[n,r(I)],[t,r(L)],[P.a,y.a]])(e)},R=d()(function(e,t){if(t){var n=t.scene,r=t.slide,i=p()(C()("id",n),e),o=T()([],"slides",e[i]);return{scene:i,slide:p()(C()("id",r),o)}}})},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(389)(n(606));e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(206),i=n(1449),o=n(216),a=n(818),s=n(173),c=function(e,t){return e.valueOf()===t.valueOf()},u={Array:function(e,t){return e.length===t.length&&l(e,t)},Date:function(e,t){return i(e.valueOf(),t.valueOf())},Error:function(e,t){return e.name===t.name&&e.message===t.message},Object:function(e,t){return Object.keys(e).length===Object.keys(t).length&&l(e,t)},RegExp:function(e,t){return e.source===t.source&&e.ignoreCase===t.ignoreCase&&e.global===t.global&&e.multiline===t.multiline&&e.unicode===t.unicode}};function l(e,t){for(var n in e)if(!f(e[n],t[n]))return!1;return!0}function f(e,t){return!!i(e,t)||!!r(e,t)&&(o("equals",e)?(t[s.equals]||t.equals).call(t,e):(u[a(e)]||c)(e,t))}e.exports=f},function(e,t,n){var r=n(375),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(169),i=n(2158),o=n(2156),a=n(2204),s=n(2153),c=n(1170)("IE_PROTO"),u=function(){},l=function(){var e,t=s("iframe"),n=o.length;for(t.style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;n--;)delete l.prototype[o[n]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[c]=e):n=l(),void 0===t?n:i(n,t)},n(1070)[c]=!0},function(e,t,n){var r=n(181)("unscopables"),i=n(568),o=n(308),a=Array.prototype;null==a[r]&&o(a,r,i(null)),e.exports=function(e){a[r][e]=!0}},function(e,t,n){var r=n(376);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(169),i=n(376),o=n(181)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(0),a=n.n(o);t.a=function(e){var t=e.title,n=void 0===t?"Search":t,r=e.desc,o=void 0===r?"Magnifying glass":r,s=e.width,c=void 0===s?"16":s,u=e.height,l=void 0===u?"16":u,f=e.className,d=e.focusable,h=void 0===d?"false":d;return a.a.createElement("svg",{viewBox:"0 0 15.6 14.7",width:c,height:l,className:i()("i i-search",f),focusable:h},a.a.createElement("title",null,n),a.a.createElement("desc",null,o),a.a.createElement("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"}))}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(152),a=n(2),s=n.n(a),c=(n(1915),n(65).b.common);t.a=function(e){var t=e.bgColor,n=void 0===t?"brand":t,r=e.href,a=e.onClick,u=e.text,l=s()("continue-btn",{"continue-btn--gray":"gray"===n,"continue-btn--black":"black"===n,"brand--background":"brand"===n});return r?i.a.createElement(o.b,{className:l,onClick:a,to:r},u):i.a.createElement("button",{className:l,"data-ba":c.continueBtn,onClick:a,type:"button"},u)}},function(e,t,n){e.exports=n(2147)},function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"b",function(){return x});var r=n(8),i=n.n(r),o=n(55),a=n.n(o),s=n(231),c=n.n(s),u=n(82),l=n.n(u),f=n(111),d=n.n(f),h=n(31),p=n.n(h),m=n(527),v=n.n(m),g=n(15),y=n.n(g),b=y()("lessons"),_=v()(function(e){return!!e},["settings","passToContinue"]),w=function(e){var t,n=e.course,r=e.courseProgress;return i()(l.a,a()((t=b(r),i()(d.a,function(e){return p()([e,"passed"],t)},y()("id")))),a()(_),b)(n)||{}},x=function(e){var t=e.courseProgress,n=e.lesson,r=e.restrictingQuiz,o=function(e){return p()([e,"index"],b(t))},a=o(y()("id",n));return i()(c()(a),o,y()("id"))(r)?r:{}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return B}),n.d(t,"a",function(){return F});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(33),d=n.n(f),h=n(4),p=n.n(h),m=n(16),v=n.n(m),g=n(161),y=n.n(g),b=n(47),_=n.n(b),w=(n(2620),n(2)),x=n.n(w),k=n(124),E=n.n(k),S=n(53),T=n.n(S),O=n(31),C=n.n(O),j=n(541),A=n.n(j),M=n(52),P=n.n(M),N=n(1),I=n.n(N),L=n(261),D=n.n(L);function R(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var B=function(t){Object(c.a)(r,t);var n=R(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={isSticky:!1},d()(function(){var e;document.getElementsByClassName("page-wrap")[0].addEventListener("scroll",t.onScrollRef=p()(e=t.onScroll).call(e,Object(s.a)(t)))},10),t}return Object(a.a)(r,[{key:"componentWillUnmount",value:function(){document.getElementsByClassName("page-wrap")[0].removeEventListener("scroll",this.onScrollRef)}},{key:"onScroll",value:function(){var e=document.getElementsByClassName("page-wrap")[0],t=e.scrollTop,n=e.scrollTop,r=t>this.progresswrap.getBoundingClientRect().top+n;this.state.isSticky!==r&&this.setState({isSticky:r})}},{key:"isLessonPreview",value:function(){return!!document.querySelector(".lesson--preview")}},{key:"timelineProgressValue",value:function(){var e=this.props,t=e.items,n=e.lessonProgress,r=P()(-1,"activeIndex",n),i=T()(t);return-1===r?0:E()(r)===i?100:D()("%","",C()([r,"linePosition"],t))}},{key:"processProgressValue",value:function(){var e=this.props,t=e.items,n=e.lessonProgress,r=P()(0,"activeIndex",n),i=T()(t);return r>i?100:Math.round(r/i*100)}},{key:"progressValue",value:function(){var e=this.props,t=e.lessonProgress;switch(e.type){case"process":return this.processProgressValue();case"sorting":return P()(0,"percentViewed",t);case"timeline":return this.timelineProgressValue();default:return P()(0,"percentComplete",t)}}},{key:"render",value:function(){var t=this,n=this.props,r=n.type,i=n.items,o=n.menuOpen,a=n.mobileMenuOpen,s=this.state.isSticky,c=x()("progress-wrap",{}),u=x()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":s&&!a,"lesson--open":o&&!this.isLessonPreview(),"lesson--open-mobile":a&&!this.isLessonPreview()}),l=x()("progress",{"progress--timeline":"timeline"===r,"progress--video":"video"===r}),f=this.progressValue(),d="timeline"===r&&i&&v()(i).call(i,function(t){var n,r=x()("progress__marker",{"progress__marker--active brand--background":y()(f)>=y()(_()(n=t.linePosition).call(n,0,-1))});return e.createElement("div",{className:r,style:{left:t.linePosition},key:t.id})}),h=e.createElement("div",{className:c},e.createElement("div",{className:l},e.createElement("div",{className:"progress__container"},e.createElement("div",{className:"progress__indicator brand--background",style:{transform:"translate3d(".concat(f,"%,0px,0px)")}}),d)));return e.createElement("div",{ref:function(e){return t.progresswrap=e}},h,e.createElement(A.a,null,e.createElement("div",{className:u},h)))}}],[{key:"propTypes",get:function(){return{id:I.a.any.isRequired,lessonProgress:I.a.object.isRequired,type:I.a.string.isRequired,items:I.a.array}}}]),r}(e.Component),F=e.createElement(B,{id:"abc123",lessonProgress:{},type:"foo"}).type}).call(this,n(0))},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(33),p=n.n(h),m=n(16),v=n.n(m),g=n(5),y=n.n(g),b=(n(1941),n(0)),_=n.n(b),w=n(114),x=n(17),k=n.n(x),E=n(2),S=n.n(E),T=n(8),O=n.n(T),C=n(431),j=n.n(C),A=n(121),M=n.n(A),P=n(92),N=n.n(P),I=n(29),L=n.n(I),D=n(31),R=n.n(D),B=n(532),F=n.n(B),U=n(42),q=n.n(U),z=n(1137),H=n(1139),W=n(56),V=n(1140),Y=n(185),G=n(151),K=n(321),$=n.n(K),X=(n(22),n(149)),Q=n.n(X),Z=n(310),J=n.n(Z),ee=n(286),te=n.n(ee),ne=q()(J()(Number),O()(te.a,function(e){var t,n;return $()(t=$()(n=e.toString(16)).call(n,6,"0")).call(t,7,"#")})),re=O()(ne,Q()("#ff631e")),ie=function(e){var t=e.course;return{brandColor:re(t&&t.color)}};function oe(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ae=M()(function(e){return O()(N()({brandColor:function(t){return e||t}}),ie)}),se=function(e){var t=e.accentColor;return{accentColor:e.fontColor,fontColor:t}},ce=M()(O()(F()(L.a),function(e){return q()(k()(e),se)})),ue=function(e){Object(c.a)(n,e);var t=oe(n);function n(e){var r,i,a,c,u;Object(o.a)(this,n),u=t.call(this,e);var l=e.isLearner;return u.afterAnimatedIn=d()(r=u.afterAnimatedIn).call(r,Object(s.a)(u)),u.createMarker=d()(i=u.createMarker).call(i,Object(s.a)(u)),u.onBubbleClose=d()(a=u.onBubbleClose).call(a,Object(s.a)(u)),u.onMarkerFocus=d()(c=u.onMarkerFocus).call(c,Object(s.a)(u)),u.markerRefs={},u.state={showMarkers:!l,uniqId:j()()},u}return Object(a.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.isBlock,r=t.isLearner,i=t.isPreview,o=t.markerDelay;r&&!n&&(this.timeout=p()(function(){return e.setState({showMarkers:!0})},i?0:o))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this,t=this.props,n=t.animateBlockEntrance,r=t.blockId,i=t.brandColor,o=t.canvasClassNames,a=t.editable,s=t.imageLoaded,c=void 0===s||s,u=t.isBlock,l=t.isLearner,f=t.isPreview,h=t.items,p=t.labels,m=t.lesson,g=t.media,w=t.onItemClear,x=t.onItemHint,k=t.onItemSelected,E=t.onNextClick,T=t.onPreviousClick,O=t.onShowAltDialog,C=t.parentId,j=t.progress,A=t.selected,M=t.settings,P=void 0===M?{}:M,N=t.showBubbles,I=t.enableVideoPlaybackSpeed,L=P.markerColor,D=this.state,B=D.showMarkers,F=D.uniqId,U=Boolean(L),q=a?"#FFFFFF":L||i,K=S()("map-item",{"map-item--animated":!a}),$=n?"fadeIn":"none",X=n?1:0,Q=h.length>1,Z="lg-".concat(F),J=U?function(e){return Object(G.a)(e)?"#FFFFFF":"#000000"}(q):a?"#000000":"#FFFFFF",ee=ce(!U&&!a,{accentClassName:Z,accentColor:q,fontColor:J});return _.a.createElement(b.Fragment,null,this.renderMarkerStyles(ee),_.a.createElement(W.a,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!f,animateIn:$,duration:f?0:X,initiallyVisible:!n,isLearner:l,offset:300},_.a.createElement(H.a,{canvasClassNames:o,editable:a,imageLoaded:c,lesson:m,media:g,onCreateMarker:this.createMarker,onShowAltDialog:O,ref:function(t){e.canvas=t}},v()(h).call(h,function(t,n){var i,o,s,c=t.description,l=t.id,f=t.icon,h=t.media,m=t.title,v=t.x,g=t.y,b={top:g+"%",left:v+"%"},S=R()(["items",l,"isComplete"],j),O=A===l;return _.a.createElement("li",{className:K,key:l,role:"listitem"},_.a.createElement(V.a,{editable:a,icon:f,isActive:A===l,isComplete:S,isSelected:O,isVisible:B,itemId:l,key:l,labels:p,markerClassName:Z,onClick:function(){k(l)},onFocus:e.onMarkerFocus(l),onHover:function(){x()},onLeave:function(){w()},onSetPosition:d()(i=e.onSetPosition).call(i,e,l),parentId:C,ref:function(t){e.markerRefs[l]=t},styles:b,useLocalStateForCompletion:u}),!a&&N&&_.a.createElement(z.a,{accentColor:q,allowNav:Q,description:c,hasMedia:Boolean(h),isActive:O,key:"bubble-".concat(l),labels:p,onClose:e.onBubbleClose(l),onNextClick:function(){E(n)},onPreviousClick:function(){T(n)},title:m,x:v,y:g},h?_.a.createElement(Y.a,{hasPadding:!1,index:y()(o=y()(s="".concat(r,"-")).call(s,l,"-")).call(o,n),labels:e.props.labels,media:h,enableVideoPlaybackSpeed:I}):null))}))))}},{key:"renderMarkerStyles",value:function(e){var t,n,r,i,o,a,s,c,u,l,f,d=e.accentClassName,h=e.accentColor,p=e.fontColor,m=Object(G.b)("#000000",h),v=Object(G.b)("#FFFFFF",p);return _.a.createElement("style",null,y()(t=y()(n=y()(r=y()(i=y()(o=y()(a=y()(s=y()(c=y()(u=y()(l=y()(f="\n .".concat(d,"--normal {\n background-color: ")).call(f,m,";\n color: ")).call(l,v,";\n }\n\n .")).call(u,d,"--selected {\n background-color: ")).call(c,v,";\n color: ")).call(s,m,";\n }\n\n .")).call(a,d,"--selected:before {\n border-color: ")).call(o,m," !important;\n }\n\n .")).call(i,d,"--hover {\n background-color: ")).call(r,m,";\n }\n\n .")).call(n,d,"--hover:before {\n border-color: ")).call(t,v," !important;\n }\n "))}},{key:"createMarker",value:function(e){var t=this.props,n=t.editable,r=t.isBlock,i=t.lesson,o=t.onCreateMarker;if(n){var a=i.id,s=i.items,c=this.findItemCoordinates({e:e}),u=c.x,l=c.y;o({index:r?s[0].items.length:s.length,lessonId:a,items:s,payload:{description:"",hasMedia:!1,icon:"01",id:j()(),isActive:!1,title:"",x:String(u),y:String(l)}})}}},{key:"onBubbleClose",value:function(e){var t=this,n=this.props.onClose;return function(){var r=t.markerRefs[e];r&&r.focus&&r.focus(),n()}}},{key:"onMarkerFocus",value:function(e){var t=this;return function(){var n=t.props,r=n.onClose,i=n.selected;i&&i!==e&&r()}}},{key:"onSetPosition",value:function(e,t,n,r){var i=this.props,o=i.lesson,a=i.onSetMarkerPosition,s=o.id,c=o.items,u=this.findItemCoordinates({e:t,offsetX:n,offsetY:r}),l=u.x,f=u.y;a({itemId:e,lessonId:s,items:c,payload:{x:String(l),y:String(f)}})}},{key:"findItemCoordinates",value:function(e){var t=e.e,n=e.offsetX,r=void 0===n?0:n,i=e.offsetY,o=void 0===i?0:i,a=this.canvas.imageEl.getBoundingClientRect();return{x:this.findItemCoordinate({clientPos:t.clientX,clientOffset:r,rectSubtractor:a.left,rectDivisor:a.width,validOffsetAmount:20}),y:this.findItemCoordinate({clientPos:t.clientY,clientOffset:o,rectSubtractor:a.top,rectDivisor:a.height,validOffsetAmount:20})}}},{key:"findItemCoordinate",value:function(e){var t=e.clientPos,n=e.clientOffset,r=e.rectSubtractor,i=e.rectDivisor,o=e.validOffsetAmount/i*100,a=100-o,s=(t+n-r)/i*100;return s>a?s=a:s<o&&(s=o),s}},{key:"afterAnimatedIn",value:function(){this.props.isBlock&&this.setState({showMarkers:!0})}}],[{key:"defaultProps",get:function(){return{animateBlockEntrance:!1,editable:!0,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}}]),n}(_.a.Component),le=Object(w.b)(function(e,t){var n=t.accentColor;return ae(n,e)});t.a=le(ue)},,function(e,t,n){"use strict";n.d(t,"c",function(){return b}),n.d(t,"a",function(){return _}),n.d(t,"b",function(){return w});var r=n(8),i=n.n(r),o=n(54),a=n.n(o),s=n(55),c=n.n(s),u=n(69),l=n.n(u),f=n(137),d=n.n(f),h=n(15),p=n.n(h),m=n(19),v=n.n(m),g=n(109),y=n.n(g),b=function(e){var t="";return y()(function(e,n){if("section"===n.type)return t=n.id,n.children=[],a()(e,[n]);if(t){n.sectionId=t;var r=d()(v()("id",t))(e);return e[r].children=a()(e[r].children,[n]),e}return a()(e,[n])},[],e)},_=function(e,t){var n=i()(l()(v()("id",t)),p()("children")),r=i()(l()(n),c()(v()("type","section")),b)(e);return r?[r.id]:[]},w=function(e){return d()(v()("id",e))}},function(e,t,n){var r=n(122),i=n(147),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(1219);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(105),i=n(584);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(122),i=n(1220),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(322),i=n(118);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(125)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(155),i=n(204),o=n(96),a=n(383);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(219),i=n(200),o=n(589),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(459),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){},function(e,t,n){"use strict";var r=n(36),i=n(122),o=n(177),a=n(105),s=n(155),c=n(585),u=n(736),l=n(118),f=n(176),d=n(385),h=n(147),p=n(96),m=n(199),v=n(219),g=n(458),y=n(298),b=n(299),_=n(383),w=n(594),x=n(1243),k=n(591),E=n(272),S=n(204),T=n(456),O=n(203),C=n(300),j=n(583),A=n(464),M=n(384),P=n(460),N=n(125),I=n(595),L=n(130),D=n(274),R=n(275),B=n(324).forEach,F=A("hidden"),U=N("toPrimitive"),q=R.set,z=R.getterFor("Symbol"),H=Object.prototype,W=i.Symbol,V=o("JSON","stringify"),Y=E.f,G=S.f,K=x.f,$=T.f,X=j("symbols"),Q=j("op-symbols"),Z=j("string-to-symbol-registry"),J=j("symbol-to-string-registry"),ee=j("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&l(function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Y(H,t);r&&delete H[t],G(e,t,n),r&&e!==H&&G(H,t,r)}:G,ie=function(e,t){var n=X[e]=b(W.prototype);return q(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ae=function(e,t,n){e===H&&ae(Q,t,n),p(e);var r=g(t,!0);return p(n),f(X,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,F)||G(e,F,y(1,{})),e[F][r]=!0),re(e,r,n)):G(e,r,n)},se=function(e,t){p(e);var n=v(t),r=_(n).concat(fe(n));return B(r,function(t){s&&!ce.call(n,t)||ae(e,t,n[t])}),e},ce=function(e){var t=g(e,!0),n=$.call(this,t);return!(this===H&&f(X,t)&&!f(Q,t))&&(!(n||!f(this,t)||!f(X,t)||f(this,F)&&this[F][t])||n)},ue=function(e,t){var n=v(e),r=g(t,!0);if(n!==H||!f(X,r)||f(Q,r)){var i=Y(n,r);return!i||!f(X,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},le=function(e){var t=K(v(e)),n=[];return B(t,function(e){f(X,e)||f(M,e)||n.push(e)}),n},fe=function(e){var t=e===H,n=K(t?Q:v(e)),r=[];return B(n,function(e){!f(X,e)||t&&!f(H,e)||r.push(X[e])}),r};(c||(C((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function(e){this===H&&n.call(Q,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,y(1,e))};return s&&ne&&re(H,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),C(W,"withoutSetter",function(e){return ie(P(e),e)}),T.f=ce,S.f=ae,E.f=ue,w.f=x.f=le,k.f=fe,I.f=function(e){return ie(N(e),e)},s&&(G(W.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||C(H,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),B(_(ee),function(e){L(e)}),r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(f(Z,t))return Z[t];var n=W(t);return Z[t]=n,J[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f(J,e))return J[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l(function(){k.f(1)})},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),V)&&r({target:"JSON",stat:!0,forced:!c||l(function(){var e=W();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,V.apply(null,i)}});W.prototype[U]||O(W.prototype,U,W.prototype.valueOf),D(W,"Symbol"),M[F]=!0},function(e,t,n){var r=n(739),i=n(590).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(125);t.f=r},function(e,t,n){var r={};r[n(125)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(36),i=n(748),o=n(386),a=n(465),s=n(274),c=n(203),u=n(300),l=n(125),f=n(105),d=n(329),h=n(749),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,v=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,h,y,b){i(n,t,l);var _,w,x,k=function(e){if(e===h&&C)return C;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",S=!1,T=e.prototype,O=T[v]||T["@@iterator"]||h&&T[h],C=!m&&O||k(h),j="Array"==t&&T.entries||O;if(j&&(_=o(j.call(new e)),p!==Object.prototype&&_.next&&(f||o(_)===p||(a?a(_,p):"function"!=typeof _[v]&&c(_,v,g)),s(_,E,!0,!0),f&&(d[E]=g))),"values"==h&&O&&"values"!==O.name&&(S=!0,C=function(){return O.call(this)}),f&&!b||T[v]===C||c(T,v,C),d[t]=C,h)if(w={values:k("values"),keys:y?C:k("keys"),entries:k("entries")},b)for(x in w)!m&&!S&&x in T||u(T,x,w[x]);else r({target:t,proto:!0,forced:m||S},w);return w}},function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(51);e.exports=r(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},function(e,t,n){var r=n(18),i=n(134),o=n(1315),a=n(182);e.exports=r(i(["take"],o,function(e,t){return a(0,e<0?1/0:e,t)}))},function(e,t,n){"use strict";n(441);var r=n(36),i=n(177),o=n(764),a=n(300),s=n(605),c=n(274),u=n(748),l=n(275),f=n(388),d=n(176),h=n(168),p=n(294),m=n(96),v=n(147),g=n(299),y=n(298),b=n(765),_=n(387),w=n(125),x=i("fetch"),k=i("Headers"),E=w("iterator"),S=l.set,T=l.getterFor("URLSearchParams"),O=l.getterFor("URLSearchParamsIterator"),C=/\+/g,j=Array(4),A=function(e){return j[e-1]||(j[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},M=function(e){try{return decodeURIComponent(e)}catch(t){return e}},P=function(e){var t=e.replace(C," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(A(n--),M);return t}},N=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return I[e]},D=function(e){return encodeURIComponent(e).replace(N,L)},R=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:P(r.shift()),value:P(r.join("="))}))},B=function(e){this.entries.length=0,R(this.entries,e)},F=function(e,t){if(e<t)throw TypeError("Not enough arguments")},U=u(function(e,t){S(this,{type:"URLSearchParamsIterator",iterator:b(T(e).entries),kind:t})},"Iterator",function(){var e=O(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),q=function(){f(this,q,"URLSearchParams");var e,t,n,r,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=[];if(S(this,{type:"URLSearchParams",entries:l,updateURL:function(){},updateSearchParams:B}),void 0!==u)if(v(u))if("function"==typeof(e=_(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((a=(o=(i=b(m(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");l.push({key:a.value+"",value:s.value+""})}else for(c in u)d(u,c)&&l.push({key:c,value:u[c]+""});else R(l,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},z=q.prototype;s(z,{append:function(e,t){F(arguments.length,2);var n=T(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){F(arguments.length,1);for(var t=T(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){F(arguments.length,1);for(var t=T(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){F(arguments.length,1);for(var t=T(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){F(arguments.length,1);for(var t=T(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){F(arguments.length,1);for(var n,r=T(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=T(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=T(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new U(this,"keys")},values:function(){return new U(this,"values")},entries:function(){return new U(this,"entries")}},{enumerable:!0}),a(z,E,z.entries),a(z,"toString",function(){for(var e,t=T(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(D(e.key)+"="+D(e.value));return n.join("&")},{enumerable:!0}),c(q,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:q}),o||"function"!=typeof x||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(n=t.body,"URLSearchParams"===p(n)&&((r=t.headers?new k(t.headers):new k).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),x.apply(this,i)}}),e.exports={URLSearchParams:q,getState:T}},function(e,t,n){var r=n(300);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},function(e,t,n){var r=n(1325),i=n(768),o=n(769);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](o(e["@@transducer/step"],e),t))}var c="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=i(e)),r(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return s(e,t,n,"fantasy-land/reduce");if(null!=n[c])return a(e,t,n[c]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return s(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){(t=e.exports=n(783)).Stream=t,t.Readable=t,t.Writable=n(609),t.Duplex=n(302),t.Transform=n(787),t.PassThrough=n(1366)},function(e,t,n){"use strict";(function(t,r,i){var o=n(472);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o;y.WritableState=g;var u=n(394);u.inherits=n(221);var l={deprecate:n(1365)},f=n(785),d=n(473).Buffer,h=i.Uint8Array||function(){};var p,m=n(786);function v(){}function g(e,t){s=s||n(302),e=e||{},this.objectMode=!!e.objectMode,t instanceof s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o(i,r),o(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(302),!(p.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t)}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)})}function E(e,t){var n=x(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||e&&e._writableState instanceof g}})):p=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=(r=e,(d.isBuffer(r)||r instanceof h)&&!i.objectMode);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return c}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?o(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(277),n(1363).setImmediate,n(99))},function(e,t,n){"use strict";var r=n(473).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(612);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="decl",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(n(792)),o=c(n(800)),a=c(n(614)),s=c(n(801));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.raws={},"object"!==(void 0===t?"undefined":r(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var n in t)this[n]=t[n]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new i.default(e)},e.prototype.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(t,n){var i=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var a=t[o],s=void 0===a?"undefined":r(a);"parent"===o&&"object"===s?n&&(i[o]=n):"source"===o?i[o]=a:a instanceof Array?i[o]=a.map(function(t){return e(t,i)}):("object"===s&&null!==a&&(a=e(a)),i[o]=a)}return i}(this);for(var n in e)t[n]=e[n];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this.parent.insertBefore(this,s)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,s.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,s.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,s.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){var e=this.parent.index(this);return this.parent.nodes[e+1]},e.prototype.prev=function(){var e=this.parent.index(this);return this.parent.nodes[e-1]},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map(function(e){return"object"===(void 0===e?"undefined":r(e))&&e.toJSON?e.toJSON():e}):"object"===(void 0===n?"undefined":r(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},e.prototype.raw=function(e,t){return(new o.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,i=0;i<e;i++)"\n"===t[i]?(n=1,r+=1):n+=1;return{line:r,column:n}},e.prototype.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=u,e.exports=t.default},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return(r?"/":"")+(t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(277))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){new o.default(t).stringify(e)};var r,i=n(800),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new i.default(e,t),o=new r.default(n);try{o.parse()}catch(e){throw"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return o.root};var r=o(n(1409)),i=o(n(795));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(612);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="comment",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(611)),o=a(n(616));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.push=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n=void 0,r=void 0;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},t.prototype.walk=function(e){return this.each(function(t,n){var r=e(t,n);return!1!==r&&t.walk&&(r=t.walk(e)),r})},t.prototype.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},t.prototype.walkRules=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},t.prototype.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},t.prototype.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},t.prototype.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,c=this.normalize(s,this.last),u=Array.isArray(c),l=0;for(c=u?c:c[Symbol.iterator]();;){var f;if(u){if(l>=c.length)break;f=c[l++]}else{if((l=c.next()).done)break;f=l.value}var d=f;this.nodes.push(d)}}return this},t.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,c=this.normalize(s,this.first,"prepend").reverse(),u=c,l=Array.isArray(u),f=0;for(u=l?u:u[Symbol.iterator]();;){var d;if(l){if(f>=u.length)break;d=u[f++]}else{if((f=u.next()).done)break;d=f.value}var h=d;this.nodes.unshift(h)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+c.length}return this},t.prototype.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.cleanRaws(t)}}},t.prototype.insertBefore=function(e,t){var n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),i=r,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var c=s;this.nodes.splice(e,0,c)}var u=void 0;for(var l in this.indexes)e<=(u=this.indexes[l])&&(this.indexes[l]=u+r.length);return this},t.prototype.insertAfter=function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=n,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this.nodes.splice(e+1,0,s)}var c=void 0;for(var u in this.indexes)e<(c=this.indexes[u])&&(this.indexes[u]=c+n.length);return this},t.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},t.prototype.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))}),this},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.normalize=function(e,t){var r=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(n(615)(e).nodes);else if(Array.isArray(e)){var a=e=e.slice(0),s=Array.isArray(a),c=0;for(a=s?a:a[Symbol.iterator]();;){var u;if(s){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}var l=u;l.parent&&l.parent.removeChild(l,"ignore")}}else if("root"===e.type){var f=e=e.nodes.slice(0),d=Array.isArray(f),h=0;for(f=d?f:f[Symbol.iterator]();;){var p;if(d){if(h>=f.length)break;p=f[h++]}else{if((h=f.next()).done)break;p=h.value}var m=p;m.parent&&m.parent.removeChild(m,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new i.default(e)]}else if(e.selector){e=[new(n(475))(e)]}else if(e.name){e=[new(n(474))(e)]}else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new o.default(e)]}return e.map(function(e){return"function"!=typeof e.before&&(e=r.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e})},t.prototype.rebuild=function(e,t){var r=this,a=void 0;if("root"===e.type){var s=n(618);a=new s}else if("atrule"===e.type){var c=n(474);a=new c}else if("rule"===e.type){var u=n(475);a=new u}else"decl"===e.type?a=new i.default:"comment"===e.type&&(a=new o.default);for(var l in e)"nodes"===l?a.nodes=e.nodes.map(function(e){return r.rebuild(e,a)}):"parent"===l&&t?a.parent=t:e.hasOwnProperty(l)&&(a[l]=e[l]);return a},r(t,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),t}(a(n(612)).default);t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(617);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="root",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},t.prototype.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var o=i,a=Array.isArray(o),s=0;for(o=a?o:o[Symbol.iterator]();;){var c;if(a){if(s>=o.length)break;c=o[s++]}else{if((s=o.next()).done)break;c=s.value}c.raws.before=n.raws.before}}return i},t.prototype.toResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(n(803))(new(n(802)),this,e).stringify()},t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(216);e.exports=function(e){return!!e&&r("map",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(278),i=n(817),o=n(566),a=n(173);e.exports=function(e){if(i(e)){var t=e.constructor[a.empty]||e.constructor.empty||e.empty;return o(e,t())}return r(e)?!Object.keys(e).length:!e||void 0===e.length||!e.length}},function(e,t,n){var r=n(247),i="["+n(481)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
function n(e){return function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}}function r(e,t){var r=Object.keys(t).reduce(n(t),{});return Object.keys(e).reduce(n(e),r)}e.exports={assign:r,filter:function(e,t){return Object.keys(t).reduce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{})},map:function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=e(t[r]),n},{})},set:function(e,t,n){var i;return r(((i={})[e]=t,i),n)},unset:function(e,t){return Object.keys(t).reduce(function(n,r){return void 0!==t[r]&&r!==e&&(n[r]=t[r]),n},{})}}},function(e,t,n){var r=n(1491);e.exports="function"==typeof Object.assign?Object.assign:r},function(e,t){e.exports=Number.isInteger||function(e){return e<<0===e}},function(e,t,n){var r=n(18),i=n(134),o=n(822),a=n(1514),s=n(30);e.exports=r(i(["fantasy-land/chain","chain"],a,function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:o(!1)(s(e,t))}))},function(e,t,n){var r=n(485),i=n(18);e.exports=i(function(e,t){for(var n,i=0,o=t.length,a=[];i<o;)n=t[i],r(e,n,a)||(a[a.length]=n),i+=1;return a})},function(e,t,n){var r=n(61),i=n(178);e.exports=r(function(e,t,n){var r,o={};for(r in t)i(r,t)&&(o[r]=i(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)i(r,n)&&!i(r,o)&&(o[r]=n[r]);return o})},function(e,t,n){var r=n(133);
/** @license ISC License (c) copyright 2016 original and current authors */e.exports=function(e){return r(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1654),i=n(249),o=n(851);e.exports=r(function(e,t){var n=o(e),r=o(t);return n===r||i(e)&&e.name===r||i(t)&&t.name===n})},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1700),i=n(250),o=n(866);e.exports=r(function(e,t){var n=o(e),r=o(t);return n===r||i(e)&&e.name===r||i(t)&&t.name===n})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1716),i=n(400);function o(e,t){return i(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){var n=r(arguments),a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(o,t);return i(s)?e(s):s}}},function(e,t,n){var r=n(332)(n(223),"Map");e.exports=r},function(e,t,n){var r=n(1755),i=n(1762),o=n(1764),a=n(1765),s=n(1766);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(251),i=n(496),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t,n){var r=n(642);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t,n){var r=n(2030),i=n(408);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(307)(n(253),"Map");e.exports=r},function(e,t,n){var r=n(2047),i=n(2054),o=n(2056),a=n(2057),s=n(2058);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(1054),i=n(646);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(2093),i=n(2096),o=n(2107),a=n(254),s=n(2108);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(254),i=n(510),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(2201),i=n(2156).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(409);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(410),i=n(201),o=n(651);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(1069)("meta"),i=n(1077),o=n(162),a=n(244),s=n(201).f,c=0,u=Object.isExtensible||function(){return!0},l=function(e){s(e,r,{value:{objectID:"O"+ ++c,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].objectID},getWeakData:function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].weakData},onFreeze:function(e){return i&&f.REQUIRED&&u(e)&&!a(e,r)&&l(e),e}};n(1070)[r]=!0},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Export":n,o=t.desc,a=void 0===o?"An arrow pointing right":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"8":u,f=t.className,d=t.focusable,h=void 0===d?"false":d,p=t.decorative;return e.createElement("svg",{viewBox:"0 0 16 8",width:c,height:l,className:i()("i",f),focusable:h,"aria-hidden":p?"true":"false"},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fill:"#444",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"}))}}).call(this,n(0))},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(0),a=n.n(o);t.a=function(e){var t=e.title,n=void 0===t?"Close":t,r=e.desc,o=void 0===r?"Image of an X":r,s=e.width,c=void 0===s?"14":s,u=e.height,l=void 0===u?"14":u,f=e.className,d=e.focusable,h=void 0===d?"false":d;return a.a.createElement("svg",{viewBox:"0 0 14 14",width:c,height:l,className:i()("i i-close",f),focusable:h},a.a.createElement("title",null,n),a.a.createElement("desc",null,o),a.a.createElement("g",{transform:"translate(-18 -659)"},a.a.createElement("path",{d:"M31.7,659.3 C31.3,658.9 30.7,658.9 30.3,659.3 L25,664.6 L19.7,659.3 C19.3,658.9 18.7,658.9 18.3,659.3 C17.9,659.7 17.9,660.3 18.3,660.7 L23.6,666 L18.3,671.3 C17.9,671.7 17.9,672.3 18.3,672.7 C18.5,672.9 18.7,673 19,673 C19.3,673 19.5,672.9 19.7,672.7 L25,667.4 L30.3,672.7 C30.5,672.9 30.8,673 31,673 C31.2,673 31.5,672.9 31.7,672.7 C32.1,672.3 32.1,671.7 31.7,671.3 L26.4,666 L31.7,660.7 C32.1,660.3 32.1,659.7 31.7,659.3"})))}},function(e,t,n){var r=n(18),i=n(134),o=n(1314),a=n(1316);e.exports=r(i([],a,o))},function(e,t,n){e.exports=n(1426)},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){e=e<n.length&&e>=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})},function(e,t,n){var r=n(517),i=n(463);e.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){var r=n(18),i=n(134),o=n(1534);e.exports=r(i([],o,function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}))},function(e,t,n){var r=n(18),i=n(486);e.exports=r(function(e,t){return i(function(e,t,n){return n},e,t)})},function(e,t,n){var r=n(51);e.exports=r(function(e){return-e})},function(e,t,n){var r=n(18),i=n(38),o=n(603);e.exports=r(function(e,t){return i(o(e.length,t),e)})},function(e,t,n){var r=n(18),i=n(54),o=n(523);e.exports=r(function(e,t){return i(o(e,t),o(t,e))})},function(e,t,n){var r=n(399);e.exports=r(0,"toUpperCase")},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1926),i=r.Nothing,o=r.Just,a=n(498),s=n(119),c=n(401);e.exports=s(function(e,t){if(!c(e))throw new TypeError("safe: Pred or predicate function required for first argument");return a(e,t)?o(t):i()})},function(e,t,n){"use strict";n.r(t);var r=n(13),i=n.n(r),o=n(27),a=n.n(o),s=n(430),c=n.n(s),u=n(72),l=n.n(u),f=(n(1834),n(1835),n(35)),d=n.n(f),h=n(1112),p=n.n(h),m=n(67),v=n.n(m),g=n(698),y=n.n(g),b=n(699),_=n.n(b),w=n(1113),x=n.n(w),k=n(1114),E=n.n(k),S=n(700),T=n.n(S),O=n(284),C=n.n(O);
/*! @name m3u8-parser @version 4.4.0 @license Apache-2.0 */
function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function A(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var M=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t,n,r,i=this.listeners[e];if(i)if(2===arguments.length)for(n=i.length,t=0;t<n;++t)i[t].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),n=i.length,t=0;t<n;++t)i[t].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),P=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return A(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(M),N=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},I=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}A(t,e);var n=t.prototype;return n.push=function(e){var t,n,r=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,n){var r=n(e);return r===e?t:t.concat([r])},[e]).forEach(function(e){for(var i=0;i<r.customParsers.length;i++)if(r.customParsers[i].call(r,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))r.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void r.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"totalduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void r.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"byterange"},t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),void r.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var o=N(t[1]);if(o.URI&&(n.uri=o.URI),o.BYTERANGE){var a=o.BYTERANGE.split("@"),s=a[0],c=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),c&&(n.byterange.offset=parseInt(c,10))}}r.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=N(t[1]),n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x"),l={};u[0]&&(l.width=parseInt(u[0],10)),u[1]&&(l.height=parseInt(u[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}r.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=N(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))r.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))r.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=N(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void r.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=N(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);r.trigger("data",{type:"tag",data:e.slice(4)})}}}else r.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,o=e.segment;"function"!=typeof i&&(i=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:o}),!0})},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push(function(e){return t.test(e)?n(e):e})},t}(M);function L(e){for(var t=C.a.atob(e||""),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}var D=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new P,t.parseStream=new I,t.lineStream.pipe(t.parseStream);var n,r,i=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=[],a={},s={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c=0;return t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},t.parseStream.on("data",function(e){var t,u;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(this.trigger("info",{message:"defaulting offset to zero"}),e.offset=0)),"offset"in e&&(a.byterange=t,t.offset=e.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:L(e.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,c=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||s,e.attributes?(a.attributes||(a.attributes={}),j(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||s,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(u={default:/yes/i.test(e.attributes.DEFAULT)}).default?u.autoselect=!0:u.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(u.language=e.attributes.LANGUAGE),e.attributes.URI&&(u.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(u.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(u.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(u.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=u}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){c+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=e.data},"cue-out-cont":function(){a.cueOutCont=e.data},"cue-in":function(){a.cueIn=e.data}}[e.tagType]||function(){}).call(i)},uri:function(){a.uri=e.uri,o.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),r&&(a.key=r),a.timeline=c,n&&(a.map=n),a={}},comment:function(){},custom:function(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)}),t}A(t,e);var n=t.prototype;return n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(M),R=n(560),B=n.n(R),F=n(1115),U=n.n(F),q=n(1116),z=function(e){return!!e&&"object"==typeof e},H=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(function(t,n){return Object.keys(n).forEach(function(r){Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=t[r].concat(n[r]):z(t[r])&&z(n[r])?t[r]=e(t[r],n[r]):t[r]=n[r]}),t},{})},W=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},V=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},Y="INVALID_NUMBER_OF_PERIOD",G="DASH_EMPTY_MANIFEST",K="DASH_INVALID_XML",$="NO_BASE_URL",X="SEGMENT_TIME_UNSPECIFIED",Q="UNSUPPORTED_UTC_TIMING_SCHEME",Z=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,i=void 0===r?"":r,o=e.range,a=void 0===o?"":o,s=e.indexRange,c=void 0===s?"":s,u={uri:i,resolvedUri:B()(n||"",i)};if(a||c){var l=(a||c).split("-"),f=parseInt(l[0],10),d=parseInt(l[1],10);u.byterange={length:d-f+1,offset:f}}return u},J={static:function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration;return{start:0,end:Math.ceil(i/(t/r))}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,o=void 0===i?1:i,a=e.duration,s=e.start,c=void 0===s?0:s,u=e.minimumUpdatePeriod,l=void 0===u?0:u,f=e.timeShiftBufferDepth,d=void 0===f?1/0:f,h=(t+n)/1e3,p=r+c,m=h+l-p,v=Math.ceil(m*o/a),g=Math.floor((h-p-d)*o/a),y=Math.floor((h-p)*o/a);return{start:Math.max(0,g),end:Math.min(v,y)}}},ee=function(e){var t=e.type,n=void 0===t?"static":t,r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.sourceDuration,s=J[n](e),c=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}(s.start,s.end).map(function(e){return function(t,n){var r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.periodIndex,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:r/o,timeline:a,time:n*r}}}(e));if("static"===n){var u=c.length-1;c[u].duration=a-r/o*u}return c},te=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,o=e.timescale,a=void 0===o?1:o,s=e.indexRange,c=void 0===s?"":s,u=e.duration;if(!t)throw new Error($);var l=Z({baseUrl:t,source:r.sourceURL,range:r.range}),f=Z({baseUrl:t,source:t,indexRange:c});if(f.map=l,u){var d=ee(e);d.length&&(f.duration=d[0].duration,f.timeline=d[0].timeline)}else i&&(f.duration=i/a,f.timeline=0);return f.number=0,[f]},ne=function(e,t,n){for(var r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,s=a.offset+a.length,c=t.timescale,u=t.references.filter(function(e){return 1!==e.referenceType}),l=[],f=s+t.firstOffset,d=0;d<u.length;d++){var h=t.references[d],p=h.referencedSize,m=h.subsegmentDuration,v=te({baseUrl:n,timescale:c,timeline:o,periodIndex:o,duration:m,sourceDuration:i,indexRange:f+"-"+(f+p-1)})[0];r&&(v.map=r),l.push(v),f+=p}return e.segments=l,e},re=function(e){var t;return(t=e.reduce(function(e,t){var n,r=t.attributes.id+(t.attributes.lang||"");e[r]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[r].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):e[r]=t;return e},{}),Object.keys(t).map(function(e){return t[e]})).map(function(e){var t,n;return e.discontinuityStarts=(t=e.segments,n="discontinuity",t.reduce(function(e,t,r){return t[n]&&e.push(r),e},[])),e})},ie=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e){var r=e[n];if(r.sidx){var i=r.sidx.uri+"-"+(a=r.sidx.byterange,s=void 0,s=a.offset+a.length-1,a.offset+"-"+s),o=t[i]&&t[i].sidx;r.sidx&&o&&ne(r,o,r.sidx.resolvedUri)}}var a,s;return e},oe=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},ae=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},se=function(e,t){var n;if(void 0===t&&(t={}),!e.length)return{};var r=e[0].attributes,i=r.sourceDuration,o=r.type,a=void 0===o?"static":o,s=r.suggestedPresentationDelay,c=r.minimumUpdatePeriod,u=void 0===c?0:c,l=re(e.filter(function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video"===t.contentType})).map(ae),f=re(e.filter(function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio"===t.contentType})),d=e.filter(function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType}),h={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:i,playlists:ie(l,t),minimumUpdatePeriod:1e3*u};return"dynamic"===a&&(h.suggestedPresentationDelay=s),f.length&&(h.mediaGroups.AUDIO.audio=function(e,t){var n;void 0===t&&(t={});var r=e.reduce(function(e,r){var i=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",a="main";if(o){var s=i?" ("+i+")":"";a=""+r.attributes.lang+s}return e[a]&&e[a].playlists[0].attributes.BANDWIDTH>r.attributes.bandwidth?e:(e[a]={language:o,autoselect:!0,default:"main"===i,playlists:ie([oe(r)],t),uri:""},void 0===n&&"main"===i&&((n=r).default=!0),e)},{});n||(r[Object.keys(r)[0]].default=!0);return r}(f,t)),d.length&&(h.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce(function(e,n){var r,i,o,a,s=n.attributes.lang||"text";return e[s]?e:(e[s]={language:s,default:!1,autoselect:!1,playlists:ie([(r=n,o=r.attributes,a=r.segments,void 0===a&&(a=[{uri:o.baseUrl,timeline:o.periodIndex,resolvedUri:o.baseUrl||"",duration:o.sourceDuration,number:0}],o.duration=o.sourceDuration),{attributes:(i={NAME:o.id,BANDWIDTH:o.bandwidth},i["PROGRAM-ID"]=1,i),uri:"",endList:"static"===(o.type||"static"),timeline:o.periodIndex,resolvedUri:o.baseUrl||"",targetDuration:o.duration,segments:a,mediaSequence:a.length?a[0].number:1})],t),uri:""},e)},{})}(d,t)),h},ce=function(e,t,n){var r=e.NOW,i=e.clientOffset,o=e.availabilityStartTime,a=e.timescale,s=void 0===a?1:a,c=e.start,u=void 0===c?0:c,l=e.minimumUpdatePeriod,f=(r+i)/1e3+(void 0===l?0:l)-(o+u);return Math.ceil((f*s-t)/n)},ue=function(e,t){for(var n=e.type,r=void 0===n?"static":n,i=e.minimumUpdatePeriod,o=void 0===i?0:i,a=e.media,s=void 0===a?"":a,c=e.sourceDuration,u=e.timescale,l=void 0===u?1:u,f=e.startNumber,d=void 0===f?1:f,h=e.periodIndex,p=[],m=-1,v=0;v<t.length;v++){var g=t[v],y=g.d,b=g.r||0,_=g.t||0;m<0&&(m=_),_&&_>m&&(m=_);var w=void 0;if(b<0){var x=v+1;w=x===t.length?"dynamic"===r&&o>0&&s.indexOf("$Number$")>0?ce(e,m,y):(c*l-m)/y:(t[x].t-m)/y}else w=b+1;for(var k=d+p.length+w,E=d+p.length;E<k;)p.push({number:E,duration:y/l,time:m,timeline:h}),m+=y,E++}return p},le=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,fe=function(e,t){return e.replace(le,function(e){return function(t,n,r,i){if("$$"===t)return"$";if(void 0===e[n])return t;var o=""+e[n];return"RepresentationID"===n?o:(i=r?parseInt(i,10):1,o.length>=i?o:""+new Array(i-o.length+1).join("0")+o)}}(t))},de=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,o=Z({baseUrl:e.baseUrl,source:fe(i.sourceURL,n),range:i.range});return function(e,t){return e.duration||t?e.duration?ee(e):ue(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map(function(t){n.Number=t.number,n.Time=t.time;var r=fe(e.media||"",n);return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:B()(e.baseUrl||"",r),map:o,number:t.number}})},he=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r;if(!n&&!t||n&&t)throw new Error(X);var o,a=i.map(function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,o=Z({baseUrl:n,source:i.sourceURL,range:i.range}),a=Z({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=o,a}(e,t)});return n&&(o=ee(e)),t&&(o=ue(e,t)),o.map(function(e,t){if(a[t]){var n=a[t];return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n}}).filter(function(e){return e})},pe=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=de,t=H(r,i.template)):i.base?(n=te,t=H(r,i.base)):i.list&&(n=he,t=H(r,i.list));var o={attributes:r};if(!n)return o;var a=n(t,i.timeline);if(t.duration){var s=t,c=s.duration,u=s.timescale,l=void 0===u?1:u;t.duration=c/l}else a.length?t.duration=a.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return o.attributes=t,o.segments=a,i.base&&t.indexRange&&(o.sidx=a[0],o.segments=[]),o},me=function(e,t){return V(e.childNodes).filter(function(e){return e.tagName===t})},ve=function(e){return e.textContent.trim()},ge=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(i||0)+86400*parseFloat(o||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(c||0)},ye={mediaPresentationDuration:function(e){return ge(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return ge(e)},suggestedPresentationDelay:function(e){return ge(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return ge(e)},start:function(e){return ge(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?ge(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},be=function(e){return e&&e.attributes?V(e.attributes).reduce(function(e,t){var n=ye[t.name]||ye.DEFAULT;return e[t.name]=n(t.value),e},{}):{}},_e={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},we=function(e,t){return t.length?W(e.map(function(e){return t.map(function(t){return B()(e,ve(t))})})):e},xe=function(e){var t=me(e,"SegmentTemplate")[0],n=me(e,"SegmentList")[0],r=n&&me(n,"SegmentURL").map(function(e){return H({tag:"SegmentURL"},be(e))}),i=me(e,"SegmentBase")[0],o=n||t,a=o&&me(o,"SegmentTimeline")[0],s=n||i||t,c=s&&me(s,"Initialization")[0],u=t&&be(t);u&&c?u.initialization=c&&be(c):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var l={template:u,timeline:a&&me(a,"S").map(function(e){return be(e)}),list:n&&H(be(n),{segmentUrls:r,initialization:be(c)}),base:i&&H(be(i),{initialization:be(c)})};return Object.keys(l).forEach(function(e){l[e]||delete l[e]}),l},ke=function(e,t,n){return function(r){var i=be(r),o=we(t,me(r,"BaseURL")),a=me(r,"Role")[0],s={role:be(a)},c=H(e,i,s),u=me(r,"ContentProtection").reduce(function(e,t){var n=be(t),r=_e[n.schemeIdUri];if(r){e[r]={attributes:n};var i=me(t,"cenc:pssh")[0];if(i){var o=ve(i),a=o&&U()(o);e[r].pssh=a}}return e},{});Object.keys(u).length&&(c=H(c,{contentProtection:u}));var l=xe(r),f=me(r,"Representation"),d=H(n,l);return W(f.map(function(e,t,n){return function(r){var i=me(r,"BaseURL"),o=we(t,i),a=H(e,be(r)),s=xe(r);return o.map(function(e){return{segmentInfo:H(n,s),attributes:H(a,{baseUrl:e})}})}}(c,o,d)))}},Ee=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,o=n.NOW,a=void 0===o?Date.now():o,s=n.clientOffset,c=void 0===s?0:s,u=me(e,"Period");if(!u.length)throw new Error(Y);var l=be(e),f=we([i],me(e,"BaseURL"));return l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=a,l.clientOffset=c,W(u.map(function(e,t){return function(n,r){var i=we(t,me(n,"BaseURL")),o=be(n),a=parseInt(o.id,10),s=C.a.isNaN(a)?r:a,c=H(e,{periodIndex:s}),u=me(n,"AdaptationSet"),l=xe(n);return W(u.map(ke(c,i,l)))}}(l,f)))},Se=function(e){if(""===e)throw new Error(G);var t=(new q.DOMParser).parseFromString(e,"application/xml"),n=t&&"MPD"===t.documentElement.tagName?t.documentElement:null;if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(K);return n},Te=function(e,t){return void 0===t&&(t={}),se(Ee(Se(e),t).map(pe),t.sidxMapping)},Oe=function(e){return function(e){var t=me(e,"UTCTiming")[0];if(!t)return null;var n=be(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Q)}return n}(Se(e))},Ce=n(525),je=n.n(Ce),Ae=n(362),Me=n.n(Ae),Pe=n(1117),Ne=n.n(Pe),Ie=n(1118),Le=n.n(Ie);var De=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Re=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Be=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Fe=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4],o=void 0,a=void 0,s=void 0,c=[],u=[],l=void 0,f=void 0,d=void 0,h=void 0,p=void 0;for(o=0;o<256;o++)u[(c[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!r[a];a^=l||1,s=u[s]||1)for(d=(d=s^s<<1^s<<2^s<<3^s<<4)>>8^255&d^99,r[a]=d,i[d]=a,p=16843009*c[f=c[l=c[a]]]^65537*f^257*l^16843008*a,h=257*c[d]^16843008*d,o=0;o<4;o++)t[o][a]=h=h<<24^h>>>8,n[o][d]=p=p<<24^p>>>8;for(o=0;o<5;o++)t[o]=t[o].slice(0),n[o]=n[o].slice(0);return e},Ue=null,qe=function(){function e(t){De(this,e),Ue||(Ue=Fe()),this._tables=[[Ue[0][0].slice(),Ue[0][1].slice(),Ue[0][2].slice(),Ue[0][3].slice(),Ue[0][4].slice()],[Ue[1][0].slice(),Ue[1][1].slice(),Ue[1][2].slice(),Ue[1][3].slice(),Ue[1][4].slice()]];var n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=this._tables[0][4],c=this._tables[1],u=t.length,l=1;if(4!==u&&6!==u&&8!==u)throw new Error("Invalid aes key size");for(o=t.slice(0),a=[],this._key=[o,a],n=u;n<4*u+28;n++)i=o[n-1],(n%u==0||8===u&&n%u==4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[255&i],n%u==0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),o[n]=o[n-u]^i;for(r=0;n;r++,n--)i=o[3&r?n:n-4],a[r]=n<=4||r<4?i:c[0][s[i>>>24]]^c[1][s[i>>16&255]]^c[2][s[i>>8&255]]^c[3][s[255&i]]}return e.prototype.decrypt=function(e,t,n,r,i,o){var a=this._key[1],s=e^a[0],c=r^a[1],u=n^a[2],l=t^a[3],f=void 0,d=void 0,h=void 0,p=a.length/4-2,m=void 0,v=4,g=this._tables[1],y=g[0],b=g[1],_=g[2],w=g[3],x=g[4];for(m=0;m<p;m++)f=y[s>>>24]^b[c>>16&255]^_[u>>8&255]^w[255&l]^a[v],d=y[c>>>24]^b[u>>16&255]^_[l>>8&255]^w[255&s]^a[v+1],h=y[u>>>24]^b[l>>16&255]^_[s>>8&255]^w[255&c]^a[v+2],l=y[l>>>24]^b[s>>16&255]^_[c>>8&255]^w[255&u]^a[v+3],v+=4,s=f,c=d,u=h;for(m=0;m<4;m++)i[(3&-m)+o]=x[s>>>24]<<24^x[c>>16&255]<<16^x[u>>8&255]<<8^x[255&l]^a[v++],f=s,s=c,c=u,u=l,l=f},e}(),ze=function(){function e(){De(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},e.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,i)},e.prototype.dispose=function(){this.listeners={}},e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),He=function(e){function t(){De(this,t);var n=Be(this,e.call(this,ze));return n.jobs=[],n.delay=1,n.timeout_=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},t.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(ze),We=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},Ve=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new qe(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),a=new Int32Array(o.buffer),s=void 0,c=void 0,u=void 0,l=void 0,f=void 0,d=void 0,h=void 0,p=void 0,m=void 0;for(s=n[0],c=n[1],u=n[2],l=n[3],m=0;m<r.length;m+=4)f=We(r[m]),d=We(r[m+1]),h=We(r[m+2]),p=We(r[m+3]),i.decrypt(f,d,h,p,a,m),a[m]=We(a[m]^s),a[m+1]=We(a[m+1]^c),a[m+2]=We(a[m+2]^u),a[m+3]=We(a[m+3]^l),s=f,c=d,u=h,l=p;return o},Ye=function(){function e(t,n,r,i){De(this,e);var o=e.STEP,a=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),c=0;for(this.asyncStream_=new He,this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+o),n,r,s)),c=o;c<a.length;c+=o)r=new Uint32Array([We(a[c-4]),We(a[c-3]),We(a[c-2]),We(a[c-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+o),n,r,s));this.asyncStream_.push(function(){var e;i(null,(e=s).subarray(0,e.byteLength-e[e.byteLength-1]))})}return e.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=Ve(e,t,n);r.set(i,e.byteOffset)}},Re(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),Ge="7.8.4",Ke=[],$e=function(e,t){return function(n,r,o){var a=t.levels[r],s=new RegExp("^("+a+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),Ke){Ke.push([].concat(o));var c=Ke.length-1e3;Ke.splice(0,c>0?c:0)}if(i.a.console){var u=i.a.console[n];u||"debug"!==n||(u=i.a.console.info||i.a.console.log),u&&a&&s.test(n)&&u[Array.isArray(o)?"apply":"call"](i.a.console,o)}}};var Xe=function e(t){var n,r="info",i=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};return n=$e(t,i),i.createLogger=function(n){return e(t+": "+n)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(i.history=function(){return Ke?[].concat(Ke):[]}).filter=function(e){return(Ke||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){Ke&&(Ke.length=0)},i.history.disable=function(){null!==Ke&&(Ke.length=0,Ke=null)},i.history.enable=function(){null===Ke&&(Ke=[])},i.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",r,t)},i.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",r,t)},i.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",r,t)},i}("VIDEOJS"),Qe=Xe.createLogger,Ze=Object.prototype.toString,Je=function(e){return nt(e)?Object.keys(e):[]};function et(e,t){Je(e).forEach(function(n){return t(e[n],n)})}function tt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?c.a.apply(void 0,[e].concat(n)):(n.forEach(function(t){t&&et(t,function(t,n){e[n]=t})}),e)}function nt(e){return!!e&&"object"==typeof e}function rt(e){return nt(e)&&"[object Object]"===Ze.call(e)&&e.constructor===Object}function it(e,t){if(!e||!t)return"";if("function"==typeof i.a.getComputedStyle){var n=i.a.getComputedStyle(e);return n?n.getPropertyValue(t)||n[t]:""}return""}function ot(e){return"string"==typeof e&&Boolean(e.trim())}function at(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function st(){return a.a===i.a.document}function ct(e){return nt(e)&&1===e.nodeType}function ut(){try{return i.a.parent!==i.a.self}catch(e){return!0}}function lt(e){return function(t,n){if(!ot(t))return a.a[e](null);ot(n)&&(n=a.a.querySelector(n));var r=ct(n)?n:a.a;return r[e]&&r[e](t)}}function ft(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Xe.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?dt(i,n):i[e]!==n&&(i[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&Mt(i,r),i}function dt(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function ht(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function pt(e,t){return at(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function mt(e,t){return e.classList?e.classList.add(t):pt(e,t)||(e.className=(e.className+" "+t).trim()),e}function vt(e,t){return e.classList?e.classList.remove(t):(at(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function gt(e,t,n){var r=pt(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?mt(e,t):vt(e,t),e}function yt(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})}function bt(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,a=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function _t(e,t){return e.getAttribute(t)}function wt(e,t,n){e.setAttribute(t,n)}function xt(e,t){e.removeAttribute(t)}function kt(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function Et(){a.a.onselectstart=function(){return!0}}function St(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(it(e,"height"))),n.width||(n.width=parseFloat(it(e,"width"))),n}}function Tt(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=a.a.documentElement,r=a.a.body,o=n.clientLeft||r.clientLeft||0,s=i.a.pageXOffset||r.scrollLeft,c=t.left+s-o,u=n.clientTop||r.clientTop||0,l=i.a.pageYOffset||r.scrollTop,f=t.top+l-u;return{left:Math.round(c),top:Math.round(f)}}function Ot(e,t){var n={},r=Tt(e),i=e.offsetWidth,o=e.offsetHeight,a=r.top,s=r.left,c=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,c=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-c+o)/o)),n.x=Math.max(0,Math.min(1,(u-s)/i)),n}function Ct(e){return nt(e)&&3===e.nodeType}function jt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function At(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),ct(e)||Ct(e)?e:"string"==typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0}).filter(function(e){return e})}function Mt(e,t){return At(t).forEach(function(t){return e.appendChild(t)}),e}function Pt(e,t){return Mt(jt(e),t)}function Nt(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var It,Lt=lt("querySelector"),Dt=lt("querySelectorAll"),Rt=Object.freeze({__proto__:null,isReal:st,isEl:ct,isInFrame:ut,createEl:ft,textContent:dt,prependTo:ht,hasClass:pt,addClass:mt,removeClass:vt,toggleClass:gt,setAttributes:yt,getAttributes:bt,getAttribute:_t,setAttribute:wt,removeAttribute:xt,blockTextSelection:kt,unblockTextSelection:Et,getBoundingClientRect:St,findPosition:Tt,getPointerPosition:Ot,isTextNode:Ct,emptyEl:jt,normalizeContent:At,appendContent:Mt,insertContent:Pt,isSingleLeftClick:Nt,$:Lt,$$:Dt}),Bt=!1,Ft=function(){if(st()&&!1!==It.options.autoSetup){var e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(!s||!s.getAttribute){Ut(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&It(s)}else Bt||Ut(1)}};function Ut(e,t){t&&(It=t),i.a.setTimeout(Ft,e)}function qt(){Bt=!0,i.a.removeEventListener("load",qt)}st()&&("complete"===a.a.readyState?qt():i.a.addEventListener("load",qt));var zt,Ht=function(e){var t=a.a.createElement("style");return t.className=e,t},Wt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Vt=3;function Yt(){return Vt++}i.a.WeakMap||(zt=function(){function e(){this.vdata="vdata"+Math.floor(i.a.performance&&i.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Yt();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];Xe("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Gt,Kt=i.a.WeakMap?new WeakMap:new zt;function $t(e,t){if(Kt.has(e)){var n=Kt.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Kt.delete(e)}}function Xt(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function Qt(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||i.a.event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=a.a.documentElement,c=a.a.body;e.pageX=e.clientX+(s&&s.scrollLeft||c&&c.scrollLeft||0)-(s&&s.clientLeft||c&&c.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||c&&c.scrollTop||0)-(s&&s.clientTop||c&&c.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var Zt=function(){if("boolean"!=typeof Gt){Gt=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Gt=!0}});i.a.addEventListener("test",null,e),i.a.removeEventListener("test",null,e)}catch(e){}}return Gt},Jt=["touchstart","touchmove"];function en(e,t,n){if(Array.isArray(t))return Xt(en,e,t,n);Kt.has(e)||Kt.set(e,{});var r=Kt.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=Yt()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Qt(t);var i=r.handlers[t.type];if(i)for(var o=i.slice(0),a=0,s=o.length;a<s&&!t.isImmediatePropagationStopped();a++)try{o[a].call(e,t,n)}catch(e){Xe.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;Zt()&&Jt.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function tn(e,t,n){if(Kt.has(e)){var r=Kt.get(e);if(r.handlers){if(Array.isArray(t))return Xt(tn,e,t,n);var i=function(e,t){r.handlers[t]=[],$t(e,t)};if(void 0!==t){var o=r.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);$t(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function nn(e,t,n){var r=Kt.has(e)?Kt.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Qt(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)nn.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){Kt.has(t.target)||Kt.set(t.target,{});var o=Kt.get(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function rn(e,t,n){if(Array.isArray(t))return Xt(rn,e,t,n);var r=function r(){tn(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Yt(),en(e,t,r)}function on(e,t,n){var r=function r(){tn(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Yt(),en(e,t,r)}var an,sn=Object.freeze({__proto__:null,fixEvent:Qt,on:en,off:tn,trigger:nn,one:rn,any:on}),cn=30,un=function(e,t,n){t.guid||(t.guid=Yt());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},ln=function(e,t){var n=i.a.performance.now();return function(){var r=i.a.performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},fn=function(e,t,n,r){var o;void 0===r&&(r=i.a);var a=function(){var i=this,a=arguments,s=function(){o=null,s=null,n||e.apply(i,a)};!o&&n&&e.apply(i,a),r.clearTimeout(o),o=r.setTimeout(s,t)};return a.cancel=function(){r.clearTimeout(o),o=null},a},dn=function(){};dn.prototype.allowedEvents_={},dn.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},en(this,e,t),this.addEventListener=n},dn.prototype.addEventListener=dn.prototype.on,dn.prototype.off=function(e,t){tn(this,e,t)},dn.prototype.removeEventListener=dn.prototype.off,dn.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},rn(this,e,t),this.addEventListener=n},dn.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},on(this,e,t),this.addEventListener=n},dn.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Qt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),nn(this,e)},dn.prototype.dispatchEvent=dn.prototype.trigger,dn.prototype.queueTrigger=function(e){var t=this;an||(an=new Map);var n=e.type||e,r=an.get(this);r||(r=new Map,an.set(this,r));var o=r.get(n);r.delete(n),i.a.clearTimeout(o);var a=i.a.setTimeout(function(){0===r.size&&(r=null,an.delete(t)),t.trigger(e)},0);r.set(n,a)};var hn=function(e){return e instanceof dn||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},pn=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},mn=function(e){if(!e.nodeName&&!hn(e))throw new Error("Invalid target; must be a DOM node or evented object.")},vn=function(e){if(!pn(e))throw new Error("Invalid event type; must be a non-empty string or array.")},gn=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},yn=function(e,t){var n,r,i,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],i=t[1]):(n=t[0],r=t[1],i=t[2]),mn(n),vn(r),gn(i),{isTargetingSelf:o,target:n,type:r,listener:i=un(e,i)}},bn=function(e,t,n,r){mn(e),e.nodeName?sn[t](e,n,r):e[t](n,r)},_n={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=yn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(bn(a,"on",s,c),!o){var u=function(){return e.off(a,s,c)};u.guid=c.guid;var l=function(){return e.off("dispose",u)};l.guid=c.guid,bn(this,"on","dispose",u),bn(a,"on","dispose",l)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=yn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(o)bn(a,"one",s,c);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.apply(null,r)};u.guid=c.guid,bn(a,"one",s,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=yn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(o)bn(a,"any",s,c);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.apply(null,r)};u.guid=c.guid,bn(a,"any",s,u)}},off:function(e,t,n){if(!e||pn(e))tn(this.eventBusEl_,e,t);else{var r=e,i=t;mn(r),vn(i),gn(n),n=un(this,n),this.off("dispose",n),r.nodeName?(tn(r,i,n),tn(r,"dispose",n)):hn(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){return nn(this.eventBusEl_,e,t)}};function wn(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=ft("span",{className:"vjs-event-bus"});return tt(e,_n),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),i.a.setTimeout(function(){e.eventBusEl_=null},0)}),e}var xn={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),et(e,function(e,r){n.state[r]!==e&&((t=t||{})[r]={from:n.state[r],to:e}),n.state[r]=e}),t&&hn(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function kn(e,t){return tt(e,xn),e.state=tt({},e.state,t),"function"==typeof e.handleStateChanged&&hn(e)&&e.on("statechanged",e.handleStateChanged),e}var En=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},Sn=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})};function Tn(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&et(t,function(t,n){rt(t)?(rt(e[n])||(e[n]={}),e[n]=Tn(e[n],t)):e[n]=t})}),e}var On=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Tn({},this.options_),t=this.options_=Tn(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Yt()}var o;this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&wn(this,{eventBusKey:this.el_?"el_":null}),kn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},i.a.Set||(o=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}()),this.setTimeoutIds_=i.a.Set?new Set:new o,this.setIntervalIds_=i.a.Set?new Set:new o,this.rafIds_=i.a.Set?new Set:new o,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Kt.has(this.el_)&&Kt.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Tn(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return ft(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],s=i&&i[a],c=n;return o&&o[e]?c=o[e]:s&&s[e]&&(c=s[e]),t&&(c=c.replace(/\{(\d+)\}/g,function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i})),c},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var r=this,i=0;i<t.length;i++)if(!(r=r.getChild(t[i]))||!r.getChild)return;return r},t.addChild=function(t,n,r){var i,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof t){o=Sn(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&Sn(i.name()))&&(this.childNameIndex_[o]=i,this.childNameIndex_[En(o)]=i),"function"==typeof i.el&&i.el()){var c=null;this.children_[r+1]&&(this.children_[r+1].el_?c=this.children_[r+1].el_:ct(this.children_[r+1])&&(c=this.children_[r+1])),this.contentEl().insertBefore(i.el(),c)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Sn(e.name())]=null,this.childNameIndex_[En(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r,i;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}:(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||Sn(t.name));return n&&!o.isTech(n)}).forEach(function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return Lt(e,t||this.contentEl())},t.$$=function(e,t){return Dt(e,t||this.contentEl())},t.hasClass=function(e){return pt(this.el_,e)},t.addClass=function(e){mt(this.el_,e)},t.removeClass=function(e){vt(this.el_,e)},t.toggleClass=function(e,t){gt(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return _t(this.el_,e)},t.setAttribute=function(e,t){wt(this.el_,e,t)},t.removeAttribute=function(e){xt(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+Sn(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=it(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+Sn(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i.a.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,i=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+i*i)>10&&(e=!1)}});var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(n=null,!0===e)&&(i.a.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap")))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=un(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=un(this,e),this.clearTimersOnDispose_(),n=i.a.setTimeout(function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),i.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=un(this,e),this.clearTimersOnDispose_();var n=i.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),i.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=un(this,e),t=i.a.requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),i.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var n=t[0],r=t[1];e[n].forEach(e[r],e)}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,i=e.getComponent("Tech"),o=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!a)throw r=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=Sn(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var c=s.players,u=Object.keys(c);if(c&&u.length>0&&u.map(function(e){return c[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[En(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();On.prototype.supportsRaf_="function"==typeof i.a.requestAnimationFrame&&"function"==typeof i.a.cancelAnimationFrame,On.registerComponent("Component",On);var Cn,jn=i.a.navigator&&i.a.navigator.userAgent||"",An=/AppleWebKit\/([\d.]+)/i.exec(jn),Mn=An?parseFloat(An.pop()):null,Pn=/iPod/i.test(jn),Nn=(Cn=jn.match(/OS (\d+)_/i))&&Cn[1]?Cn[1]:null,In=/Android/i.test(jn),Ln=function(){var e=jn.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Dn=In&&Ln<5&&Mn<537,Rn=/Firefox/i.test(jn),Bn=/Edg/i.test(jn),Fn=!Bn&&(/Chrome/i.test(jn)||/CriOS/i.test(jn)),Un=function(){var e=jn.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),qn=function(){var e=/MSIE\s(\d+)\.\d/.exec(jn),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(jn)&&/rv:11.0/.test(jn)&&(t=11),t}(),zn=/Safari/i.test(jn)&&!Fn&&!In&&!Bn,Hn=/Windows/i.test(jn),Wn=st()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch),Vn=/iPad/i.test(jn)||zn&&Wn&&!/iPhone/i.test(jn),Yn=/iPhone/i.test(jn)&&!Vn,Gn=Yn||Vn||Pn,Kn=(zn||Gn)&&!Fn,$n=Object.freeze({__proto__:null,IS_IPOD:Pn,IOS_VERSION:Nn,IS_ANDROID:In,ANDROID_VERSION:Ln,IS_NATIVE_ANDROID:Dn,IS_FIREFOX:Rn,IS_EDGE:Bn,IS_CHROME:Fn,CHROME_VERSION:Un,IE_VERSION:qn,IS_SAFARI:zn,IS_WINDOWS:Hn,TOUCH_ENABLED:Wn,IS_IPAD:Vn,IS_IPHONE:Yn,IS_IOS:Gn,IS_ANY_SAFARI:Kn});function Xn(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function Qn(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Xn.bind(null,"start",0,e),end:Xn.bind(null,"end",1,e)}}function Zn(e,t){return Array.isArray(e)?Qn(e):void 0===e||void 0===t?Qn():Qn([[e,t]])}function Jn(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=Zn(0,0));for(var o=0;o<e.length;o++)n=e.start(o),(r=e.end(o))>t&&(r=t),i+=r-n;return i/t}for(var er,tr={prefixed:!0},nr=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],rr=nr[0],ir=0;ir<nr.length;ir++)if(nr[ir][1]in a.a){er=nr[ir];break}if(er){for(var or=0;or<er.length;or++)tr[rr[or]]=er[or];tr.prefixed=er[0]!==rr[0]}function ar(e){if(e instanceof ar)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:nt(e)&&("number"==typeof e.code&&(this.code=e.code),tt(this,e)),this.message||(this.message=ar.defaultMessages[this.code]||"")}ar.prototype.code=0,ar.prototype.message="",ar.prototype.status=null,ar.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ar.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var sr=0;sr<ar.errorTypes.length;sr++)ar[ar.errorTypes[sr]]=sr,ar.prototype[ar.errorTypes[sr]]=sr;function cr(e){return null!=e&&"function"==typeof e.then}function ur(e){cr(e)&&e.then(null,function(e){})}var lr=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},fr=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=lr(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(lr))},dr=function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},hr="vjs-modal-dialog",pr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=ft("div",{className:hr+"-content"},{role:"document"}),r.descEl_=ft("p",{className:hr+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),dt(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return hr+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Pt(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),jt(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),v.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(v.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}a.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof i.a.HTMLAnchorElement||e instanceof i.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof i.a.HTMLInputElement||e instanceof i.a.HTMLSelectElement||e instanceof i.a.HTMLTextAreaElement||e instanceof i.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof i.a.HTMLIFrameElement||e instanceof i.a.HTMLObjectElement||e instanceof i.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(On);pr.prototype.options_={pauseOnOpen:!0,temporary:!0},On.registerComponent("ModalDialog",pr);var mr=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(l()(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}d()(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this}))},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(dn);for(var vr in mr.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},mr.prototype.allowedEvents_)mr.prototype["on"+vr]=null;var gr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},yr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){gr(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,n}d()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&gr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,gr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(mr),br=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},_r=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){br(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(l()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}d()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&br(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,br(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(mr),wr=function(e){function t(){return e.apply(this,arguments)||this}d()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(mr),xr=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),kr=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),Er={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Sr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Tr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Or={disabled:"disabled",hidden:"hidden",showing:"showing"},Cr=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+Yt(),kind:t.kind||"",label:t.label||"",language:t.language||""},i=function(e){Object.defineProperty(l()(n),e,{get:function(){return r[e]},set:function(){}})};for(var o in r)i(o);return n}return d()(t,e),t}(dn),jr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.a.createElement("a");n.href=e;var r,o=""===n.host&&"file:"!==n.protocol;o&&((r=a.a.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),a.a.body.appendChild(r));for(var s={},c=0;c<t.length;c++)s[t[c]]=n[t[c]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=i.a.location.protocol),o&&a.a.body.removeChild(r),s},Ar=function(e){if(!e.match(/^https?:\/\//)){var t=a.a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},Mr=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Pr=function(e,t){void 0===t&&(t=i.a.location);var n=jr(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},Nr=Object.freeze({__proto__:null,parseUrl:jr,getAbsoluteURL:Ar,getFileExtension:Mr,isCrossOrigin:Pr}),Ir=function(e,t){var n=new i.a.WebVTT.Parser(i.a,i.a.vttjs,i.a.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(i.a.console&&i.a.console.groupCollapsed&&i.a.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return Xe.error(e)}),i.a.console&&i.a.console.groupEnd&&i.a.console.groupEnd()),n.flush()},Lr=function(e,t){var n={uri:e},r=Pr(e);r&&(n.cors=r),y()(n,un(this,function(e,n,r){if(e)return Xe.error(e,n);t.loaded_=!0,"function"!=typeof i.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return Ir(r,t);Xe.error("vttjs failed to load, stopping trying to process "+t.src)}):Ir(r,t)}))},Dr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=Tn(t,{kind:Tr[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=Or[r.mode]||"disabled",o=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new kr(n.cues_),s=new kr(n.activeCues_),c=!1,u=un(l()(n),function(){this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1)});return"disabled"!==i&&n.tech_.ready(function(){n.tech_.on("timeupdate",u)},!0),Object.defineProperties(l()(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return i},set:function(e){var t=this;Or[e]&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Lr(this.src,this),"disabled"!==i?this.tech_.ready(function(){t.tech_.on("timeupdate",u)},!0):this.tech_.off("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=e&&i.endTime>=e?t.push(i):i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e&&t.push(i)}if(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(c=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||o||"subtitles"!==r.kind&&"captions"!==r.kind)&&Lr(n.src,l()(n))):n.loaded_=!0,n}d()(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(i.a.vttjs&&!(e instanceof i.a.vttjs.VTTCue)){for(var n in t=new i.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Cr);Dr.prototype.allowedEvents_={cuechange:"cuechange"};var Rr=function(e){function t(t){var n;void 0===t&&(t={});var r=Tn(t,{kind:Sr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l()(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return d()(t,e),t}(Cr),Br=function(e){function t(t){var n;void 0===t&&(t={});var r=Tn(t,{kind:Er[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l()(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return d()(t,e),t}(Cr),Fr=0,Ur=2,qr=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new Dr(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n.default=i.default,Object.defineProperties(l()(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=Fr,i.addEventListener("loadeddata",function(){r=Ur,n.trigger({type:"load",target:l()(n)})}),n}return d()(t,e),t}(dn);qr.prototype.allowedEvents_={load:"load"},qr.NONE=Fr,qr.LOADING=1,qr.LOADED=Ur,qr.ERROR=3;var zr={audio:{ListClass:yr,TrackClass:Rr,capitalName:"Audio"},video:{ListClass:_r,TrackClass:Br,capitalName:"Video"},text:{ListClass:wr,TrackClass:Dr,capitalName:"Text"}};Object.keys(zr).forEach(function(e){zr[e].getterName=e+"Tracks",zr[e].privateName=e+"Tracks_"});var Hr={remoteText:{ListClass:wr,TrackClass:Dr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:xr,TrackClass:qr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Wr=c()({},zr,Hr);Hr.names=Object.keys(Hr),zr.names=Object.keys(zr),Wr.names=[].concat(Hr.names).concat(zr.names);var Vr=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,n)||this).hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),Wr.names.forEach(function(e){var n=Wr[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==t.preloadTextTracks,r.autoRemoteTextTracks_=new Wr.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}d()(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(un(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Zn(0,0)},n.bufferedPercent=function(){return Jn(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(zr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.error=function(e){return void 0!==e&&(this.error_=new ar(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Zn(0,0):Zn()},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;zr.names.forEach(function(t){var n=zr[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)})})},n.addWebVttScript_=function(){var e=this;if(!i.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&rt(_.a)&&Object.keys(_.a).length>0)return void this.trigger("vttjsloaded");var t=a.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),i.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",o)}})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i){void 0===i&&(i={});var o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var a=new Wr.text.TrackClass(i);return o.addTrack(a),a}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Tn(e,{tech:this});return new Hr.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Xe.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(r.track)}),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||i.a.Promise;if(e)return e.reject()},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Sn(e),t.techs_[e]=n,t.techs_[En(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Sn(e),i.a&&i.a.videojs&&i.a.videojs[e]?(Xe.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i.a.videojs[e]):void 0)},t}(On);Wr.names.forEach(function(e){var t=Wr[e];Vr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Vr.prototype.featuresVolumeControl=!0,Vr.prototype.featuresMuteControl=!0,Vr.prototype.featuresFullscreenResize=!1,Vr.prototype.featuresPlaybackRate=!1,Vr.prototype.featuresProgressEvents=!1,Vr.prototype.featuresSourceset=!1,Vr.prototype.featuresTimeupdateEvents=!1,Vr.prototype.featuresNativeTextTracks=!1,Vr.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Xe.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},On.registerComponent("Tech",Vr),Vr.registerTech("Tech",Vr),Vr.defaultTechOrder_=[];var Yr={},Gr={},Kr={};function $r(e,t,n){e.setTimeout(function(){return function e(t,n,r,i,o,a){void 0===t&&(t={});void 0===n&&(n=[]);void 0===o&&(o=[]);void 0===a&&(a=!1);var s=n,c=s[0],u=s.slice(1);if("string"==typeof c)e(t,Yr[c],r,i,o,a);else if(c){var l=function(e,t){var n=Gr[e.id()],r=null;if(null==n)return r=t(e),Gr[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i],a=o[0],s=o[1];a===t&&(r=s)}null===r&&(r=t(e),n.push([t,r]));return r}(i,c);if(!l.setSource)return o.push(l),e(t,u,r,i,o,a);l.setSource(tt({},t),function(n,s){if(n)return e(t,u,r,i,o,a);o.push(l),e(s,t.type===s.type?u:Yr[s.type],r,i,o,a)})}else u.length?e(t,u,r,i,o,a):a?r(t,o):e(t,Yr["*"],r,i,o,!0)}(t,Yr[t.type],n,e)},1)}function Xr(e,t,n,r){void 0===r&&(r=null);var i="call"+Sn(n),o=e.reduce(ei(i),r),a=o===Kr,s=a?null:t[n](o);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,s,a),s}var Qr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Zr={setCurrentTime:1,setMuted:1,setVolume:1},Jr={play:1,pause:1};function ei(e){return function(t,n){return t===Kr?Kr:n[e]?n[e](t):t}}var ti={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ni=function(e){void 0===e&&(e="");var t=Mr(e);return ti[t.toLowerCase()]||""};function ri(e){if(!e.type){var t=ni(e.src);t&&(e.type=t)}return e}var ii=function(e){function t(t,n,r){var i,o=Tn({createEl:!1},n);if(i=e.call(this,t,o,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var c=Sn(s[a]),u=Vr.getTech(c);if(c||(u=On.getComponent(c)),u&&u.isSupported()){t.loadTech_(c);break}}return i}return d()(t,e),t}(On);On.registerComponent("MediaLoader",ii);var oi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).emitTapEvents(),r.enable(),r}d()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=tt({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Xe.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=tt({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=ft("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,dt(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(On);On.registerComponent("ClickableComponent",oi);var ai=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),t.on("posterchange",un(l()(r),r.update)),r}d()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},n.createEl=function(){return ft("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(qn||Bn)&&t||this.player_.tech(!0).focus(),this.player_.paused()?ur(this.player_.play()):this.player_.pause()}},t}(oi);On.registerComponent("PosterImage",ai);var si={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ci(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function ui(e,t,n){try{e.style[t]=n}catch(e){return}}var li=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var a=un(l()(o),o.updateDisplay);return t.on("loadstart",un(l()(o),o.toggleDisplay)),t.on("texttrackchange",a),t.on("loadedmetadata",un(l()(o),o.preselectTrack)),t.ready(un(l()(o),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),i.a.addEventListener("orientationchange",a),t.on("dispose",function(){return i.a.removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}})),o}d()(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,a=0;a<i.length;a++){var s=i[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in r?s.kind===o.kind?n=s:n||(n=s):o&&!o.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof i.a.WebVTT&&i.a.WebVTT.processCues(i.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{for(var o=null,a=null,s=e.length;s--;){var c=e[s];"showing"===c.mode&&("descriptions"===c.kind?o=c:a=c)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;r--;){var o=n[r];if(o){var a=o.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&ui(a.firstChild,"color",ci(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&ui(a.firstChild,"backgroundColor",ci(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?ui(a,"backgroundColor",ci(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=i.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=si[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof i.a.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],o=0;o<r.activeCues.length;++o)t.push(r.activeCues[o]);i.a.WebVTT.processCues(i.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],c=0;c<s.activeCues.length;++c){var u=s.activeCues[c].displayState;mt(u,"vjs-text-track-cue"),mt(u,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(On);On.registerComponent("TextTrackDisplay",li);var fi=function(e){function t(){return e.apply(this,arguments)||this}return d()(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=ft("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(On);On.registerComponent("LoadingSpinner",fi);var di=function(e){function t(){return e.apply(this,arguments)||this}d()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=tt({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=tt({type:"button"},n);var r=On.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return Xe.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),On.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(oi);On.registerComponent("Button",di);var hi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return ur(t),void(!this.player_.tech(!0)||(qn||Bn)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(i){var o=function(){return i.focus()};cr(t)?t.then(o,function(){}):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(di);hi.prototype.controlText_="Play Video",On.registerComponent("BigPlayButton",hi);var pi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){v.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(di);On.registerComponent("CloseButton",pi);var mi=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),n.replay&&r.on(t,"ended",r.handleEnded),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(di);mi.prototype.controlText_="Play",On.registerComponent("PlayToggle",mi);var vi=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||a>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},gi=vi;function yi(e,t){return void 0===t&&(t=e),gi(e,t)}var bi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["timeupdate","ended"],r.updateContent),r.updateTextNode_(),r}d()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=ft("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=yi(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestAnimationFrame(function(){if(t.contentEl_){var e=t.textNode_;t.textNode_=a.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},n.updateContent=function(e){},t}(On);bi.prototype.labelText_="Time",bi.prototype.controlText_="Time",On.registerComponent("TimeDisplay",bi);var _i=function(e){function t(){return e.apply(this,arguments)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(bi);_i.prototype.labelText_="Current Time",_i.prototype.controlText_="Current Time",On.registerComponent("CurrentTimeDisplay",_i);var wi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r.on(t,"loadstart",r.updateContent),r.on(t,"loadedmetadata",r.updateContent),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(bi);wi.prototype.labelText_="Duration",wi.prototype.controlText_="Duration",On.registerComponent("DurationDisplay",wi);var xi=function(e){function t(){return e.apply(this,arguments)||this}return d()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(On);On.registerComponent("TimeDivider",xi);var ki=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(ft("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(bi);ki.prototype.labelText_="Remaining Time",ki.prototype.controlText_="Remaining Time",On.registerComponent("RemainingTimeDisplay",ki);var Ei=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}d()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ft("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(On);On.registerComponent("LiveDisplay",Ei);var Si=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatus),r}d()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=ft("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,e.prototype.dispose.call(this)},t}(di);Si.prototype.controlText_="Seek to live, currently playing live",On.registerComponent("SeekToLive",Si);var Ti=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Oi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}d()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=tt({tabIndex:0},n),r=tt({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Fn||e.preventDefault(),kt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Et(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_?t:(this.progress_=t,this.requestAnimationFrame(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}),t)}},n.getProgress=function(){return Number(Ti(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Ot(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){v.a.isEventKey(t,"Left")||v.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):v.a.isEventKey(t,"Right")||v.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(On);On.registerComponent("Slider",Oi);var Ci=function(e,t){return Ti(e/t*100,0,100).toFixed(2)+"%"},ji=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",r.update),r}d()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=ft("span",{className:"vjs-control-text"}),r=ft("span",{textContent:this.localize("Loaded")}),i=a.a.createTextNode(": ");return this.percentageEl_=ft("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(i),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestAnimationFrame(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),i=t.player_.bufferedEnd(),o=t.partEls_,a=Ci(i,r);t.percent_!==a&&(t.el_.style.width=a,dt(t.percentageEl_,a),t.percent_=a);for(var s=0;s<n.length;s++){var c=n.start(s),u=n.end(s),l=o[s];l||(l=t.el_.appendChild(ft()),o[s]=l),l.dataset.start===c&&l.dataset.end===u||(l.dataset.start=c,l.dataset.end=u,l.style.left=Ci(c,i),l.style.width=Ci(u-c,i))}for(var f=o.length;f>n.length;f--)t.el_.removeChild(o[f-1]);o.length=n.length})},t}(On);On.registerComponent("LoadProgressBar",ji);var Ai=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=ln(un(l()(r),r.update),cn),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=St(this.el_),i=St(this.player_.el()),o=e.width*t;if(i&&r){var a=e.left-i.left+o,s=e.width-o+(i.right-e.right),c=r.width/2;a<c?c+=c-a:s<c&&(c=s),c<0?c=0:c>r.width&&(c=r.width),this.el_.style.right="-"+c+"px",this.write(n)}},n.write=function(e){dt(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var o,a=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var s=i.player_.liveTracker.liveWindow(),c=s-t*s;o=(c<1?"":"-")+yi(c,s)}else o=yi(n,a);i.update(e,t,o),r&&r()})},t}(On);On.registerComponent("TimeTooltip",Ai);var Mi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=ln(un(l()(r),r.update),cn),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(On);Mi.prototype.options_={children:[]},Gn||In||Mi.prototype.options_.children.push("timeTooltip"),On.registerComponent("PlayProgressBar",Mi);var Pi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=ln(un(l()(r),r.update),cn),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,function(){n.el_.style.left=e.width*t+"px"})},t}(On);Pi.prototype.options_={children:["timeTooltip"]},On.registerComponent("MouseTimeDisplay",Pi);var Ni=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}d()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){this.update_=un(this,this.update),this.update=ln(this.update_,cn),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){a.a.hidden?this.disableInterval_(e):(this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,cn))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this,r=e.prototype.update.call(this);return this.requestAnimationFrame(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[yi(e,i),yi(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(St(n.el()),n.getProgress())}),r},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Nt(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(Nt(e)){var t,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var i=r.seekableStart(),o=r.liveCurrentTime();if((t=i+n*r.liveWindow())>=o&&(t=o),t<=i&&(t=i+.1),t===1/0)return}else(t=n*this.player_.duration())===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ur(this.player_.play()):this.update_()},n.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},n.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){if(v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(v.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(0);else if(v.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(v()(t))){t.preventDefault(),t.stopPropagation();var n=10*(v.a.codes[v()(t)]-v.a.codes[0])/100;this.player_.currentTime(this.player_.duration()*n)}else v.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):v.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableInterval_),this.off(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.off(a.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Oi);Ni.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Gn||In||Ni.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),On.registerComponent("SeekBar",Ni);var Ii=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=ln(un(l()(r),r.handleMouseMove),cn),r.throttledHandleMouseSeek=ln(un(l()(r),r.handleMouseSeek),cn),r.enable(),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var i=t.el(),o=St(i),a=Ot(i,e).x;a=Ti(0,1,a),r&&r.update(o,a),n&&n.update(o,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(On);Ii.prototype.options_={children:["seekBar"]},On.registerComponent("ProgressControl",Ii);var Li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange),a.a.pictureInPictureEnabled||r.disable(),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture")},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(di);Li.prototype.controlText_="Picture-in-Picture",On.registerComponent("PictureInPictureToggle",Li);var Di=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",r.handleFullscreenChange),!1===a.a[t.fsApi_.fullscreenEnabled]&&r.disable(),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(di);Di.prototype.controlText_="Fullscreen",On.registerComponent("FullscreenToggle",Di);var Ri=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},Bi=function(e){function t(){return e.apply(this,arguments)||this}return d()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(On);On.registerComponent("VolumeLevel",Bi);var Fi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",r.updateLastVolume_),r.on(t,"volumechange",r.updateARIAAttributes),t.ready(function(){return r.updateARIAAttributes()}),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Nt(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){Nt(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Oi);Fi.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Fi.prototype.playerEvent="volumechange",On.registerComponent("VolumeBar",Fi);var Ui=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||rt(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,Ri(l()(r),t),r.throttledHandleMouseMove=ln(un(l()(r),r.handleMouseMove),cn),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}d()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(On);Ui.prototype.options_={children:["volumeBar"]},On.registerComponent("VolumeControl",Ui);var qi=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},zi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,qi(l()(r),t),r.on(t,["loadstart","volumechange"],r.update),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Gn&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)vt(this.el_,"vjs-vol-"+n);mt(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(di);zi.prototype.controlText_="Mute",On.registerComponent("MuteToggle",zi);var Hi=function(e){function t(t,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||rt(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).on(t,["loadstart"],r.volumePanelState_),r.on(r.muteToggle,"keyup",r.handleKeyPress),r.on(r.volumeControl,"keyup",r.handleVolumeControlKeyUp),r.on("keydown",r.handleKeyPress),r.on("mouseover",r.handleMouseOver),r.on("mouseout",r.handleMouseOut),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}d()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){v.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),en(a.a,"keyup",un(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),tn(a.a,"keyup",un(this,this.handleKeyPress))},n.handleKeyPress=function(e){v.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(On);Hi.prototype.options_={children:["muteToggle","volumeControl"]},On.registerComponent("VolumePanel",Hi);var Wi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyDown),r.boundHandleBlur_=un(l()(r),r.handleBlur),r.boundHandleTapClick_=un(l()(r),r.handleTapClick),r}d()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof On&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof On&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ft(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),en(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||a.a.activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter(function(t){return t.el()===e.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){v.a.isEventKey(e,"Left")||v.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(v.a.isEventKey(e,"Right")||v.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(On);On.registerComponent("Menu",Wi);var Vi=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new di(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=di.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"keydown",r.handleKeyDown),r.on(r.menuButton_,"mouseenter",function(){r.addClass("vjs-hover"),r.menu.show(),en(a.a,"keyup",un(l()(r),r.handleMenuKeyUp))}),r.on("mouseleave",r.handleMouseLeave),r.on("keydown",r.handleSubmenuKeyDown),r}d()(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Wi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ft("li",{className:"vjs-menu-title",innerHTML:Sn(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var n=new On(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+di.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),tn(a.a,"keyup",un(this,this.handleMenuKeyUp))},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){v.a.isEventKey(e,"Esc")||v.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),v.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(v.a.isEventKey(e,"Up")||v.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(v.a.isEventKey(e,"Esc")||v.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(v.a.isEventKey(e,"Esc")||v.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),v.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Gn&&ut())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(On);On.registerComponent("MenuButton",Vi);var Yi=function(e){function t(t,n){var r,i=n.tracks;if((r=e.call(this,t,n)||this).items.length<=1&&r.hide(),!i)return l()(r);var o=un(l()(r),r.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),r.player_.on("ready",o),r.player_.on("dispose",function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o)}),r}return d()(t,e),t}(Vi);On.registerComponent("TrackButton",Yi);var Gi=["Tab","Esc","Up","Down","Right","Left"],Ki=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}d()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",tt({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){Gi.some(function(e){return v.a.isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(oi);On.registerComponent("MenuItem",Ki);var $i=function(e){function t(t,n){var r,o=n.track,s=t.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=e.call(this,t,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var c,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(l()(r),t)};(t.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",f),r.on("dispose",function(){t.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",f)}),void 0===s.onchange)&&r.on(["tap","click"],function(){if("object"!=typeof i.a.Event)try{c=new i.a.Event("change")}catch(e){}c||(c=a.a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(c)});return r.handleTracksChange(),r}d()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];-1!==this.kinds.indexOf(o.kind)&&(o===n?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Ki);On.registerComponent("TextTrackMenuItem",$i);var Xi=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}d()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}($i);On.registerComponent("OffTextTrackMenuItem",Xi);var Qi=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return d()(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=$i),this.label_&&(n=this.label_+" off"),e.push(new Xi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var a=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Yi);On.registerComponent("TextTrackButton",Qi);var Zi=function(e){function t(t,n){var r,i=n.track,o=n.cue,a=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=a&&a<o.endTime,(r=e.call(this,t,n)||this).track=i,r.cue=o,i.addEventListener("cuechange",un(l()(r),r.update)),r}d()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Ki);On.registerComponent("ChaptersTrackMenuItem",Zi);var Ji=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Sn(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],o=new Zi(this.player_,{track:this.track_,cue:i});e.push(o)}return e},t}(Qi);Ji.prototype.kind_="chapters",Ji.prototype.controlText_="Chapters",On.registerComponent("ChaptersButton",Ji);var eo=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=t.textTracks(),a=un(l()(i),i.handleTracksChange);return o.addEventListener("change",a),i.on("dispose",function(){o.removeEventListener("change",a)}),i}d()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Qi);eo.prototype.kind_="descriptions",eo.prototype.controlText_="Descriptions",On.registerComponent("DescriptionsButton",eo);var to=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Qi);to.prototype.kind_="subtitles",to.prototype.controlText_="Subtitles",On.registerComponent("SubtitlesButton",to);var no=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return d()(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}($i);On.registerComponent("CaptionSettingsMenuItem",no);var ro=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new no(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Qi);ro.prototype.kind_="captions",ro.prototype.controlText_="Captions",On.registerComponent("CaptionsButton",ro);var io=function(e){function t(){return e.apply(this,arguments)||this}return d()(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,tt({innerHTML:i},n),r)},t}($i);On.registerComponent("SubsCapsMenuItem",io);var oo=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(Sn(r.label_)),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new no(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,io)},t}(Qi);oo.prototype.kinds_=["captions","subtitles"],oo.prototype.controlText_="Subtitles",On.registerComponent("SubsCapsButton",oo);var ao=function(e){function t(t,n){var r,i=n.track,o=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,(r=e.call(this,t,n)||this).track=i,r.addClass("vjs-"+i.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)};return o.addEventListener("change",a),r.on("dispose",function(){o.removeEventListener("change",a)}),r}d()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,tt({innerHTML:i},n),r)},n.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Ki);On.registerComponent("AudioTrackMenuItem",ao);var so=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new ao(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(Yi);so.prototype.controlText_="Audio Track",On.registerComponent("AudioTrackButton",so);var co=function(e){function t(t,n){var r,i=n.rate,o=parseFloat(i,10);return n.label=i,n.selected=1===o,n.selectable=!0,n.multiSelectable=!1,(r=e.call(this,t,n)||this).label=i,r.rate=o,r.on(t,"ratechange",r.update),r}d()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Ki);co.prototype.contentElType="button",On.registerComponent("PlaybackRateMenuItem",co);var uo=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}d()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=ft("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createMenu=function(){var e=new Wi(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new co(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Vi);uo.prototype.controlText_="Playback Rate",On.registerComponent("PlaybackRateMenuButton",uo);var lo=function(e){function t(){return e.apply(this,arguments)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(On);On.registerComponent("Spacer",lo);var fo=function(e){function t(){return e.apply(this,arguments)||this}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(lo);On.registerComponent("CustomControlSpacer",fo);var ho=function(e){function t(){return e.apply(this,arguments)||this}return d()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(On);ho.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in a.a&&ho.prototype.options_.children.splice(ho.prototype.options_.children.length-1,0,"pictureInPictureToggle"),On.registerComponent("ControlBar",ho);var po=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",r.open),r}d()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(pr);po.prototype.options_=c()({},pr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),On.registerComponent("ErrorDisplay",po);var mo=["#000","Black"],vo=["#00F","Blue"],go=["#0FF","Cyan"],yo=["#0F0","Green"],bo=["#F0F","Magenta"],_o=["#F00","Red"],wo=["#FFF","White"],xo=["#FF0","Yellow"],ko=["1","Opaque"],Eo=["0.5","Semi-Transparent"],So=["0","Transparent"],To={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[mo,wo,_o,yo,vo,xo,bo,go]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[ko,Eo,So]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[wo,mo,_o,yo,vo,xo,bo,go]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ko,Eo]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[So,Eo,ko]}};function Oo(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}To.windowColor.options=To.backgroundColor.options;var Co=function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=un(l()(r),r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=ft("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),et(To,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}d()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=To[e],o=i.id.replace("%s",this.id_),a=[t,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(i.options.map(function(e){var t=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',r.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return ft("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return ft("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return ft("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,r=this;return t=function(e,t,n){var i,o,a=(i=r.$(t.selector),o=t.parser,Oo(i.options[i.options.selectedIndex].value,o));return void 0!==a&&(e[n]=a),e},void 0===(n={})&&(n=0),Je(e=To).reduce(function(n,r){return t(n,e[r],r)},n)},n.setValues=function(e){var t=this;et(To,function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(Oo(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)})},n.setDefaults=function(){var e=this;et(To,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(i.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){Xe.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?i.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):i.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){Xe.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(pr);On.registerComponent("TextTrackSettings",Co);var jo=function(e){function t(t,n){var r,o=n.ResizeObserver||i.a.ResizeObserver;null===n.ResizeObserver&&(o=!1);var a=Tn({createEl:!o,reportTouchActivity:!1},n);return(r=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||i.a.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=fn(function(){r.resizeHandler()},100,!1,l()(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){tn(this,"resize",e),tn(this,"unload",t),t=null};en(r.el_.contentWindow,"unload",t),en(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}d()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(On);On.registerComponent("ResizeManager",jo);var Ao={trackingThreshold:30,liveTolerance:15},Mo=function(e){function t(t,n){var r,i=Tn(Ao,n,{createEl:!1});return(r=e.call(this,t,i)||this).reset_(),r.on(r.player_,"durationchange",r.handleDurationchange),qn&&"hidden"in a.a&&"visibilityState"in a.a&&r.on(a.a,"visibilitychange",r.handleVisibilityChange),r}d()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(a.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(i.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,cn),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLive_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked):(this.one(this.player_,"play",this.handlePlay),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=!this.skipNextSeeked_&&e>2,this.skipNextSeeked_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.skipNextSeeked_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLive_),this.off(this.player_,"seeked",this.handleSeeked),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate),this.off(this.player_,"timeupdate",this.seekToLiveEdge)},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?1/0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.skipNextSeeked_=!0,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(a.a,"visibilitychange",this.handleVisibilityChange),this.stopTracking(),e.prototype.dispose.call(this)},t}(On);On.registerComponent("LiveTracker",Mo);var Po,No=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},Io=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=a.a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",i.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Lo=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},Do=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return Lo([e.el(),i.a.HTMLMediaElement.prototype,i.a.Element.prototype,Io],"innerHTML")}(e),o=function(n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=n.apply(t,i);return No(e),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=o(n[e]))}),Object.defineProperty(t,"innerHTML",Tn(r,{set:o(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},Ro=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ar(i.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return i.a.Element.prototype.setAttribute.call(this,"src",e),e}}),Bo=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Lo([e.el(),i.a.HTMLMediaElement.prototype,Ro],"src")}(e),r=t.setAttribute,o=t.load;Object.defineProperty(t,"src",Tn(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var o=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=o.call(t);return No(e)||(e.triggerSourceset(""),Do(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):No(e)||Do(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=o,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Fo=function(e,t,n,r){void 0===r&&(r=!0);var i=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},o={configurable:!0,enumerable:!0,get:function(){var e=n();return i(e),e}};return r&&(o.set=i),Object.defineProperty(e,t,o)},Uo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,o=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,c=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(u),r.remoteTextTracks().addTrack(u.track),r.textTracks().addTrack(u.track),o||r.el_.hasAttribute("crossorigin")||!Pr(u.src)||(o=!0)):c.push(u))}for(var l=0;l<c.length;l++)r.el_.removeChild(c[l])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&Xe.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(Wn||Yn||Dn)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}d()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Bo(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach(function(e){n.el()[r+"Tracks"].removeEventListener(e,n[r+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=zr[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(n){var r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&t[Hr.remoteText.getterName]().trigger(r)},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach(function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",function(t){return r.removeEventListener(e,n)})}),this.on("loadstart",a),this.on("dispose",function(e){return t.off("loadstart",a)})}},n.proxyNativeTracks_=function(){var e=this;zr.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=a.a.createElement("video");var r=Tn({},this.options_.tag&&bt(this.options_.tag));Wn&&!0===this.options_.nativeControlsForTouch||delete r.controls,yt(e,tt(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&wt(e,"preload",this.options_.preload);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var s=i[o],c=this.options_[s];void 0!==c&&(c?wt(e,s,s):xt(e,s),e[s]=c)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},n.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){Xe(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&In&&Fn&&0===this.el_.currentTime){return this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=i.a.navigator&&i.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ur(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),i.a.performance&&"function"==typeof i.a.performance.now?e.creationTime=i.a.performance.now():i.a.performance&&i.a.performance.timing&&"number"==typeof i.a.performance.timing.navigationStart&&(e.creationTime=i.a.Date.now()-i.a.performance.timing.navigationStart),e},t}(Vr);Fo(Uo,"TEST_VID",function(){if(st()){var e=a.a.createElement("video"),t=a.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Uo.isSupported=function(){try{Uo.TEST_VID.volume=.5}catch(e){return!1}return!(!Uo.TEST_VID||!Uo.TEST_VID.canPlayType)},Uo.canPlayType=function(e){return Uo.TEST_VID.canPlayType(e)},Uo.canPlaySource=function(e,t){return Uo.canPlayType(e.type)},Uo.canControlVolume=function(){try{var e=Uo.TEST_VID.volume;return Uo.TEST_VID.volume=e/2+.1,e!==Uo.TEST_VID.volume}catch(e){return!1}},Uo.canMuteVolume=function(){try{var e=Uo.TEST_VID.muted;return Uo.TEST_VID.muted=!e,Uo.TEST_VID.muted?wt(Uo.TEST_VID,"muted","muted"):xt(Uo.TEST_VID,"muted"),e!==Uo.TEST_VID.muted}catch(e){return!1}},Uo.canControlPlaybackRate=function(){if(In&&Fn&&Un<58)return!1;try{var e=Uo.TEST_VID.playbackRate;return Uo.TEST_VID.playbackRate=e/2+.1,e!==Uo.TEST_VID.playbackRate}catch(e){return!1}},Uo.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Uo.supportsNativeTextTracks=function(){return Kn||Gn&&Fn},Uo.supportsNativeVideoTracks=function(){return!(!Uo.TEST_VID||!Uo.TEST_VID.videoTracks)},Uo.supportsNativeAudioTracks=function(){return!(!Uo.TEST_VID||!Uo.TEST_VID.audioTracks)},Uo.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],n=e[1];Fo(Uo.prototype,t,function(){return Uo[n]()},!0)}),Uo.prototype.movingMediaElementInDOM=!Gn,Uo.prototype.featuresFullscreenResize=!0,Uo.prototype.featuresProgressEvents=!0,Uo.prototype.featuresTimeupdateEvents=!0,Uo.patchCanPlayType=function(){Ln>=4&&!Rn&&!Fn&&(Po=Uo.TEST_VID&&Uo.TEST_VID.constructor.prototype.canPlayType,Uo.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Po.call(this,e)})},Uo.unpatchCanPlayType=function(){var e=Uo.TEST_VID.constructor.prototype.canPlayType;return Po&&(Uo.TEST_VID.constructor.prototype.canPlayType=Po),e},Uo.patchCanPlayType(),Uo.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Uo.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Uo.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Uo.prototype["set"+Sn(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Uo.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","crossOrigin"].forEach(function(e){Uo.prototype["set"+Sn(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Uo.prototype[e]=function(){return this.el_[e]()}}),Vr.withSourceHandlers(Uo),Uo.nativeSourceHandler={},Uo.nativeSourceHandler.canPlayType=function(e){try{return Uo.TEST_VID.canPlayType(e)}catch(e){return""}},Uo.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Uo.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=Mr(e.src);return Uo.nativeSourceHandler.canPlayType("video/"+n)}return""},Uo.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Uo.nativeSourceHandler.dispose=function(){},Uo.registerSourceHandler(Uo.nativeSourceHandler),Vr.registerTech("Html5",Uo);var qo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],zo={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ho=["tiny","xsmall","small","medium","large","xlarge","huge"],Wo={};Ho.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Wo[e]="vjs-layout-"+t});var Vo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Yo=function(e){function t(n,r,i){var o;if(n.id=n.id||r.id||"vjs_video_"+Yt(),(r=tt(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(r.language=s.getAttribute("lang"))}else for(var c=n;c&&1===c.nodeType;){if(bt(c).hasOwnProperty("lang")){r.language=c.getAttribute("lang");break}c=c.parentNode}if((o=e.call(this,null,r,i)||this).boundDocumentFullscreenChange_=un(l()(o),o.documentFullscreenChange_),o.boundFullWindowOnEscKey_=un(l()(o),o.fullWindowOnEscKey),o.isFullscreen_=!1,o.log=Qe(o.id_),o.fsApi_=tr,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&bt(n),o.language(o.options_.language),r.languages){var u={};Object.getOwnPropertyNames(r.languages).forEach(function(e){u[e.toLowerCase()]=r.languages[e]}),o.languages_=u}else o.languages_=t.prototype.options_.languages;o.resetCache_(),o.poster_=r.poster||"",o.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],n.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach(function(e){if("function"!=typeof o[e])throw new Error('plugin "'+e+'" does not exist')}),o.scrubbing_=!1,o.el_=o.createEl(),wn(l()(o),{eventBusKey:"el_"}),o.fsApi_.requestFullscreen&&(en(a.a,o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_),o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)),o.fluid_&&o.on("playerreset",o.updateStyleEl_);var f=Tn(o.options_);r.plugins&&Object.keys(r.plugins).forEach(function(e){o[e](r.plugins[e])}),o.options_.playerOptions=f,o.middleware_=[],o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),Wn&&o.addClass("vjs-touch-enabled"),Gn||o.addClass("vjs-workinghover"),t.players[o.id_]=l()(o);var d=Ge.split(".")[0];return o.addClass("vjs-v"+d),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("stageclick",o.handleStageClick_),o.on("keydown",o.handleKeyDown),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o}d()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),tn(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),tn(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Gr[this.id()]=null,Wr.names.forEach(function(e){var t=Wr[e],r=n[t.getterName]();r&&r.off&&r.off()}),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:o||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=bt(n);if(o){for(t=this.el_=n,n=this.tag=a.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);pt(t,"video-js")||mt(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{n[e]=t[e]}catch(e){}})}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(qn||Fn&&Hn)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){o&&"class"===e||t.setAttribute(e,s[e]),o&&n.setAttribute(e,s[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ht("vjs-styles-dimensions");var c=Lt(".vjs-styles-defaults"),u=Lt("head");u.insertBefore(this.styleEl_,c?c.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),f=0;f<l.length;f++){var d=l.item(f);mt(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),ht(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):Xe.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?Xe.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},n.fluid=function(e){if(void 0===e)return!!this.fluid_;var t,n;this.fluid_=!!e,hn(this)&&this.off("playerreset",this.updateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),hn(t=function(){this.on("playerreset",this.updateStyleEl_)})?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Wt(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(a>=0&&(c.width=a),s>=0&&(c.height=s))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=Sn(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(Vr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Wr.names.forEach(function(e){var t=Wr[e];o[t.getterName]=n[t.privateName]}),tt(o,this.options_[r]),tt(o,this.options_[i]),tt(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a=Vr.getTech(e);if(!a)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(un(this,this.handleTechReady_),!0),dr(this.textTracksJson_||[],this.tech_),qo.forEach(function(e){n.on(n.tech_,e,n["handleTech"+Sn(e)+"_"])}),Object.keys(zo).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+zo[e]+"_"].bind(n),event:t}):n["handleTech"+zo[e]+"_"](t)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||ht(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Wr.names.forEach(function(t){var n=Wr[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=fr(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&Xe.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if(cr(r))return r.catch(n)};if("any"===e&&!0!==this.muted()?cr(n=this.play())&&(n=n.catch(r)):n="muted"===e&&!0!==this.muted()?r():this.play(),cr(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(n){t.trigger({type:"autoplay-failure",autoplay:e})})}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===t)return o.type}return ni(t)}(this,t)),this.cache_.source=Tn({},e,{src:t,type:n});for(var r=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),i=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var c=bt(o[s]);i.push(c),c.src&&c.src===t&&a.push(c.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Xe.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){Nt(e)&&this.controls_&&(this.paused()?ur(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=a.a[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},n.techCall_=function(e,t){this.ready(function(){if(e in Zr)return function(e,t,n,r){return t[n](e.reduce(ei(n),r))}(this.middleware_,this.tech_,e,t);if(e in Jr)return Xr(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Xe(e),e}},!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Qr)return function(e,t,n){return e.reduceRight(ei(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Jr)return Xr(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Xe("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Xe("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Xe(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||i.a.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=ur),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!Kn&&!Gn||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Zn(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Zn(0,0)),e},n.bufferedPercent=function(){return Jn(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||i.a.Promise;if(t){var n=this;return new t(function(t,r){function i(){n.off("fullscreenerror",a),n.off("fullscreenchange",o)}function o(){i(),t()}function a(e,t){i(),r(t)}n.one("fullscreenchange",o),n.one("fullscreenerror",a);var s=n.requestFullscreenHelper_(e);if(s)return s.then(i,i),s})}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),r}this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||i.a.Promise;if(e){var t=this;return new e(function(e,n){function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",i)}function i(){r(),e()}function o(e,t){r(),n(t)}t.one("fullscreenchange",i),t.one("fullscreenerror",o);var a=t.exitFullscreenHelper_();if(a)return a.then(r,r),a})}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=a.a[this.fsApi_.exitFullscreen]();return t&&t.then(function(){return e.isFullscreen(!1)}),t}this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,en(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",mt(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){v.a.isEventKey(e,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,tn(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,vt(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return a.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return v.a.isEventKey(e,"f")}:n,i=t.muteKey,o=void 0===i?function(e){return v.a.isEventKey(e,"m")}:i,s=t.playPauseKey,c=void 0===s?function(e){return v.a.isEventKey(e,"k")||v.a.isEventKey(e,"Space")}:s;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var u=On.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),On.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(c.call(this,e)){e.preventDefault(),e.stopPropagation(),On.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=Vr.getTech(i);if(o||(o=On.getComponent(i)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else Xe.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map(function(e){return[e,Vr.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(Xe.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var r;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},o=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=o,function(e,n){return t(n,e)})):i(r,e,o))||!1},n.src=function(e){var t=this;if(void 0===e)return this.cache_.src||"";var n=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):nt(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[ri({src:t})]:nt(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[ri(t)]:[];return t}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),$r(this,n[0],function(e,r){var i,o;if(t.middleware_=r,t.cache_.sources=n,t.updateSourceCaches_(e),t.src_(e))return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void t.triggerReady());i=r,o=t.tech_,i.forEach(function(e){return e.setTech&&e.setTech(o)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},n.src_=function(e){var t,n,r=this,i=this.selectSource([e]);return!i||(t=i.tech,n=this.techName_,Sn(t)!==Sn(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){r.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||i.a.Promise;this.paused()||!t?this.doReset_():ur(this.play().then(function(){return e.doReset_()}))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),hn(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&4===e.code){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new ar(e),this.addClass("vjs-error"),Xe.error("(CODE:"+this.error_.code+" "+ar.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=un(this,this.reportUserActivity),i=function(t){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",i),this.on("mouseleave",i);var o,a=this.getChild("controlBar");!a||Gn||In||(a.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),a.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},n.languages=function(){return Tn(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Tn(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=Tn(r)).player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new pr(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Ho.length;n++){var r=Ho[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(Wo[e]),this.addClass(Wo[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e?tt(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=tt({},Vo,e),this.updateCurrentBreakpoint_(),tt(this.breakpoints_))},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Wo[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=Tn(e);var r=this.cache_.media,i=r.artwork,o=r.poster,a=r.src,s=r.textTracks;!i&&o&&(this.cache_.media.artwork=[{src:o,type:ni(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(s)&&s.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:ni(t.poster)}]),t}return Tn(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=bt(e),r=n["data-setup"];if(pt(e,"vjs-fill")&&(n.fill=!0),pt(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=p()(r||"{}"),o=i[0],a=i[1];o&&Xe.error(o),tt(n,a)}if(tt(t,n),e.hasChildNodes())for(var s=e.childNodes,c=0,u=s.length;c<u;c++){var l=s[c],f=l.nodeName.toLowerCase();"source"===f?t.sources.push(bt(l)):"track"===f&&t.tracks.push(bt(l))}return t},n.flexNotSupported_=function(){var e=a.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(On);Wr.names.forEach(function(e){var t=Wr[e];Yo.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Yo.prototype.crossorigin=Yo.prototype.crossOrigin,Yo.players={};var Go=i.a.navigator;Yo.prototype.options_={techOrder:Vr.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Go&&(Go.languages&&Go.languages[0]||Go.userLanguage||Go.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Yo.prototype[e]=function(){return this.techGet_(e)}}),qo.forEach(function(e){Yo.prototype["handleTech"+Sn(e)+"_"]=function(){return this.trigger(e)}}),On.registerComponent("Player",Yo);var Ko={},$o=function(e){return Ko.hasOwnProperty(e)},Xo=function(e){return $o(e)?Ko[e]:void 0},Qo=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Zo=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},Jo=function(e,t){return t.prototype.name=e,function(){Zo(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=x()(t,[this].concat(r));return this[e]=function(){return o},Zo(this,o.getEventHash()),o}},ea=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,wn(this),delete this.trigger,kn(this,this.constructor.defaultState),Qo(t,this.name),this.dispose=un(this,this.dispose),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),nn(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Jo(e,Ko[e])},e.isBasic=function(t){var n="string"==typeof t?Xo(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if($o(t))Xe.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Yo.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Ko[t]=n,"plugin"!==t&&(e.isBasic(n)?Yo.prototype[t]=function(e,t){var n=function(){Zo(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Qo(this,e),Zo(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):Yo.prototype[t]=Jo(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");$o(e)&&(delete Ko[e],delete Yo.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Ko)),e.forEach(function(e){var n=Xo(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=Xo(e);return t&&t.VERSION||""},e}();ea.getPlugin=Xo,ea.BASE_PLUGIN_NAME="plugin",ea.registerPlugin("plugin",ea),Yo.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Yo.prototype.hasPlugin=function(e){return!!$o(e)};var ta=function(e){return 0===e.indexOf("#")?e.slice(1):e};function na(e,t,n){var r=na.getPlayer(e);if(r)return t&&Xe.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Lt("#"+ta(e)):e;if(!ct(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||Xe.warn("The element supplied is not included in the DOM"),t=t||{},na.hooks("beforesetup").forEach(function(e){var n=e(i,Tn(t));nt(n)&&!Array.isArray(n)?t=Tn(t,n):Xe.error("please return an object in beforesetup hooks")});var o=On.getComponent("Player");return r=new o(i,t,n),na.hooks("setup").forEach(function(e){return e(r)}),r}if(na.hooks_={},na.hooks=function(e,t){return na.hooks_[e]=na.hooks_[e]||[],t&&(na.hooks_[e]=na.hooks_[e].concat(t)),na.hooks_[e]},na.hook=function(e,t){na.hooks(e,t)},na.hookOnce=function(e,t){na.hooks(e,[].concat(t).map(function(t){return function n(){return na.removeHook(e,n),t.apply(void 0,arguments)}}))},na.removeHook=function(e,t){var n=na.hooks(e).indexOf(t);return!(n<=-1)&&(na.hooks_[e]=na.hooks_[e].slice(),na.hooks_[e].splice(n,1),!0)},!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE&&st()){var ra=Lt(".vjs-styles-defaults");if(!ra){ra=Ht("vjs-styles-defaults");var ia=Lt("head");ia&&ia.insertBefore(ra,ia.firstChild),Wt(ra,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Ut(1,na),na.VERSION=Ge,na.options=Yo.prototype.options_,na.getPlayers=function(){return Yo.players},na.getPlayer=function(e){var t,n=Yo.players;if("string"==typeof e){var r=ta(e),i=n[r];if(i)return i;t=Lt("#"+r)}else t=e;if(ct(t)){var o=t,a=o.player,s=o.playerId;if(a||n[s])return a||n[s]}},na.getAllPlayers=function(){return Object.keys(Yo.players).map(function(e){return Yo.players[e]}).filter(Boolean)},na.players=Yo.players,na.getComponent=On.getComponent,na.registerComponent=function(e,t){Vr.isTech(t)&&Xe.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),On.registerComponent.call(On,e,t)},na.getTech=Vr.getTech,na.registerTech=Vr.registerTech,na.use=function(e,t){Yr[e]=Yr[e]||[],Yr[e].push(t)},Object.defineProperty(na,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(na.middleware,"TERMINATOR",{value:Kr,writeable:!1,enumerable:!0}),na.browser=$n,na.TOUCH_ENABLED=Wn,na.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};for(var i in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),E()(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},na.mergeOptions=Tn,na.bind=un,na.registerPlugin=ea.registerPlugin,na.deregisterPlugin=ea.deregisterPlugin,na.plugin=function(e,t){return Xe.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),ea.registerPlugin(e,t)},na.getPlugins=ea.getPlugins,na.getPlugin=ea.getPlugin,na.getPluginVersion=ea.getPluginVersion,na.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),na.options.languages=Tn(na.options.languages,((n={})[e]=t,n)),na.options.languages[e]},na.log=Xe,na.createLogger=Qe,na.createTimeRange=na.createTimeRanges=Zn,na.formatTime=yi,na.setFormatTime=function(e){gi=e},na.resetFormatTime=function(){gi=vi},na.parseUrl=jr,na.isCrossOrigin=Pr,na.EventTarget=dn,na.on=en,na.one=rn,na.off=tn,na.trigger=nn,na.xhr=y.a,na.TextTrack=Dr,na.AudioTrack=Rr,na.VideoTrack=Br,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){na[e]=function(){return Xe.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Rt[e].apply(null,arguments)}}),na.computedStyle=it,na.dom=Rt,na.url=Nr,na.defineLazyProperty=Fo;
/**
* @videojs/http-streaming
* @version 1.13.2
* @copyright 2020 Brightcove, Inc
* @license Apache-2.0
*/
var oa=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=T.a.buildAbsoluteURL(i.a.location.href,e)),T.a.buildAbsoluteURL(e,t))},aa=function(e,t,n){return e&&n.responseURL&&t!==n.responseURL?n.responseURL:t},sa=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ca=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ua=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},la=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},fa=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),da=na.mergeOptions,ha=na.EventTarget,pa=na.log,ma=function(e,t){["AUDIO","SUBTITLES"].forEach(function(n){for(var r in e.mediaGroups[n])for(var i in e.mediaGroups[n][r]){var o=e.mediaGroups[n][r][i];t(o,n,r,i)}})},va=function(e,t){var n=da(e,{}),r=n.playlists[t.id];if(!r)return null;if(r.segments&&t.segments&&r.segments.length===t.segments.length&&r.endList===t.endList&&r.mediaSequence===t.mediaSequence)return null;var i=da(r,t);r.segments&&(i.segments=function(e,t,n){var r=t.slice();n=n||0;for(var i=Math.min(e.length,t.length+n),o=n;o<i;o++)r[o-n]=da(e[o],r[o-n]);return r}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)),i.segments.forEach(function(e){!function(e,t){e.resolvedUri||(e.resolvedUri=oa(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=oa(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=oa(t,e.map.uri))}(e,i.resolvedUri)});for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===t.id&&(n.playlists[o]=i);return n.playlists[t.id]=i,n.playlists[t.uri]=i,n},ga=function(e,t){return e+"-"+t},ya=function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];n.resolvedUri=oa(e.uri,n.uri),n.id=ga(t,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes||(n.attributes={},pa.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}},ba=function(e){ma(e,function(t){t.uri&&(t.resolvedUri=oa(e.uri,t.uri))})},_a=function(e,t){var n=e.segments[e.segments.length-1];return t&&n&&n.duration?1e3*n.duration:500*(e.targetDuration||10)},wa=function(e){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};sa(this,t);var i=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=r.withCredentials,a=void 0!==o&&o,s=r.handleManifestRedirects,c=void 0!==s&&s;i.srcUrl=e,i.hls_=n,i.withCredentials=a,i.handleManifestRedirects=c;var u=n.options_;if(i.customTagParsers=u&&u.customTagParsers||[],i.customTagMappers=u&&u.customTagMappers||[],!i.srcUrl)throw new Error("A non-empty playlist URL is required");return i.state="HAVE_NOTHING",i.on("mediaupdatetimeout",function(){"HAVE_METADATA"===i.state&&(i.state="HAVE_CURRENT_METADATA",i.request=i.hls_.xhr({uri:oa(i.master.uri,i.media().uri),withCredentials:i.withCredentials},function(e,t){if(i.request)return e?i.playlistRequestError(i.request,i.media(),"HAVE_METADATA"):void i.haveMetadata(i.request,i.media().uri,i.media().id)}))}),i}return ua(t,ha),ca(t,[{key:"playlistRequestError",value:function(e,t,n){var r=t.uri,i=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[i],status:e.status,message:"HLS playlist request error at URL: "+r+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(e,t,n){var r=this;this.request=null,this.state="HAVE_METADATA";var o=new D;this.customTagParsers.forEach(function(e){return o.addParser(e)}),this.customTagMappers.forEach(function(e){return o.addTagMapper(e)}),o.push(e.responseText),o.end(),o.manifest.uri=t,o.manifest.id=n,o.manifest.attributes=o.manifest.attributes||{};var a=va(this.master,o.manifest);this.targetDuration=o.manifest.targetDuration,a?(this.master=a,this.media_=this.master.playlists[n]):this.trigger("playlistunchanged"),this.media().endList||(i.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=i.a.setTimeout(function(){r.trigger("mediaupdatetimeout")},_a(this.media(),!!a))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.finalRenditionTimeout),this.off()}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(i.a.clearTimeout(this.finalRenditionTimeout),t){var r=e.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=i.a.setTimeout(this.media.bind(this,e,!1),r)}else{var o=this.state,a=!this.media_||e.id!==this.media_.id;if(this.master.playlists[e.id].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,r){if(n.request){if(e.resolvedUri=aa(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e,o);n.haveMetadata(r,e.uri,e.id),"HAVE_MASTER"===o?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}}},{key:"pause",value:function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;i.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i.a.setTimeout(function(){return t.load()},r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var e=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.srcUrl+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");var r=new D;if(e.customTagParsers.forEach(function(e){return r.addParser(e)}),e.customTagMappers.forEach(function(e){return r.addTagMapper(e)}),r.push(n.responseText),r.end(),e.state="HAVE_MASTER",e.srcUrl=aa(e.handleManifestRedirects,e.srcUrl,n),r.manifest.uri=e.srcUrl,r.manifest.playlists)return e.master=r.manifest,ya(e.master),ba(e.master),e.trigger("loadedplaylist"),void(e.request||e.media(r.manifest.playlists[0]));var o=ga(0,e.srcUrl);return e.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:i.a.location.href,playlists:[{uri:e.srcUrl,id:o,resolvedUri:e.srcUrl,attributes:{}}]},e.master.playlists[o]=e.master.playlists[0],e.master.playlists[e.srcUrl]=e.master.playlists[0],e.haveMetadata(n,e.srcUrl,o),e.trigger("loadedmetadata")}})}}]),t}(),xa=na.createTimeRange,ka=function(e,t,n){var r,i;return void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence?0:(r=function(e,t){var n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if(void 0!==i.start)return{result:i.start,precise:!0};if(void 0!==i.end)return{result:i.end-i.duration,precise:!0}}for(;r--;){if(void 0!==(i=e.segments[r]).end)return{result:n+i.end,precise:!0};if(n+=i.duration,void 0!==i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}}(e,t)).precise?r.result:(i=function(e,t){for(var n=0,r=void 0,i=t-e.mediaSequence;i<e.segments.length;i++){if(void 0!==(r=e.segments[i]).start)return{result:r.start-n,precise:!0};if(n+=r.duration,void 0!==r.end)return{result:r.end-n,precise:!0}}return{result:-1,precise:!1}}(e,t)).precise?i.result:r.result+n},Ea=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return i.a.Infinity}return ka(e,t,n)},Sa=function(e,t,n){var r=0;if(t>n){var i=[n,t];t=i[0],n=i[1]}if(t<0){for(var o=t;o<Math.min(0,n);o++)r+=e.targetDuration;t=0}for(var a=t;a<n;a++)r+=e.segments[a].duration;return r},Ta=function(e,t){if(!e.segments.length)return 0;var n=e.segments.length,r=e.segments[n-1].duration||e.targetDuration,i="number"==typeof t?t:r+2*e.targetDuration;if(0===i)return n;for(var o=0;n--&&!((o+=e.segments[n].duration)>=i););return Math.max(0,n)},Oa=function(e,t,n,r){if(!e||!e.segments)return null;if(e.endList)return Ea(e);if(null===t)return null;t=t||0;var i=n?Ta(e,r):e.segments.length;return ka(e,e.mediaSequence+i,t)},Ca=function(e){return e-Math.floor(e)==0},ja=function(e,t){if(Ca(t))return t+.1*e;for(var n=t.toString().split(".")[1].length,r=1;r<=n;r++){var i=Math.pow(10,r),o=t*i;if(Ca(o)||r===n)return(o+e)/i}},Aa=ja.bind(null,1),Ma=ja.bind(null,-1),Pa=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Na=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Ia=function(e){var t=Pa(e);return!e.disabled&&!t},La=function(e,t){return t.attributes&&t.attributes[e]},Da=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Ia(e)&&(e.attributes.BANDWIDTH||0)<n}).length},Ra={duration:Ea,seekable:function(e,t,n){var r=t||0,i=Oa(e,t,!0,n);return null===i?xa():xa(r,i)},safeLiveIndex:Ta,getMediaInfoForTime:function(e,t,n,r){var i=void 0,o=void 0,a=e.segments.length,s=t-r;if(s<0){if(n>0)for(i=n-1;i>=0;i--)if(o=e.segments[i],(s+=Ma(o.duration))>0)return{mediaIndex:i,startTime:r-Sa(e,n,i)};return{mediaIndex:0,startTime:t}}if(n<0){for(i=n;i<0;i++)if((s-=e.targetDuration)<0)return{mediaIndex:0,startTime:t};n=0}for(i=n;i<a;i++)if(o=e.segments[i],(s-=Aa(o.duration))<0)return{mediaIndex:i,startTime:r+Sa(e,n,i)};return{mediaIndex:a-1,startTime:t}},isEnabled:Ia,isDisabled:function(e){return e.disabled},isBlacklisted:Pa,isIncompatible:Na,playlistEnd:Oa,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},isFmp4:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].map)return!0;return!1},hasAttribute:La,estimateSegmentRequestTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return La("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*r)/t:NaN},isLowestEnabledRendition:Da},Ba=na.xhr,Fa=na.mergeOptions,Ua=function(){return function e(t,n){t=Fa({timeout:45e3},t);var r=e.beforeRequest||na.Hls.xhr.beforeRequest;if(r&&"function"==typeof r){var i=r(t);i&&(t=i)}var o=Ba(t,function(e,t){var r=o.response;!e&&r&&(o.responseTime=Date.now(),o.roundTripTime=o.responseTime-o.requestTime,o.bytesReceived=r.byteLength||r.length,o.bandwidth||(o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3))),t.headers&&(o.responseHeaders=t.headers),e&&"ETIMEDOUT"===e.code&&(o.timedout=!0),e||o.aborted||200===t.statusCode||206===t.statusCode||0===t.statusCode||(e=new Error("XHR Failed with a response of: "+(o&&(r||o.responseText)))),n(e,o)}),a=o.abort;return o.abort=function(){return o.aborted=!0,a.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o}},qa=function(e){var t,n,r={};return e.byterange&&(r.Range=(t=e.byterange,n=t.offset+t.length-1,"bytes="+t.offset+"-"+n)),r},za=function(e,t){return e.start(t)+"-"+e.end(t)},Ha=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Wa=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Va=function(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];ArrayBuffer.isView(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r}),t},Ya=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Ga=function(e){return e.resolvedUri},Ka=function(e){for(var t=Array.prototype.slice.call(e),n="",r=0;r<t.length/16;r++)n+=t.slice(16*r,16*r+16).map(Ha).join("")+" "+t.slice(16*r,16*r+16).map(Wa).join("")+"\n";return n},$a=Object.freeze({createTransferableMessage:Va,initSegmentId:Ya,segmentKeyId:Ga,hexDump:Ka,tagDump:function(e){var t=e.bytes;return Ka(t)},textRanges:function(e){var t="",n=void 0;for(n=0;n<e.length;n++)t+=za(e,n)+" ";return t}}),Xa=function(e){var t=e.playlist,n=e.time,r=void 0===n?void 0:n,i=e.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===r)return i({message:"getProgramTime: playlist and time must be provided"});var o=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n=0,r=void 0,i=0;i<t.segments.length&&!(e<=(n=(r=t.segments[i]).videoTimingInfo?r.videoTimingInfo.transmuxedPresentationEnd:n+r.duration));i++);var o=t.segments[t.segments.length-1];if(o.videoTimingInfo&&o.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+.25*o.duration)return null;r=o}return{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:n-r.duration,type:r.videoTimingInfo?"accurate":"estimate"}}(r,t);if(!o)return i({message:"valid programTime was not found"});if("estimate"===o.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var a={mediaSeconds:r},s=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,r=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*r)}(r,o.segment);return s&&(a.programDateTime=s.toISOString()),i(null,a)},Qa=function e(t){var n=t.programTime,r=t.playlist,i=t.retryCount,o=void 0===i?2:i,a=t.seekTo,s=t.pauseAfterSeek,c=void 0===s||s,u=t.tech,l=t.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!r||!a)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!u.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(r))return l({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var f=function(e,t){var n=void 0;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var r=t.segments[0];if(n<r.dateTimeObject)return null;for(var i=0;i<t.segments.length-1&&(r=t.segments[i],!(n<t.segments[i+1].dateTimeObject));i++);var o,a=t.segments[t.segments.length-1],s=a.dateTimeObject,c=a.videoTimingInfo?(o=a.videoTimingInfo).transmuxedPresentationEnd-o.transmuxedPresentationStart-o.transmuxerPrependedSeconds:a.duration+.25*a.duration;return n>new Date(s.getTime()+1e3*c)?null:(n>s&&(r=a),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Ra.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})}(n,r);if(!f)return l({message:n+" was not found in the stream"});var d=f.segment,h=function(e,t){var n=void 0,r=void 0;try{n=new Date(e),r=new Date(t)}catch(e){}var i=n.getTime();return(r.getTime()-i)/1e3}(d.dateTimeObject,n);if("estimate"===f.type)return 0===o?l({message:n+" is not buffered yet. Try again"}):(a(f.estimatedStart+h),void u.one("seeked",function(){e({programTime:n,playlist:r,retryCount:o-1,seekTo:a,pauseAfterSeek:c,tech:u,callback:l})}));var p=d.start+h;u.one("seeked",function(){return l(null,u.currentTime())}),c&&u.pause(),a(p)},Za=function(e,t){var n=[],r=void 0;if(e&&e.length)for(r=0;r<e.length;r++)t(e.start(r),e.end(r))&&n.push([e.start(r),e.end(r)]);return na.createTimeRanges(n)},Ja=function(e,t){return Za(e,function(e,n){return e-.1<=t&&n+.1>=t})},es=function(e,t){return Za(e,function(e){return e-1/30>=t})},ts=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},ns=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},rs=function(e,t,n){var r=void 0,i=void 0;if(n&&n.cues)for(r=n.cues.length;r--;)(i=n.cues[r]).startTime<=t&&i.endTime>=e&&n.removeCue(i)},is=function(e){return isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e},os=function(e,t,n){var r=i.a.WebKitDataCue||i.a.VTTCue;if(t&&t.forEach(function(e){var t=e.stream;this.inbandTextTracks_[t].addCue(new r(e.startTime+this.timestampOffset,e.endTime+this.timestampOffset,e.text))},e),n){var o=is(e.mediaSource_.duration);if(n.forEach(function(e){var t=e.cueTime+this.timestampOffset;!("number"!=typeof t||i.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var n=new r(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return na.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return na.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return na.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),this.metadataTrack_.addCue(n)},this)},e),e.metadataTrack_&&e.metadataTrack_.cues&&e.metadataTrack_.cues.length){for(var a=e.metadataTrack_.cues,s=[],c=0;c<a.length;c++)a[c]&&s.push(a[c]);var u=s.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),l=Object.keys(u).sort(function(e,t){return Number(e)-Number(t)});l.forEach(function(e,t){var n=u[e],r=Number(l[t+1])||o;n.forEach(function(e){e.endTime=r})})}}},as="undefined"!=typeof window?window:{},ss="undefined"==typeof Symbol?"__target":Symbol(),cs="application/javascript",us=as.BlobBuilder||as.WebKitBlobBuilder||as.MozBlobBuilder||as.MSBlobBuilder,ls=as.URL||as.webkitURL||ls&&ls.msURL,fs=as.Worker;function ds(e,t){return function(n){var r=this;if(!t)return new fs(e);if(fs&&!n){var i=vs(t.toString().replace(/^function.+?{/,"").slice(0,-1));return this[ss]=new fs(i),function(e,t){if(!e||!t)return;var n=e.terminate;e.objURL=t,e.terminate=function(){e.objURL&&ls.revokeObjectURL(e.objURL),n.call(e)}}(this[ss],i),this[ss]}var o={postMessage:function(e){r.onmessage&&setTimeout(function(){r.onmessage({data:e,target:o})})}};t.call(o),this.postMessage=function(e){setTimeout(function(){o.onmessage({data:e,target:r})})},this.isThisThread=!0}}if(fs){var hs,ps=vs("self.onmessage = function () {}"),ms=new Uint8Array(1);try{(hs=new fs(ps)).postMessage(ms,[ms.buffer])}catch(e){fs=null}finally{ls.revokeObjectURL(ps),hs&&hs.terminate()}}function vs(e){try{return ls.createObjectURL(new Blob([e],{type:cs}))}catch(n){var t=new us;return t.append(e),ls.createObjectURL(t.getBlob(type))}}var gs=new ds("./transmuxer-worker.worker.js",function(e,t){var n=this;!function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,r,i,o,a,s,c,u,l,f,d,h,p,m,v,g,y,b,_,w,x,k,E,S,T,O,C,j,A,M,P,N,I,L,D,R,B,F,U,q,z=e,H=Math.pow(2,32)-1;!function(){var e;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in k)k.hasOwnProperty(e)&&(k[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),T=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),C=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),j={video:O,audio:C},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),M=new Uint8Array([0,0,0,0,0,0,0,0]),N=new Uint8Array([0,0,0,0,0,0,0,0]),I=N,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),D=N,A=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,r=[],i=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)i+=r[t].byteLength;for(n=new Uint8Array(i+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,i=8;t<r.length;t++)n.set(r[t],i),i+=r[t].byteLength;return n},r=function(){return t(k.dinf,t(k.dref,P))},i=function(e){return t(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},v=function(e){return t(k.hdlr,j[e])},m=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(k.mdhd,n)},p=function(e){return t(k.mdia,m(e),v(e.type),s(e))},a=function(e){return t(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(k.minf,"video"===e.type?t(k.vmhd,A):t(k.smhd,M),r(),y(e))},c=function(e,n){for(var r=[],i=n.length;i--;)r[i]=_(n[i]);return t.apply(null,[k.moof,a(e)].concat(r))},u=function(e){for(var n=e.length,r=[];n--;)r[n]=d(e[n]);return t.apply(null,[k.moov,f(4294967295)].concat(r).concat(l(e)))},l=function(e){for(var n=e.length,r=[];n--;)r[n]=w(e[n]);return t.apply(null,[k.mvex].concat(r))},f=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(k.mvhd,n)},g=function(e){var n,r,i=e.samples||[],o=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,o[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(k.sdtp,o)},y=function(e){return t(k.stbl,b(e),t(k.stts,D),t(k.stsc,I),t(k.stsz,L),t(k.stco,N))},b=function(e){return t(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?R(e):B(e))},R=function(e){var n,r,i=e.sps||[],o=e.pps||[],a=[],s=[];for(n=0;n<i.length;n++)a.push((65280&i[n].byteLength)>>>8),a.push(255&i[n].byteLength),a=a.concat(Array.prototype.slice.call(i[n]));for(n=0;n<o.length;n++)s.push((65280&o[n].byteLength)>>>8),s.push(255&o[n].byteLength),s=s.concat(Array.prototype.slice.call(o[n]));if(r=[k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],a,[o.length],s))),t(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var c=e.sarRatio[0],u=e.sarRatio[1];r.push(t(k.pasp,new Uint8Array([(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,r)},B=function(e){return t(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},h=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(k.tkhd,n)},_=function(e){var n,r,i,o,a,s;return n=t(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/(H+1)),s=Math.floor(e.baseMediaDecodeTime%(H+1)),r=t(k.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(i=x(e,92),t(k.traf,n,r,i)):(o=g(e),i=x(e,o.length+92),t(k.traf,n,r,i,o))},d=function(e){return e.duration=e.duration||4294967295,t(k.trak,h(e),p(e))},w=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(k.trex,n)},q=function(e,t){var n=0,r=0,i=0,o=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(o=8)),[0,0,n|r|i|o,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},U=function(e,n){var r,i,o,a;for(n+=20+16*(i=e.samples||[]).length,r=q(i,n),a=0;a<i.length;a++)o=i[a],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return t(k.trun,new Uint8Array(r))},F=function(e,n){var r,i,o,a;for(n+=20+8*(i=e.samples||[]).length,r=q(i,n),a=0;a<i.length;a++)o=i[a],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return t(k.trun,new Uint8Array(r))},x=function(e,t){return"audio"===e.type?F(e,t):U(e,t)};o=function(){return t(k.ftyp,E,S,E,T)};var W,V,Y,G,K,$,X,Q,Z=function(e){return t(k.mdat,e)},J=c,ee=function(e){var t,n=o(),r=u(e);return(t=new Uint8Array(n.byteLength+r.byteLength)).set(n),t.set(r,n.byteLength),t},te=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ne=function(e){var t,n,r=[],i=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,r.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r)),(r=[n]).byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r),i},re=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),(r=[n]).nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},ie=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},oe=function(e,t){var n,r,i,o,a,s=t||0,c=[];for(n=0;n<e.length;n++)for(o=e[n],r=0;r<o.length;r++)a=o[r],s+=(i=te(a,s)).size,c.push(i);return c},ae=function(e){var t,n,r,i,o,a,s=0,c=e.byteLength,u=e.nalCount,l=new Uint8Array(c+4*u),f=new DataView(l.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(o=i[n],r=0;r<o.length;r++)a=o[r],f.setUint32(s,a.data.byteLength),s+=4,l.set(a.data,s),s+=a.data.byteLength;return l},se=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ue=function(e){for(var t=[];e--;)t.push(0);return t},le={96000:[se,[227,64],ue(154),[56]],88200:[se,[231],ue(170),[56]],64000:[se,[248,192],ue(240),[56]],48000:[se,[255,192],ue(268),[55,148,128],ue(54),[112]],44100:[se,[255,192],ue(268),[55,163,128],ue(84),[112]],32000:[se,[255,192],ue(268),[55,234],ue(226),[112]],24000:[se,[255,192],ue(268),[55,255,128],ue(268),[111,112],ue(126),[224]],16000:[se,[255,192],ue(268),[55,255,128],ue(268),[111,255],ue(269),[223,108],ue(195),[1,192]],12000:[ce,ue(268),[3,127,248],ue(268),[6,255,240],ue(268),[13,255,224],ue(268),[27,253,128],ue(259),[56]],11025:[ce,ue(268),[3,127,248],ue(268),[6,255,240],ue(268),[13,255,224],ue(268),[27,255,192],ue(268),[55,175,128],ue(108),[112]],8000:[ce,ue(268),[3,121,16],ue(47),[7]]},fe=(W=le,Object.keys(W).reduce(function(e,t){return e[t]=new Uint8Array(W[t].reduce(function(e,t){return e.concat(t)},[])),e},{}));$=function(e,t){return V(K(e,t))},X=function(e,t){return Y(G(e),t)},Q=function(e,t,n){return G(n?e:e-t)};var de=9e4,he=(V=function(e){return 9e4*e},Y=function(e,t){return e*t},G=function(e){return e/9e4},K=function(e,t){return e/t},$),pe=X,me=Q,ve=function(e,t,n,r){var i,o,a,s,c,u=0,l=0,f=0;if(t.length&&(i=he(e.baseMediaDecodeTime,e.samplerate),o=Math.ceil(de/(e.samplerate/1024)),n&&r&&(u=i-Math.max(n,r),f=(l=Math.floor(u/o))*o),!(l<1||f>de/2))){for((a=fe[e.samplerate])||(a=t[0].data),s=0;s<l;s++)c=t[0],t.splice(0,0,{data:a,dts:c.dts-o,pts:c.pts-o});e.baseMediaDecodeTime-=Math.floor(pe(f,e.samplerate))}},ge=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},ye=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},be=function(e){var t,n,r=0,i=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i},_e=de,we=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},xe=function(e,t){var n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/_e,n=Math.floor(n)),n},ke=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Ee=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},Se=function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Te=function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[2+(i=3*n)],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},Oe=4,Ce=function e(){e.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Ne(0,0),new Ne(0,1),new Ne(1,0),new Ne(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this)};(Ce.prototype=new z).push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=Ee(e.escapedRBSP)).payloadType===Oe&&(n=Se(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=Te(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ce.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Ce.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Ce.prototype.flush=function(){return this.flushStream("flush")},Ce.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ce.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ce.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Ce.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ce.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ce.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};var je={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ae=function(e){return null===e?"":(e=je[e]||e,String.fromCharCode(e))},Me=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Pe=function(){for(var e=[],t=15;t--;)e.push("");return e},Ne=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Pe();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Pe();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Pe()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=Ae((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=Ae((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=Me.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=Ae(r),o+=Ae(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};Ne.prototype=new z,Ne.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Ne.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Pe(),this.nonDisplayed_=Pe(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ne.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ne.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ne.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ne.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ne.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ne.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ne.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ne.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ne.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Pe(),this.displayed_=Pe()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ne.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},Ne.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Ne.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},Ne.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},Ne.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Ne.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var Ie={CaptionStream:Ce,Cea608Stream:Ne},Le={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},De=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Re=function e(t){var n,r;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===r&&(r=e.dts),e.dts=De(e.dts,r),e.pts=De(e.pts,r),n=e.dts,this.trigger("data",e))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Re.prototype=new z;var Be,Fe=Re,Ue=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},qe=function(e,t,n){return decodeURIComponent(Ue(e,t,n))},ze=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},He={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=qe(e.data,1,t),e.value=qe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=qe(e.data,1,t),e.url=qe(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,n;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(n=e.data,unescape(Ue(n,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Be=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},r=0,i=[],o=0;if(Be.prototype.init.call(this),this.dispatchType=Le.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,a,s,c,u;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(o=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(i.push(e),o+=e.data.byteLength,1===i.length&&(r=ze(e.data.subarray(6,10)),r+=10),!(o<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},u=0;u<r;)t.data.set(i[0].data.subarray(0,r-u),u),u+=i[0].data.byteLength,o-=i[0].data.byteLength,i.shift();a=10,64&t.data[5]&&(a+=4,a+=ze(t.data.subarray(10,14)),r-=ze(t.data.subarray(16,20)));do{if((s=ze(t.data.subarray(a+4,a+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((c={id:String.fromCharCode(t.data[a],t.data[a+1],t.data[a+2],t.data[a+3]),data:t.data.subarray(a+10,a+s+10)}).key=c.id,He[c.id]&&(He[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner)){var l=c.data,f=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;f*=4,f+=3&l[7],c.timeStamp=f,void 0===t.pts&&void 0===t.dts&&(t.pts=c.timeStamp,t.dts=c.timeStamp),this.trigger("timestamp",c)}t.frames.push(c),a+=10,a+=s}while(a<r);this.trigger("data",t)}}}).prototype=new z;var We,Ve,Ye,Ge=Be,Ke=Fe;(We=function(){var e=new Uint8Array(188),t=0;We.prototype.init.call(this),this.push=function(n){var r,i=0,o=188;for(t?((r=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),r.set(n,t),t=0):r=n;o<r.byteLength;)71!==r[i]||71!==r[o]?(i++,o++):(this.trigger("data",r.subarray(i,o)),i+=188,o+=188);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new z,(Ve=function(){var e,t,n,r;Ve.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,i=12+((15&e[10])<<8|e[11]);i<n;){var o=e[i],a=(31&e[i+1])<<8|e[i+2];o===Le.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=a:o===Le.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=a:o===Le.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][a]=o),i+=5+((15&e[i+3])<<8|e[i+4])}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Le.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Le.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new z,Ve.STREAM_TYPES={h264:27,adts:15},(Ye=function(){var e,t=this,n={data:[],size:0},r={data:[],size:0},i={data:[],size:0},o=function(e,n,r){var i,o,a=new Uint8Array(e.size),s={type:n},c=0,u=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,c=0;c<e.data.length;c++)o=e.data[c],a.set(o.data,u),u+=o.data.byteLength;var l,f,d;l=a,(f=s).packetLength=6+(l[4]<<8|l[5]),f.dataAlignmentIndicator=0!=(4&l[6]),192&(d=l[7])&&(f.pts=(14&l[9])<<27|(255&l[10])<<20|(254&l[11])<<12|(255&l[12])<<5|(254&l[13])>>>3,f.pts*=4,f.pts+=(6&l[13])>>>1,f.dts=f.pts,64&d&&(f.dts=(14&l[14])<<27|(255&l[15])<<20|(254&l[16])<<12|(255&l[17])<<5|(254&l[18])>>>3,f.dts*=4,f.dts+=(6&l[18])>>>1)),f.data=l.subarray(9+l[8]),i="video"===n||s.packetLength<=e.size,(r||i)&&(e.size=0,e.data.length=0),i&&t.trigger("data",s)}};Ye.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case Le.H264_STREAM_TYPE:case Le.H264_STREAM_TYPE:e=n,t="video";break;case Le.ADTS_STREAM_TYPE:e=r,t="audio";break;case Le.METADATA_STREAM_TYPE:e=i,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}})[a.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(r,"audio"),o(i,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new z;var $e={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:We,TransportParseStream:Ve,ElementaryStream:Ye,TimestampRolloverStream:Ke,CaptionStream:Ie.CaptionStream,Cea608Stream:Ie.Cea608Stream,MetadataStream:Ge};for(var Xe in Le)Le.hasOwnProperty(Xe)&&($e[Xe]=Le[Xe]);var Qe,Ze=$e,Je=de,et=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(Qe=function(e){var t,n=0;Qe.prototype.init.call(this),this.push=function(r){var i,o,a,s,c,u,l=0;if(e||(n=0),"audio"===r.type)for(t?(s=t,(t=new Uint8Array(s.byteLength+r.data.byteLength)).set(s),t.set(r.data,s.byteLength)):t=r.data;l+5<t.length;)if(255===t[l]&&240==(246&t[l+1])){if(o=2*(1&~t[l+1]),i=(3&t[l+3])<<11|t[l+4]<<3|(224&t[l+5])>>5,u=(c=1024*(1+(3&t[l+6])))*Je/et[(60&t[l+2])>>>2],a=l+i,t.byteLength<a)return;if(this.trigger("data",{pts:r.pts+n*u,dts:r.dts+n*u,sampleCount:c,audioobjecttype:1+(t[l+2]>>>6&3),channelcount:(1&t[l+2])<<2|(192&t[l+3])>>>6,samplerate:et[(60&t[l+2])>>>2],samplingfrequencyindex:(60&t[l+2])>>>2,samplesize:16,data:t.subarray(l+7+o,a)}),n++,t.byteLength===a)return void(t=void 0);t=t.subarray(a)}else l++},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new z;var tt,nt,rt,it=Qe,ot=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,o=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");o.set(e.subarray(i,i+a)),n=new DataView(o.buffer).getUint32(0),r=8*a,t-=a},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,e-=8*(i=Math.floor(e/8)),t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),o=n>>>32-i;return(r-=i)>0?n<<=i:t>0&&this.loadWord(),(i=e-i)>0?o<<i|this.readBits(i):o},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!=(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(nt=function(){var e,t,n=0;nt.prototype.init.call(this),this.push=function(r){var i;t?((i=new Uint8Array(t.byteLength+r.data.byteLength)).set(t),i.set(r.data,t.byteLength),t=i):t=r.data;for(var o=t.byteLength;n<o-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<o;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<o);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new z,rt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(tt=function(){var e,t,n,r,i,o,a,s=new nt;tt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,s.push(e))},s.on("data",function(a){var s={trackId:t,pts:n,dts:r,data:a};switch(31&a[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=i(a.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=i(a.subarray(1)),s.config=o(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)}),s.on("done",function(){e.trigger("done")}),s.on("partialdone",function(){e.trigger("partialdone")}),s.on("reset",function(){e.trigger("reset")}),s.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},a=function(e,t){var n,r=8,i=8;for(n=0;n<e;n++)0!==i&&(i=(r+t.readExpGolomb()+256)%256),r=0===i?r:i},i=function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},o=function(e){var t,n,r,i,o,s,c,u,l,f,d,h,p,m=0,v=0,g=0,y=0,b=1;if(n=(t=new ot(e)).readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),rt[n]&&(3===(o=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(d=3!==o?8:12,p=0;p<d;p++)t.readBoolean()&&a(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),c=t.readUnsignedExpGolomb(),p=0;p<c;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),0===(f=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:h=[1,1];break;case 2:h=[12,11];break;case 3:h=[10,11];break;case 4:h=[16,11];break;case 5:h=[40,33];break;case 6:h=[24,11];break;case 7:h=[20,11];break;case 8:h=[32,11];break;case 9:h=[80,33];break;case 10:h=[18,11];break;case 11:h=[15,11];break;case 12:h=[64,33];break;case 13:h=[160,99];break;case 14:h=[4,3];break;case 15:h=[3,2];break;case 16:h=[2,1];break;case 255:h=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}h&&(b=h[0]/h[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:Math.ceil((16*(u+1)-2*m-2*v)*b),height:(2-f)*(l+1)*16-2*g-2*y,sarRatio:h}}}).prototype=new z;var at,st={H264Stream:tt,NalByteStream:nt},ct=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},ut=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10},lt=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n};(at=function(){var e=new Uint8Array,t=0;at.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var r,i,o,a,s=0,c=0;for(e.length?(a=e.length,(e=new Uint8Array(n.byteLength+a)).set(e.subarray(0,a)),e.set(n,a)):e=n;e.length-c>=3;)if(e[c]!=="I".charCodeAt(0)||e[c+1]!=="D".charCodeAt(0)||e[c+2]!=="3".charCodeAt(0))if(255!=(255&e[c])||240!=(240&e[c+1]))c++;else{if(e.length-c<7)break;if(c+(s=lt(e,c))>e.length)break;o={type:"audio",data:e.subarray(c,c+s),pts:t,dts:t},this.trigger("data",o),c+=s}else{if(e.length-c<10)break;if(c+(s=ut(e,c))>e.length)break;i={type:"timed-metadata",data:e.subarray(c,c+s)},this.trigger("data",i),c+=s}r=e.length-c,e=r>0?e.subarray(c):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new z;var ft,dt,ht,pt,mt=at,vt=st.H264Stream,gt=ct,yt=de,bt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],_t=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],wt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},xt=function(e,t,n,r,i,o){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(r-t),pts:e+(i-n)},prependedContentDuration:o,baseMediaDecodeTime:e}};(dt=function(e,t){var n=[],r=0,i=0,o=0,a=1/0;t=t||{},dt.prototype.init.call(this),this.push=function(t){ke(e,t),e&&bt.forEach(function(n){e[n]=t[n]}),n.push(t)},this.setEarliestDts=function(t){i=t-e.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){o=e},this.flush=function(){var s,c,u,l,f;0!==n.length?(s=ge(n,e,i),e.baseMediaDecodeTime=xe(e,t.keepOriginalTimestamps),ve(e,s,o,a),e.samples=ye(s),u=Z(be(s)),n=[],c=J(r,[e]),l=new Uint8Array(c.byteLength+u.byteLength),r++,l.set(c),l.set(u,c.byteLength),we(e),f=Math.ceil(1024*yt/e.samplerate),s.length&&this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+s.length*f}),this.trigger("data",{track:e,boxes:l}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){we(e),n=[],this.trigger("reset")}}).prototype=new z,(ft=function(e,t){var n,r,i=0,o=[],a=[];t=t||{},ft.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){ke(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],_t.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,r,s,c,u,l,f,d,h=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=ne(o),(s=re(n))[0][0].keyFrame||((r=this.getGopForFusion_(o[0],e))?(h=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=ie(s)),a.length){var p;if(!(p=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");we(e),s=p}ke(e,s),e.samples=oe(s),u=Z(ae(s)),e.baseMediaDecodeTime=xe(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),f=s[0],d=s[s.length-1],this.trigger("segmentTimingInfo",xt(e.baseMediaDecodeTime,f.dts,f.pts,d.dts+d.duration,d.pts+d.duration,h)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),c=J(i,[e]),l=new Uint8Array(c.byteLength+u.byteLength),i++,l.set(c),l.set(u,c.byteLength),this.trigger("data",{track:e,boxes:l}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){we(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var n,r,i,o,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)i=(o=this.gopCache_[a]).gop,e.pps&&wt(e.pps[0],o.pps[0])&&e.sps&&wt(e.sps[0],o.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration)>=-1e4&&n<=45e3&&(!r||s>n)&&(r=o,s=n));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,o,s,c,u;for(o=e.byteLength,s=e.nalCount,c=e.duration,t=n=0;t<a.length&&n<e.length&&(r=a[t],i=e[n],r.pts!==i.pts);)i.pts>r.pts?t++:(n++,o-=i.byteLength,s-=i.nalCount,c-=i.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=o,u.duration=c,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,r,i,o,s,c;for(t=a.length-1,n=e.length-1,o=null,s=!1;t>=0&&n>=0;){if(r=a[t],i=e[n],r.pts===i.pts){s=!0;break}r.pts>i.pts?t--:(t===a.length-1&&(o=n),n--)}if(!s&&null===o)return null;if(0===(c=s?n:o))return e;var u=e.slice(c),l=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){a=e}}).prototype=new z,(pt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,pt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new z,pt.prototype.flush=function(e){var t,n,r,i,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,_t.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,bt.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,r=ee(this.pendingTracks),a.initSegment=new Uint8Array(r.byteLength),a.initSegment.set(r),a.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)a.data.set(this.pendingBoxes[i],o),o+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(t=this.pendingCaptions[i]).startTime=me(t.startPts,s,this.keepOriginalTimestamps),t.endTime=me(t.endPts,s,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)(n=this.pendingMetadata[i]).cueTime=me(n.pts,s,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),i=0;i<a.captions.length;i++)t=a.captions[i],this.trigger("caption",t);for(i=0;i<a.metadata.length;i++)n=a.metadata[i],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},pt.prototype.setRemux=function(e){this.remuxTracks=e},(ht=function(e){var t,n,r=this,i=!0;ht.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new Ze.MetadataStream,i.aacStream=new mt,i.audioTimestampRolloverStream=new Ze.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new Ze.TimestampRolloverStream("timed-metadata"),i.adtsStream=new it,i.coalesceStream=new pt(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)}),i.aacStream.on("data",function(o){"timed-metadata"!==o.type||i.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new dt(n,e),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new Ze.MetadataStream,i.packetStream=new Ze.TransportPacketStream,i.parseStream=new Ze.TransportParseStream,i.elementaryStream=new Ze.ElementaryStream,i.timestampRolloverStream=new Ze.TimestampRolloverStream,i.adtsStream=new it,i.h264Stream=new vt,i.captionStream=new Ze.CaptionStream,i.coalesceStream=new pt(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(o){var a;if("metadata"===o.type){for(a=o.tracks.length;a--;)t||"video"!==o.tracks[a].type?n||"audio"!==o.tracks[a].type||((n=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new ft(t,e),i.videoSegmentStream.on("timelineStartInfo",function(e){n&&(n.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts))}),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new dt(n,e),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,r.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,we(n),e.keepOriginalTimestamps||(n.timelineStartInfo.baseMediaDecodeTime=r),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,we(t),i.captionStream.reset(),e.keepOriginalTimestamps||(t.timelineStartInfo.baseMediaDecodeTime=r)),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(i){var t=gt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new z;var kt={Transmuxer:ht,VideoSegmentStream:ft,AudioSegmentStream:dt,AUDIO_PROPERTIES:bt,VIDEO_PROPERTIES:_t,generateVideoSegmentTimingInfo:xt},Et=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},St=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Tt=function(){function e(t,n){Et(this,e),this.options=n||{},this.self=t,this.init()}return St(e,[{key:"init",value:function(){var e,t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new kt.Transmuxer(this.options),e=this.self,(t=this.transmuxer).on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])}),t.captionStream&&t.captionStream.on("data",function(t){e.postMessage({action:"caption",data:t})}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})})}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*t))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*e.appendStart))}},{key:"flush",value:function(e){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}();new function(e){e.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new Tt(e,t.data.options):(this.messageHandlers||(this.messageHandlers=new Tt(e)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}(n)}()}),ys={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},bs=function(e){return e.map(function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})})},_s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n={codecCount:0};return n.codecCount=t.split(",").length,n.codecCount=n.codecCount||2,(e=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(t))&&(n.videoCodec=e[2],n.videoObjectTypeIndicator=e[3]),n.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(t),n.audioProfile=n.audioProfile&&n.audioProfile[2],n},ws=function(e,t,n){return e+"/"+t+'; codecs="'+n.filter(function(e){return!!e}).join(", ")+'"'},xs=function(e,t){var n=function(e){return e.segments&&e.segments.length&&e.segments[0].map?"mp4":"mp2t"}(t),r=function(e){var t=e.attributes||{};return t.CODECS?_s(t.CODECS):ys}(t),i=t.attributes||{},o=!0,a=!1;if(!t)return[];if(e.mediaGroups.AUDIO&&i.AUDIO){var s=e.mediaGroups.AUDIO[i.AUDIO];if(s)for(var c in a=!0,o=!1,s)if(!s[c].uri&&!s[c].playlists){o=!0;break}}a&&!r.audioProfile&&(o||(r.audioProfile=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return _s(i.playlists[0].attributes.CODECS).audioProfile}return null}(e,i.AUDIO)),r.audioProfile||(na.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),r.audioProfile=ys.audioProfile));var u={};r.videoCodec&&(u.video=""+r.videoCodec+r.videoObjectTypeIndicator),r.audioProfile&&(u.audio="mp4a.40."+r.audioProfile);var l=ws("audio",n,[u.audio]),f=ws("video",n,[u.video]),d=ws("video",n,[u.video,u.audio]);return a?!o&&u.video?[f,l]:o||u.video?[d,l]:[l,l]:u.video?[d]:[l]},ks=function(e){var t={type:"",parameters:{}},n=e.trim().split(";");return t.type=n.shift().trim(),n.forEach(function(e){var n=e.trim().split("=");if(n.length>1){var r=n[0].replace(/"/g,"").trim(),i=n[1].replace(/"/g,"").trim();t.parameters[r]=i}}),t},Es=function(e){return/mp4a\.\d+.\d+/i.test(e)},Ss=function(e){return/avc1\.[\da-f]+/i.test(e)},Ts=function(e,t,n){if(null==t||!e.length)return[];var r=Math.ceil(9e4*(t-n+3)),i=void 0;for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)},Os=function(e,t,n){var r=null,i=null,o=0,a=[],s=[];if(!e&&!t)return na.createTimeRange();if(!e)return t.buffered;if(!t)return e.buffered;if(n)return e.buffered;if(0===e.buffered.length&&0===t.buffered.length)return na.createTimeRange();for(var c=e.buffered,u=t.buffered,l=c.length;l--;)a.push({time:c.start(l),type:"start"}),a.push({time:c.end(l),type:"end"});for(l=u.length;l--;)a.push({time:u.start(l),type:"start"}),a.push({time:u.end(l),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),l=0;l<a.length;l++)"start"===a[l].type?2===++o&&(r=a[l].time):"end"===a[l].type&&1===--o&&(i=a[l].time),null!==r&&null!==i&&(s.push([r,i]),r=null,i=null);return na.createTimeRanges(s)},Cs=function(e){function t(e,n){sa(this,t);var r=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,na.EventTarget));r.timestampOffset_=0,r.pendingBuffers_=[],r.bufferUpdating_=!1,r.mediaSource_=e,r.codecs_=n,r.audioCodec_=null,r.videoCodec_=null,r.audioDisabled_=!1,r.appendAudioInitSegment_=!0,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=na.browser.IE_VERSION>=11;var i={remux:!1,alignGopsAtEnd:r.safeAppend_};return r.codecs_.forEach(function(e){Es(e)?r.audioCodec_=e:Ss(e)&&(r.videoCodec_=e)}),r.transmuxer_=new gs,r.transmuxer_.postMessage({action:"init",options:i}),r.transmuxer_.onmessage=function(e){return"data"===e.data.action?r.data_(e):"done"===e.data.action?r.done_(e):"gopInfo"===e.data.action?r.appendGopInfo_(e):"videoSegmentTimingInfo"===e.data.action?r.videoSegmentTimingInfo_(e.data.videoSegmentTimingInfo):void 0},Object.defineProperty(r,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(e){"number"==typeof e&&e>=0&&(this.timestampOffset_=e,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e}))}}),Object.defineProperty(r,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(e){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=e),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=e)}}),Object.defineProperty(r,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(r,"buffered",{get:function(){return Os(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),r}return ua(t,e),ca(t,[{key:"data_",value:function(e){var t=e.data.segment;t.data=new Uint8Array(t.data,e.data.byteOffset,e.data.byteLength),t.initSegment=new Uint8Array(t.initSegment.data,t.initSegment.byteOffset,t.initSegment.byteLength),function(e,t,n){var r=t.player_;if(n.captions&&n.captions.length)for(var i in e.inbandTextTracks_||(e.inbandTextTracks_={}),n.captionStreams)if(!e.inbandTextTracks_[i]){r.tech_.trigger({type:"usage",name:"hls-608"});var o=r.textTracks().getTrackById(i);e.inbandTextTracks_[i]=o||r.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}n.metadata&&n.metadata.length&&!e.metadataTrack_&&(e.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)}(this,this.mediaSource_,t),this.pendingBuffers_.push(t)}},{key:"done_",value:function(e){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"videoSegmentTimingInfo_",value:function(e){var t={start:{decode:e.start.dts/9e4,presentation:e.start.pts/9e4},end:{decode:e.end.dts/9e4,presentation:e.end.pts/9e4},baseMediaDecodeTime:e.baseMediaDecodeTime/9e4};e.prependedContentDuration&&(t.prependedContentDuration=e.prependedContentDuration/9e4),this.trigger({type:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})}},{key:"createRealSourceBuffers_",value:function(){var e=this,t=["audio","video"];t.forEach(function(n){if(e[n+"Codec_"]&&!e[n+"Buffer_"]){var r=null;if(e.mediaSource_[n+"Buffer_"])(r=e.mediaSource_[n+"Buffer_"]).updating=!1;else{var i=n+'/mp4;codecs="'+e[n+"Codec_"]+'"';r=function(e,t){var n=e.addSourceBuffer(t),r=Object.create(null);r.updating=!1,r.realBuffer_=n;var i=function(e){"function"==typeof n[e]?r[e]=function(){return n[e].apply(n,arguments)}:void 0===r[e]&&Object.defineProperty(r,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})};for(var o in n)i(o);return r}(e.mediaSource_.nativeMediaSource_,i),e.mediaSource_[n+"Buffer_"]=r}e[n+"Buffer_"]=r,["update","updatestart","updateend"].forEach(function(i){r.addEventListener(i,function(){if("audio"!==n||!e.audioDisabled_)return"updateend"===i&&(e[n+"Buffer_"].updating=!1),t.every(function(t){return!("audio"!==t||!e.audioDisabled_)||(n===t||!e[t+"Buffer_"]||!e[t+"Buffer_"].updating)})?e.trigger(i):void 0})})}})}},{key:"appendBuffer",value:function(e){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var t=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:t.end(t.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:Ts(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength},[e.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(e){this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var r=t[0].pts,i=0;i<e.length&&!(e[i].pts>=r);i++);return e.slice(0,i).concat(t)}(this.gopBuffer_,e.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(e,t){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(e,t),this.gopBuffer_=function(e,t,n,r){for(var i=Math.ceil(9e4*(t-r)),o=Math.ceil(9e4*(n-r)),a=e.slice(),s=e.length;s--&&!(e[s].pts<=o););if(-1===s)return a;for(var c=s+1;c--&&!(e[c].pts<=i););return c=Math.max(c,0),a.splice(c,s-c+1),a}(this.gopBuffer_,e,t,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(e,t)),rs(e,t,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)rs(e,t,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var e={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger("updateend"),void(this.bufferUpdating_=!1);e=this.pendingBuffers_.reduce(function(e,t){var n=t.type,r=t.data,i=t.initSegment;return e[n].segments.push(r),e[n].bytes+=r.byteLength,e[n].initSegment=i,t.captions&&(e.captions=e.captions.concat(t.captions)),t.info&&(e[n].info=t.info),t.metadata&&(e.metadata=e.metadata.concat(t.metadata)),e},e),this.videoBuffer_||this.audioBuffer_||(0===e.video.bytes&&(this.videoCodec_=null),0===e.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),e.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:e.audio.info}),e.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:e.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(e.audio.segments.unshift(e.audio.initSegment),e.audio.bytes+=e.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var t=!1;this.videoBuffer_&&e.video.bytes?(e.video.segments.unshift(e.video.initSegment),e.video.bytes+=e.video.initSegment.byteLength,this.concatAndAppendSegments_(e.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(t=!0),os(this,e.captions,e.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(e.audio,this.audioBuffer_),this.pendingBuffers_.length=0,t&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(e,t){var n=0,r=void 0;if(e.bytes){r=new Uint8Array(e.bytes),e.segments.forEach(function(e){r.set(e,n),n+=e.byteLength});try{t.updating=!0,t.appendBuffer(r)}catch(e){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:e.message,originalError:e})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}},{key:"dispose",value:function(){this.transmuxer_&&this.transmuxer_.terminate(),this.trigger("dispose"),this.off()}}]),t}(na.EventTarget),js=function(e){function t(){sa(this,t);var e=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=void 0;for(n in e.nativeMediaSource_=new i.a.MediaSource,e.nativeMediaSource_)n in t.prototype||"function"!=typeof e.nativeMediaSource_[n]||(e[n]=e.nativeMediaSource_[n].bind(e.nativeMediaSource_));return e.duration_=NaN,Object.defineProperty(e,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(e){this.duration_=e,e===1/0||(this.nativeMediaSource_.duration=e)}}),Object.defineProperty(e,"seekable",{get:function(){return this.duration_===1/0?na.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(e,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(e,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),e.sourceBuffers=[],e.activeSourceBuffers_=[],e.updateActiveSourceBuffers_=function(){if(e.activeSourceBuffers_.length=0,1===e.sourceBuffers.length){var t=e.sourceBuffers[0];return t.appendAudioInitSegment_=!0,t.audioDisabled_=!t.audioCodec_,void e.activeSourceBuffers_.push(t)}for(var n=!1,r=!0,i=0;i<e.player_.audioTracks().length;i++){var o=e.player_.audioTracks()[i];if(o.enabled&&"main"!==o.kind){n=!0,r=!1;break}}e.sourceBuffers.forEach(function(t,i){if(t.appendAudioInitSegment_=!0,t.videoCodec_&&t.audioCodec_)t.audioDisabled_=n;else if(t.videoCodec_&&!t.audioCodec_)t.audioDisabled_=!0,r=!1;else if(!t.videoCodec_&&t.audioCodec_&&(t.audioDisabled_=i?r:!r,t.audioDisabled_))return;e.activeSourceBuffers_.push(t)})},e.onPlayerMediachange_=function(){e.sourceBuffers.forEach(function(e){e.appendAudioInitSegment_=!0})},e.onHlsReset_=function(){e.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.postMessage({action:"resetCaptions"})})},e.onHlsSegmentTimeMapping_=function(t){e.sourceBuffers.forEach(function(e){return e.timeMapping_=t.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(e){this.nativeMediaSource_.addEventListener(e,this.trigger.bind(this))},e),e.on("sourceopen",function(t){var n=a.a.querySelector('[src="'+e.url_+'"]');n&&(e.player_=na(n.parentNode),e.player_&&(e.player_.tech_.on("hls-reset",e.onHlsReset_),e.player_.tech_.on("hls-segment-time-mapping",e.onHlsSegmentTimeMapping_),e.player_.audioTracks&&e.player_.audioTracks()&&(e.player_.audioTracks().on("change",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("addtrack",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("removetrack",e.updateActiveSourceBuffers_)),e.player_.on("mediachange",e.onPlayerMediachange_)))}),e.on("sourceended",function(t){for(var n=is(e.duration),r=0;r<e.sourceBuffers.length;r++){var i=e.sourceBuffers[r],o=i.metadataTrack_&&i.metadataTrack_.cues;o&&o.length&&(o[o.length-1].endTime=n)}}),e.on("sourceclose",function(e){this.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}),e}return ua(t,e),ca(t,[{key:"addSeekableRange_",value:function(e,t){var n=void 0;if(this.duration!==1/0)throw(n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",n.code=11,n;(t>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(e){var t=void 0,n=ks(e);if(/^(video|audio)\/mp2t$/i.test(n.type)){var r=[];n.parameters&&n.parameters.codecs&&(r=n.parameters.codecs.split(","),r=(r=bs(r)).filter(function(e){return Es(e)||Ss(e)})),0===r.length&&(r=["avc1.4d400d","mp4a.40.2"]),t=new Cs(this,r),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),t.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else t=this.nativeMediaSource_.addSourceBuffer(e);return this.sourceBuffers.push(t),t}},{key:"dispose",value:function(){this.trigger("dispose"),this.off(),this.sourceBuffers.forEach(function(e){e.dispose&&e.dispose()}),this.sourceBuffers.length=0}}]),t}(na.EventTarget),As=0;na.mediaSources={};var Ms=function(e,t){var n=na.mediaSources[e];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:t})},Ps=function(){return!!i.a.MediaSource&&!!i.a.MediaSource.isTypeSupported&&i.a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},Ns=function(){if(this.MediaSource={open:Ms,supportsNativeMediaSources:Ps},Ps())return new js;throw new Error("Cannot use create a virtual MediaSource for this video")};Ns.open=Ms,Ns.supportsNativeMediaSources=Ps;var Is={createObjectURL:function(e){var t=void 0;return e instanceof js?(t=i.a.URL.createObjectURL(e.nativeMediaSource_),e.url_=t,t):e instanceof js?(t="blob:vjs-media-source/"+As,As++,na.mediaSources[t]=e,t):(t=i.a.URL.createObjectURL(e),e.url_=t,t)}};na.MediaSource=Ns,na.URL=Is;var Ls=na.EventTarget,Ds=na.mergeOptions,Rs=function(e,t){for(var n=void 0,r=Ds(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),i=0;i<t.playlists.length;i++){var o=va(r,t.playlists[i]);o?r=o:n=!0}return ma(t,function(e,t,i,o){if(e.playlists&&e.playlists.length){var a=e.playlists[0].id,s=va(r,e.playlists[0]);s&&((r=s).mediaGroups[t][i][o].playlists[0]=r.playlists[a],n=!1)}}),n?null:r},Bs=function(e){var t=e.byterange.offset+e.byterange.length-1;return e.uri+"-"+e.byterange.offset+"-"+t},Fs=function(e,t){var n,r,i={};for(var o in e){var a=e[o].sidx;if(a){var s=Bs(a);if(!t[s])break;var c=t[s].sidxInfo;n=c,r=a,(Boolean(!n.map&&!r.map)||Boolean(n.map&&r.map&&n.map.byterange.offset===r.map.byterange.offset&&n.map.byterange.length===r.map.byterange.length))&&n.uri===r.uri&&n.byterange.offset===r.byterange.offset&&n.byterange.length===r.byterange.length&&(i[s]=t[s])}}return i},Us=function(e,t,n,r,i){var o={uri:aa(r.handleManifestRedirects,e.resolvedUri),byterange:e.byterange,playlist:t};return n(na.mergeOptions(o,{responseType:"arraybuffer",headers:qa(o)}),i)},qs=function(e){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3];sa(this,t);var o=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),a=r.withCredentials,s=void 0!==a&&a,c=r.handleManifestRedirects,u=void 0!==c&&c;if(o.hls_=n,o.withCredentials=s,o.handleManifestRedirects=u,!e)throw new Error("A non-empty playlist URL or playlist is required");return o.on("minimumUpdatePeriod",function(){o.refreshXml_()}),o.on("mediaupdatetimeout",function(){o.refreshMedia_(o.media().id)}),o.state="HAVE_NOTHING",o.loadedPlaylists_={},"string"==typeof e?(o.srcUrl=e,o.sidxMapping_={},la(o)):(o.setupChildLoader(i,e),o)}return ua(t,Ls),ca(t,[{key:"setupChildLoader",value:function(e,t){this.masterPlaylistLoader_=e,this.childPlaylist_=t}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},i.a.clearTimeout(this.minimumUpdatePeriodTimeout_),i.a.clearTimeout(this.mediaRequest_),i.a.clearTimeout(this.mediaUpdateTimeout),this.off()}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"sidxRequestFinished_",value:function(e,t,n,r){var i=this;return function(o,a){if(i.request){if(i.request=null,o)return i.error={status:a.status,message:"DASH playlist request error at URL: "+e.uri,response:a.response,code:2},n&&(i.state=n),i.trigger("error"),r(t,null);var s=new Uint8Array(a.response),c=je.a.parseSidx(s.subarray(8));return r(t,c)}}}},{key:"media",value:function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}var r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(r)if(this.media_&&this.trigger("mediachanging"),e.sidx){var o=void 0,a=void 0;this.masterPlaylistLoader_?(o=this.masterPlaylistLoader_.master,a=this.masterPlaylistLoader_.sidxMapping_):(o=this.master,a=this.sidxMapping_);var s=Bs(e.sidx);a[s]={sidxInfo:e.sidx},this.request=Us(e.sidx,e,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(e,o,n,function(r,i){if(!r||!i)throw new Error("failed to request sidx");a[s].sidx=i,t.haveMetadata({startingState:n,playlist:r.playlists[e.id]})}))}else this.mediaRequest_=i.a.setTimeout(this.haveMetadata.bind(this,{startingState:n,playlist:e}),0)}},{key:"haveMetadata",value:function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var t=this;i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i.a.setTimeout(function(){return t.load()},r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var e=Te(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});e.uri=this.srcUrl;for(var t=0;t<e.playlists.length;t++){var n="placeholder-uri-"+t;e.playlists[t].uri=n}return ma(e,function(t,n,r,i){if(t.playlists&&t.playlists.length){var o="placeholder-uri-"+n+"-"+r+"-"+i,a=ga(0,o);t.playlists[0].uri=o,t.playlists[0].id=a,e.playlists[a]=t.playlists[0],e.playlists[o]=t.playlists[0]}}),ya(e),ba(e),e}},{key:"start",value:function(){var e=this;this.started=!0,this.masterPlaylistLoader_?this.mediaRequest_=i.a.setTimeout(this.haveMaster_.bind(this),0):this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?e.masterLoaded_=Date.parse(n.responseHeaders.date):e.masterLoaded_=Date.now(),e.srcUrl=aa(e.handleManifestRedirects,e.srcUrl,n),e.syncClientServerClock_(e.onClientServerClockSync_.bind(e))}})}},{key:"syncClientServerClock_",value:function(e){var t=this,n=Oe(this.masterXml_);return null===n?(this.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.clientOffset_=n.value-Date.now(),e()):void(this.request=this.hls_.xhr({uri:oa(this.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(r,i){if(t.request){if(r)return t.clientOffset_=t.masterLoaded_-Date.now(),e();var o=void 0;o="HEAD"===n.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):t.masterLoaded_:Date.parse(i.responseText),t.clientOffset_=o-Date.now(),e()}}))}},{key:"haveMaster_",value:function(){this.state="HAVE_MASTER",this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger("loadedplaylist"))}},{key:"onClientServerClockSync_",value:function(){var e=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=i.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},this.master.minimumUpdatePeriod))}},{key:"refreshXml_",value:function(){var e=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText,e.sidxMapping_=function(e,t,n,r){var i=Te(e,{manifestUri:t,clientOffset:n}),o=Fs(i.playlists,r);return ma(i,function(e,t,n,i){if(e.playlists&&e.playlists.length){var a=e.playlists;o=Ds(o,Fs(a,r))}}),o}(e.masterXml_,e.srcUrl,e.clientOffset_,e.sidxMapping_);var r=e.parseMasterXml(),o=Rs(e.master,r),a=e.media().sidx;if(o)if(a){var s=Bs(a);if(!e.sidxMapping_[s]){var c=e.media();e.request=Us(c.sidx,c,e.hls_.xhr,{handleManifestRedirects:e.handleManifestRedirects},e.sidxRequestFinished_(c,r,e.state,function(t,n){if(!t||!n)throw new Error("failed to request sidx on minimumUpdatePeriod");e.sidxMapping_[s].sidx=n,e.minimumUpdatePeriodTimeout_=i.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},e.master.minimumUpdatePeriod),e.refreshMedia_(e.media().id)}))}}else e.master=o;e.minimumUpdatePeriodTimeout_=i.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},e.master.minimumUpdatePeriod)}})}},{key:"refreshMedia_",value:function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");var n=void 0,r=void 0;this.masterPlaylistLoader_?(n=this.masterPlaylistLoader_.master,r=this.masterPlaylistLoader_.parseMasterXml()):(n=this.master,r=this.parseMasterXml());var o=Rs(n,r);o?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=o:this.master=o,this.media_=o.playlists[e]):(this.media_=r.playlists[e],this.trigger("playlistunchanged")),this.media().endList||(this.mediaUpdateTimeout=i.a.setTimeout(function(){t.trigger("mediaupdatetimeout")},_a(this.media(),!!o))),this.trigger("loadedplaylist")}}]),t}(),zs=function(e){return na.log.debug?na.log.debug.bind(na,"VHS:",e+" >"):function(){}};function Hs(){}var Ws=function(){function e(t,n,r,i){sa(this,e),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=t,this.processedAppend_=!1,this.type_=r,this.mimeType_=n,this.logger_=zs("SourceUpdater["+r+"]["+n+"]"),"closed"===t.readyState?t.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,n,i)):this.createSourceBuffer_(n,i)}return ca(e,[{key:"createSourceBuffer_",value:function(e,t){var n=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(e),this.logger_("created SourceBuffer"),t&&(t.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?t.on("sourcebufferadded",function(){n.start_()}):this.start_()}},{key:"start_",value:function(){var e=this;this.started_=!0,this.onUpdateendCallback_=function(){var t=e.pendingCallback_;e.pendingCallback_=null,e.sourceBuffer_.removing=!1,e.logger_("buffered ["+ts(e.buffered())+"]"),t&&t(),e.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(e){var t=this;this.processedAppend_&&this.queueCallback_(function(){t.sourceBuffer_.abort()},e)}},{key:"appendBuffer",value:function(e,t){var n=this;this.processedAppend_=!0,this.queueCallback_(function(){e.videoSegmentTimingInfoCallback&&n.sourceBuffer_.addEventListener("videoSegmentTimingInfo",e.videoSegmentTimingInfoCallback),n.sourceBuffer_.appendBuffer(e.bytes)},function(){e.videoSegmentTimingInfoCallback&&n.sourceBuffer_.removeEventListener("videoSegmentTimingInfo",e.videoSegmentTimingInfoCallback),t()})}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:na.createTimeRanges()}},{key:"remove",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hs;this.processedAppend_&&this.queueCallback_(function(){n.logger_("remove ["+e+" => "+t+"]"),n.sourceBuffer_.removing=!0,n.sourceBuffer_.remove(e,t)},r)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==Hs}},{key:"timestampOffset",value:function(e){var t=this;return void 0!==e&&(this.queueCallback_(function(){t.sourceBuffer_.timestampOffset=e,t.runCallback_()}),this.timestampOffset_=e),this.timestampOffset_}},{key:"queueCallback_",value:function(e,t){this.callbacks_.push([e.bind(this),t]),this.runCallback_()}},{key:"runCallback_",value:function(){var e=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(e=this.callbacks_.shift(),this.pendingCallback_=e[1],e[0]())}},{key:"dispose",value:function(){var e=this,t=function t(){e.sourceBuffer_&&"open"===e.mediaSource.readyState&&e.sourceBuffer_.abort(),e.sourceBuffer_.removeEventListener("updateend",t)};this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener("updateend",t):t()}}]),e}(),Vs={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},Ys=2,Gs=-101,Ks=-102,$s=function(e){e.forEach(function(e){e.abort()})},Xs=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Gs,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Ks,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Ys,xhr:t}:null},Qs=function(e,t,n){var r=0,i=!1;return function(o,a){if(!i)return o?(i=!0,$s(e),n(o,a)):(r+=1)===e.length?(a.endOfAllRequests=Date.now(),a.encryptedBytes?function(e,t,n){e.addEventListener("message",function r(i){if(i.data.source===t.requestId){e.removeEventListener("message",r);var o=i.data.decrypted;return t.bytes=new Uint8Array(o.bytes,o.byteOffset,o.byteLength),n(null,t)}});var r=void 0;r=t.key.bytes.slice?t.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.key.bytes)),e.postMessage(Va({source:t.requestId,encrypted:t.encryptedBytes,key:r,iv:t.key.iv}),[t.encryptedBytes.buffer,r.buffer])}(t,a,n):n(null,a)):void 0}},Zs=function(e,t){return function(n){var r,i,o;return e.stats=na.mergeOptions(e.stats,(i=(r=n).target,(o={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-i.requestTime||0}).bytesReceived=r.loaded,o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3),o)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)}},Js=function(e,t,n,r,i,o,a){var s=[],c=Qs(s,n,a);if(i.key&&!i.key.bytes){var u=e(na.mergeOptions(t,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),function(e,t){return function(n,r){var i=r.response,o=Xs(n,r);if(o)return t(o,e);if(16!==i.byteLength)return t({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Ys,xhr:r},e);var a=new DataView(i);return e.key.bytes=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),t(null,e)}}(i,c));s.push(u)}if(i.map&&!i.map.bytes){var l=e(na.mergeOptions(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:qa(i.map)}),function(e,t,n){return function(r,i){var o=i.response,a=Xs(r,i);return a?n(a,e):0===o.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:Ys,xhr:i},e):(e.map.bytes=new Uint8Array(i.response),t&&!t.isInitialized()&&t.init(),e.map.timescales=Me.a.timescale(e.map.bytes),e.map.videoTrackIds=Me.a.videoTrackIds(e.map.bytes),n(null,e))}}(i,r,c));s.push(l)}var f=e(na.mergeOptions(t,{uri:i.resolvedUri,responseType:"arraybuffer",headers:qa(i)}),function(e,t,n){return function(r,i){var o=i.response,a=Xs(r,i),s=void 0;return a?n(a,e):0===o.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:Ys,xhr:i},e):(e.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(i),e.key?e.encryptedBytes=new Uint8Array(i.response):e.bytes=new Uint8Array(i.response),t&&e.map&&e.map.bytes&&(t.isInitialized()||t.init(),(s=t.parse(e.bytes,e.map.videoTrackIds,e.map.timescales))&&s.captions&&(e.captionStreams=s.captionStreams,e.fmp4Captions=s.captions)),n(null,e))}}(i,r,c));return f.addEventListener("progress",Zs(i,o)),s.push(f),function(){return $s(s)}},ec=function(e,t){var n;return e&&(n=i.a.getComputedStyle(e))?n[t]:""},tc=function(e,t){var n=e.slice();e.sort(function(e,r){var i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i})},nc=function(e,t){var n=void 0,r=void 0;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||i.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),n-(r=r||i.a.Number.MAX_VALUE)},rc=function(e){return"number"==typeof e&&isFinite(e)},ic=function(e){function t(e){sa(this,t);var n=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=e.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.hasPlayed_=e.hasPlayed,n.currentTime_=e.currentTime,n.seekable_=e.seekable,n.seeking_=e.seeking,n.duration_=e.duration,n.mediaSource_=e.mediaSource,n.hls_=e.hls,n.loaderType_=e.loaderType,n.startingMedia_=void 0,n.segmentMetadataTrack_=e.segmentMetadataTrack,n.goalBufferLength_=e.goalBufferLength,n.sourceType_=e.sourceType,n.inbandTextTracks_=e.inbandTextTracks,n.state_="INIT",n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.mimeType_=null,n.sourceUpdater_=null,n.xhrOptions_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=e.cacheEncryptionKeys,n.keyCache_={},"main"===n.loaderType_?n.captionParser_=new Ne.a:n.captionParser_=null,n.decrypter_=e.decrypter,n.syncController_=e.syncController,n.syncPoint_={segmentIndex:0,time:0},n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",function(){return n.ended_=!1}),n.fetchAtBuffer_=!1,n.logger_=zs("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(n,"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e)}}),n}return ua(t,e),ca(t,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset(),this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(e){return void 0!==e&&(this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():na.createTimeRanges()}},{key:"initSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=Ya(e),r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,timescales:e.timescales,videoTrackIds:e.videoTrackIds}),r||e}},{key:"segmentKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=Ga(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var i={resolvedUri:(r||e).resolvedUri};return r&&(i.bytes=r.bytes),i}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new Ws(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0});var i=null;if(n&&(n.id?i=n.id:n.uri&&(i=n.uri)),this.logger_("playlist update ["+i+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===e.uri){var o=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+o+"]"),null!==this.mediaIndex&&(this.mediaIndex-=o),r&&(r.mediaIndex-=o,r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,e)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(e,t){this.mimeType_||(this.mimeType_=e,this.sourceBufferEmitter_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(e){this.ended_=!1,this.resetLoader(),this.remove(0,1/0,e),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(e,t,n){if(t===1/0&&(t=this.duration_()),this.sourceUpdater_&&this.sourceUpdater_.remove(e,t,n),rs(e,t,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var r in this.inbandTextTracks_)rs(e,t,this.inbandTextTracks_[r])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i.a.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);e&&(this.isEndOfStream_(e.mediaIndex)?this.endOfStream():(e.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&(e.timeline!==this.currentTimeline_&&(this.syncController_.reset(),e.timestampOffset=e.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(e)))}}},{key:"isEndOfStream_",value:function(e){return function(e,t,n){if(!e||!t)return!1;var r=n===e.segments.length;return e.endList&&"open"===t.readyState&&r}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_,this.mediaSource_,e)&&!this.sourceUpdater_.updating()}},{key:"checkBuffer_",value:function(e,t,n,r,i,o){var a=0,s=void 0;e.length&&(a=e.end(e.length-1));var c=Math.max(0,a-i);if(!t.segments.length)return null;if(c>=this.goalBufferLength_())return null;if(!r&&c>=1)return null;if(null===o)return n=this.getSyncSegmentCandidate_(t),this.generateSegmentInfo_(t,n,null,!0);if(null!==n){t.segments[n];return s=a,this.generateSegmentInfo_(t,n+1,s,!1)}if(this.fetchAtBuffer_){var u=Ra.getMediaInfoForTime(t,a,o.segmentIndex,o.time);n=u.mediaIndex,s=u.startTime}else{var l=Ra.getMediaInfoForTime(t,i,o.segmentIndex,o.time);n=l.mediaIndex,s=l.startTime}return this.generateSegmentInfo_(t,n,s,!1)}},{key:"getSyncSegmentCandidate_",value:function(e){var t=this;if(-1===this.currentTimeline_)return 0;var n=e.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===t.currentTimeline_});return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(e,t,n,r){if(t<0||t>=e.segments.length)return null;var i=e.segments[t];return{requestId:"segment-loader-"+Math.random(),uri:i.resolvedUri,mediaIndex:t,isSyncRequest:r,startOfSegment:n,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:i.timeline,duration:i.duration,segment:i}}},{key:"abortRequestEarly_",value:function(e){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return!1;var t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=Ra.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.hls_.tech_.playbackRate())-1;if(i<=o)return!1;var a=function(e){var t=e.master,n=e.currentTime,r=e.bandwidth,i=e.duration,o=e.segmentDuration,a=e.timeUntilRebuffer,s=e.currentTimeline,c=e.syncController,u=t.playlists.filter(function(e){return!Ra.isIncompatible(e)}),l=u.filter(Ra.isEnabled);l.length||(l=u.filter(function(e){return!Ra.isDisabled(e)}));var f=l.filter(Ra.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=c.getSyncPoint(e,i,s,n)?1:2;return{playlist:e,rebufferingImpact:Ra.estimateSegmentRequestTime(o,r,e)*t-a}}),d=f.filter(function(e){return e.rebufferingImpact<=0});return tc(d,function(e,t){return nc(t.playlist,e.playlist)}),d.length?d[0]:(tc(f,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),f[0]||null)}({master:this.hls_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var s=i-o-a.rebufferingImpact,c=.5;return o<=1/30&&(c=1),!a.playlist||a.playlist.uri===this.playlist_.uri||s<c?!1:(this.bandwidth=a.playlist.attributes.BANDWIDTH*Vs.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(e,t){this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(t.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),e.abortRequests=Js(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(e),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(e){var t=function(e,t,n){var r=t-30;e.length&&(r=Math.max(r,e.start(0)));var i=t-n;return Math.min(i,r)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,n={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId};if(t.key){var r=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=r}return t.map&&(n.map=this.initSegment(t.map)),n}},{key:"segmentRequestFinished_",value:function(e,t){if(this.mediaRequests+=1,t.stats&&(this.mediaBytesTransferred+=t.stats.bytesReceived,this.mediaTransferDuration+=t.stats.roundTripTime),this.pendingSegment_){if(t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===Ks?void(this.mediaRequestsAborted+=1):(this.pause(),e.code===Gs?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));this.bandwidth=t.stats.bandwidth,this.roundTrip=t.stats.roundTripTime,t.map&&(t.map=this.initSegment(t.map,!0)),t.key&&this.segmentKey(t.key,!0),this.processSegmentResponse_(t)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(e){var t=this.pendingSegment_;t.bytes=e.bytes,e.map&&(t.segment.map.bytes=e.map.bytes),t.endOfAllRequests=e.endOfAllRequests,e.fmp4Captions&&(!function(e,t,n){for(var r in n)if(!e[r]){t.trigger({type:"usage",name:"hls-608"});var i=t.textTracks().getTrackById(r);e[r]=i||t.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}}(this.inbandTextTracks_,this.hls_.tech_,e.captionStreams),function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var i=window.WebKitDataCue||window.VTTCue;n.forEach(function(e){var n=e.stream,o=e.startTime,a=e.endTime;t[n]&&(o+=r,a+=r,t[n].addCue(new i(o,a,e.text)))})}}({inbandTextTracks:this.inbandTextTracks_,captionArray:e.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_){var t=this.pendingSegment_,n=t.segment,r=this.syncController_.probeSegmentInfo(t);void 0===this.startingMedia_&&r&&(r.containsAudio||r.containsVideo)&&(this.startingMedia_={containsAudio:r.containsAudio,containsVideo:r.containsVideo});var i,o,a,s=(i=this.loaderType_,o=this.startingMedia_,a=r,"main"===i&&o&&a?a.containsAudio||a.containsVideo?o.containsVideo&&!a.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!o.containsVideo&&a.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null);if(s)return this.error({message:s,blacklistDuration:1/0}),void this.trigger("error");if(t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");if(null!==t.timestampOffset&&t.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(r&&r.segmentTimestampInfo){var c=r.segmentTimestampInfo[0].ptsTime,u=r.segmentTimestampInfo[0].dtsTime;t.timestampOffset-=c-u}this.sourceUpdater_.timestampOffset(t.timestampOffset),this.trigger("timestampoffset")}var l=this.syncController_.mappingForTimeline(t.timeline);if(null!==l&&this.trigger({type:"segmenttimemapping",mapping:l}),this.state="APPENDING",n.map){var f=Ya(n.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==f){var d=this.initSegment(n.map);this.sourceUpdater_.appendBuffer({bytes:d.bytes},function(){e.activeInitSegmentId_=f})}}t.byteLength=t.bytes.byteLength,"number"==typeof n.start&&"number"==typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.logger_(function(e){var t=e.segment,n=t.start,r=t.end,i=e.playlist,o=i.mediaSequence,a=i.id,s=i.segments,c=void 0===s?[]:s,u=e.mediaIndex,l=e.timeline;return["appending ["+u+"] of ["+o+", "+(o+c.length)+"] from playlist ["+a+"]","["+n+" => "+r+"] in timeline ["+l+"]"].join(" ")}(t)),this.sourceUpdater_.appendBuffer({bytes:t.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,t.requestId)},this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleVideoSegmentTimingInfo_",value:function(e,t){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment;n.videoTimingInfo||(n.videoTimingInfo={}),n.videoTimingInfo.transmuxerPrependedSeconds=t.videoSegmentTimingInfo.prependedContentDuration||0,n.videoTimingInfo.transmuxedPresentationStart=t.videoSegmentTimingInfo.start.presentation,n.videoTimingInfo.transmuxedPresentationEnd=t.videoSegmentTimingInfo.end.presentation,n.videoTimingInfo.baseMediaDecodeTime=t.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=e.segment,n=null!==this.mediaIndex;this.pendingSegment_=null,this.recordThroughput_(e),this.addSegmentMetadataCue_(e),this.state="READY",this.mediaIndex=e.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration?this.resetEverything():(n&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.isEndOfStream_(e.mediaIndex+1,e.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(e){var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,r=t.end;if(rc(n)&&rc(r)){rs(n,r,this.segmentMetadataTrack_);var o=i.a.WebKitDataCue||i.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:r},s=new o(n,r,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),t}(na.EventTarget),oc=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},ac=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),sc=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sa(this,t);var r=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.mediaSource_=null,r.subtitlesTrack_=null,r.featuresNativeTextTracks_=e.featuresNativeTextTracks,r}return ua(t,ic),ca(t,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return na.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return na.createTimeRanges([[t,n]])}},{key:"initSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=Ya(e),r=this.initSegments_[n];if(t&&!r&&e.bytes){var i=ac.byteLength+e.bytes.byteLength,o=new Uint8Array(i);o.set(e.bytes),o.set(ac,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:o}}return r||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return void 0===e?this.subtitlesTrack_:(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(e,t){rs(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t)){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"skipEmptySegments_",value:function(e){for(;e&&e.segment.empty;)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var t=this.pendingSegment_,n=t.segment;if("function"!=typeof i.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var r=void 0,o=function(){e.subtitlesTrack_.tech_.off("vttjsloaded",r),e.error({message:"Error loading vtt.js"}),e.state="READY",e.pause(),e.trigger("error")};return r=function(){e.subtitlesTrack_.tech_.off("vttjserror",o),e.handleSegment_()},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",r),void this.subtitlesTrack_.tech_.one("vttjserror",o)}n.requested=!0;try{this.parseVTTCues_(t)}catch(e){return this.error({message:e.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(t,this.syncController_.timelines[t.timeline],this.playlist_),t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");t.byteLength=t.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,t.cues.length&&this.remove(t.cues[0].endTime,t.cues[t.cues.length-1].endTime),t.cues.forEach(function(t){e.subtitlesTrack_.addCue(e.featuresNativeTextTracks_?new i.a.VTTCue(t.startTime,t.endTime,t.text):t)}),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(e){var t=void 0,n=!1;"function"==typeof i.a.TextDecoder?t=new i.a.TextDecoder("utf8"):(t=i.a.WebVTT.StringDecoder(),n=!0);var r=new i.a.WebVTT.Parser(i.a,i.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){return e.timestampmap=t},r.onparsingerror=function(e){na.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var o=e.segment.map.bytes;n&&(o=oc(o)),r.parse(o)}var a=e.bytes;n&&(a=oc(a)),r.parse(a),r.flush()}},{key:"updateTimeMapping_",value:function(e,t,n){var r=e.segment;if(t)if(e.cues.length){var i=e.timestampmap,o=i.MPEGTS/9e4-i.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=o,e.endTime+=o}),!n.syncInfo){var a=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(a,s-r.duration)}}}else r.empty=!0}}]),t}(),cc=function(e,t){for(var n=e.cues,r=0;r<n.length;r++){var i=n[r];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},uc=Le.a.inspect,lc=[{name:"VOD",run:function(e,t,n,r,i){if(n!==1/0){return{time:0,segmentIndex:0}}return null}},{name:"ProgramDateTime",run:function(e,t,n,r,i){if(!e.datetimeToDisplayTime)return null;var o=t.segments||[],a=null,s=null;i=i||0;for(var c=0;c<o.length;c++){var u=o[c];if(u.dateTimeObject){var l=u.dateTimeObject.getTime()/1e3+e.datetimeToDisplayTime,f=Math.abs(i-l);if(null!==s&&(0===f||s<f))break;s=f,a={time:l,segmentIndex:c}}}return a}},{name:"Segment",run:function(e,t,n,r,i){var o=t.segments||[],a=null,s=null;i=i||0;for(var c=0;c<o.length;c++){var u=o[c];if(u.timeline===r&&void 0!==u.start){var l=Math.abs(i-u.start);if(null!==s&&s<l)break;(!a||null===s||s>=l)&&(s=l,a={time:u.start,segmentIndex:c})}}return a}},{name:"Discontinuity",run:function(e,t,n,r,i){var o=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var a=null,s=0;s<t.discontinuityStarts.length;s++){var c=t.discontinuityStarts[s],u=t.discontinuitySequence+s+1,l=e.discontinuities[u];if(l){var f=Math.abs(i-l.time);if(null!==a&&a<f)break;(!o||null===a||a>=f)&&(a=f,o={time:l.time,segmentIndex:c})}}return o}},{name:"Playlist",run:function(e,t,n,r,i){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence}:null}}],fc=function(e){function t(){sa(this,t);var e=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.inspectCache_=void 0,e.timelines=[],e.discontinuities=[],e.datetimeToDisplayTime=null,e.logger_=zs("SyncController"),e}return ua(t,e),ca(t,[{key:"getSyncPoint",value:function(e,t,n,r){var i=this.runStrategies_(e,t,n,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Sa(e,r.segmentIndex,0))}},{key:"runStrategies_",value:function(e,t,n,r){for(var i=[],o=0;o<lc.length;o++){var a=lc[o],s=a.run(this,e,t,n,r);s&&(s.strategy=a.name,i.push({strategy:a.name,syncPoint:s}))}return i}},{key:"selectSyncPoint_",value:function(e,t){for(var n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy,o=1;o<e.length;o++){var a=Math.abs(e[o].syncPoint[t.key]-t.value);a<r&&(r=a,n=e[o].syncPoint,i=e[o].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+i+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+"]"),n}},{key:"saveExpiredSegmentInfo",value:function(e,t){for(var n=t.mediaSequence-e.mediaSequence-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(e){if(!this.datetimeToDisplayTime&&e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(e){var t=e.segment,n=e.playlist,r=void 0;return(r=t.map?this.probeMp4Segment_(e):this.probeTsSegment_(e))&&this.calculateSegmentTimeMapping_(e,r)&&(this.saveDiscontinuitySyncInfo_(e),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:t.start})),r}},{key:"probeMp4Segment_",value:function(e){var t=e.segment,n=Me.a.timescale(t.map.bytes),r=Me.a.compositionStartTime(n,e.bytes);return null!==e.timestampOffset&&(e.timestampOffset-=r),{start:r,end:r+t.duration}}},{key:"probeTsSegment_",value:function(e){var t=uc(e.bytes,this.inspectCache_),n=void 0,r=void 0,i=void 0;return t?(t.video&&2===t.video.length?(this.inspectCache_=t.video[1].dts,n=t.video[0].dtsTime,r=t.video[1].dtsTime,i=t.video):t.audio&&2===t.audio.length&&(this.inspectCache_=t.audio[1].dts,n=t.audio[0].dtsTime,r=t.audio[1].dtsTime,i=t.audio),{segmentTimestampInfo:i,start:n,end:r,containsVideo:t.video&&2===t.video.length,containsAudio:t.audio&&2===t.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t){var n=e.segment,r=this.timelines[e.timeline];if(null!==e.timestampOffset)r={time:e.startOfSegment,mapping:e.startOfSegment-t.start},this.timelines[e.timeline]=r,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+r.time+"] [mapping: "+r.mapping+"]"),n.start=e.startOfSegment,n.end=t.end+r.mapping;else{if(!r)return!1;n.start=t.start+r.mapping,n.end=t.end+r.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var r=0;r<t.discontinuityStarts.length;r++){var i=t.discontinuityStarts[r],o=t.discontinuitySequence+r+1,a=i-e.mediaIndex,s=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>s){var c=void 0;c=a<0?n.start-Sa(t,e.mediaIndex,i):n.end+Sa(t,e.mediaIndex+1,i),this.discontinuities[o]={time:c,accuracy:s}}}}},{key:"dispose",value:function(){this.trigger("dispose"),this.off()}}]),t}(na.EventTarget),dc=new ds("./decrypter-worker.worker.js",function(e,t){var n=this;!function(){var e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},i=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4],o=void 0,a=void 0,s=void 0,c=[],u=[],l=void 0,f=void 0,d=void 0,h=void 0,p=void 0;for(o=0;o<256;o++)u[(c[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!r[a];a^=l||1,s=u[s]||1)for(d=(d=s^s<<1^s<<2^s<<3^s<<4)>>8^255&d^99,r[a]=d,i[d]=a,p=16843009*c[f=c[l=c[a]]]^65537*f^257*l^16843008*a,h=257*c[d]^16843008*d,o=0;o<4;o++)t[o][a]=h=h<<24^h>>>8,n[o][d]=p=p<<24^p>>>8;for(o=0;o<5;o++)t[o]=t[o].slice(0),n[o]=n[o].slice(0);return e},o=null,a=function(){function t(n){e(this,t),o||(o=i()),this._tables=[[o[0][0].slice(),o[0][1].slice(),o[0][2].slice(),o[0][3].slice(),o[0][4].slice()],[o[1][0].slice(),o[1][1].slice(),o[1][2].slice(),o[1][3].slice(),o[1][4].slice()]];var r=void 0,a=void 0,s=void 0,c=void 0,u=void 0,l=this._tables[0][4],f=this._tables[1],d=n.length,h=1;if(4!==d&&6!==d&&8!==d)throw new Error("Invalid aes key size");for(c=n.slice(0),u=[],this._key=[c,u],r=d;r<4*d+28;r++)s=c[r-1],(r%d==0||8===d&&r%d==4)&&(s=l[s>>>24]<<24^l[s>>16&255]<<16^l[s>>8&255]<<8^l[255&s],r%d==0&&(s=s<<8^s>>>24^h<<24,h=h<<1^283*(h>>7))),c[r]=c[r-d]^s;for(a=0;r;a++,r--)s=c[3&a?r:r-4],u[a]=r<=4||a<4?s:f[0][l[s>>>24]]^f[1][l[s>>16&255]]^f[2][l[s>>8&255]]^f[3][l[255&s]]}return t.prototype.decrypt=function(e,t,n,r,i,o){var a=this._key[1],s=e^a[0],c=r^a[1],u=n^a[2],l=t^a[3],f=void 0,d=void 0,h=void 0,p=a.length/4-2,m=void 0,v=4,g=this._tables[1],y=g[0],b=g[1],_=g[2],w=g[3],x=g[4];for(m=0;m<p;m++)f=y[s>>>24]^b[c>>16&255]^_[u>>8&255]^w[255&l]^a[v],d=y[c>>>24]^b[u>>16&255]^_[l>>8&255]^w[255&s]^a[v+1],h=y[u>>>24]^b[l>>16&255]^_[s>>8&255]^w[255&c]^a[v+2],l=y[l>>>24]^b[s>>16&255]^_[c>>8&255]^w[255&u]^a[v+3],v+=4,s=f,c=d,u=h;for(m=0;m<4;m++)i[(3&-m)+o]=x[s>>>24]<<24^x[c>>16&255]<<16^x[u>>8&255]<<8^x[255&l]^a[v++],f=s,s=c,c=u,u=l,l=f},t}(),s=function(){function t(){e(this,t),this.listeners={}}return t.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},t.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,i)},t.prototype.dispose=function(){this.listeners={}},t.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},t}(),c=function(t){function n(){e(this,n);var i=r(this,t.call(this,s));return i.jobs=[],i.delay=1,i.timeout_=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},n}(s),u=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},l=function(){function n(t,r,i,o){e(this,n);var a=n.STEP,s=new Int32Array(t.buffer),l=new Uint8Array(t.byteLength),f=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(s.subarray(f,f+a),r,i,l)),f=a;f<s.length;f+=a)i=new Uint32Array([u(s[f-4]),u(s[f-3]),u(s[f-2]),u(s[f-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(f,f+a),r,i,l));this.asyncStream_.push(function(){var e;o(null,(e=l).subarray(0,e.byteLength-e[e.byteLength-1]))})}return n.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new a(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),s=new Int32Array(o.buffer),c=void 0,l=void 0,f=void 0,d=void 0,h=void 0,p=void 0,m=void 0,v=void 0,g=void 0;for(c=n[0],l=n[1],f=n[2],d=n[3],g=0;g<r.length;g+=4)h=u(r[g]),p=u(r[g+1]),m=u(r[g+2]),v=u(r[g+3]),i.decrypt(h,p,m,v,s,g),s[g]=u(s[g]^c),s[g+1]=u(s[g+1]^l),s[g+2]=u(s[g+2]^f),s[g+3]=u(s[g+3]^d),c=h,l=p,f=m,d=v;return o}(e,t,n);r.set(i,e.byteOffset)}},t(n,null,[{key:"STEP",get:function(){return 32e3}}]),n}();new function(e){e.onmessage=function(t){var n=t.data,r=new Uint8Array(n.encrypted.bytes,n.encrypted.byteOffset,n.encrypted.byteLength),i=new Uint32Array(n.key.bytes,n.key.byteOffset,n.key.byteLength/4),o=new Uint32Array(n.iv.bytes,n.iv.byteOffset,n.iv.byteLength/4);new l(r,i,o,function(t,r){var i,o;e.postMessage((i={source:n.source,decrypted:r},o={},Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?o[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:o[e]=t}),o),[r.buffer])})}}(n)}()}),hc=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},pc=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},mc=function(e,t){t.activePlaylistLoader=e,e.load()},vc={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e],i=t.blacklistCurrentPlaylist;pc(n,r);var o=r.activeTrack(),a=r.activeGroup(),s=(a.filter(function(e){return e.default})[0]||a[0]).id,c=r.tracks[s];if(o!==c){for(var u in na.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[u].enabled=r.tracks[u]===c;r.onTrackChanged()}else i({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];na.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),pc(n,r);var i=r.activeTrack();i&&(i.mode="disabled"),r.onTrackChanged()}}},gc={AUDIO:function(e,t,n){if(t){var r=n.tech,i=n.requestOptions,o=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();o.playlist(e,i),(!r.paused()||e.endList&&"none"!==r.preload())&&o.load()}),t.on("loadedplaylist",function(){o.playlist(t.media(),i),r.paused()||o.load()}),t.on("error",vc[e](e,n))}},SUBTITLES:function(e,t,n){var r=n.tech,i=n.requestOptions,o=n.segmentLoaders[e],a=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();o.playlist(e,i),o.track(a.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&o.load()}),t.on("loadedplaylist",function(){o.playlist(t.media(),i),r.paused()||o.load()}),t.on("error",vc[e](e,n))}},yc={AUDIO:function(e,t){var n=t.hls,r=t.sourceType,i=t.segmentLoaders[e],o=t.requestOptions,a=t.master.mediaGroups,s=t.mediaTypes[e],c=s.groups,u=s.tracks,l=t.masterPlaylistLoader;for(var f in a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}}),a[e])for(var d in c[f]||(c[f]=[]),a[e][f]){var h=a[e][f][d],p=void 0;if(p=h.resolvedUri?new wa(h.resolvedUri,n,o):h.playlists&&"dash"===r?new qs(h.playlists[0],n,o,l):null,h=na.mergeOptions({id:d,playlistLoader:p},h),gc[e](e,h.playlistLoader,t),c[f].push(h),void 0===u[d]){var m=new na.AudioTrack({id:d,kind:hc(h),enabled:!1,language:h.language,default:h.default,label:d});u[d]=m}}i.on("error",vc[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,r=t.hls,i=t.sourceType,o=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,c=t.mediaTypes[e],u=c.groups,l=c.tracks,f=t.masterPlaylistLoader;for(var d in s[e])for(var h in u[d]||(u[d]=[]),s[e][d])if(!s[e][d][h].forced){var p=s[e][d][h],m=void 0;if("hls"===i?m=new wa(p.resolvedUri,r,a):"dash"===i&&(m=new qs(p.playlists[0],r,a,f)),p=na.mergeOptions({id:h,playlistLoader:m},p),gc[e](e,p.playlistLoader,t),u[d].push(p),void 0===l[h]){var v=n.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;l[h]=v}}o.on("error",vc[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,r=t.master.mediaGroups,i=t.mediaTypes[e],o=i.groups,a=i.tracks;for(var s in r[e])for(var c in o[s]||(o[s]=[]),r[e][s]){var u=r[e][s][c];if(u.instreamId.match(/CC\d/)&&(o[s].push(na.mergeOptions({id:c},u)),void 0===a[c])){var l=n.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u.default&&u.autoselect,language:u.language,label:c},!1).track;a[c]=l}}}},bc={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if(n[r].enabled)return n[r];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if("showing"===n[r].mode||"hidden"===n[r].mode)return n[r];return null}}},_c=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){yc[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,r=e.tech,i=e.hls;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=function(e,t){return function(n){var r=t.masterPlaylistLoader,i=t.mediaTypes[e].groups,o=r.media();if(!o)return null;var a=null;return o.attributes[e]&&(a=i[o.attributes[e]]),a=a||i.main,void 0===n?a:null===n?null:a.filter(function(e){return e.id===n.id})[0]||null}}(n,e),t[n].activeTrack=bc[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,o=t.mediaTypes[e],a=o.activeTrack(),s=o.activeGroup(a),c=o.activePlaylistLoader;pc(r,o),s&&(s.playlistLoader?(r.resyncLoader(),mc(s.playlistLoader,o)):c&&i.resetEverything())}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,o=t.mediaTypes[e],a=o.activeTrack(),s=o.activeGroup(a),c=o.activePlaylistLoader;pc(r,o),s&&(s.playlistLoader?c!==s.playlistLoader?(r.track&&r.track(a),r.resetEverything(),mc(s.playlistLoader,o)):mc(s.playlistLoader,o):i.resetEverything())}}(n,e)});var o=t.AUDIO.activeGroup(),a=(o.filter(function(e){return e.default})[0]||o[0]).id;t.AUDIO.tracks[a].enabled=!0,t.AUDIO.onTrackChanged(),n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})});var s=function(){t.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"hls-audio-change"})};for(var c in r.audioTracks().addEventListener("change",s),r.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",function(){r.audioTracks().removeEventListener("change",s),r.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),r.clearTracks("audio"),t.AUDIO.tracks)r.audioTracks().addTrack(t.AUDIO.tracks[c])},wc=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Hs,activeTrack:Hs,onGroupChanged:Hs,onTrackChanged:Hs}}),e},xc=void 0,kc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Ec=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Sc=function(e){function t(e){sa(this,t);var n=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=e.url,i=e.handleManifestRedirects,o=e.withCredentials,a=e.tech,s=e.bandwidth,c=e.externHls,u=e.useCueTags,l=e.blacklistDuration,f=e.enableLowInitialPlaylist,d=e.cacheEncryptionKeys,h=e.sourceType;if(!r)throw new Error("A non-empty playlist URL is required");xc=c,n.withCredentials=o,n.tech_=a,n.hls_=a.hls,n.sourceType_=h,n.useCueTags_=u,n.blacklistDuration=l,n.enableLowInitialPlaylist=f,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:i,timeout:null},n.mediaTypes_=wc(),n.mediaSource=new na.MediaSource,n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_.bind(n)),n.seekable_=na.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new fc(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new dc,n.inbandTextTracks_={};var p={hls:n.hls_,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:s,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:d};return n.masterPlaylistLoader_="dash"===n.sourceType_?new qs(r,n.hls_,n.requestOptions_):new wa(r,n.hls_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new ic(na.mergeOptions(p,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new ic(na.mergeOptions(p,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new sc(na.mergeOptions(p,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),e),n.setupSegmentLoaderListeners_(),kc.forEach(function(e){n[e+"_"]=Ec.bind(n,e)}),n.logger_=zs("MPC"),n.masterPlaylistLoader_.load(),n}return ua(t,e),ca(t,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Da(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),_c({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,hls:e.hls_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t);try{e.setupSourceBuffers_()}catch(t){return na.log.warn("Failed to create SourceBuffers",t),e.mediaSource.endOfStream("decode")}e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var t=e.masterPlaylistLoader_.media();if(!t){e.excludeUnsupportedVariants_();var n=void 0;return e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),e.initialMedia_=n,void e.masterPlaylistLoader_.media(e.initialMedia_)}if(e.useCueTags_&&e.updateAdCues_(t),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.updateDuration(),e.tech_.paused()||(e.mainSegmentLoader_.load(),e.audioSegmentLoader_&&e.audioSegmentLoader_.load()),!t.endList){var r=function(){var t=e.seekable();0!==t.length&&e.mediaSource.addSeekableRange_(t.start(0),t.end(0))};if(e.duration()!==1/0){e.tech_.one("durationchange",function t(){e.duration()===1/0?r():e.tech_.one("durationchange",t)})}else r()}}),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Da(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(e,t){var n=e.mediaGroups||{},r=!0,i=Object.keys(n.AUDIO);for(var o in n.AUDIO)for(var a in n.AUDIO[o]){n.AUDIO[o][a].uri||(r=!1)}r&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),xc.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),xc.Playlist.isFmp4(t)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),i.length&&Object.keys(n.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist(),n=e.masterPlaylistLoader_.media(),r=e.tech_.buffered();(function(e){var t=e.currentPlaylist,n=e.nextPlaylist,r=e.forwardBuffer,i=e.bufferLowWaterLine,o=e.duration;e.log;return n?!t.endList||o<Vs.MAX_BUFFER_LOW_WATER_LINE||n.attributes.BANDWIDTH<t.attributes.BANDWIDTH||r>=i:(na.log.warn("We received no playlist to switch to. Please check your stream."),!1)})({currentPlaylist:n,nextPlaylist:t,forwardBuffer:r.length?r.end(r.length-1)-e.tech_.currentTime():0,bufferLowWaterLine:e.bufferLowWaterLine(),duration:e.duration(),log:e.logger_})&&e.masterPlaylistLoader_.media(t),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)}),this.mainSegmentLoader_.on("reseteverything",function(){e.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(t){e.tech_.trigger({type:"hls-segment-time-mapping",mapping:t.mapping})}),this.audioSegmentLoader_.on("ended",function(){e.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var e=this,t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetEverything(function(){na.browser.IE_VERSION||na.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())}))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(na.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(e){return na.log.warn("Failed to create Source Buffers",e),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(e=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),e){this.logger_("calling mediaSource.endOfStream()");try{this.mediaSource.endOfStream()}catch(e){na.log.warn("Failed to call media source endOfStream",e)}}}},{key:"stuckAtPlaylistEnd_",value:function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.mediaSource.duration);if(null===t)return!1;var n=xc.Playlist.playlistEnd(e,t),r=this.tech_.currentTime(),i=this.tech_.buffered();if(!i.length)return n-r<=.1;var o=i.end(i.length-1);return o-r<=.1&&n-o<=.1}},{key:"blacklistCurrentPlaylist",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=void 0;if(r=t.playlist||this.masterPlaylistLoader_.media(),n=n||t.blacklistDuration||this.blacklistDuration,!r){this.error=t;try{return this.mediaSource.endOfStream("network")}catch(e){return this.trigger("error")}}var i=1===this.masterPlaylistLoader_.master.playlists.filter(Ia).length,o=this.masterPlaylistLoader_.master.playlists;return 1===o.length?(na.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(i)):(i&&(na.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),o.forEach(function(e){e.excludeUntil!==1/0&&delete e.excludeUntil}),this.tech_.trigger("retryplaylist")),r.excludeUntil=Date.now()+1e3*n,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),e=this.selectPlaylist(),na.log.warn("Problem encountered with the current HLS playlist."+(t.message?" "+t.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(e,i))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(e){var t=Ja(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:xc.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var e=void 0;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null!==n){var r=this.masterPlaylistLoader_.master.suggestedPresentationDelay,i=xc.Playlist.seekable(t,n,r);if(0!==i.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.mediaSource.duration)))return;if(0===(e=xc.Playlist.seekable(t,n,r)).length)return}var o=void 0,a=void 0;this.seekable_&&this.seekable_.length&&(o=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>i.end(0)||i.start(0)>e.end(0)?this.seekable_=i:this.seekable_=na.createTimeRanges([[e.start(0)>i.start(0)?e.start(0):i.start(0),e.end(0)<i.end(0)?e.end(0):i.end(0)]]):this.seekable_=i,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===o&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+ts(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}}},{key:"updateDuration",value:function(){var e=this,t=this.mediaSource.duration,n=xc.Playlist.duration(this.masterPlaylistLoader_.media()),r=this.tech_.buffered(),i=function t(){e.logger_("Setting duration from "+e.mediaSource.duration+" => "+n);try{e.mediaSource.duration=n}catch(e){na.log.warn("Failed to set media source duration",e)}e.tech_.trigger("durationchange"),e.mediaSource.removeEventListener("sourceopen",t)};r.length>0&&(n=Math.max(n,r.end(r.length-1))),t!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",i):i())}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.decrypter_&&this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;for(var r in n)n[r].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.off(),this.mediaSource.dispose&&this.mediaSource.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var e,t=this.masterPlaylistLoader_.media();if(t&&"open"===this.mediaSource.readyState){if((e=xs(this.masterPlaylistLoader_.master,t)).length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+t.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(e),this.excludeIncompatibleVariants_(t)}}},{key:"configureLoaderMimeTypes_",value:function(e){var t=e.length>1&&-1===e[0].indexOf(",")&&e[0]!==e[1]?new na.EventTarget:null;this.mainSegmentLoader_.mimeType(e[0],t),e[1]&&this.audioSegmentLoader_.mimeType(e[1],t)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach(function(e){var t;e.attributes.CODECS&&i.a.MediaSource&&i.a.MediaSource.isTypeSupported&&!i.a.MediaSource.isTypeSupported('video/mp4; codecs="'+(t=e.attributes.CODECS,t.replace(/avc1\.(\d+)\.(\d+)/i,function(e){return bs([e])[0]}))+'"')&&(e.excludeUntil=1/0)})}},{key:"excludeIncompatibleVariants_",value:function(e){var t=2,n=null,r=void 0;e.attributes.CODECS&&(r=_s(e.attributes.CODECS),n=r.videoCodec,t=r.codecCount),this.master().playlists.forEach(function(e){var r={codecCount:2,videoCodec:null};e.attributes.CODECS&&(r=_s(e.attributes.CODECS)),r.codecCount!==t&&(e.excludeUntil=1/0),r.videoCodec!==n&&(e.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.segments)for(var r=n,o=void 0,a=0;a<e.segments.length;a++){var s=e.segments[a];if(o||(o=cc(t,r+s.duration/2)),o){if("cueIn"in s){o.endTime=r,o.adEndTime=r,r+=s.duration,o=null;continue}if(r<o.endTime){r+=s.duration;continue}o.endTime+=s.duration}else if("cueOut"in s&&((o=new i.a.VTTCue(r,r+s.duration,s.cueOut)).adStartTime=r,o.adEndTime=r+parseFloat(s.cueOut),t.addCue(o)),"cueOutCont"in s){var c,u,l=s.cueOutCont.split("/").map(parseFloat),f=fa(l,2);c=f[0],u=f[1],(o=new i.a.VTTCue(r,r+s.duration,"")).adStartTime=r-c,o.adEndTime=o.adStartTime+u,t.addCue(o)}r+=s.duration}}(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=Vs.GOAL_BUFFER_LENGTH,n=Vs.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,Vs.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,r)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=Vs.BUFFER_LOW_WATER_LINE,n=Vs.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,Vs.MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,r)}}]),t}(na.EventTarget),Tc=function e(t,n,r){sa(this,e);var i,o,a,s=t.masterPlaylistController_,c=s[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(s);if(n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION;this.width=u.width,this.height=u.height}this.bandwidth=n.attributes.BANDWIDTH,this.id=r,this.enabled=(i=t.playlists,o=n.id,a=c,function(e){var t=i.master.playlists[o],n=Na(t),r=Ia(t);return void 0===e?r:(e?delete t.disabled:t.disabled=!0,e===r||n||(a(),e?i.trigger("renditionenabled"):i.trigger("renditiondisabled")),e)})},Oc=["seeking","seeked","pause","playing","error"],Cc=function(){function e(t){var n=this;sa(this,e),this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=zs("PlaybackWatcher"),this.logger_("initialize");var r=function(){return n.monitorCurrentTime_()},o=function(){return n.techWaiting_()},a=function(){return n.cancelTimer_()},s=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",s),this.tech_.on("waiting",o),this.tech_.on(Oc,a),this.tech_.on("canplay",r),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",s),n.tech_.off("waiting",o),n.tech_.off(Oc,a),n.tech_.off("canplay",r),n.checkCurrentTimeTimeout_&&i.a.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return ca(e,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&i.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=i.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var e=this.seekable(),t=this.tech_.currentTime(),n=void 0;this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(n=e.end(e.length-1));this.beforeSeekableWindow_(e,t)&&(n=e.start(0)+.1);return void 0!==n&&(this.logger_("Trying to seek outside of seekable at time "+t+" with seekable range "+ts(e)+". Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Ja(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var r=this.tech_.buffered(),i=es(r,t);if(this.videoUnderflow_(i,r,t))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(i.length>0){var o=i.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+i.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1}},{key:"afterSeekableWindow_",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e.length)return!1;var i=e.end(e.length-1)+.1;return!n.endList&&r&&(i=e.end(e.length-1)+3*n.targetDuration),t>i}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-.1)}},{key:"videoUnderflow_",value:function(e,t,n){if(0===e.length){var r=this.gapFromVideoUnderflow_(t,n);if(r)return this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),r=es(t,n);this.cancelTimer_(),0!==r.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+1/30),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var n=function(e){if(e.length<2)return na.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var r=e.end(n-1),i=e.start(n);t.push([r,i])}return na.createTimeRanges(t)}(e),r=0;r<n.length;r++){var i=n.start(r),o=n.end(r);if(t-i<4&&t-i>2)return{start:i,end:o}}return null}}]),e}(),jc={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}},Ac=function(e){!function e(t,n){var r=0,i=0,o=na.mergeOptions(jc,n);t.ready(function(){t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var a=function(){i&&t.currentTime(i)},s=function(e){null!=e&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",a),t.src(e),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},c=function(){if(Date.now()-r<1e3*o.errorInterval)t.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(o.getSource&&"function"==typeof o.getSource)return r=Date.now(),o.getSource.call(t,s);na.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},u=function e(){t.off("loadedmetadata",a),t.off("error",c),t.off("dispose",e)};t.on("error",c),t.on("dispose",u),t.reloadSourceOnError=function(n){u(),e(t,n)}}(this,e)},Mc={PlaylistLoader:wa,Playlist:Ra,Decrypter:Ye,AsyncStream:He,decrypt:Ve,utils:$a,STANDARD_PLAYLIST_SELECTOR:function(){var e=this.useDevicePixelRatio&&i.a.devicePixelRatio||1;return function(e,t,n,r,o){var a=e.playlists.map(function(e){var t,n;return t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,{bandwidth:e.attributes.BANDWIDTH||i.a.Number.MAX_VALUE,width:t,height:n,playlist:e}});tc(a,function(e,t){return e.bandwidth-t.bandwidth});var s=(a=a.filter(function(e){return!Ra.isIncompatible(e.playlist)})).filter(function(e){return Ra.isEnabled(e.playlist)});s.length||(s=a.filter(function(e){return!Ra.isDisabled(e.playlist)}));var c=s.filter(function(e){return e.bandwidth*Vs.BANDWIDTH_VARIANCE<t}),u=c[c.length-1],l=c.filter(function(e){return e.bandwidth===u.bandwidth})[0];if(!1===o){var f=l||s[0]||a[0];return f?f.playlist:null}var d=c.filter(function(e){return e.width&&e.height});tc(d,function(e,t){return e.width-t.width});var h=d.filter(function(e){return e.width===n&&e.height===r});u=h[h.length-1];var p=h.filter(function(e){return e.bandwidth===u.bandwidth})[0],m=void 0,v=void 0,g=void 0;p||(v=(m=d.filter(function(e){return e.width>n||e.height>r})).filter(function(e){return e.width===m[0].width&&e.height===m[0].height}),u=v[v.length-1],g=v.filter(function(e){return e.bandwidth===u.bandwidth})[0]);var y=g||p||l||s[0]||a[0];return y?y.playlist:null}(this.playlists.master,this.systemBandwidth,parseInt(ec(this.tech_.el(),"width"),10)*e,parseInt(ec(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions)},INITIAL_PLAYLIST_SELECTOR:function(){var e=this.playlists.master.playlists.filter(Ra.isEnabled);return tc(e,function(e,t){return nc(e,t)}),e.filter(function(e){return _s(e.attributes.CODECS).videoCodec})[0]||null},comparePlaylistBandwidth:nc,comparePlaylistResolution:function(e,t){var n=void 0,r=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||i.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),n===(r=r||i.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-r},xhr:Ua()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(e){Object.defineProperty(Mc,e,{get:function(){return na.log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),Vs[e]},set:function(t){na.log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?na.log.warn("value of Hls."+e+" must be greater than or equal to 0"):Vs[e]=t}})});var Pc=function(e){if(/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(e))return"hls";return/^application\/dash\+xml/i.test(e)?"dash":null},Nc=function(e,t){for(var n=t.media(),r=-1,i=0;i<e.length;i++)if(e[i].id===n.id){r=i;break}e.selectedIndex_=r,e.trigger({selectedIndex:r,type:"change"})};Mc.canPlaySource=function(){return na.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Ic=function(e){var t=e.masterPlaylistController_.mainSegmentLoader_,n=e.masterPlaylistController_.audioSegmentLoader_,r=na.players[e.tech_.options_.playerId];if(r.eme){var i=function(e,t,n){if(!e)return e;var r=void 0,i=void 0;if(n.mimeType_)r=t.mimeType_,i=n.mimeType_;else{var o=ks(t.mimeType_),a=o.parameters.codecs.split(","),s=void 0,c=void 0;a.forEach(function(e){e=e.trim(),Es(e)?s=e:Ss(e)&&(c=e)}),r=o.type+'; codecs="'+c+'"',i=o.type.replace("video","audio")+'; codecs="'+s+'"'}var u={},l=t.playlist_;for(var f in e)u[f]={audioContentType:i,videoContentType:r},l.contentProtection&&l.contentProtection[f]&&l.contentProtection[f].pssh&&(u[f].pssh=l.contentProtection[f].pssh),"string"==typeof e[f]&&(u[f].url=e[f]);return na.mergeOptions(e,u)}(e.source_.keySystems,t,n);i&&(r.currentSource().keySystems=i,11!==na.browser.IE_VERSION&&r.eme.initializeMediaKeys&&r.eme.initializeMediaKeys())}},Lc=function(){if(!window.localStorage)return null;var e=window.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};Mc.supportsNativeHls=function(){var e=a.a.createElement("video");if(!na.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Mc.supportsNativeDash=!!na.getTech("Html5").isSupported()&&/maybe|probably/i.test(a.a.createElement("video").canPlayType("application/dash+xml")),Mc.supportsTypeNatively=function(e){return"hls"===e?Mc.supportsNativeHls:"dash"===e&&Mc.supportsNativeDash},Mc.isSupported=function(){return na.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Dc=na.getComponent("Component"),Rc=function(e){function t(e,n,r){sa(this,t);var i=la(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r.hls));if(n.options_&&n.options_.playerId){var o=na(n.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return na.log.warn("player.hls is deprecated. Use player.tech().hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),i},configurable:!0}),o.vhs=i,o.dash=i,i.player_=o}if(i.tech_=n,i.source_=e,i.stats={},i.ignoreNextSeekingEvent_=!1,i.setOptions_(),i.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(i.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return i.on(a.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=a.a.fullscreenElement||a.a.webkitFullscreenElement||a.a.mozFullScreenElement||a.a.msFullscreenElement;t&&t.contains(i.tech_.el())&&i.masterPlaylistController_.smoothQualityChange_()}),i.on(i.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),i.on(i.tech_,"error",function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),i.on(i.tech_,"play",i.play),i}return ua(t,Dc),ca(t,[{key:"setOptions_",value:function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=Lc();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Vs.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Vs.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}},{key:"src",value:function(e,t){var n=this;e&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=Mc,this.options_.sourceType=Pc(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.masterPlaylistController_=new Sc(this.options_),this.playbackWatcher_=new Cc(na.mergeOptions(this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()}})),this.masterPlaylistController_.on("error",function(){na.players[n.tech_.options_.playerId].error(n.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):Mc.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Mc.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){na.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return ns(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return ns(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!window.localStorage)return!1;var t=Lc();t=t?na.mergeOptions(t,e):e;try{window.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(e){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,t;t=(e=n).playlists,e.representations=function(){return t&&t.master&&t.master.playlists?t.master.playlists.filter(function(e){return!Na(e)}).map(function(t,n){return new Tc(e,t,t.id)}):[]},Ic(n)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&this.tech_.src(na.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var e=this,t=na.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach(function(e){t.addQualityLevel(e)}),Nc(t,n.playlists)}),this.playlists.on("mediachange",function(){Nc(e.qualityLevels_,e.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(e){this.masterPlaylistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(e,t){return Xa({playlist:this.masterPlaylistController_.media(),time:e,callback:t})}},{key:"seekToProgramTime",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return Qa({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}}]),t}(),Bc={name:"videojs-http-streaming",VERSION:"1.13.2",canHandleSource:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=na.mergeOptions(na.options,t);return Bc.canPlayType(e.type,n)},handleSource:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=na.mergeOptions(na.options,n);return t.hls=new Rc(e,t,r),t.hls.xhr=Ua(),t.hls.src(e.src,e.type),t.hls},canPlayType:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=na.mergeOptions(na.options,t).hls.overrideNative,r=Pc(e);return r&&(!Mc.supportsTypeNatively(r)||n)?"maybe":""}};void 0!==na.MediaSource&&void 0!==na.URL||(na.MediaSource=Ns,na.URL=Is),Ns.supportsNativeMediaSources()&&na.getTech("Html5").registerSourceHandler(Bc,0),na.HlsHandler=Rc,na.HlsSourceHandler=Bc,na.Hls=Mc,na.use||na.registerComponent("Hls",Mc),na.options.hls=na.options.hls||{},na.registerPlugin?na.registerPlugin("reloadSourceOnError",Ac):na.plugin("reloadSourceOnError",Ac);t.default=na},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(129),i=n.n(r),o=n(174),a=n.n(o),s=n(159),c=n.n(s);function u(e){if(void 0!==i.a&&null!=a()(e)||null!=e["@@iterator"])return c()(e)}},function(e,t,n){"use strict";t.a=function(e,t){return window.courseData?e(window.courseData):window.course?{course:e(window.course),media:[]}:t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(133),i=n.n(r);function o(e){if(i()(e))return e}},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return L});var r=n(60),i=n.n(r),o=n(45),a=n.n(o),s=n(59),c=n.n(s),u=n(44),l=n.n(u),f=n(34),d=n.n(f),h=n(49),p=n.n(h),m=n(75),v=n.n(m),g=n(62),y=n.n(g),b=n(12),_=n(16),w=n.n(_),x=n(346),k=n.n(x),E=n(54),S=n.n(E),T=n(31),O=n.n(T),C=n(22),j=n(292);function A(e,t){var n=i()(e);if(a.a){var r=a()(e);t&&(r=c()(r).call(r,function(t){return l()(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)d()(n=A(Object(r),!0)).call(n,function(t){Object(b.a)(e,t,r[t])});else if(p.a)v()(e,p()(r));else{var i;d()(i=A(Object(r))).call(i,function(t){y()(e,t,l()(r,t))})}}return e}var P=Object(C.c)("RBC_URI"),N="".concat(P,"/api/partner_content"),I=("".concat(N,"/types"),S()("".concat(N,"/")),{transformRequest:[function(e,t){return t.Authorization="Bearer ".concat(Object(j.a)()),e}],headers:{"Content-Type":"application/json"}}),L=function(e){var t;return w()(t=Object(j.b)(M({method:"POST",url:N,data:k()({ids:e})},I))).call(t,O()(["data","content"]))}},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(361),i=n.n(r),o=n(8),a=n.n(o),s=n(54),c=n.n(s),u=n(24),l=n.n(u),f=n(52),d=n.n(f),h=n(341),p=n.n(h),m=n(144),v=l()([],["items"]),g=a()(i()(function(e){var t=e.partnerContentId;return t&&[t]||[]}),v),y=a()(i()(g),v),b=function(e){var t=e.course,n=e.lessons,r=i()(y,n),o=d()(null,"partnerContentId",t),a=o?[o]:[];return Object(m.c)(r,c()(a),p.a)}},function(e,t,n){"use strict";n.d(t,"a",function(){return j});var r=n(5),i=n.n(r),o=n(139),a=n.n(o),s=n(16),c=n.n(s),u=n(33),l=n.n(u),f=n(8),d=n.n(f),h=n(54),p=n.n(h),m=n(48),v=n.n(m),g=n(196),y=n.n(g),b=n(84),_=n.n(b),w=n(30),x=n.n(w),k=(n(76),n(1100)),E=n.n(k),S=(n(1101),n(22)),T=(x()(v()(p.a)(":".concat("n3,n4,i4,n7,n9"))),d()(y()(","),_.a),function(e,t){var n=new FontFace(t.name,e,{family:t.name,style:t.style,weight:t.weight});return n.load().then(function(){return document.fonts.add(n)})}),O=function(e,t){var n,r,o,a=document.createElement("style");return a.innerText=i()(n=i()(r=i()(o="@font-face { font-family: '".concat(t.name,"'; src: ")).call(o,e,"; font-weight: ")).call(r,t.weight,"; font-style: ")).call(n,t.style,"; }"),document.head.appendChild(a),new E.a(t.name,{style:t.style,weight:t.weight}).load()},C=function(e){var t="url(".concat(Object(S.f)(e),") format('woff')");return("fonts"in document?T:O)(t,e)},j=function(e,t){var n,r=a.a.all(c()(e).call(e,C)),i=new a.a(function(e){n=l()(e,5e3)});return a.a.race([r,i]).finally(function(){clearTimeout(n),t()})}},function(e,t,n){e.exports=n(1880)},function(e,t,n){"use strict";var r=n(12),i=n(59),o=n.n(i),a=n(47),s=n.n(a),c=n(0),u=n.n(c),l=n(2),f=n.n(l),d=n(114),h=n(54),p=n.n(h),m=n(68),v=n.n(m),g=n(196),y=n.n(g),b=n(30),_=n.n(b),w=n(29),x=n.n(w),k=n(66),E=n(151),S=n(22),T=n(551),O=(n(1911),p()("partner-content-book-info__")),C={track:T.a};t.a=Object(d.b)(null,C)(function(e){var t=e.authors,n=e.backgroundColor,i=e.bookImage,a=e.bookTitle,l=e.buyLink,d=e.block,h=e.publishedAt,p=e.track,m=e.trackingInfo,g=o()(t).call(t,function(e){return!v()(e.name)}),b=_()(function(e){return e.name},g),w=b.length>1?y()(" & ",b):b[0],T="s"===s()(w).call(w,-1)?"":"s",C=Object(E.a)(n),j=f()(Object(r.a)({},O("book-image-block"),d&&!C),Object(r.a)({},O("book-image-block")&&O("dark-theme-book-image"),d&&C),Object(r.a)({},O("book-image-course"),!d)),A=O(d?"flex-block":"flex-course"),M=O(d?"image-container-block":"image-container-course"),P=f()(O("small-text"),Object(r.a)({},O("dark-theme"),C)),N=f()(O("black-text"),Object(r.a)({},O("dark-theme"),C)),I=f()(O("button"),Object(r.a)({},O("dark-theme-button"),C)),L=Object(k.f)({height:"210",width:"140",imageKey:i}),D=Object(c.useCallback)(function(){S.e&&h&&p({event:"Click Tracked",payload:x()(m,{type:"Buy Link"})})},[h,p,m]);return u.a.createElement("section",{className:A},u.a.createElement("h2",{className:"visually-hidden"},"Book Info"),u.a.createElement("div",{"aria-hidden":"true",className:M},i?u.a.createElement("img",{src:L,alt:"",className:j}):u.a.createElement("div",{className:j})),u.a.createElement("div",{className:O("text-container")},u.a.createElement("p",{className:P},"From ",w,"'",T),u.a.createElement("p",{className:N},a),u.a.createElement("a",{className:I,href:l,onClick:D,target:"_blank",rel:"noopener noreferrer"},"Buy the book")))})},function(e,t,n){"use strict";var r=n(12),i=n(0),o=n.n(i),a=n(2),s=n.n(a),c=n(54),u=n.n(c),l=n(29),f=n.n(l),d=n(114),h=n(66),p=n(151),m=n(22),v=n(551),g=(n(1912),u()("partner-content-partner-info__")),y={track:v.a};t.a=Object(d.b)(null,y)(function(e){var t=e.backgroundColor,n=e.block,a=e.link,c=e.publishedAt,u=e.track,l=e.trackingInfo,d=n?Object(h.d)():Object(h.e)(),v=g(n?"nbic-logo-light-bulb":"nbic-logo"),y=g(n?"block-logo-container":"logo-container"),b=Object(p.a)(t),_=s()(g("small-text"),Object(r.a)({},g("dark-theme"),b)),w=s()(g("black-text"),Object(r.a)({},g("dark-theme"),b)),x=s()(g("button"),Object(r.a)({},g("dark-theme-button"),b)),k=Object(i.useCallback)(function(){m.e&&c&&u({event:"Click Tracked",payload:f()(l,{type:"Partner Link"})})},[c,u,l]);return o.a.createElement("section",{className:g("flex")},o.a.createElement("h2",{className:"visually-hidden"},"Partner Info"),o.a.createElement("div",{"aria-hidden":"true",className:y},o.a.createElement("img",{src:d,alt:"",className:v})),o.a.createElement("div",{className:g("text-container")},o.a.createElement("p",{className:_},"In partnership with"),o.a.createElement("p",{className:w},"Next Big Idea Club"),o.a.createElement("a",{className:x,href:a,onClick:k,rel:"noopener noreferrer",target:"_blank"},"Learn more")))})},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(2),a=n.n(o),s=n(40);n(1916);t.a=function(e){var t=e.bgType,n=e.text,r=e.iconType,o=void 0===r?"locked":r,c=a()("continue-hint",{"continue-hint--bg-transparent":"transparent"===t});return i.a.createElement("div",{className:c},i.a.createElement("div",{className:"continue-hint__content"},n),"locked"===o&&i.a.createElement(s.w,{"aria-label":"Closed padlock",className:"continue-hint__icon"}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return N});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(4),h=n.n(d),p=n(33),m=n.n(p),v=(n(1940),n(2)),g=n.n(v),y=n(8),b=n.n(y),_=n(232),w=n.n(_),x=n(69),k=n.n(x),E=n(124),S=n.n(E),T=n(53),O=n.n(T),C=n(15),j=n.n(C),A=n(66),M=n(578);function P(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var N=function(t){Object(u.a)(r,t);var n=P(r);function r(e){var t,i,o,s,u,l,f,d;return Object(a.a)(this,r),(d=n.call(this,e)).state={imageLoaded:!1},d.closeOpenedBubble=h()(t=d.closeOpenedBubble).call(t,Object(c.a)(d)),d.handleDocumentClick=h()(i=d.handleDocumentClick).call(i,Object(c.a)(d)),d.handleMarkerClick=h()(o=d.handleMarkerClick).call(o,Object(c.a)(d)),d.onItemSelected=h()(s=d.onItemSelected).call(s,Object(c.a)(d)),d.onNextClick=h()(u=d.onNextClick).call(u,Object(c.a)(d)),d.onPreviousClick=h()(l=d.onPreviousClick).call(l,Object(c.a)(d)),d.setImageLoaded=h()(f=d.setImageLoaded).call(f,Object(c.a)(d)),d}return Object(s.a)(r,[{key:"componentDidMount",value:function(){this.loadImage(),this.props.readOnly||(document.addEventListener("click",this.handleDocumentClick),document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick))}},{key:"componentWillUnmount",value:function(){this.props.readOnly||(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick))}},{key:"render",value:function(){var t=this.state.imageLoaded,n=this.props,r=n.isPreview,i=n.items,a=n.parentId,s=n.settings,c=(void 0===s?{}:s).mediaWidth,u=void 0===c?"2":c,l=r?i[0].id:this.state.selectedItemId,f=g()("view-labeled-graphic",{"view-labeled-graphic--small":"0"===u,"view-labeled-graphic--medium":"1"===u,"view-labeled-graphic--full":"2"===u});return e.createElement("div",{"aria-label":"Labeled Graphic",className:f,role:"group"},e.createElement(M.a,Object(o.a)({},this.props,{canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:t,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:a,selected:l})))}},{key:"setImageLoaded",value:function(){this.setState({imageLoaded:!0})}},{key:"loadImage",value:function(){var e=this,t=this.props.media.image,n=t.key,r=t.src,i=m()(this.setImageLoaded,1e3),o=new Image,a=n?Object(A.a)(t):r;o.src=a,o.onload=function(){clearTimeout(i),e.setImageLoaded()}}},{key:"getCanvasClassNames",value:function(){return g()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}},{key:"onNextClick",value:function(e){var t=this.props.items,n=j()("id",t[S()(e)]||t[0]);this.onItemSelected(n)}},{key:"onPreviousClick",value:function(e){var t=this.props.items,n=j()("id",t[w()(e)]||t[w()(O()(t))]);this.onItemSelected(n)}},{key:"onItemSelected",value:function(e){var t=this.props,n=t.editBlock,r=t.items,i=t.onItemSelected,o=t.onStep,a=this.state.selectedItemId;n&&window.matchMedia("(max-width: 768px)").matches||(a===e?this.closeOpenedBubble():(this.openBubble(e),b()(o,k()(function(t){return t.id===e}))(r)),i(e))}},{key:"handleDocumentClick",value:function(){document.querySelector("[data-iz-overlay]")||this.closeOpenedBubble()}},{key:"handleMarkerClick",value:function(e){var t=e.detail,n=t.itemId,r=t.parentId,i=this.state.selectedItemId;r===this.props.parentId&&i===n||this.closeOpenedBubble()}},{key:"openBubble",value:function(e){if(window.matchMedia("(max-width: 767px)").matches){var t=document.querySelector(".page-wrap");t&&t.classList.add("page-wrap--noscroll")}this.setState({selectedItemId:e})}},{key:"closeOpenedBubble",value:function(){if(window.matchMedia("(max-width: 767px)").matches){var e=document.querySelector(".page-wrap");e&&e.classList.remove("page-wrap--noscroll")}this.setState({selectedItemId:void 0})}}],[{key:"defaultProps",get:function(){return{onItemSelected:Function.prototype,onStep:Function.prototype}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ze});var r=n(3),i=n.n(r),o=n(28),a=n(12),s=n(9),c=n(10),u=n(7),l=n(11),f=n(14),d=n(6),h=n(4),p=n.n(h),m=n(5),v=n.n(m),g=n(16),y=n.n(g),b=n(33),_=n.n(b),w=(n(1957),n(188)),x=n.n(w),k=n(17),E=n.n(k),S=n(237),T=n.n(S),O=n(26),C=n.n(O),j=n(163),A=n.n(j),M=n(2),P=n.n(M),N=n(101),I=n.n(N),L=n(8),D=n.n(L),R=n(39),B=n.n(R),F=n(86),U=n(38),q=n.n(U),z=n(92),H=n.n(z),W=n(69),V=n.n(W),Y=n(184),G=n.n(Y),K=n(420),$=n.n(K),X=n(115),Q=n.n(X),Z=n(82),J=n.n(Z),ee=n(46),te=n.n(ee),ne=n(100),re=n.n(ne),ie=n(68),oe=n.n(ie),ae=n(32),se=n.n(ae),ce=n(30),ue=n.n(ce),le=n(29),fe=n.n(le),de=n(664),he=n.n(de),pe=n(111),me=n.n(pe),ve=n(145),ge=n.n(ve),ye=n(24),be=n.n(ye),_e=n(107),we=n.n(_e),xe=n(25),ke=n.n(xe),Ee=n(15),Se=n.n(Ee),Te=n(19),Oe=n.n(Te),Ce=n(52),je=n.n(Ce),Ae=n(1),Me=n.n(Ae),Pe=n(109),Ne=n.n(Pe),Ie=n(71),Le=n.n(Ie),De=n(76),Re=n.n(De),Be=n(563),Fe=n(66),Ue=n(85),qe=n(40),ze=n(20),He=n(43),We=n(1146),Ve=n(23);function Ye(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var Ge=function(e){return re()(se.a,te.a,e)},Ke=I()(oe.a),$e=I()(se.a),Xe=A()($e,Ke),Qe=x()(Ne.a),Ze=function(t){Object(l.a)(r,t);var n=Ye(r);function r(e){var t,i,o,a,c,l,f,d,h,m,v,g,y,b,_,w,x,k,E,S,T;Object(s.a)(this,r);return(T=n.call(this,e)).state=e.initialState||{activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:[]},T.fetchCharacters=p()(t=T.fetchCharacters).call(t,Object(u.a)(T)),T.fetchCharacterPose=p()(i=T.fetchCharacterPose).call(i,Object(u.a)(T)),T.getCharacterPose=p()(o=T.getCharacterPose).call(o,Object(u.a)(T)),T.onClick=p()(a=T.onClick).call(a,Object(u.a)(T)),T.onFocus=p()(c=T.onFocus).call(c,Object(u.a)(T)),T.onInit=p()(l=T.onInit).call(l,Object(u.a)(T)),T.onResize=p()(f=T.onResize).call(f,Object(u.a)(T)),T.onResponseClick=p()(d=T.onResponseClick).call(d,Object(u.a)(T)),T.onTryAgainClick=p()(h=T.onTryAgainClick).call(h,Object(u.a)(T)),T.renderBackground=p()(m=T.renderBackground).call(m,Object(u.a)(T)),T.renderButton=p()(v=T.renderButton).call(v,Object(u.a)(T)),T.renderDetails=p()(g=T.renderDetails).call(g,Object(u.a)(T)),T.renderDialogues=p()(y=T.renderDialogues).call(y,Object(u.a)(T)),T.renderEnd=p()(b=T.renderEnd).call(b,Object(u.a)(T)),T.renderPose=p()(_=T.renderPose).call(_,Object(u.a)(T)),T.renderResponse=p()(w=T.renderResponse).call(w,Object(u.a)(T)),T.renderText=p()(x=T.renderText).call(x,Object(u.a)(T)),T.resetSlide=p()(k=T.resetSlide).call(k,Object(u.a)(T)),T.resetSlides=p()(E=T.resetSlides).call(E,Object(u.a)(T)),T.setNextSlide=p()(S=T.setNextSlide).call(S,Object(u.a)(T)),T}return Object(c.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialState,n=e.items,r=D()(Q()("poses"),je()({},"character"),J.a);Xe(n)&&!r(n)&&this.fetchCharacters(),t||this.resetSlides(),window.addEventListener("resize",this.onResize)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.items,n=e.onStep,r=this.state,i=r.activeScene,o=r.activeSlide,a=be()([],[i,"slides"],t),s=be()(null,[o,"goTo"],a),c=be()(null,[o,"type"],a);n&&("end"===s&&"text"===c||!s&&!c)&&$()(n,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize)}},{key:"fetchCharacterPose",value:function(e,t){var n,r=this.props.items[e],i=r.character,o=r.slides[t],a=v()(n="".concat(e,".")).call(n,t),s=[a,"response"],c=[a,"hasFeedback"],u=be()(null,s,this.state.slides),l=be()(!1,c,this.state.slides),f=je()("neutral","emotion",o),d=re()(E()(l),be()(f,["responses",u,"emotion"]),E()(f)),h=ke()(be()(null,["poses",d(o)]),Ge(Fe.b));return{name:i.name,pose:h(i)}}},{key:"fetchCharacters",value:function(){var e=this.props,t=e.getCharacter,n=e.items,r=e.onItemUpdate,i=we()(["id","name","poses","src"]);y()(n).call(n,function(e){var n,o=e.character,a=e.id;return Xe(o)&&t(o.id).then(function(e){return C()("poses",Object(We.a)(e),e)}).then(i).then((n=a,function(e){return r({itemId:n,payload:{character:e}})}))})}},{key:"getCharacterPose",value:function(){var e=this.props.items,t=this.state,n=t.activeScene,r=t.activeSlide,i=t.prevScene,o=t.prevSlide,a=be()([],[n,"slides"],e),s=be()(!0,[r,"hasCharacter"],a);return $e(i)&&me()(s)?this.fetchCharacterPose(i,o):this.fetchCharacterPose(n,r)}},{key:"onClick",value:function(e,t){var n,r=this,i=this.props,o=i.items,a=i.onStep,s=this.state,c=s.activeScene,u=s.activeSlide,l=o[c].slides,f="dialogue"===je()(null,"type",l[u]),d=c===o.length-1,h=u===l.length-1,m={activeSlide:u+1},v={activeScene:c+1,activeSlide:0},g={activeSlide:null},y=ke()(Object(Be.b)(o),function(e){return{activeScene:e.scene,activeSlide:e.slide}}),b=B()([[E()(h&&d),E()(g)],[E()(h&&!d),E()(v)],[Le.a,E()(m)]]),w=re()(E()(f),E()(g),E()({activeScene:0,activeSlide:0})),x=B()([[q()("slide"),ge()(y,[t])],[q()("next"),b],[q()("end"),w]]);this.resetRef=_()(p()(n=this.resetSlide).call(n,this,c,u),500),this.setState({prevScene:c,prevSlide:u}),this.setState(x(e),function(){return r.continueRef=_()(r.setNextSlide,1300)}),"end"===e&&this.resetSlides(),"end"===e&&a&&$()(a,o)}},{key:"onFocus",value:function(){this.refs.scenario.focus()}},{key:"onInit",value:function(){this.setState({initiated:!0})}},{key:"onResize",value:function(){this.setState({resizes:this.state.resizes+1})}},{key:"onResponseClick",value:function(e){var t,n=this,r=this.state,i=r.activeScene,o=r.activeSlide,s=r.slides,c=v()(t="".concat(i,".")).call(t,o),u=C()("response",e),l=C()("hasFeedback",!0),f=H()(Object(a.a)({},"".concat(c),u)),d=H()(Object(a.a)({},"".concat(c),l)),h=D()(d,f);this.setState({slides:f(s)}),this.feedbackRef=_()(function(){return n.setState({slides:h(s)})},1300)}},{key:"onTryAgainClick",value:function(){var e,t=this.state,n=t.activeScene,r=t.activeSlide,i=t.slides,o=v()(e="".concat(n,".")).call(e,r),s=T()({hasFeedback:null,response:null}),c=H()(Object(a.a)({},"".concat(o),s));this.setState({slides:c(i)})}},{key:"render",value:function(){var t,n=this.props,r=n.isPDF,i=n.items,o=n.menuOpen,a=this.state,s=a.activeScene,c=a.activeSlide,u=a.initiated,l=(i[s]||{}).slides,f=l&&l[c],d=D()(Ke,je()({},"character"),J.a),h=D()(Q()("poses"),je()({},"character"),J.a),p=D()(Re.a,be()({},["character","poses"])),m=D()(G.a,Re.a,ue()(p)),v={"aria-label":"Scenario",className:P()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":Ue.a.isMobile,"scenario-block--sidebar-open":o,"scenario-block--loading":d(i)&&!h(i)}),ref:"scenario",role:"group",style:window.innerWidth<480?{height:window.innerHeight}:null,tabIndex:ze.a},g=ke()(J.a,be()(null,["background","media","image"]),Ge(Fe.a)),b=B()([[se.a,this.renderEnd],[Oe()("type","dialogue"),this.renderDialogues],[Oe()("type","text"),this.renderText],[Le.a,E()(null)]]),_=f&&"text"===f.type&&!f.hasCharacter,w=P()("scenario-block__character",{"scenario-block__character--hidden":_});return e.createElement("div",null,e.createElement("div",v,e.createElement("div",{className:"scenario-block__spinner"}),e.createElement("div",{className:"scenario-block__background-wrapper"},Xe(i)&&y()(i).call(i,this.renderBackground)),e.createElement("img",{alt:"",onLoad:this.onInit,src:g(i)}),e.createElement("div",{className:"scenario-block__inner"},e.createElement("div",{className:w},h(i)&&y()(t=m(i)).call(t,this.renderPose)),e.createElement(F.d,null,Xe(i)&&b(f)))),r&&f&&this.renderDetails(f))}},{key:"renderBackground",value:function(t,n){var r=this.state.activeScene,i=t.id,o=be()(null,["background","media","image"],t),s={className:P()("scenario-block__background",Object(a.a)({},"scenario-block__background--active",r===n)),key:i,style:o&&{backgroundImage:"url(".concat(Object(Fe.a)(o),")")}};return o&&e.createElement("div",s)}},{key:"renderButton",value:function(t){var n=this.props.labels,r=n.scenarioContinue,i=n.scenarioTryAgain,a=t.action,s=t.goTo,c=t.nextSlide,u={appear:!0,classNames:"scenario-block__dialogue__button-",timeout:{enter:1e3,exit:400}},l="tryAgain"===a?e.createElement("span",null,i," ",e.createElement("i",{className:"icon icon-reload"})):e.createElement("span",null,r),f={className:"scenario-block__dialogue__button",key:"button",onClick:"tryAgain"===a?D()(this.onFocus,this.onTryAgainClick):D()(this.onFocus,ge()(this.onClick,[s,c]))};return e.createElement(F.d,null,e.createElement(F.a,u,e.createElement("button",Object(o.a)({},f,{type:"button"}),l)))}},{key:"renderDetails",value:function(t){var n=this.props.items,r=this.state,i=r.activeScene,o=r.activeSlide,a=t.responses,s=t.type,c=function(t,n){return e.createElement("span",{key:t},t," ",e.createElement(qe.h,null)," ",n)},u=ke()(Object(Be.b)(n),function(e){var t,n=e.scene,r=e.slide;return v()(t="Scene ".concat(n+1," Slide ")).call(t,r+1)}),l=function(e,t){var n=t.goTo,r=t.nextSlide;return B()([[q()("next"),ge()(c,[e,"Next Slide"])],[q()("end"),ge()(c,[e,"End of Scenario"])],[Le.a,ge()(c,[e,u(r||{})])]])(n)},f="text"===s?l("Continue",t):y()(a).call(a,function(e,t){return l(t,e)});return e.createElement("div",{className:"scenario-block__pdf-details"},e.createElement("h3",null,"Scene ",i+1," Slide ",o+1),f)}},{key:"renderDialogue",value:function(t,n,r){var i,o=n.description,s=n.id,c=n.type,u=t.count,l=t.firstKey,f=t.hasFeedback,d=0===r?s:r,h=1===r?l:r-1,p=0===r&&1===u,m=r===u,v=this.refs["dialogue-".concat(d)],g=m&&this.refs["dialogue-".concat(h)],y=v&&v.offsetHeight,b=m&&g&&g.offsetHeight,_=f?30:0,w=window.innerWidth<480?20:30,x=2*w+60+b-_,k=w+60-_,S=he()(y+_-60),T=P()("scenario-block__dialogue",(i={},Object(a.a)(i,"scenario-block__dialogue--response",se()(c)),Object(a.a)(i,"scenario-block__dialogue--faded",r<u-1),i)),O=B()([[E()(p),E()(null)],[q()(u),E()({top:"".concat(x,"px")})],[q()(u-1),E()({top:"".concat(k,"px")})],[q()(u-2),E()({top:"".concat(S,"px")})],[Le.a,E()({top:"-".concat(y+30,"px")})]]),C={className:T,ref:"dialogue-".concat(d),style:O(r)},j={appear:!0,classNames:"scenario-block__dialogue-",key:r,timeout:{enter:700,exit:400}},A=e.createElement("div",{className:"scenario-block__dialogue__bubble brand--body"},e.createElement(He.a,{value:o}));return e.createElement(F.a,j,e.createElement("div",null,e.createElement("div",C,Xe(o)&&A)))}},{key:"renderDialogues",value:function(t){var n,r,i=this.state,o=i.activeScene,a=i.activeSlide,s=i.slides,c=t.id,u=t.responses,l=s[v()(n="".concat(o,".")).call(n,a)]||{},f=D()(G.a,Be.a,fe()(l))(t),d=l.hasFeedback,h=l.response,m=(u[h]||{}).feedback,g=se()(h)&&Ke(u),b=d?f.length-1:f.length,_=(1===b&&oe()(u)||2===b&&Ke(u))&&d,w={count:b,firstKey:be()(null,[0,"id"],f),hasFeedback:d&&Xe(m)},x={classNames:"scenario-block__content-",key:c,timeout:400},k=e.createElement("div",{className:"scenario-block__dialogues__bottom"},e.createElement("div",{className:"scenario-block__dialogues__bottom__inner"},e.createElement("div",{className:"scenario-block__dialogues__responses"},e.createElement(F.d,null,y()(u).call(u,this.renderResponse)))));return e.createElement(F.a,x,e.createElement("div",{className:"scenario-block__dialogues scenario-block__content"},e.createElement("div",{className:"scenario-block__dialogues__inner"},e.createElement("div",{className:"scenario-block__dialogues__top"},e.createElement("div",{className:"scenario-block__dialogues__top__inner"},e.createElement(F.d,null,y()(f).call(f,p()(r=this.renderDialogue).call(r,this,w))))),g&&k,_&&this.renderButton(f[b-1]))))}},{key:"renderEnd",value:function(){var t=this.props.labels,n=t.scenarioComplete,r=t.scenarioStartOver,i=D()(this.onFocus,ge()(this.onClick,["end",null])),o=P()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),a={classNames:"scenario-block__content-",key:"end",timeout:400},s={className:"scenario-block__text__end",onClick:i,onKeyDown:Object(Ve.a)(i),role:"button",tabIndex:ze.a};return e.createElement(F.a,a,e.createElement("div",{className:o,key:"end"},e.createElement("div",{className:"scenario-block__text__inner"},e.createElement("div",{className:"scenario-block__text__title brand--head"},e.createElement("h2",null,n)),e.createElement("div",s,e.createElement("span",null,r),e.createElement("i",{className:"icon icon-reload"})))))}},{key:"renderPose",value:function(t){var n,r=this.getCharacterPose().pose,i=t.filters,o=t.id,a=t&&Object(Fe.b)(t),s=A()(Oe()("name","style")),c=s(Oe()("value","left_aligned")),u=s(Oe()("value","right_aligned")),l=P()("scenario-block__character__inner",{"scenario-block__character__inner--active":r===a,"scenario-block__character__inner--right":V()(u,i),"scenario-block__character__inner--left":V()(c,i)});return e.createElement("div",{className:l,key:v()(n="".concat(o,"-")).call(n,Math.random())},e.createElement("img",{alt:"",role:"img",src:a}))}},{key:"renderResponse",value:function(t,n){var r=t.description,i=this.props.isPDF?E()():D()(this.onFocus,ge()(this.onResponseClick,[n])),o={className:P()(["scenario-block__response","scenario-block__response--".concat(n),"brand--body"]),onClick:i,onKeyDown:Object(Ve.a)(i),role:"button",tabIndex:ze.a},a={appear:!0,classNames:"scenario-block__response-",key:n,timeout:{enter:1600,exit:400}};return e.createElement(F.a,a,e.createElement("div",o,e.createElement("div",{className:"scenario-block__response__inner"},e.createElement("div",{className:"scenario-block__response__number"},n+1),e.createElement(He.a,{value:r}))))}},{key:"renderText",value:function(t){var n=t.description,r=t.goTo,i=t.hasCharacter,a=t.id,s=t.nextSlide,c=t.title,u=this.props.labels,l=u.scenarioContinue,f=u.scenarioStartOver,d=!n&&(c||"").length<22,h=P()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!i,"scenario-block__text--short":d}),p={classNames:"scenario-block__content-",key:a,timeout:400},m=e.createElement("div",{className:"scenario-block__text__title brand--head"},e.createElement("h2",null,e.createElement(He.a,{value:c}))),v=e.createElement("div",{className:"scenario-block__text__description brand--body"},e.createElement(He.a,{value:n})),g=D()(this.onFocus,ge()(this.onClick,[r,s])),y={className:"scenario-block__text__continue brand--background",onClick:g,onKeyDown:Object(Ve.a)(g),role:"button",tabIndex:ze.a},b={className:"scenario-block__text__end",onClick:g,onKeyDown:Object(Ve.a)(g),role:"button",tabIndex:ze.a},_=e.createElement("button",Object(o.a)({},y,{type:"button"}),e.createElement("span",null,l)),w=e.createElement("div",b,e.createElement("span",null,f),e.createElement("i",{className:"icon icon-reload"}));return e.createElement(F.a,p,e.createElement("div",{className:h,key:a},e.createElement("div",{className:"scenario-block__text__inner"},c&&m,n&&v,"end"===r?w:_)))}},{key:"resetSlide",value:function(e,t){var n,r=this.state.slides,i=v()(n="".concat(e,".")).call(n,t);this.setState({slides:C()(i,{hasFeedback:!1,response:null},r)})}},{key:"resetSlides",value:function(){var e=this.props.items;this.setState({slides:Qe(function(e,t,n){return ke()(Se()("slides"),Qe((r=n,function(e,t,n){var i;return C()(v()(i="".concat(r,".")).call(i,n),{hasFeedback:!1,response:null},e)}),{}),T()(e))(t);var r},{},e)})}},{key:"setNextSlide",value:function(){var e,t=this.props.items,n=this.state,r=n.activeScene,i=n.activeSlide,o=n.slides,s=t[r].slides[i]||{},c=s.responses,u=void 0===c?[]:c,l=s.type,f=v()(e="".concat(r,".")).call(e,i),d=C()("hasFeedback",!0),h=H()(Object(a.a)({},f,d));"dialogue"===l&&oe()(u)&&this.setState({slides:h(o)})}},{key:"shouldComponentUpdate",value:function(e,t){return e.items!==this.props.items||e.menuOpen!==this.props.menuOpen||t.activeScene!==this.state.activeScene||t.activeSlide!==this.state.activeSlide||t.initiated!==this.state.initiated||t.resizes!==this.state.resizes||t.slides!==this.state.slides}}],[{key:"defaultProps",get:function(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}},{key:"propTypes",get:function(){return{items:Me.a.array.isRequired,labels:Me.a.object.isRequired,menuOpen:Me.a.bool,onItemUpdate:Me.a.func,onStep:Me.a.func}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return q});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=(n(1959),n(188)),f=n.n(l),d=n(2),h=n.n(d),p=n(55),m=n.n(p),v=n(69),g=n.n(v),y=n(30),b=n.n(y),_=n(29),w=n.n(_),x=n(111),k=n.n(x),E=n(24),S=n.n(E),T=n(25),O=n.n(T),C=n(15),j=n.n(C),A=n(19),M=n.n(A),P=n(289),N=n.n(P),I=n(1148),L=n(1149),D=n(20);function R(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var B=n(65).b.blocks,F=f()(b.a),U=function(e){var t=e.items,n=e.progress;return m()(function(e){return function(t){return k()(S()(!1,["items",t.id,"isViewed"],e))}}(n),t)},q=function(t){Object(s.a)(r,t);var n=R(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={items:N()(e.items)},t.pileRefs=[],t}return Object(a.a)(r,[{key:"componentWillReceiveProps",value:function(e){if(j()("retryAttempts",this.props.progress)!==j()("retryAttempts",e.progress))this.setState({items:N()(e.items)});else{var t=b()(function(e){return function(t){return O()(g()(M()("id",t.id)),w()(t))(e)}}(e.items),this.state.items);this.setState({items:t})}}},{key:"render",value:function(){var t,n=this,r=this.state.items,i=this.props,o=i.hasDarkBackground,a=i.id,s=i.labels,c=i.progress,u=i.onCardDrop,l=i.onReplay,f=i.piles,d=s.sortingLandmark,p=U({items:r,progress:c});return e.createElement("div",{"aria-label":d,className:(t=o,h()("sorting",{"sorting-dark-theme":t})),"data-ba":B.blockSortingActivity,role:"group"},e.createElement("div",{className:"sorting__row"},e.createElement(I.a,{count:r.length,id:a,items:p,labels:s,onReplay:l,progress:c,ref:function(e){n.deck=e}})),e.createElement("div",{className:"sorting__row"},F(function(t,r){return e.createElement(L.a,{deckTopCard:p&&p[0],id:t.id,key:t.id,lessonId:a,onCardDrop:u,onNavigateToNext:function(){return Object(D.f)({list:n.pileRefs,currentIndex:r})},onNavigateToPrevious:function(){return Object(D.g)({list:n.pileRefs,currentIndex:r})},ref:function(e){n.pileRefs[r]=e},title:t.title,onKeyDropStart:function(){n.deck.startKeyDrop()},onKeyDropEnd:function(){n.deck.endKeyDrop()}})},f)))}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(16),p=n.n(h),m=(n(1965),n(2)),v=n.n(m),g=n(38),y=n.n(g),b=n(225),_=n.n(b),w=n(15),x=n.n(w),k=n(1),E=n.n(k),S=n(439),T=n(687),O=n(56);function C(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var j=n(65).b.blocks,A=function(t){Object(c.a)(r,t);var n=C(r);function r(e){var t,i;return Object(o.a)(this,r),(i=n.call(this,e)).renderCard=d()(t=i.renderCard).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"onEnterMarker",value:function(e,t,n){var r=n.previousPosition,i=this.props,o=i.id,a=i.onEnter;r===S.a.below&&a({id:o,payload:{activeIndex:e,itemId:t}})}},{key:"onMarkerLeave",value:function(e,t){var n=t.currentPosition,r=t.previousPosition,i=this.props,o=i.id,a=i.items,s=i.onLeave,c=e-1;if(n===S.a.below&&r===S.a.inside&&c>-1){var u=_()(c,a);u&&s({id:o,payload:{activeIndex:c,itemId:u.id}})}}},{key:"onFocus",value:function(e,t){var n=this.props,r=n.id;(0,n.onEnter)({id:r,payload:{activeIndex:e,itemId:t}})}},{key:"isActive",value:function(e){var t=this.props,n=t.progress;return!!t.isBlock||y()(x()("activeIndex",n),e)}},{key:"renderCard",value:function(t,n){var r,i,o,a=this.props,s=a.enableVideoPlaybackSpeed,c=a.id,u=a.isBlock,l=a.isLearner,f=a.labels,h=d()(r=this.onFocus).call(r,this,n,t.id),p=e.createElement(T.a,{enableVideoPlaybackSpeed:s,isActive:this.isActive(n),item:t,key:n,labels:f,loadMedia:!0,onFocus:h,lessonNumber:c});return u&&l?e.createElement(O.a,{animateBlockEntrance:!0,animateIn:"fadeIn",className:"timeline__animate",key:n,isLearner:!0},p):u&&!l?p:e.createElement(S.a,{bottomOffset:"60%",key:n,onEnter:d()(i=this.onEnterMarker).call(i,this,n,t.id),onLeave:d()(o=this.onMarkerLeave).call(o,this,n),topOffset:"30%"},p)}},{key:"render",value:function(){var t=this.props,n=t.hasDarkBackground,r=t.isBlock,i=t.items,o=t.labels.timelineLandmark,a=v()("page__content-container",{timeline__block:r,"timeline-dark-theme":n});return e.createElement("div",{"aria-label":o,className:a,"data-ba":j.blockTimeline,role:"group"},e.createElement("div",{className:"timeline__wrapper"},e.createElement("div",{className:"timeline"},e.createElement("div",{className:"timeline__container"},p()(i).call(i,this.renderCard)))))}}],[{key:"defaultProps",get:function(){return{onEnter:Function.prototype,onLeave:Function.prototype,progress:{}}}},{key:"propTypes",get:function(){return{enableVideoPlaybackSpeed:E.a.bool,id:E.a.any.isRequired,isBlock:E.a.bool,isLearner:E.a.bool,items:E.a.array.isRequired,labels:E.a.object.isRequired,onEnter:E.a.func.isRequired,onLeave:E.a.func.isRequired,progress:E.a.object.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return j});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=(n(1968),n(26)),f=n.n(l),d=n(2),h=n.n(d),p=n(116),m=n.n(p),v=n(107),g=n.n(v),y=n(52),b=n.n(y),_=n(1),w=n.n(_),x=n(20),k=n(239),E=n(104),S=n(1151),T=n(43),O=n(185);function C(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var j=function(t){Object(s.a)(r,t);var n=C(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"renderMedia",value:function(t,n){if(Object(S.a)(t)){var r=t.embed?Object(k.b)(t.embed):void 0,i=h()({"timeline-card__audio":t.audio,"timeline-card__visual":t.image||t.video,"timeline-card__linkEmbed":"link"===r,"timeline-card__videoEmbed":"video"===r}),o=m()(f()("pause",!0),t);return e.createElement("div",{className:i},e.createElement(O.a,{enableVideoPlaybackSpeed:this.props.enableVideoPlaybackSpeed,index:"".concat(this.props.item.id),labels:this.props.labels,opts:n,media:o,lessonNumber:this.props.lessonNumber}))}}},{key:"render",value:function(){var t=this.props,n=t.item,r=t.isActive,i=t.labels,o=t.loadMedia,a=t.onFocus,s=n.id,c=n.settings,u=b()({},"media",n),l=g()(["audio"],u),f=g()(["embed"],u),d=g()(["image","video"],u),p=h()("timeline-card",{"timeline-card--active":r});return e.createElement("div",{className:p,"data-id":s,ref:this.props.innerRef},e.createElement("div",{"aria-label":A(n,i),className:"timeline-card__body brand--beforeBackground",onFocus:a,role:E.b,tabIndex:x.a},e.createElement("div",{className:"timeline-card__main-wrap"},e.createElement("div",{className:"timeline-card__main"},e.createElement("div",{className:"timeline-card__date brand--color brand--body"},e.createElement("h2",null,n.date)),e.createElement("div",{className:"timeline-card__title brand--head"},e.createElement("h3",null,e.createElement(T.a,{value:n.title}))),o?this.renderMedia(l,c):null,o?this.renderMedia(f,c):null,e.createElement(T.a,{className:"timeline-card__description brand--body brand--linkColor",value:n.description}),o?this.renderMedia(d):null))))}}],[{key:"propTypes",get:function(){return{enableVideoPlaybackSpeed:w.a.bool,isActive:w.a.bool.isRequired,item:w.a.object.isRequired,labels:w.a.object.isRequired,loadMedia:w.a.bool.isRequired,onFocus:w.a.func.isRequired}}}]),r}(e.Component),A=function(e,t){var n=t.timelineCardGroupPrefix;return e.title||e.date?n+" - "+(e.date||e.title):n}}).call(this,n(0))},function(e,t,n){var r=n(280),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){e.exports=n(2131)},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(0),f=n.n(l),d=n(1),h=n.n(d);function p(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(e){Object(s.a)(n,e);var t=p(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"getColor",value:function(){var e=this.props,t=e.alpha,n=e.isSidebar;return"rgba(0,0,0,".concat((n?t+10:t)/100,")")}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.isPreview?"preview-overview-sidebar__overlay":"overview__side-panel-overlay";return f.a.createElement("div",{className:t||n,style:{backgroundColor:this.getColor()}})}}],[{key:"propTypes",get:function(){return{alpha:h.a.number,classes:h.a.string,isPreview:h.a.bool,isSidebar:h.a.bool}}}]),n}(l.Component)},function(e,t,n){"use strict";var r,i=n(12),o=n(210),a=n.n(o),s=n(17),c=n.n(s),u=n(156),l=n.n(u),f=n(26),d=n.n(f),h=n(101),p=n.n(h),m=n(54),v=n.n(m),g=n(48),y=n.n(g),b=n(115),_=n.n(b),w=n(412),x=n.n(w),k=n(25),E=n.n(k),S=n(15),T=n.n(S),O=n(42),C=n.n(O),j=n(186),A=n(209),M=n.n(A),P=n(421),N=n.n(P),I=M()(2,function(e){return N()(Object(j.error)(e),Object(j.action)(e))}),L=n(212);n.d(t,"b",function(){return z});var D=v()("rise/learningPathUpNext/"),R=D("FETCH_LP_UP_NEXT"),B=D("FETCH_LP_UP_NEXT_PENDING"),F=p()(_()("id")),U=y()(l()({nextCourse:C()(F,c()({})),learningPathComplete:F,lpHasFailedQuiz:T()("lpHasFailedQuiz"),isPending:!1,isSuccess:!0})),q=d()("isPending",!0),z=(t.a=Object(j.handle)({nextCourse:{},learningPathComplete:!1,isPending:!1,isSuccess:!1},(r={},Object(i.a)(r,R,Object(j.onSuccess)(U)),Object(i.a)(r,B,q),r)),x()([Object(j.action)(B),E()(a.a.fromPromise(L.e),I(R))]))},function(e,t,n){var r,i;
/*! @preserve
* numeral.js
* version : 2.0.6
* author : Adam Draper
* license : MIT
* http://adamwdraper.github.com/Numeral-js/
*/void 0===(i="function"==typeof(r=function(){var e,t,n,r,i,o={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(c.zeroFormat&&n===c.zeroFormat)r=0;else if(c.nullFormat&&n===c.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in o)if((s="function"==typeof o[i].regexps.unformat?o[i].regexps.unformat():o[i].regexps.unformat)&&n.match(s)){a=o[i].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new u(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,n,r){var i,o,s,c,u,l,f,d,h=a[e.options.currentLocale],p=!1,m=!1,v="",g="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(l=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),s>=1e12&&!o||"t"===o?(v+=h.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!o||"b"===o?(v+=h.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!o||"m"===o?(v+=h.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!o||"k"===o)&&(v+=h.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),c=t.toString().split(".")[0],u=n.split(".")[1],f=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),g=e._.toFixed(t,u[0].length+u[1].length,r,u[1].length)):g=e._.toFixed(t,u.length,r),c=g.split(".")[0],g=e._.includes(g,".")?h.delimiters.decimal+g.split(".")[1]:"",m&&0===Number(g.slice(1))&&(g="")):c=e._.toFixed(t,0,r),v&&!o&&Number(c)>=1e3&&v!==h.abbreviations.trillion)switch(c=String(Number(c)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),y=!0),c.length<i)for(var b=i-c.length;b>0;b--)c="0"+c;return f>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(c=""),d=c+g+(v||""),p?d=(p&&y?"(":"")+d+(p&&y?")":""):l>=0?d=0===l?(y?"-":"+")+d:d+(y?"-":"+"):y&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=a[c.currentLocale],o=e,s={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)n=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),o.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,n){var r=t.multiplier(n);return e>r?e:r},1)},toFixed:function(e,t,n,r){var i,o,a,s,c=e.toString().split("."),u=t-(r||0);return i=2===c.length?Math.min(Math.max(c[1].length,u),t):u,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=c,e.formats=o,e.locales=a,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return a[c.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)c[e]=s[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,c,u,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(t){u=e.localeData(e.locale())}return o=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==o)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==s.thousand&&l[0]!==s.million&&l[0]!==s.billion&&l[0]!==s.trillion)||(c=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(c):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(c)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(c)||!a[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,a,s=this._value,u=t||c.defaultFormat;if(n=n||Math.round,0===s&&null!==c.zeroFormat)i=c.zeroFormat;else if(null===s&&null!==c.nullFormat)i=c.nullFormat;else{for(r in o)if(u.match(o[r].regexps.format)){a=o[r].format;break}i=(a=a||e._.numberToFormat)(s,u,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],function(e,t,r,i){return e+Math.round(n*t)},0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],function(e,t,r,i){return e-Math.round(n*t)},Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)},1),this},divide:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter(function(e){return n.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,o){var a,s,c,u=e._.includes(i,"ib")?r:n,l=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=u.suffixes.length;a++)if(s=Math.pow(u.base,a),c=Math.pow(u.base,a+1),null===t||0===t||t>=s&&t<c){l+=u.suffixes[a],s>0&&(t/=s);break}return e._.numberToFormat(t,i,o)+l},unformat:function(t){var i,o,a=e._.stringToNumber(t);if(a){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){o=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){o=Math.pow(r.base,i);break}}a*=o||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],function(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){e.exports=n(1500)},function(e,t,n){var r,i,o;
/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/
/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/
!function(n){"use strict";var a=n.setTimeout,s=n.clearTimeout,c=n.XMLHttpRequest,u=n.XDomainRequest,l=n.ActiveXObject,f=n.EventSource,d=n.document,h=n.Promise,p=n.fetch,m=n.Response,v=n.TextDecoder,g=n.TextEncoder,y=n.AbortController;if("undefined"==typeof window||"readyState"in d||null!=d.body||(d.readyState="loading",window.addEventListener("load",function(e){d.readyState="complete"},!1)),null==c&&(c=function(){return new l("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),null==y){var b=p;p=function(e,t){var n=t.signal;return b(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,a=0;a<e.length;a+=1){var s=e[a];0!==i&&(s<128||s>191||!t(o<<6|63&s,i-6,n(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(s>=0&&s<=127?(i=0,o=s):s>=192&&s<=223?(i=6,o=31&s):s>=224&&s<=239?(i=12,o=15&s):s>=240&&s<=247?(i=18,o=7&s):(i=0,o=65533),0===i||t(o,i,n(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&s),0===i&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=o,r};null!=v&&null!=g&&function(){try{return"test"===(new v).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(v=_);var w=function(){};function x(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=w}function k(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function E(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),a=i.join(": ");t[k(o)]=a}this._map=t}function S(){}function T(e){this._headers=e}function O(){}function C(){this._listeners=Object.create(null)}function j(e){a(function(){throw e},0)}function A(e){this.type=e,this.target=void 0}function M(e,t){A.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function P(e,t){A.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function N(e,t){A.call(this,e),this.error=t.error}x.prototype.open=function(e,t){this._abort(!0);var n=this,r=this._xhr,i=1,o=0;this._abort=function(e){0!==n._sendTimeout&&(s(n._sendTimeout),n._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,r.onload=w,r.onerror=w,r.onabort=w,r.onprogress=w,r.onreadystatechange=w,r.abort(),0!==o&&(s(o),o=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),i=0};var u=function(){if(1===i){var e=0,t="",o=void 0;if("contentType"in r)e=200,t="OK",o=r.contentType;else try{e=r.status,t=r.statusText,o=r.getResponseHeader("Content-Type")}catch(n){e=0,t="",o=void 0}0!==e&&(i=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=o,n.onreadystatechange())}},l=function(){if(u(),2===i||3===i){i=3;var e="";try{e=r.responseText}catch(e){}n.readyState=3,n.responseText=e,n.onprogress()}},f=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:w}),l(),1===i||2===i||3===i){if(i=4,0!==o&&(s(o),o=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},d=function(){o=a(function(){d()},500),3===r.readyState&&l()};"onload"in r&&(r.onload=function(e){f("load",e)}),"onerror"in r&&(r.onerror=function(e){f("error",e)}),"onabort"in r&&(r.onabort=function(e){f("abort",e)}),"onprogress"in r&&(r.onprogress=l),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){null!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||f(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||l():2===r.readyState&&u())}(e)}),!("contentType"in r)&&"ontimeout"in c.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(o=a(function(){d()},0))},x.prototype.abort=function(){this._abort(!1)},x.prototype.getResponseHeader=function(e){return this._contentType},x.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},x.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},x.prototype.send=function(){if("ontimeout"in c.prototype&&("sendAsBinary"in c.prototype||"mozAnon"in c.prototype)||null==d||null==d.readyState||"complete"===d.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=a(function(){t._sendTimeout=0,t.send()},4)}},E.prototype.get=function(e){return this._map[k(e)]},null!=c&&null==c.HEADERS_RECEIVED&&(c.HEADERS_RECEIVED=2),S.prototype.open=function(e,t,n,r,i,o,a){e.open("GET",i);var s=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(s);s+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===c.HEADERS_RECEIVED){var n=e.status,r=e.statusText,i=e.getResponseHeader("Content-Type"),o=e.getAllResponseHeaders();t(n,r,i,new E(o))}},e.withCredentials=o,a)Object.prototype.hasOwnProperty.call(a,u)&&e.setRequestHeader(u,a[u]);return e.send(),e},T.prototype.get=function(e){return this._headers.get(e)},O.prototype.open=function(e,t,n,r,i,o,a){var s=null,c=new y,u=c.signal,l=new v;return p(i,{headers:a,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new T(e.headers)),new h(function(e,t){var r=function(){s.read().then(function(t){if(t.done)e(void 0);else{var i=l.decode(t.value,{stream:!0});n(i),r()}}).catch(function(e){t(e)})};r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){r(e)}),{abort:function(){null!=s&&s.cancel(),c.abort()}}},C.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){j(e)}}},C.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(r=[],n[e]=r);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},C.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},M.prototype=Object.create(A.prototype),P.prototype=Object.create(A.prototype),N.prototype=Object.create(A.prototype);var I=-1,L=0,D=1,R=2,B=-1,F=0,U=1,q=2,z=3,H=/^text\/event\-stream;?(\s*charset\=utf\-8)?$/i,W=function(e,t){var n=null==e?t:parseInt(e,10);return n!=n&&(n=t),V(n)},V=function(e){return Math.min(Math.max(e,1e3),18e6)},Y=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){j(e)}};function G(e,t){C.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t);var r=Boolean(n.withCredentials),i=V(1e3),o=W(n.heartbeatTimeout,45e3),l="",f=i,d=!1,h=0,p=n.headers||{},m=n.Transport,v=K&&null==m?void 0:new x(null!=m?new m:null!=c&&"withCredentials"in c.prototype||null==u?new c:new u),g=null!=m&&"string"!=typeof m?new m:null==v?new O:new S,y=void 0,b=0,_=I,w="",k="",E="",T="",C=F,j=0,A=0,G=function(t,n,r,o){if(_===L)if(200===t&&null!=r&&H.test(r)){_=D,d=!0,f=i,e.readyState=D;var a=new P("open",{status:t,statusText:n,headers:o});e.dispatchEvent(a),Y(e,e.onopen,a)}else{var s="";200!==t?(n&&(n=n.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",Q();var a=new P("error",{status:t,statusText:n,headers:o});e.dispatchEvent(a),Y(e,e.onerror,a),console.error(s)}},$=function(t){if(_===D){for(var n=-1,r=0;r<t.length;r+=1){var c=t.charCodeAt(r);c!=="\n".charCodeAt(0)&&c!=="\r".charCodeAt(0)||(n=r)}var u=(-1!==n?T:"")+t.slice(0,n+1);T=(-1===n?T:"")+t.slice(n+1),""!==t&&(d=!0,h+=t.length);for(var p=0;p<u.length;p+=1){var c=u.charCodeAt(p);if(C===B&&c==="\n".charCodeAt(0))C=F;else if(C===B&&(C=F),c==="\r".charCodeAt(0)||c==="\n".charCodeAt(0)){if(C!==F){C===U&&(A=p+1);var m=u.slice(j,A-1),v=u.slice(A+(A<p&&u.charCodeAt(A)===" ".charCodeAt(0)?1:0),p);"data"===m?(w+="\n",w+=v):"id"===m?k=v:"event"===m?E=v:"retry"===m?(i=W(v,i),f=i):"heartbeatTimeout"===m&&(o=W(v,o),0!==b&&(s(b),b=a(function(){Z()},o)))}if(C===F){if(""!==w){l=k,""===E&&(E="message");var g=new M(E,{data:w.slice(1),lastEventId:k});if(e.dispatchEvent(g),"open"===E?Y(e,e.onopen,g):"message"===E?Y(e,e.onmessage,g):"error"===E&&Y(e,e.onerror,g),_===R)return}w="",E=""}C=c==="\r".charCodeAt(0)?B:F}else C===F&&(j=p,C=U),C===U?c===":".charCodeAt(0)&&(A=p+1,C=q):C===q&&(C=z)}}},X=function(t){if(_===D||_===L){_=I,0!==b&&(s(b),b=0),b=a(function(){Z()},f),f=V(Math.min(16*i,2*f)),e.readyState=L;var n=new N("error",{error:t});e.dispatchEvent(n),Y(e,e.onerror,n)}},Q=function(){_=R,null!=y&&(y.abort(),y=void 0),0!==b&&(s(b),b=0),e.readyState=R},Z=function(){if(b=0,_===I){d=!1,h=0,b=a(function(){Z()},o),_=L,w="",E="",k=l,T="",j=0,A=0,C=F;var n=t;"data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==l&&(n+=(-1===t.indexOf("?")?"?":"&")+"lastEventId="+encodeURIComponent(l));var r=e.withCredentials,i={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(i[c]=s[c]);try{y=g.open(v,G,$,X,n,r,i)}catch(e){throw Q(),e}}else d||null==y?(d=!1,b=a(function(){Z()},o)):(X(new Error("No activity within "+o+" milliseconds. "+(_===L?"No response received.":h+" chars received.")+" Reconnecting.")),null!=y&&(y.abort(),y=void 0))};e.url=t,e.readyState=L,e.withCredentials=r,e.headers=p,e._close=Q,Z()}(this,e,t)}var K=null!=p&&null!=m&&"body"in m.prototype;G.prototype=Object.create(C.prototype),G.prototype.CONNECTING=L,G.prototype.OPEN=D,G.prototype.CLOSED=R,G.prototype.close=function(){this._close()},G.CONNECTING=L,G.OPEN=D,G.CLOSED=R,G.prototype.withCredentials=void 0;var $=f;null==c||null!=f&&"withCredentials"in f.prototype||($=G),function(n){if("object"==typeof e.exports){var a=n(t);void 0!==a&&(e.exports=a)}else i=[t],void 0===(o="function"==typeof(r=n)?r.apply(t,i):r)||(e.exports=o)}(function(e){e.EventSourcePolyfill=G,e.NativeEventSource=f,e.EventSource=$})}("undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},function(e,t,n){var r=n(1690),i=n(1712),o=n(530);e.exports=function(e){var t=o.CancelToken.source(),n=i({cancelToken:t.token},e);return new r(function(e,r){return o(n).then(r).catch(e),t.cancel.bind(t)})}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(142),a=n(1),s=n.n(a),c=1073741823,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};var l=i.a.createContext||function(e,t){var n,i,a,l="__create-react-context-"+(u[a="__global_unique_id__"]=(u[a]||0)+1)+"__",f=function(e){function n(){var t,n,r;return(t=e.apply(this,arguments)||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}}),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):c,0!=(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[l]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?c:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?c:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[l]=s.a.object,i),{Provider:f,Consumer:d}};t.a=l}).call(this,n(99))},function(e,t,n){var r=n(1713);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=p&&p!==m,x="+"===b||"*"===b,k="?"===b||"*"===b,E=n[2]||l,S=g||y;r.push({name:v||o++,prefix:m||"",delimiter:E,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:S?u(S):_?".*":"[^"+c(E)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},c=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var l=e[u];if("string"!=typeof l){var f,d=s[l.name];if(null==d){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=c(d[h]),!n[u].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):c(d),!n[u].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');o+=l.prefix+f}}else o+=l}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=c(u);else{var d=c(u.prefix),h="(?:"+u.pattern+")";t.push(u),u.repeat&&(h+="(?:"+d+h+")*"),a+=h=u.optional?u.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=c(n.delimiter||"/"),m=a.slice(-p.length)===p;return i||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+p+"|$)",l(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";var r=n(284),i=n(430),o=n(1836),a=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t};function s(e,t,n){var r=e;return o(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=i({},t,{uri:e}),r.callback=n,r}function c(e,t,n){return u(t=s(e,t,n))}function u(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=l.response?l.response:l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(l),g)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function o(){if(!u){var t;clearTimeout(f),t=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=y,o=null;return 0!==t?(i={body:r(),statusCode:t,method:h,headers:{},url:d,rawRequest:l},l.getAllResponseHeaders&&(i.headers=a(l.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,i,i.body)}}var s,u,l=e.xhr||null;l||(l=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var f,d=l.url=e.uri||e.url,h=l.method=e.method||"GET",p=e.body||e.data,m=l.headers=e.headers||{},v=!!e.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:l};if("json"in e&&!1!==e.json&&(g=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(o,0)},l.onload=o,l.onerror=i,l.onprogress=function(){},l.onabort=function(){u=!0},l.ontimeout=i,l.open(h,d,!v,e.username,e.password),v||(l.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(f=setTimeout(function(){if(!u){u=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}},e.timeout)),l.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&l.setRequestHeader(s,m[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(p||null),l}e.exports=c,e.exports.default=c,c.XMLHttpRequest=r.XMLHttpRequest||function(){},c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){c["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),u(n)}})},function(e,t,n){var r=n(284),i=e.exports={WebVTT:n(1837),VTTCue:n(1840),VTTRegion:n(1841)};r.vttjs=i,r.WebVTT=i.WebVTT;var o=i.VTTCue,a=i.VTTRegion,s=r.VTTCue,c=r.VTTRegion;i.shim=function(){r.VTTCue=o,r.VTTRegion=a},i.restore=function(){r.VTTCue=s,r.VTTRegion=c},r.VTTCue||i.shim()},function(e,t,n){var r,i,o,a,s;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,i=/^([^\/?#]*)(.*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return X});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(47),v=n.n(m),g=n(16),y=n.n(g),b=(n(1894),n(156)),_=n.n(b),w=n(2),x=n.n(w),k=n(1123),E=n.n(k),S=n(0),T=n(114),O=n(22),C=n(152),j=n(103),A=n(538),M=n(63),P=n(23),N=n(43),I=n(20),L=n(1),D=n.n(L),R=n(56),B=n(85),F=n(269),U=n(238),q=n(17),z=n.n(q),H=n(31),W=n.n(H);function V(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Y=n(65).b.blocks,G=function(t){Object(c.a)(r,t);var n=V(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).renderDescriptionDelegate=p()(t=i.renderDescription).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"getButtonStyles",value:function(e,t){return{backgroundColor:"inverted"!==e?t:null,color:"inverted"===e?t:null,borderColor:"inverted"===e?t:null}}},{key:"renderDescription",value:function(t,n){var r=n||"";return e.createElement(N.a,{className:"blocks-button__description brand--head brand--linkColor",value:r})}},{key:"getButton",value:function(t,n,r,i){return e.createElement("span",{className:n,dangerouslySetInnerHTML:{__html:i},onClick:t,onKeyDown:Object(P.a)(t),role:"button",style:r,tabIndex:I.a})}},{key:"renderButton",value:function(t){var n=t.editable,r=t.buttonStyle,i=t.color,o=t.courseTitle,a=t.text,s=t.type,c=t.destination,u=t.editBlock,l=this.getButtonStyles(r,i),f=x()("blocks-button__button brand--ui",{"brand--background":void 0===i});if(n)return this.getButton(u,f,l,a);if("lesson"===s){var h=this.props,p=h.handleNavigate,m=h.match,v="/lessons/".concat(c);m&&m.params.mode&&(v+="/".concat(m.params.mode));var g=""===c?"#":v;return e.createElement(C.b,{className:f,dangerouslySetInnerHTML:{__html:a},onClick:function(){return p(c)},role:"button",style:l,to:g})}if("exit-course"===s)return this.getButton(O.b,f,l,a);var y=Object(F.b)(z()("email"!==s),c);if("email"===s){var b,_=B.a.isIphoneSafari?"_top":"_self";return e.createElement("a",{className:f,dangerouslySetInnerHTML:{__html:a},href:d()(b="mailto:".concat(y,"?subject=")).call(b,o),style:l,tabIndex:I.a,target:_})}var w=this.props,k=w.externalLinksDisabled,S=w.showExternalLinksModal,T=k&&Object(U.a)(y),j=T?void 0:y,A=""===j?"#":j,M=E()(A)?"_blank":void 0,P="_blank"===M?"noopener noreferrer":void 0,N=T?"button":void 0,L=T?S:void 0;return e.createElement("a",{className:f,dangerouslySetInnerHTML:{__html:a},href:A,onClick:L,rel:P,role:N,style:l,tabIndex:I.a,target:M})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.courseTitle,o=n.editable,a=n.editBlock,s=n.isLearner,c=n.items,u=n.settings,l=n.renderDescription,f=void 0===l?this.renderDescriptionDelegate:l,d=c.length>0?v()(c).call(c,0,1):[],h=u.paddingTop,p=u.paddingBottom,m=u.backgroundColor,g=u.entranceAnimation,b=u.buttonColor||this.props.color,_=x()("blocks-button",{"blocks-button--no-animation":!g,"blocks-button--left":!1,"blocks-button--center":!1,"blocks-button--right":!0,"blocks-button--rounded":!0}),w={backgroundColor:Object(M.a)("",m),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*p,"px")};return e.createElement("div",{className:_,"data-ba":Y.blockButton,style:w},e.createElement(R.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:s,offset:100},y()(d).call(d,function(n){var r=n.id,s=n.label,c=n.type,u=n.destination,l=n.description,d=Object(A.a)(Object(j.e)(s),18);return e.createElement("section",{key:r,className:"blocks-button__container"},f(r,l),t.renderButton({editable:o,buttonStyle:"rounded",color:b,courseTitle:i,text:d,type:c,destination:u,editBlock:a}))})))}}],[{key:"propTypes",get:function(){return{lessonId:D.a.any,blockId:D.a.any,items:D.a.array,settings:D.a.object.isRequired,editable:D.a.bool,editBlock:D.a.func,courseTitle:D.a.string}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",editBlock:function(){}}}}]),r}(e.Component),K=_()({externalLinksDisabled:W()(["course","externalLinksDisabled"])}),$=Object(T.b)(K,{showExternalLinksModal:function(){return{type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0}}})(G);t.b=$;var X=function(t){Object(c.a)(r,t);var n=V(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).renderButtonDelegate=p()(t=i.renderButton).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"renderButton",value:function(t,n){var r=this.props,i=r.blockId,o=r.courseTitle,a=r.editable,s=r.editBlock,c=r.handleNavigate,u=r.isLearner,l=r.labels,f=r.lessonId;return e.createElement($,{animateBlockEntrance:!1,blockId:i,courseTitle:o,editable:a,editBlock:s,isLearner:u,items:[t],labels:l,lessonId:f,settings:n,type:"right",handleNavigate:c})}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.settings,a=t.renderButton,s=void 0===a?this.renderButtonDelegate:a,c=o.paddingTop,u=o.paddingBottom,l=o.backgroundColor,f=o.entranceAnimation,d=x()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!f}),h={backgroundColor:Object(M.a)("",l),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},p={buttonColor:o.buttonColor||this.props.color,buttonStyle:o.buttonStyle};return e.createElement("div",{className:d,style:h},e.createElement(R.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r},y()(i).call(i,function(t){return e.createElement(S.Fragment,{key:t.id},s(t,p))})))}}],[{key:"propTypes",get:function(){return{lessonId:D.a.any,blockId:D.a.any,items:D.a.array,settings:D.a.object.isRequired,editable:D.a.bool,editBlock:D.a.func,courseTitle:D.a.string}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",editBlock:function(){}}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
e.exports=n(1925)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(893)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(119),i=n(401),o=n(498);e.exports=r(function(e,t){if(!i(e))throw new TypeError("not: Pred or predicate function required for first argument");return!o(e,t)})},function(e,t,n){"use strict";var r=n(1030);n.d(t,"a",function(){return r.a});var i=n(1031);n.d(t,"b",function(){return i.a})},function(e,t,n){var r;e.exports=function e(t,n,i){function o(s,c){if(!n[s]){if(!t[s]){var u="function"==typeof r&&r;if(!c&&u)return r(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[s]={exports:{}};t[s][0].call(f.exports,function(e){var n=t[s][1][e];return o(n||e)},f,f.exports,e,t,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){"use strict";"undefined"==typeof window?t.exports=function(t){return e("./src/utils/window").init(t),e("./src/index")}:t.exports=e("./src/index")},{"./src/index":19,"./src/utils/window":52}],2:[function(e,t,n){"use strict";var r=e("./utils/extend.js");function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r({},t||{})}return e.prototype.fire=function(e){var t=void 0,n="on"+e.type,r=this.global;(t=this[e.type])&&i(e,t),this[n]&&this[n](e),!e.propagationStopped&&r&&(t=r[e.type])&&i(e,t)},e.prototype.on=function(e,t){this[e]?this[e].push(t):this[e]=[t]},e.prototype.off=function(e,t){var n=this[e],r=n?n.indexOf(t):-1;-1!==r&&n.splice(r,1),(n&&0===n.length||!t)&&(this[e]=void 0)},e}();t.exports=o},{"./utils/extend.js":41}],3:[function(e,t,n){"use strict";var r=e("./utils/extend"),i=e("./utils/getOriginXY"),o=e("./defaultOptions"),a=e("./utils/Signals").new(),s=function(){function e(t,n,s,c,u,l){var f=arguments.length>6&&void 0!==arguments[6]&&arguments[6];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var d=t.target,h=(d&&d.options||o).deltaSource,p=i(d,u,s),m="start"===c,v="end"===c,g=m?t.startCoords:t.curCoords,y=t.prevEvent;u=u||t.element;var b=r({},g.page),_=r({},g.client);b.x-=p.x,b.y-=p.y,_.x-=p.x,_.y-=p.y,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.button=n.button,this.buttons=n.buttons,this.target=u,this.currentTarget=u,this.relatedTarget=l||null,this.preEnd=f,this.type=s+(c||""),this.interaction=t,this.interactable=d,this.t0=m?t.downTimes[t.downTimes.length-1]:y.t0;var w={interaction:t,event:n,action:s,phase:c,element:u,related:l,page:b,client:_,coords:g,starting:m,ending:v,deltaSource:h,iEvent:this};a.fire("set-xy",w),v?(this.pageX=y.pageX,this.pageY=y.pageY,this.clientX=y.clientX,this.clientY=y.clientY):(this.pageX=b.x,this.pageY=b.y,this.clientX=_.x,this.clientY=_.y),this.x0=t.startCoords.page.x-p.x,this.y0=t.startCoords.page.y-p.y,this.clientX0=t.startCoords.client.x-p.x,this.clientY0=t.startCoords.client.y-p.y,a.fire("set-delta",w),this.timeStamp=g.timeStamp,this.dt=t.pointerDelta.timeStamp,this.duration=this.timeStamp-this.t0,this.speed=t.pointerDelta[h].speed,this.velocityX=t.pointerDelta[h].vx,this.velocityY=t.pointerDelta[h].vy,this.swipe=v||"inertiastart"===c?this.getSwipe():null,a.fire("new",w)}return e.prototype.getSwipe=function(){var e=this.interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5,i=!n&&(292.5<=t||t<67.5),o=!r&&22.5<=t&&t<157.5;return{up:r,down:o,left:n,right:i,angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}},e.prototype.preventDefault=function(){},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();a.on("set-delta",function(e){var t=e.iEvent,n=e.interaction,r=e.starting,i=e.deltaSource,o=r?t:n.prevEvent;"client"===i?(t.dx=t.clientX-o.clientX,t.dy=t.clientY-o.clientY):(t.dx=t.pageX-o.pageX,t.dy=t.pageY-o.pageY)}),s.signals=a,t.exports=s},{"./defaultOptions":18,"./utils/Signals":34,"./utils/extend":41,"./utils/getOriginXY":42}],4:[function(e,t,n){"use strict";var r=e("./utils/clone"),i=e("./utils/is"),o=e("./utils/events"),a=e("./utils/extend"),s=e("./actions/base"),c=e("./scope"),u=e("./Eventable"),l=e("./defaultOptions"),f=e("./utils/Signals").new(),d=e("./utils/domUtils"),h=d.getElementRect,p=d.nodeContains,m=d.trySelector,v=d.matchesSelector,g=e("./utils/window"),y=g.getWindow,b=e("./utils/arr"),_=b.contains,w=e("./utils/browser"),x=w.wheelEvent;c.interactables=[];var k=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=n||{},this.target=t,this.events=new u,this._context=n.context||c.document,this._win=y(m(t)?this._context:t),this._doc=this._win.document,f.fire("new",{target:t,options:n,interactable:this,win:this._win}),c.addDocument(this._doc,this._win),c.interactables.push(this),this.set(n)}return e.prototype.setOnEvents=function(e,t){var n="on"+e;return i.function(t.onstart)&&(this.events[n+"start"]=t.onstart),i.function(t.onmove)&&(this.events[n+"move"]=t.onmove),i.function(t.onend)&&(this.events[n+"end"]=t.onend),i.function(t.oninertiastart)&&(this.events[n+"inertiastart"]=t.oninertiastart),this},e.prototype.setPerAction=function(e,t){for(var n in t)n in l[e]&&(i.object(t[n])?(this.options[e][n]=r(this.options[e][n]||{}),a(this.options[e][n],t[n]),i.object(l.perAction[n])&&"enabled"in l.perAction[n]&&(this.options[e][n].enabled=!1!==t[n].enabled)):i.bool(t[n])&&i.object(l.perAction[n])?this.options[e][n].enabled=t[n]:void 0!==t[n]&&(this.options[e][n]=t[n]))},e.prototype.getRect=function(e){return e=e||this.target,i.string(this.target)&&!i.element(e)&&(e=this._context.querySelector(this.target)),h(e)},e.prototype.rectChecker=function(e){return i.function(e)?(this.getRect=e,this):null===e?(delete this.options.getRect,this):this.getRect},e.prototype._backCompatOption=function(e,t){if(m(t)||i.object(t)){this.options[e]=t;for(var n=0;n<s.names.length;n++){var r=s.names[n];this.options[r][e]=t}return this}return this.options[e]},e.prototype.origin=function(e){return this._backCompatOption("origin",e)},e.prototype.deltaSource=function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource},e.prototype.context=function(){return this._context},e.prototype.inContext=function(e){return this._context===e.ownerDocument||p(this._context,e)},e.prototype.fire=function(e){return this.events.fire(e),this},e.prototype._onOffMultiple=function(e,t,n,r){if(i.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),i.array(t)){for(var o=0;o<t.length;o++){var a=t[o];this[e](a,n,r)}return!0}if(i.object(t)){for(var s in t)this[e](s,t[s],n);return!0}},e.prototype.on=function(t,n,r){return this._onOffMultiple("on",t,n,r)?this:("wheel"===t&&(t=x),_(e.eventTypes,t)?this.events.on(t,n):i.string(this.target)?o.addDelegate(this.target,this._context,t,n,r):o.add(this.target,t,n,r),this)},e.prototype.off=function(t,n,r){return this._onOffMultiple("off",t,n,r)?this:("wheel"===t&&(t=x),_(e.eventTypes,t)?this.events.off(t,n):i.string(this.target)?o.removeDelegate(this.target,this._context,t,n,r):o.remove(this.target,t,n,r),this)},e.prototype.set=function(t){i.object(t)||(t={}),this.options=r(l.base);var n=r(l.perAction);for(var o in s.methodDict){var a=s.methodDict[o];this.options[o]=r(l[o]),this.setPerAction(o,n),this[a](t[o])}for(var c=0;c<e.settingsMethods.length;c++){var u=e.settingsMethods[c];this.options[u]=l.base[u],u in t&&this[u](t[u])}return f.fire("set",{options:t,interactable:this}),this},e.prototype.unset=function(){if(o.remove(this.target,"all"),i.string(this.target))for(var e in o.delegatedEvents){var t=o.delegatedEvents[e];t.selectors[0]===this.target&&t.contexts[0]===this._context&&(t.selectors.splice(0,1),t.contexts.splice(0,1),t.listeners.splice(0,1),t.selectors.length||(t[e]=null)),o.remove(this._context,e,o.delegateListener),o.remove(this._context,e,o.delegateUseCapture,!0)}else o.remove(this,"all");f.fire("unset",{interactable:this}),c.interactables.splice(c.interactables.indexOf(this),1);for(var n=0;n<(c.interactions||[]).length;n++){var r=(c.interactions||[])[n];r.target===this&&r.interacting()&&!r._ending&&r.stop()}return c.interact},e}();c.interactables.indexOfElement=function(e,t){t=t||c.document;for(var n=0;n<this.length;n++){var r=this[n];if(r.target===e&&r._context===t)return n}return-1},c.interactables.get=function(e,t,n){var r=this[this.indexOfElement(e,t&&t.context)];return r&&(i.string(e)||n||r.inContext(e))?r:null},c.interactables.forEachMatch=function(e,t){for(var n=0;n<this.length;n++){var r=this[n],o=void 0;if((i.string(r.target)?i.element(e)&&v(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}},k.eventTypes=c.eventTypes=[],k.signals=f,k.settingsMethods=["deltaSource","origin","preventDefault","rectChecker"],t.exports=k},{"./Eventable":2,"./actions/base":6,"./defaultOptions":18,"./scope":33,"./utils/Signals":34,"./utils/arr":35,"./utils/browser":36,"./utils/clone":37,"./utils/domUtils":39,"./utils/events":40,"./utils/extend":41,"./utils/is":46,"./utils/window":52}],5:[function(e,t,n){"use strict";var r=e("./scope"),i=e("./utils"),o=e("./utils/events"),a=e("./utils/browser"),s=e("./utils/domObjects"),c=e("./utils/interactionFinder"),u=e("./utils/Signals").new(),l={},f=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer"],d=0;r.interactions=[];for(var h=function(){function e(t){var n=t.pointerType;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.target=null,this.element=null,this.prepared={name:null,axis:null,edges:null},this.pointers=[],this.pointerIds=[],this.downTargets=[],this.downTimes=[],this.prevCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.curCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.startCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.pointerDelta={page:{x:0,y:0,vx:0,vy:0,speed:0},client:{x:0,y:0,vx:0,vy:0,speed:0},timeStamp:0},this.downEvent=null,this.downPointer={},this._eventTarget=null,this._curEventTarget=null,this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this.pointerType=n,u.fire("new",this),r.interactions.push(this)}return e.prototype.pointerDown=function(e,t,n){var r=this.updatePointer(e,t,!0);u.fire("down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,interaction:this})},e.prototype.start=function(e,t,n){this.interacting()||!this.pointerIsDown||this.pointerIds.length<("gesture"===e.name?2:1)||(-1===r.interactions.indexOf(this)&&r.interactions.push(this),i.copyAction(this.prepared,e),this.target=t,this.element=n,u.fire("action-start",{interaction:this,event:this.downEvent}))},e.prototype.pointerMove=function(t,n,r){this.simulation||(this.updatePointer(t),i.setCoords(this.curCoords,this.pointers));var o=this.curCoords.page.x===this.prevCoords.page.x&&this.curCoords.page.y===this.prevCoords.page.y&&this.curCoords.client.x===this.prevCoords.client.x&&this.curCoords.client.y===this.prevCoords.client.y,a=void 0,s=void 0;this.pointerIsDown&&!this.pointerWasMoved&&(a=this.curCoords.client.x-this.startCoords.client.x,s=this.curCoords.client.y-this.startCoords.client.y,this.pointerWasMoved=i.hypot(a,s)>e.pointerMoveTolerance);var c={pointer:t,pointerIndex:this.getPointerIndex(t),event:n,eventTarget:r,dx:a,dy:s,duplicate:o,interaction:this,interactingBeforeMove:this.interacting()};o||i.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords),u.fire("move",c),o||(this.interacting()&&this.doMove(c),this.pointerWasMoved&&i.copyCoords(this.prevCoords,this.curCoords))},e.prototype.doMove=function(e){e=i.extend({pointer:this.pointers[0],event:this.prevEvent,eventTarget:this._eventTarget,interaction:this},e||{}),u.fire("before-action-move",e),this._dontFireMove||u.fire("action-move",e),this._dontFireMove=!1},e.prototype.pointerUp=function(e,t,n,r){var i=this.getPointerIndex(e);u.fire(/cancel$/i.test(t.type)?"cancel":"up",{pointer:e,pointerIndex:i,event:t,eventTarget:n,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.pointerIsDown=!1,this.removePointer(e,t)},e.prototype.end=function(e){this._ending=!0,e=e||this.prevEvent,this.interacting()&&u.fire("action-end",{event:e,interaction:this}),this.stop(),this._ending=!1},e.prototype.currentAction=function(){return this._interacting?this.prepared.name:null},e.prototype.interacting=function(){return this._interacting},e.prototype.stop=function(){u.fire("stop",{interaction:this}),this._interacting&&(u.fire("stop-active",{interaction:this}),u.fire("stop-"+this.prepared.name,{interaction:this})),this.target=this.element=null,this._interacting=!1,this.prepared.name=this.prevEvent=null},e.prototype.getPointerIndex=function(e){return"mouse"===this.pointerType||"pen"===this.pointerType?0:this.pointerIds.indexOf(i.getPointerId(e))},e.prototype.updatePointer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t&&/(down|start)$/i.test(t.type),r=i.getPointerId(e),o=this.getPointerIndex(e);return-1===o&&(o=this.pointerIds.length,this.pointerIds[o]=r),n&&u.fire("update-pointer-down",{pointer:e,event:t,down:n,pointerId:r,pointerIndex:o,interaction:this}),this.pointers[o]=e,o},e.prototype.removePointer=function(e,t){var n=this.getPointerIndex(e);-1!==n&&(u.fire("remove-pointer",{pointer:e,event:t,pointerIndex:n,interaction:this}),this.pointers.splice(n,1),this.pointerIds.splice(n,1),this.downTargets.splice(n,1),this.downTimes.splice(n,1))},e.prototype._updateEventTargets=function(e,t){this._eventTarget=e,this._curEventTarget=t},e}(),p=0;p<f.length;p++){var m=f[p];l[m]=v(m)}function v(e){return function(t){var n=i.getPointerType(t),o=i.getEventTargets(t),s=o[0],u=o[1],l=[];if(a.supportsTouch&&/touch/.test(t.type)){d=(new Date).getTime();for(var f=0;f<t.changedTouches.length;f++){var p=t.changedTouches[f],m=p,v=c.search(m,t.type,s);l.push([m,v||new h({pointerType:n})])}}else{var g=!1;if(!a.supportsPointerEvent&&/mouse/.test(t.type)){for(var y=0;y<r.interactions.length&&!g;y++)g="mouse"!==r.interactions[y].pointerType&&r.interactions[y].pointerIsDown;g=g||(new Date).getTime()-d<500||0===t.timeStamp}if(!g){var b=c.search(t,t.type,s);b||(b=new h({pointerType:n})),l.push([t,b])}}for(var _=0;_<l.length;_++){var w=l[_],x=w[0],k=w[1];k._updateEventTargets(s,u),k[e](x,t,s,u)}}}function g(e){for(var t=0;t<r.interactions.length;t++){var n=r.interactions[t];n.end(e),u.fire("endall",{event:e,interaction:n})}}var y={},b=a.pEventTypes;function _(e,t){var n=e.doc,i=0===t.indexOf("add")?o.add:o.remove;for(var s in r.delegatedEvents)i(n,s,o.delegateListener),i(n,s,o.delegateUseCapture,!0);for(var c in y)i(n,c,y[c],a.isIOS?{passive:!1}:void 0)}s.PointerEvent?(y[b.down]=l.pointerDown,y[b.move]=l.pointerMove,y[b.up]=l.pointerUp,y[b.cancel]=l.pointerUp):(y.mousedown=l.pointerDown,y.mousemove=l.pointerMove,y.mouseup=l.pointerUp,y.touchstart=l.pointerDown,y.touchmove=l.pointerMove,y.touchend=l.pointerUp,y.touchcancel=l.pointerUp),y.blur=g,u.on("update-pointer-down",function(e){var t=e.interaction,n=e.pointer,r=e.pointerId,o=e.pointerIndex,a=e.event,s=e.eventTarget,c=e.down;t.pointerIds[o]=r,t.pointers[o]=n,c&&(t.pointerIsDown=!0),t.interacting()||(i.setCoords(t.startCoords,t.pointers),i.copyCoords(t.curCoords,t.startCoords),i.copyCoords(t.prevCoords,t.startCoords),t.downEvent=a,t.downTimes[o]=t.curCoords.timeStamp,t.downTargets[o]=s||a&&i.getEventTargets(a)[0],t.pointerWasMoved=!1,i.pointerExtend(t.downPointer,n))}),r.signals.on("add-document",_),r.signals.on("remove-document",_),h.pointerMoveTolerance=1,h.doOnInteractions=v,h.endAll=g,h.signals=u,h.docEvents=y,r.endAllInteractions=g,t.exports=h},{"./scope":33,"./utils":44,"./utils/Signals":34,"./utils/browser":36,"./utils/domObjects":38,"./utils/events":40,"./utils/interactionFinder":45}],6:[function(e,t,n){"use strict";var r=e("../Interaction"),i=e("../InteractEvent"),o={firePrepared:a,names:[],methodDict:{}};function a(e,t,n,r){var o=e.prepared.name,a=new i(e,t,o,n,e.element,null,r);e.target.fire(a),e.prevEvent=a}r.signals.on("action-start",function(e){var t=e.interaction,n=e.event;t._interacting=!0,a(t,n,"start")}),r.signals.on("action-move",function(e){var t=e.interaction,n=e.event,r=e.preEnd;if(a(t,n,"move",r),!t.interacting())return!1}),r.signals.on("action-end",function(e){var t=e.interaction,n=e.event;a(t,n,"end")}),t.exports=o},{"../InteractEvent":3,"../Interaction":5}],7:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),c=e("../defaultOptions"),u={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,startAxis:"xy",lockAxis:"xy"},checker:function(e,t,n){var r=n.options.drag;return r.enabled?{name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis}:null},getCursor:function(){return"move"}};s.signals.on("before-action-move",function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.curCoords.page.y=t.startCoords.page.y,t.curCoords.client.y=t.startCoords.client.y,t.pointerDelta.page.speed=Math.abs(t.pointerDelta.page.vx),t.pointerDelta.client.speed=Math.abs(t.pointerDelta.client.vx),t.pointerDelta.client.vy=0,t.pointerDelta.page.vy=0):"y"===n&&(t.curCoords.page.x=t.startCoords.page.x,t.curCoords.client.x=t.startCoords.client.x,t.pointerDelta.page.speed=Math.abs(t.pointerDelta.page.vy),t.pointerDelta.client.speed=Math.abs(t.pointerDelta.client.vy),t.pointerDelta.client.vx=0,t.pointerDelta.page.vx=0)}}),o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("dragmove"===t.type){var r=n.prepared.axis;"x"===r?(t.pageY=n.startCoords.page.y,t.clientY=n.startCoords.client.y,t.dy=0):"y"===r&&(t.pageX=n.startCoords.page.x,t.clientX=n.startCoords.client.x,t.dx=0)}}),a.prototype.draggable=function(e){return i.is.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):i.is.bool(e)?(this.options.drag.enabled=e,e||(this.ondragstart=this.ondragstart=this.ondragend=null),this):this.options.drag},r.drag=u,r.names.push("drag"),i.merge(a.eventTypes,["dragstart","dragmove","draginertiastart","draginertiaresume","dragend"]),r.methodDict.drag="draggable",c.drag=u.defaults,t.exports=u},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],8:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../scope"),a=e("../interact"),s=e("../InteractEvent"),c=e("../Interactable"),u=e("../Interaction"),l=e("../defaultOptions"),f={defaults:{enabled:!1,accept:null,overlap:"pointer"}},d=!1;function h(e,t){for(var n=void 0,r=0;r<e.dropzones.length;r++){var i=e.dropzones[r],o=e.elements[r];o!==n&&(t.target=o,i.fire(t)),n=o}}function p(e,t){var n=function(e,t){for(var n=[],r=[],a=0;a<o.interactables.length;a++){var s=o.interactables[a];if(s.options.drop.enabled){var c=s.options.drop.accept;if(!(i.is.element(c)&&c!==t||i.is.string(c)&&!i.matchesSelector(t,c)))for(var u=i.is.string(s.target)?s._context.querySelectorAll(s.target):[s.target],l=0;l<u.length;l++){var f=u[l];f!==t&&(n.push(s),r.push(f))}}}return{elements:r,dropzones:n}}(0,t);e.dropzones=n.dropzones,e.elements=n.elements,e.rects=[];for(var r=0;r<e.dropzones.length;r++)e.rects[r]=e.dropzones[r].getRect(e.elements[r])}function m(e,t,n){var r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null},o={dragEvent:n,interaction:e,target:e.dropElement,dropzone:e.dropTarget,relatedTarget:n.target,draggable:n.interactable,timeStamp:n.timeStamp};return e.dropElement!==e.prevDropElement&&(e.prevDropTarget&&(r.leave=i.extend({type:"dragleave"},o),n.dragLeave=r.leave.target=e.prevDropElement,n.prevDropzone=r.leave.dropzone=e.prevDropTarget),e.dropTarget&&(r.enter={dragEvent:n,interaction:e,target:e.dropElement,dropzone:e.dropTarget,relatedTarget:n.target,draggable:n.interactable,timeStamp:n.timeStamp,type:"dragenter"},n.dragEnter=e.dropElement,n.dropzone=e.dropTarget)),"dragend"===n.type&&e.dropTarget&&(r.drop=i.extend({type:"drop"},o),n.dropzone=e.dropTarget,n.relatedTarget=e.dropElement),"dragstart"===n.type&&(r.activate=i.extend({type:"dropactivate"},o),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=i.extend({type:"dropdeactivate"},o),r.deactivate.target=null,r.deactivate.dropzone=null),"dragmove"===n.type&&e.dropTarget&&(r.move=i.extend({dragmove:n,type:"dropmove"},o),n.dropzone=e.dropTarget),r}function v(e,t){var n=e.activeDrops,r=e.prevDropTarget,i=e.dropTarget,o=e.dropElement;t.leave&&r.fire(t.leave),t.move&&i.fire(t.move),t.enter&&i.fire(t.enter),t.drop&&i.fire(t.drop),t.deactivate&&h(n,t.deactivate),e.prevDropTarget=i,e.prevDropElement=o}u.signals.on("action-start",function(e){var t=e.interaction;e.event;if("drag"===t.prepared.name){t.activeDrops.dropzones=[],t.activeDrops.elements=[],t.activeDrops.rects=[],t.dropEvents=null,t.dynamicDrop||p(t.activeDrops,t.element);var n=t.prevEvent,r=m(t,0,n);r.activate&&h(t.activeDrops,r.activate)}}),s.signals.on("new",function(e){var t=e.interaction,n=e.iEvent,r=e.event;if("dragmove"===n.type||"dragend"===n.type){var o=t.element,a=n,s=function(e,t,n){var r=e.interaction,o=[];d&&p(r.activeDrops,n);for(var a=0;a<r.activeDrops.dropzones.length;a++){var s=r.activeDrops.dropzones[a],c=r.activeDrops.elements[a],u=r.activeDrops.rects[a];o.push(s.dropCheck(e,t,r.target,n,c,u)?c:null)}var l=i.indexOfDeepestElement(o);return{dropzone:r.activeDrops.dropzones[l]||null,element:r.activeDrops.elements[l]||null}}(a,r,o);t.dropTarget=s.dropzone,t.dropElement=s.element,t.dropEvents=m(t,0,a)}}),u.signals.on("action-move",function(e){var t=e.interaction;"drag"===t.prepared.name&&v(t,t.dropEvents)}),u.signals.on("action-end",function(e){var t=e.interaction;"drag"===t.prepared.name&&v(t,t.dropEvents)}),u.signals.on("stop-drag",function(e){var t=e.interaction;t.activeDrops={dropzones:null,elements:null,rects:null},t.dropEvents=null}),c.prototype.dropzone=function(e){return i.is.object(e)?(this.options.drop.enabled=!1!==e.enabled,i.is.function(e.ondrop)&&(this.events.ondrop=e.ondrop),i.is.function(e.ondropactivate)&&(this.events.ondropactivate=e.ondropactivate),i.is.function(e.ondropdeactivate)&&(this.events.ondropdeactivate=e.ondropdeactivate),i.is.function(e.ondragenter)&&(this.events.ondragenter=e.ondragenter),i.is.function(e.ondragleave)&&(this.events.ondragleave=e.ondragleave),i.is.function(e.ondropmove)&&(this.events.ondropmove=e.ondropmove),/^(pointer|center)$/.test(e.overlap)?this.options.drop.overlap=e.overlap:i.is.number(e.overlap)&&(this.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(this.options.drop.accept=e.accept),"checker"in e&&(this.options.drop.checker=e.checker),this):i.is.bool(e)?(this.options.drop.enabled=e,e||(this.ondragenter=this.ondragleave=this.ondrop=this.ondropactivate=this.ondropdeactivate=null),this):this.options.drop},c.prototype.dropCheck=function(e,t,n,r,o,a){var s=!1;if(!(a=a||this.getRect(o)))return!!this.options.drop.checker&&this.options.drop.checker(e,t,s,this,o,n,r);var c=this.options.drop.overlap;if("pointer"===c){var u=i.getOriginXY(n,r,"drag"),l=i.getPageXY(e);l.x+=u.x,l.y+=u.y;var f=l.x>a.left&&l.x<a.right,d=l.y>a.top&&l.y<a.bottom;s=f&&d}var h=n.getRect(r);if(h&&"center"===c){var p=h.left+h.width/2,m=h.top+h.height/2;s=p>=a.left&&p<=a.right&&m>=a.top&&m<=a.bottom}if(h&&i.is.number(c)){var v=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top)),g=v/(h.width*h.height);s=g>=c}return this.options.drop.checker&&(s=this.options.drop.checker(e,t,s,this,o,n,r)),s},c.signals.on("unset",function(e){var t=e.interactable;t.dropzone(!1)}),c.settingsMethods.push("dropChecker"),u.signals.on("new",function(e){e.dropTarget=null,e.dropElement=null,e.prevDropTarget=null,e.prevDropElement=null,e.dropEvents=null,e.activeDrops={dropzones:[],elements:[],rects:[]}}),u.signals.on("stop",function(e){var t=e.interaction;t.dropTarget=t.dropElement=t.prevDropTarget=t.prevDropElement=null}),a.dynamicDrop=function(e){return i.is.bool(e)?(d=e,a):d},i.merge(c.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),r.methodDict.drop="dropzone",l.drop=f.defaults,t.exports=f},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"./base":6}],9:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),c=e("../defaultOptions"),u={defaults:{enabled:!1,origin:null,restrict:null},checker:function(e,t,n,r,i){return i.pointerIds.length>=2?{name:"gesture"}:null},getCursor:function(){return""}};o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturestart"===t.type&&(t.ds=0,n.gesture.startDistance=n.gesture.prevDistance=t.distance,n.gesture.startAngle=n.gesture.prevAngle=t.angle,n.gesture.scale=1)}),o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturemove"===t.type&&(t.ds=t.scale-n.gesture.scale,n.target.fire(t),n.gesture.prevAngle=t.angle,n.gesture.prevDistance=t.distance,t.scale===1/0||null===t.scale||void 0===t.scale||isNaN(t.scale)||(n.gesture.scale=t.scale))}),a.prototype.gesturable=function(e){return i.is.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):i.is.bool(e)?(this.options.gesture.enabled=e,e||(this.ongesturestart=this.ongesturestart=this.ongestureend=null),this):this.options.gesture},o.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action,a=e.event,s=e.starting,c=e.ending,u=e.deltaSource;if("gesture"===r){var l=t.pointers;n.touches=[l[0],l[1]],s?(n.distance=i.touchDistance(l,u),n.box=i.touchBBox(l),n.scale=1,n.ds=0,n.angle=i.touchAngle(l,void 0,u),n.da=0):c||a instanceof o?(n.distance=t.prevEvent.distance,n.box=t.prevEvent.box,n.scale=t.prevEvent.scale,n.ds=n.scale-1,n.angle=t.prevEvent.angle,n.da=n.angle-t.gesture.startAngle):(n.distance=i.touchDistance(l,u),n.box=i.touchBBox(l),n.scale=n.distance/t.gesture.startDistance,n.angle=i.touchAngle(l,t.gesture.prevAngle,u),n.ds=n.scale-t.gesture.prevScale,n.da=n.angle-t.gesture.prevAngle)}}),s.signals.on("new",function(e){e.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0}}),r.gesture=u,r.names.push("gesture"),i.merge(a.eventTypes,["gesturestart","gesturemove","gestureend"]),r.methodDict.gesture="gesturable",c.gesture=u.defaults,t.exports=u},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],10:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../utils/browser"),a=e("../InteractEvent"),s=e("../Interactable"),c=e("../Interaction"),u=e("../defaultOptions"),l=o.supportsTouch||o.supportsPointerEvent?20:10,f={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(e,t,n,r,o,a){if(!a)return null;var s=i.extend({},o.curCoords.page),c=n.options;if(c.resize.enabled){var u=c.resize,f={left:!1,right:!1,top:!1,bottom:!1};if(i.is.object(u.edges)){for(var h in f)f[h]=d(h,u.edges[h],s,o._eventTarget,r,a,u.margin||l);if(f.left=f.left&&!f.right,f.top=f.top&&!f.bottom,f.left||f.right||f.top||f.bottom)return{name:"resize",edges:f}}else{var p="y"!==c.resize.axis&&s.x>a.right-l,m="x"!==c.resize.axis&&s.y>a.bottom-l;if(p||m)return{name:"resize",axes:(p?"x":"")+(m?"y":"")}}}return null},cursors:o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"},getCursor:function(e){if(e.axis)return f.cursors[e.name+e.axis];if(e.edges){for(var t="",n=["top","bottom","left","right"],r=0;r<4;r++)e.edges[n[r]]&&(t+=n[r]);return f.cursors[t]}}};function d(e,t,n,r,o,a,s){if(!t)return!1;if(!0===t){var c=i.is.number(a.width)?a.width:a.right-a.left,u=i.is.number(a.height)?a.height:a.bottom-a.top;if(c<0&&("left"===e?e="right":"right"===e&&(e="left")),u<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(c>=0?a.left:a.right)+s;if("top"===e)return n.y<(u>=0?a.top:a.bottom)+s;if("right"===e)return n.x>(c>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(u>=0?a.bottom:a.top)-s}return!!i.is.element(r)&&(i.is.element(t)?t===r:i.matchesUpTo(r,t,o))}a.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("resizestart"===t.type&&n.prepared.edges){var r=n.target.getRect(n.element),o=n.target.options.resize;if(o.square||o.preserveAspectRatio){var a=i.extend({},n.prepared.edges);a.top=a.top||a.left&&!a.bottom,a.left=a.left||a.top&&!a.right,a.bottom=a.bottom||a.right&&!a.top,a.right=a.right||a.bottom&&!a.left,n.prepared._linkedEdges=a}else n.prepared._linkedEdges=null;o.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height),n.resizeRects={start:r,current:i.extend({},r),inverted:i.extend({},r),previous:i.extend({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}}),a.signals.on("new",function(e){var t=e.iEvent,n=e.phase,r=e.interaction;if("move"===n&&r.prepared.edges){var o=r.target.options.resize,a=o.invert,s="reposition"===a||"negate"===a,c=r.prepared.edges,u=r.resizeRects.start,l=r.resizeRects.current,f=r.resizeRects.inverted,d=r.resizeRects.delta,h=i.extend(r.resizeRects.previous,f),p=c,m=t.dx,v=t.dy;if(o.preserveAspectRatio||o.square){var g=o.preserveAspectRatio?r.resizeStartAspectRatio:1;c=r.prepared._linkedEdges,p.left&&p.bottom||p.right&&p.top?v=-m/g:p.left||p.right?v=m/g:(p.top||p.bottom)&&(m=v*g)}if(c.top&&(l.top+=v),c.bottom&&(l.bottom+=v),c.left&&(l.left+=m),c.right&&(l.right+=m),s){if(i.extend(f,l),"reposition"===a){var y=void 0;f.top>f.bottom&&(y=f.top,f.top=f.bottom,f.bottom=y),f.left>f.right&&(y=f.left,f.left=f.right,f.right=y)}}else f.top=Math.min(l.top,u.bottom),f.bottom=Math.max(l.bottom,u.top),f.left=Math.min(l.left,u.right),f.right=Math.max(l.right,u.left);for(var b in f.width=f.right-f.left,f.height=f.bottom-f.top,f)d[b]=f[b]-h[b];t.edges=r.prepared.edges,t.rect=f,t.deltaRect=d}}),s.prototype.resizable=function(e){return i.is.object(e)?(this.options.resize.enabled=!1!==e.enabled,this.setPerAction("resize",e),this.setOnEvents("resize",e),/^x$|^y$|^xy$/.test(e.axis)?this.options.resize.axis=e.axis:null===e.axis&&(this.options.resize.axis=u.resize.axis),i.is.bool(e.preserveAspectRatio)?this.options.resize.preserveAspectRatio=e.preserveAspectRatio:i.is.bool(e.square)&&(this.options.resize.square=e.square),this):i.is.bool(e)?(this.options.resize.enabled=e,e||(this.onresizestart=this.onresizestart=this.onresizeend=null),this):this.options.resize},c.signals.on("new",function(e){e.resizeAxes="xy"}),a.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action;if("resize"===r&&t.resizeAxes){var i=t.target.options;i.resize.square?("y"===t.resizeAxes?n.dx=n.dy:n.dy=n.dx,n.axes="xy"):(n.axes=t.resizeAxes,"x"===t.resizeAxes?n.dy=0:"y"===t.resizeAxes&&(n.dx=0))}}),r.resize=f,r.names.push("resize"),i.merge(s.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeinertiaresume","resizeend"]),r.methodDict.resize="resizable",u.resize=f.defaults,t.exports=f},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/browser":36,"./base":6}],11:[function(e,t,n){"use strict";var r=e("./utils/raf"),i=e("./utils/window").getWindow,o=e("./utils/is"),a=e("./utils/domUtils"),s=e("./Interaction"),c=e("./defaultOptions"),u={defaults:{enabled:!1,container:null,margin:60,speed:300},interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,start:function(e){u.isScrolling=!0,r.cancel(u.i),u.interaction=e,u.prevTime=(new Date).getTime(),u.i=r.request(u.scroll)},stop:function(){u.isScrolling=!1,r.cancel(u.i)},scroll:function(){var e=u.interaction.target.options[u.interaction.prepared.name].autoScroll,t=e.container||i(u.interaction.element),n=(new Date).getTime(),a=(n-u.prevTime)/1e3,s=e.speed*a;s>=1&&(o.window(t)?t.scrollBy(u.x*s,u.y*s):t&&(t.scrollLeft+=u.x*s,t.scrollTop+=u.y*s),u.prevTime=n),u.isScrolling&&(r.cancel(u.i),u.i=r.request(u.scroll))},check:function(e,t){var n=e.options;return n[t].autoScroll&&n[t].autoScroll.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&u.check(t.target,t.prepared.name))if(t.simulation)u.x=u.y=0;else{var r=void 0,s=void 0,c=void 0,l=void 0,f=t.target.options[t.prepared.name].autoScroll,d=f.container||i(t.element);if(o.window(d))l=n.clientX<u.margin,r=n.clientY<u.margin,s=n.clientX>d.innerWidth-u.margin,c=n.clientY>d.innerHeight-u.margin;else{var h=a.getElementClientRect(d);l=n.clientX<h.left+u.margin,r=n.clientY<h.top+u.margin,s=n.clientX>h.right-u.margin,c=n.clientY>h.bottom-u.margin}u.x=s?1:l?-1:0,u.y=c?1:r?-1:0,u.isScrolling||(u.margin=f.margin,u.speed=f.speed,u.start(t))}}};s.signals.on("stop-active",function(){u.stop()}),s.signals.on("action-move",u.onInteractionMove),c.perAction.autoScroll=u.defaults,t.exports=u},{"./Interaction":5,"./defaultOptions":18,"./utils/domUtils":39,"./utils/is":46,"./utils/raf":50,"./utils/window":52}],12:[function(e,t,n){"use strict";var r=e("../Interactable"),i=e("../actions/base"),o=e("../utils/is"),a=e("../utils/domUtils"),s=e("../utils"),c=s.warnOnce;r.prototype.getAction=function(e,t,n,r){var i=this.defaultActionChecker(e,t,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,i,this,r,n):i},r.prototype.ignoreFrom=c(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreForm() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),r.prototype.allowFrom=c(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowForm() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),r.prototype.testIgnore=function(e,t,n){return!(!e||!o.element(n))&&(o.string(e)?a.matchesUpTo(n,e,t):!!o.element(e)&&a.nodeContains(e,n))},r.prototype.testAllow=function(e,t,n){return!e||!!o.element(n)&&(o.string(e)?a.matchesUpTo(n,e,t):!!o.element(e)&&a.nodeContains(e,n))},r.prototype.testIgnoreAllow=function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)},r.prototype.actionChecker=function(e){return o.function(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker},r.prototype.styleCursor=function(e){return o.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor},r.prototype.defaultActionChecker=function(e,t,n,r){for(var o=this.getRect(r),a=t.buttons||{0:1,1:4,3:8,4:16}[t.button],s=null,c=0;c<i.names.length;c++){var u=i.names[c];if((!n.pointerIsDown||!/mouse|pointer/.test(n.pointerType)||0!=(a&this.options[u].mouseButtons))&&(s=i[u].checker(e,t,this,r,n,o)))return s}}},{"../Interactable":4,"../actions/base":6,"../utils":44,"../utils/domUtils":39,"../utils/is":46}],13:[function(e,t,n){"use strict";var r=e("../interact"),i=e("../Interactable"),o=e("../Interaction"),a=e("../actions/base"),s=e("../defaultOptions"),c=e("../scope"),u=e("../utils"),l=e("../utils/Signals").new();e("./InteractableMethods");var f={signals:l,withinInteractionLimit:v,maxInteractions:1/0,defaults:{perAction:{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}},setActionDefaults:function(e){u.extend(e.defaults,f.defaults.perAction)},validateAction:d};function d(e,t,n,r){return u.is.object(e)&&t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&v(t,n,e)?e:null}function h(e,t,n,r,i,o){for(var a=0,s=r.length;a<s;a++){var c=r[a],u=i[a],l=d(c.getAction(t,n,e,u),c,u,o);if(l)return{action:l,target:c,element:u}}return{}}function p(e,t,n,r){var i=[],o=[],a=r;function s(e){i.push(e),o.push(a)}for(;u.is.element(a);){i=[],o=[],c.interactables.forEachMatch(a,s);var l=h(e,t,n,i,o,r);if(l.action&&!l.target.options[l.action.name].manualStart)return l;a=u.parentNode(a)}return{}}function m(e,t){var n=t.action,r=t.target,i=t.element;if(n=n||{},e.target&&e.target.options.styleCursor&&(e.target._doc.documentElement.style.cursor=""),e.target=r,e.element=i,u.copyAction(e.prepared,n),r&&r.options.styleCursor){var o=n?a[n.name].getCursor(n):"";e.target._doc.documentElement.style.cursor=o}l.fire("prepared",{interaction:e})}function v(e,t,n){var r=e.options,i=r[n.name].max,o=r[n.name].maxPerElement,a=0,s=0,u=0;if(i&&o&&f.maxInteractions){for(var l=0;l<c.interactions.length;l++){var d=c.interactions[l],h=d.prepared.name;if(d.interacting()){if(++a>=f.maxInteractions)return!1;if(d.target===e){if((s+=h===n.name|0)>=i)return!1;if(d.element===t&&(u++,h!==n.name||u>=o))return!1}}}return f.maxInteractions>0}}o.signals.on("down",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;if(!t.interacting()){var o=p(t,n,r,i);m(t,o)}}),o.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;if("mouse"===t.pointerType&&!t.pointerIsDown&&!t.interacting()){var o=p(t,n,r,i);m(t,o)}}),o.signals.on("move",function(e){var t=e.interaction,n=e.event;if(t.pointerIsDown&&!t.interacting()&&t.pointerWasMoved&&t.prepared.name){l.fire("before-start",e);var r=t.target;t.prepared.name&&r&&(r.options[t.prepared.name].manualStart||!v(r,t.element,t.prepared)?t.stop(n):t.start(t.prepared,r,t.element))}}),o.signals.on("stop",function(e){var t=e.interaction,n=t.target;n&&n.options.styleCursor&&(n._doc.documentElement.style.cursor="")}),r.maxInteractions=function(e){return u.is.number(e)?(f.maxInteractions=e,r):f.maxInteractions},i.settingsMethods.push("styleCursor"),i.settingsMethods.push("actionChecker"),i.settingsMethods.push("ignoreFrom"),i.settingsMethods.push("allowFrom"),s.base.actionChecker=null,s.base.styleCursor=!0,u.extend(s.perAction,f.defaults.perAction),t.exports=f},{"../Interactable":4,"../Interaction":5,"../actions/base":6,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"../utils/Signals":34,"./InteractableMethods":12}],14:[function(e,t,n){"use strict";var r=e("./base"),i=e("../scope"),o=e("../utils/is"),a=e("../utils/domUtils"),s=a.parentNode;r.setActionDefaults(e("../actions/drag")),r.signals.on("before-start",function(e){var t=e.interaction,n=e.eventTarget,a=e.dx,c=e.dy;if("drag"===t.prepared.name){var u=Math.abs(a),l=Math.abs(c),f=t.target.options.drag,d=f.startAxis,h=u>l?"x":u<l?"y":"xy";if(t.prepared.axis="start"===f.lockAxis?h[0]:f.lockAxis,"xy"!==h&&"xy"!==d&&d!==h){t.prepared.name=null;for(var p=n,m=function(e){if(e!==t.target){var i=t.target.options.drag;if(!i.manualStart&&e.testIgnoreAllow(i,p,n)){var o=e.getAction(t.downPointer,t.downEvent,t,p);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(h,e)&&r.validateAction(o,e,p,n))return e}}};o.element(p);){var v=i.interactables.forEachMatch(p,m);if(v){t.prepared.name="drag",t.target=v,t.element=p;break}p=s(p)}}}})},{"../actions/drag":7,"../scope":33,"../utils/domUtils":39,"../utils/is":46,"./base":13}],15:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/gesture"))},{"../actions/gesture":9,"./base":13}],16:[function(e,t,n){"use strict";var r=e("./base"),i=e("../Interaction");function o(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.target.options;return n[t].hold||n[t].delay}r.defaults.perAction.hold=0,r.defaults.perAction.delay=0,i.signals.on("new",function(e){e.autoStartHoldTimer=null}),r.signals.on("prepared",function(e){var t=e.interaction,n=o(t);n>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.target,t.element)},n))}),i.signals.on("move",function(e){var t=e.interaction,n=e.duplicate;t.pointerWasMoved&&!n&&clearTimeout(t.autoStartHoldTimer)}),r.signals.on("before-start",function(e){var t=e.interaction,n=o(t);n>0&&(t.prepared.name=null)}),t.exports={getHoldDuration:o}},{"../Interaction":5,"./base":13}],17:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/resize"))},{"../actions/resize":10,"./base":13}],18:[function(e,t,n){"use strict";t.exports={base:{accept:null,preventDefault:"auto",deltaSource:"page"},perAction:{origin:{x:0,y:0},inertia:{enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}}}},{}],19:[function(e,t,n){"use strict";e("./inertia"),e("./modifiers/snap"),e("./modifiers/restrict"),e("./pointerEvents/base"),e("./pointerEvents/holdRepeat"),e("./pointerEvents/interactableTargets"),e("./autoStart/hold"),e("./actions/gesture"),e("./actions/resize"),e("./actions/drag"),e("./actions/drop"),e("./modifiers/snapSize"),e("./modifiers/restrictEdges"),e("./modifiers/restrictSize"),e("./autoStart/gesture"),e("./autoStart/resize"),e("./autoStart/drag"),e("./interactablePreventDefault.js"),e("./autoScroll"),t.exports=e("./interact")},{"./actions/drag":7,"./actions/drop":8,"./actions/gesture":9,"./actions/resize":10,"./autoScroll":11,"./autoStart/drag":14,"./autoStart/gesture":15,"./autoStart/hold":16,"./autoStart/resize":17,"./inertia":20,"./interact":21,"./interactablePreventDefault.js":22,"./modifiers/restrict":24,"./modifiers/restrictEdges":25,"./modifiers/restrictSize":26,"./modifiers/snap":27,"./modifiers/snapSize":28,"./pointerEvents/base":30,"./pointerEvents/holdRepeat":31,"./pointerEvents/interactableTargets":32}],20:[function(e,t,n){"use strict";var r=e("./InteractEvent"),i=e("./Interaction"),o=e("./modifiers/base"),a=e("./utils"),s=e("./utils/raf");function c(e){var t=e.inertiaStatus;if(t.active){var n=t.upCoords.page,r=t.upCoords.client;a.setCoords(e.curCoords,[{pageX:n.x+t.sx,pageY:n.y+t.sy,clientX:r.x+t.sx,clientY:r.y+t.sy}])}}i.signals.on("new",function(e){e.inertiaStatus={active:!1,smoothEnd:!1,allowResume:!1,startEvent:null,upCoords:{},xe:0,ye:0,sx:0,sy:0,t0:0,vx0:0,vys:0,duration:0,lambda_v0:0,one_ve_v0:0,i:null},e.boundInertiaFrame=function(){return function(){c(this),a.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords);var e=this.inertiaStatus,t=this.target.options[this.prepared.name].inertia.resistance,n=(new Date).getTime()/1e3-e.t0;if(n<e.te){var r=1-(Math.exp(-t*n)-e.lambda_v0)/e.one_ve_v0;if(e.modifiedXe===e.xe&&e.modifiedYe===e.ye)e.sx=e.xe*r,e.sy=e.ye*r;else{var i=a.getQuadraticCurvePoint(0,0,e.xe,e.ye,e.modifiedXe,e.modifiedYe,r);e.sx=i.x,e.sy=i.y}this.doMove(),e.i=s.request(this.boundInertiaFrame)}else e.sx=e.modifiedXe,e.sy=e.modifiedYe,this.doMove(),this.end(e.startEvent),e.active=!1,this.simulation=null;a.copyCoords(this.prevCoords,this.curCoords)}.apply(e)},e.boundSmoothEndFrame=function(){return function(){c(this);var e=this.inertiaStatus,t=(new Date).getTime()-e.t0,n=this.target.options[this.prepared.name].inertia.smoothEndDuration;t<n?(e.sx=a.easeOutQuad(t,0,e.xe,n),e.sy=a.easeOutQuad(t,0,e.ye,n),this.pointerMove(e.startEvent,e.startEvent),e.i=s.request(this.boundSmoothEndFrame)):(e.sx=e.xe,e.sy=e.ye,this.pointerMove(e.startEvent,e.startEvent),this.end(e.startEvent),e.smoothEnd=e.active=!1,this.simulation=null)}.apply(e)}}),i.signals.on("down",function(e){var t=e.interaction,n=e.event,c=e.pointer,u=e.eventTarget,l=t.inertiaStatus;if(l.active)for(var f=u;a.is.element(f);){if(f===t.element){s.cancel(l.i),l.active=!1,t.simulation=null,t.updatePointer(c),a.setCoords(t.curCoords,t.pointers);var d={interaction:t};i.signals.fire("before-action-move",d),i.signals.fire("action-resume",d);var h=new r(t,n,t.prepared.name,"inertiaresume",t.element);t.target.fire(h),t.prevEvent=h,o.resetStatuses(t.modifierStatuses),a.copyCoords(t.prevCoords,t.curCoords);break}f=a.parentNode(f)}}),i.signals.on("up",function(e){var t=e.interaction,n=e.event,i=t.inertiaStatus;if(t.interacting()&&!i.active){var c=t.target,u=c&&c.options,l=u&&t.prepared.name&&u[t.prepared.name].inertia,f=(new Date).getTime(),d={},h=a.extend({},t.curCoords.page),p=t.pointerDelta.client.speed,m=!1,v=void 0,g=l&&l.enabled&&"gesture"!==t.prepared.name&&n!==i.startEvent,y=g&&f-t.curCoords.timeStamp<50&&p>l.minSpeed&&p>l.endSpeed,b={interaction:t,pageCoords:h,statuses:d,preEnd:!0,requireEndOnly:!0};g&&!y&&(o.resetStatuses(d),(v=o.setAll(b)).shouldMove&&v.locked&&(m=!0)),(y||m)&&(a.copyCoords(i.upCoords,t.curCoords),t.pointers[0]=i.startEvent=new r(t,n,t.prepared.name,"inertiastart",t.element),i.t0=f,i.active=!0,i.allowResume=l.allowResume,t.simulation=i,c.fire(i.startEvent),y?(i.vx0=t.pointerDelta.client.vx,i.vy0=t.pointerDelta.client.vy,i.v0=p,function(e,t){var n=e.target.options[e.prepared.name].inertia,r=n.resistance,i=-Math.log(n.endSpeed/t.v0)/r;t.x0=e.prevEvent.pageX,t.y0=e.prevEvent.pageY,t.t0=t.startEvent.timeStamp/1e3,t.sx=t.sy=0,t.modifiedXe=t.xe=(t.vx0-i)/r,t.modifiedYe=t.ye=(t.vy0-i)/r,t.te=i,t.lambda_v0=r/t.v0,t.one_ve_v0=1-n.endSpeed/t.v0}(t,i),a.extend(h,t.curCoords.page),h.x+=i.xe,h.y+=i.ye,o.resetStatuses(d),v=o.setAll(b),i.modifiedXe+=v.dx,i.modifiedYe+=v.dy,i.i=s.request(t.boundInertiaFrame)):(i.smoothEnd=!0,i.xe=v.dx,i.ye=v.dy,i.sx=i.sy=0,i.i=s.request(t.boundSmoothEndFrame)))}}),i.signals.on("stop-active",function(e){var t=e.interaction,n=t.inertiaStatus;n.active&&(s.cancel(n.i),n.active=!1,t.simulation=null)})},{"./InteractEvent":3,"./Interaction":5,"./modifiers/base":23,"./utils":44,"./utils/raf":50}],21:[function(e,t,n){"use strict";var r=e("./utils/browser"),i=e("./utils/events"),o=e("./utils"),a=e("./scope"),s=e("./Interactable"),c=e("./Interaction"),u={};function l(e,t){var n=a.interactables.get(e,t);return n||((n=new s(e,t)).events.global=u),n}l.isSet=function(e,t){return-1!==a.interactables.indexOfElement(e,t&&t.context)},l.on=function(e,t,n){if(o.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.is.array(e)){for(var r=0;r<e.length;r++){var c=e[r];l.on(c,t,n)}return l}if(o.is.object(e)){for(var f in e)l.on(f,e[f],t);return l}return o.contains(s.eventTypes,e)?u[e]?u[e].push(t):u[e]=[t]:i.add(a.document,e,t,{options:n}),l},l.off=function(e,t,n){if(o.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.is.array(e)){for(var r=0;r<e.length;r++){var c=e[r];l.off(c,t,n)}return l}if(o.is.object(e)){for(var f in e)l.off(f,e[f],t);return l}if(o.contains(s.eventTypes,e)){var d=void 0;e in u&&-1!==(d=u[e].indexOf(t))&&u[e].splice(d,1)}else i.remove(a.document,e,t,n);return l},l.debug=function(){return a},l.getPointerAverage=o.pointerAverage,l.getTouchBBox=o.touchBBox,l.getTouchDistance=o.touchDistance,l.getTouchAngle=o.touchAngle,l.getElementRect=o.getElementRect,l.getElementClientRect=o.getElementClientRect,l.matchesSelector=o.matchesSelector,l.closest=o.closest,l.supportsTouch=function(){return r.supportsTouch},l.supportsPointerEvent=function(){return r.supportsPointerEvent},l.stop=function(e){for(var t=a.interactions.length-1;t>=0;t--)a.interactions[t].stop(e);return l},l.pointerMoveTolerance=function(e){return o.is.number(e)?(c.pointerMoveTolerance=e,l):c.pointerMoveTolerance},l.addDocument=a.addDocument,l.removeDocument=a.removeDocument,a.interact=l,t.exports=l},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils":44,"./utils/browser":36,"./utils/events":40}],22:[function(e,t,n){"use strict";var r=e("./Interactable"),i=e("./Interaction"),o=e("./scope"),a=e("./utils/is"),s=e("./utils/events"),c=e("./utils/browser"),u=e("./utils/domUtils"),l=u.nodeContains,f=u.matchesSelector;function d(e){var t=e.interaction,n=e.event;t.target&&t.target.checkAndPreventDefault(n)}r.prototype.preventDefault=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):a.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault},r.prototype.checkAndPreventDefault=function(e){var t=this.options.preventDefault;"never"!==t&&("always"!==t&&(s.supportsPassive&&/^touch(start|move)$/.test(e.type)&&!c.isIOS||/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||a.element(e.target)&&f(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *"))||e.preventDefault())};for(var h=["down","move","up","cancel"],p=0;p<h.length;p++){var m=h[p];i.signals.on(m,d)}i.docEvents.dragstart=function(e){for(var t=0;t<o.interactions.length;t++){var n=o.interactions[t];if(n.element&&(n.element===e.target||l(n.element,e.target)))return void n.target.checkAndPreventDefault(e)}}},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils/browser":36,"./utils/domUtils":39,"./utils/events":40,"./utils/is":46}],23:[function(e,t,n){"use strict";var r=e("../InteractEvent"),i=e("../Interaction"),o=e("../utils/extend"),a={names:[],setOffsets:function(e){var t=e.interaction,n=e.pageCoords,r=t.target,i=t.element,o=t.startOffset,s=r.getRect(i);s?(o.left=n.x-s.left,o.top=n.y-s.top,o.right=s.right-n.x,o.bottom=s.bottom-n.y,"width"in s||(s.width=s.right-s.left),"height"in s||(s.height=s.bottom-s.top)):o.left=o.top=o.right=o.bottom=0,e.rect=s,e.interactable=r,e.element=i;for(var c=0;c<a.names.length;c++){var u=a.names[c];e.options=r.options[t.prepared.name][u],e.options&&(t.modifierOffsets[u]=a[u].setOffset(e))}},setAll:function(e){var t=e.interaction,n=e.statuses,r=e.preEnd,i=e.requireEndOnly,c={dx:0,dy:0,changed:!1,locked:!1,shouldMove:!0};e.modifiedCoords=o({},e.pageCoords);for(var u=0;u<a.names.length;u++){var l=a.names[u],f=a[l],d=t.target.options[t.prepared.name][l];s(d,r,i)&&(e.status=e.status=n[l],e.options=d,e.offset=e.interaction.modifierOffsets[l],f.set(e),e.status.locked&&(e.modifiedCoords.x+=e.status.dx,e.modifiedCoords.y+=e.status.dy,c.dx+=e.status.dx,c.dy+=e.status.dy,c.locked=!0))}return c.shouldMove=!e.status||!c.locked||e.status.changed,c},resetStatuses:function(e){for(var t=0;t<a.names.length;t++){var n=a.names[t],r=e[n]||{};r.dx=r.dy=0,r.modifiedX=r.modifiedY=NaN,r.locked=!1,r.changed=!0,e[n]=r}return e},start:function(e,t){var n=e.interaction,r={interaction:n,pageCoords:("action-resume"===t?n.curCoords:n.startCoords).page,startOffset:n.startOffset,statuses:n.modifierStatuses,preEnd:!1,requireEndOnly:!1};a.setOffsets(r),a.resetStatuses(r.statuses),r.pageCoords=o({},n.startCoords.page),n.modifierResult=a.setAll(r)},beforeMove:function(e){var t=e.interaction,n=e.preEnd,r=e.interactingBeforeMove,i=a.setAll({interaction:t,preEnd:n,pageCoords:t.curCoords.page,statuses:t.modifierStatuses,requireEndOnly:!1});!i.shouldMove&&r&&(t._dontFireMove=!0),t.modifierResult=i},end:function(e){for(var t=e.interaction,n=e.event,r=0;r<a.names.length;r++){var i=a.names[r],o=t.target.options[t.prepared.name][i];if(s(o,!0,!0)){t.doMove({event:n,preEnd:!0});break}}},setXY:function(e){for(var t=e.iEvent,n=e.interaction,r=o({},e),i=0;i<a.names.length;i++){var s=a.names[i];if(r.options=n.target.options[n.prepared.name][s],r.options){var c=a[s];r.status=n.modifierStatuses[s],t[s]=c.modifyCoords(r)}}}};function s(e,t,n){return e&&e.enabled&&(t||!e.endOnly)&&(!n||e.endOnly)}i.signals.on("new",function(e){e.startOffset={left:0,right:0,top:0,bottom:0},e.modifierOffsets={},e.modifierStatuses=a.resetStatuses({}),e.modifierResult=null}),i.signals.on("action-start",a.start),i.signals.on("action-resume",a.start),i.signals.on("before-action-move",a.beforeMove),i.signals.on("action-end",a.end),r.signals.on("set-xy",a.setXY),t.exports=a},{"../InteractEvent":3,"../Interaction":5,"../utils/extend":41}],24:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../defaultOptions"),a={defaults:{enabled:!1,endOnly:!1,restriction:null,elementRect:null},setOffset:function(e){var t=e.rect,n=e.startOffset,r=e.options,i=r&&r.elementRect,o={};return t&&i?(o.left=n.left-t.width*i.left,o.top=n.top-t.height*i.top,o.right=n.right-t.width*(1-i.right),o.bottom=n.bottom-t.height*(1-i.bottom)):o.left=o.top=o.right=o.bottom=0,o},set:function(e){var t=e.modifiedCoords,n=e.interaction,r=e.status,o=e.options;if(!o)return r;var a=r.useStatusXY?{x:r.x,y:r.y}:i.extend({},t),c=s(o.restriction,n,a);if(!c)return r;r.dx=0,r.dy=0,r.locked=!1;var u=c,l=a.x,f=a.y,d=n.modifierOffsets.restrict;"x"in c&&"y"in c?(l=Math.max(Math.min(u.x+u.width-d.right,a.x),u.x+d.left),f=Math.max(Math.min(u.y+u.height-d.bottom,a.y),u.y+d.top)):(l=Math.max(Math.min(u.right-d.right,a.x),u.left+d.left),f=Math.max(Math.min(u.bottom-d.bottom,a.y),u.top+d.top)),r.dx=l-a.x,r.dy=f-a.y,r.changed=r.modifiedX!==l||r.modifiedY!==f,r.locked=!(!r.dx&&!r.dy),r.modifiedX=l,r.modifiedY=f},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,i=e.phase,o=e.options,a=o&&o.elementRect;if(o&&o.enabled&&("start"!==i||!a||!r.locked)&&r.locked)return t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy,{dx:r.dx,dy:r.dy}},getRestrictionRect:s};function s(e,t,n){return i.is.function(e)?i.resolveRectLike(e,t.target,t.element,[n.x,n.y,t]):i.resolveRectLike(e,t.target,t.element)}r.restrict=a,r.names.push("restrict"),o.perAction.restrict=a.defaults,t.exports=a},{"../defaultOptions":18,"../utils":44,"./base":23}],25:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../utils/rect"),a=e("../defaultOptions"),s=e("../actions/resize"),c=e("./restrict"),u=c.getRestrictionRect,l={top:1/0,left:1/0,bottom:-1/0,right:-1/0},f={top:-1/0,left:-1/0,bottom:1/0,right:1/0},d={defaults:{enabled:!1,endOnly:!1,min:null,max:null,offset:null},setOffset:function(e){var t=e.interaction,n=e.startOffset,r=e.options;if(!r)return i.extend({},n);var o=u(r.offset,t,t.startCoords.page);return o?{top:n.top+o.y,left:n.left+o.x,bottom:n.bottom+o.y,right:n.right+o.x}:n},set:function(e){var t=e.modifiedCoords,n=e.interaction,r=e.status,a=e.offset,s=e.options,c=n.prepared.linkedEdges||n.prepared.edges;if(n.interacting()&&c){var d=r.useStatusXY?{x:r.x,y:r.y}:i.extend({},t),h=o.xywhToTlbr(u(s.inner,n,d))||l,p=o.xywhToTlbr(u(s.outer,n,d))||f,m=d.x,v=d.y;r.dx=0,r.dy=0,r.locked=!1,c.top?v=Math.min(Math.max(p.top+a.top,d.y),h.top+a.top):c.bottom&&(v=Math.max(Math.min(p.bottom-a.bottom,d.y),h.bottom-a.bottom)),c.left?m=Math.min(Math.max(p.left+a.left,d.x),h.left+a.left):c.right&&(m=Math.max(Math.min(p.right-a.right,d.x),h.right-a.right)),r.dx=m-d.x,r.dy=v-d.y,r.changed=r.modifiedX!==m||r.modifiedY!==v,r.locked=!(!r.dx&&!r.dy),r.modifiedX=m,r.modifiedY=v}},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,i=e.phase,o=e.options;if(o&&o.enabled&&("start"!==i||!r.locked)&&r.locked)return t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy,{dx:r.dx,dy:r.dy}},noInner:l,noOuter:f,getRestrictionRect:u};r.restrictEdges=d,r.names.push("restrictEdges"),a.perAction.restrictEdges=d.defaults,s.defaults.restrictEdges=d.defaults,t.exports=d},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrict":24}],26:[function(e,t,n){"use strict";var r=e("./base"),i=e("./restrictEdges"),o=e("../utils"),a=e("../utils/rect"),s=e("../defaultOptions"),c=e("../actions/resize"),u={width:-1/0,height:-1/0},l={width:1/0,height:1/0},f={defaults:{enabled:!1,endOnly:!1,min:null,max:null},setOffset:function(e){var t=e.interaction;return t.startOffset},set:function(e){var t=e.interaction,n=e.options,r=t.prepared.linkedEdges||t.prepared.edges;if(t.interacting()&&r){var s=a.xywhToTlbr(t.resizeRects.inverted),c=a.tlbrToXywh(i.getRestrictionRect(n.min,t))||u,f=a.tlbrToXywh(i.getRestrictionRect(n.max,t))||l;e.options={enabled:n.enabled,endOnly:n.endOnly,inner:o.extend({},i.noInner),outer:o.extend({},i.noOuter)},r.top?(e.options.inner.top=s.bottom-c.height,e.options.outer.top=s.bottom-f.height):r.bottom&&(e.options.inner.bottom=s.top+c.height,e.options.outer.bottom=s.top+f.height),r.left?(e.options.inner.left=s.right-c.width,e.options.outer.left=s.right-f.width):r.right&&(e.options.inner.right=s.left+c.width,e.options.outer.right=s.left+f.width),i.set(e)}},modifyCoords:i.modifyCoords};r.restrictSize=f,r.names.push("restrictSize"),s.perAction.restrictSize=f.defaults,c.defaults.restrictSize=f.defaults,t.exports=f},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrictEdges":25}],27:[function(e,t,n){"use strict";var r=e("./base"),i=e("../interact"),o=e("../utils"),a=e("../defaultOptions"),s={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null,relativePoints:null},setOffset:function(e){var t=e.interaction,n=e.interactable,r=e.element,i=e.rect,a=e.startOffset,s=e.options,c=[],u=o.rectToXY(o.resolveRectLike(s.origin)),l=u||o.getOriginXY(n,r,t.prepared.name);s=s||n.options[t.prepared.name].snap||{};var f=void 0;if("startCoords"===s.offset)f={x:t.startCoords.page.x-l.x,y:t.startCoords.page.y-l.y};else{var d=o.resolveRectLike(s.offset,n,r,[t]);f=o.rectToXY(d)||{x:0,y:0}}if(i&&s.relativePoints&&s.relativePoints.length)for(var h=0;h<s.relativePoints.length;h++){var p=s.relativePoints[h],m=p.x,v=p.y;c.push({x:a.left-i.width*m+f.x,y:a.top-i.height*v+f.y})}else c.push(f);return c},set:function(e){var t=e.interaction,n=e.modifiedCoords,r=e.status,i=e.options,a=e.offset,s=[],c=void 0,u=void 0,l=void 0;if(r.useStatusXY)u={x:r.x,y:r.y};else{var f=o.getOriginXY(t.target,t.element,t.prepared.name);(u=o.extend({},n)).x-=f.x,u.y-=f.y}r.realX=u.x,r.realY=u.y;for(var d=i.targets?i.targets.length:0,h=0;h<a.length;h++)for(var p=a[h],m=p.x,v=p.y,g=u.x-m,y=u.y-v,b=0;b<(i.targets||[]).length;b++){var _=(i.targets||[])[b];(c=o.is.function(_)?_(g,y,t):_)&&s.push({x:o.is.number(c.x)?c.x+m:g,y:o.is.number(c.y)?c.y+v:y,range:o.is.number(c.range)?c.range:i.range})}var w={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0};for(l=0,d=s.length;l<d;l++){var x=(c=s[l]).range,k=c.x-u.x,E=c.y-u.y,S=o.hypot(k,E),T=S<=x;x===1/0&&w.inRange&&w.range!==1/0&&(T=!1),w.target&&!(T?w.inRange&&x!==1/0?S/x<w.distance/w.range:x===1/0&&w.range!==1/0||S<w.distance:!w.inRange&&S<w.distance)||(w.target=c,w.distance=S,w.range=x,w.inRange=T,w.dx=k,w.dy=E,r.range=x)}var O=void 0;w.target?(O=r.modifiedX!==w.target.x||r.modifiedY!==w.target.y,r.modifiedX=w.target.x,r.modifiedY=w.target.y):(O=!0,r.modifiedX=NaN,r.modifiedY=NaN),r.dx=w.dx,r.dy=w.dy,r.changed=O||w.inRange&&!r.locked,r.locked=w.inRange},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,i=e.phase,o=e.options,a=o&&o.relativePoints;if(o&&o.enabled&&("start"!==i||!a||!a.length))return r.locked&&(t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy),{range:r.range,locked:r.locked,x:r.modifiedX,y:r.modifiedY,realX:r.realX,realY:r.realY,dx:r.dx,dy:r.dy}}};i.createSnapGrid=function(e){return function(t,n){var r=e.limits||{left:-1/0,right:1/0,top:-1/0,bottom:1/0},i=0,a=0;o.is.object(e.offset)&&(i=e.offset.x,a=e.offset.y);var s=Math.round((t-i)/e.x),c=Math.round((n-a)/e.y),u=Math.max(r.left,Math.min(r.right,s*e.x+i)),l=Math.max(r.top,Math.min(r.bottom,c*e.y+a));return{x:u,y:l,range:e.range}}},r.snap=s,r.names.push("snap"),a.perAction.snap=s.defaults,t.exports=s},{"../defaultOptions":18,"../interact":21,"../utils":44,"./base":23}],28:[function(e,t,n){"use strict";var r=e("./base"),i=e("./snap"),o=e("../defaultOptions"),a=e("../actions/resize"),s=e("../utils/"),c={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null},setOffset:function(e){var t=e.interaction,n=e.options,r=t.prepared.edges;if(r){e.options={relativePoints:[{x:r.left?0:1,y:r.top?0:1}],origin:{x:0,y:0},offset:"self",range:n.range};var o=i.setOffset(e);return e.options=n,o}},set:function(e){var t=e.interaction,n=e.options,r=e.offset,o=e.modifiedCoords,a=s.extend({},o),c=a.x-r[0].x,u=a.y-r[0].y;e.options=s.extend({},n),e.options.targets=[];for(var l=0;l<(n.targets||[]).length;l++){var f=(n.targets||[])[l],d=void 0;(d=s.is.function(f)?f(c,u,t):f)&&("width"in d&&"height"in d&&(d.x=d.width,d.y=d.height),e.options.targets.push(d))}i.set(e)},modifyCoords:function(e){var t=e.options;e.options=s.extend({},t),e.options.enabled=t.enabled,e.options.relativePoints=[null],i.modifyCoords(e)}};r.snapSize=c,r.names.push("snapSize"),o.perAction.snapSize=c.defaults,a.defaults.snapSize=c.defaults,t.exports=c},{"../actions/resize":10,"../defaultOptions":18,"../utils/":44,"./base":23,"./snap":27}],29:[function(e,t,n){"use strict";var r=e("../utils/pointerUtils");t.exports=function(){function e(t,n,i,o,a){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.pointerExtend(this,i),i!==n&&r.pointerExtend(this,n),this.interaction=a,this.timeStamp=(new Date).getTime(),this.originalEvent=i,this.type=t,this.pointerId=r.getPointerId(n),this.pointerType=r.getPointerType(n),this.target=o,this.currentTarget=null,"tap"===t){var s=a.getPointerIndex(n);this.dt=this.timeStamp-a.downTimes[s];var c=this.timeStamp-a.tapTime;this.double=!!(a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===this.target&&c<500)}else"doubletap"===t&&(this.dt=n.timeStamp-a.tapTime)}return e.prototype.subtractOrigin=function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this},e.prototype.addOrigin=function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this},e.prototype.preventDefault=function(){this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e}()},{"../utils/pointerUtils":49}],30:[function(e,t,n){"use strict";var r=e("./PointerEvent"),i=e("../Interaction"),o=e("../utils"),a=e("../defaultOptions"),s=e("../utils/Signals").new(),c=["down","up","cancel"],u=["down","up","cancel"],l={PointerEvent:r,fire:f,collectEventTargets:d,signals:s,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up","cancel","tap","doubletap","hold"]};function f(e){for(var t=e.interaction,n=e.pointer,i=e.event,a=e.eventTarget,c=e.type,u=void 0===c?e.pointerEvent.type:c,l=e.targets,h=void 0===l?d(e):l,p=e.pointerEvent,m=void 0===p?new r(u,n,i,a,t):p,v={interaction:t,pointer:n,event:i,eventTarget:a,targets:h,type:u,pointerEvent:m},g=0;g<h.length;g++){var y=h[g];for(var b in y.props||{})m[b]=y.props[b];var _=o.getOriginXY(y.eventable,y.element);if(m.subtractOrigin(_),m.eventable=y.eventable,m.currentTarget=y.element,y.eventable.fire(m),m.addOrigin(_),m.immediatePropagationStopped||m.propagationStopped&&g+1<h.length&&h[g+1].element!==m.currentTarget)break}if(s.fire("fired",v),"tap"===u){var w=m.double?f({interaction:t,pointer:n,event:i,eventTarget:a,type:"doubletap"}):m;t.prevTap=w,t.tapTime=w.timeStamp}return m}function d(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget,a=e.type,c=t.getPointerIndex(n);if("tap"===a&&(t.pointerWasMoved||!t.downTargets[c]||t.downTargets[c]!==i))return[];for(var u=o.getPath(i),l={interaction:t,pointer:n,event:r,eventTarget:i,type:a,path:u,targets:[],element:null},f=0;f<u.length;f++){var d=u[f];l.element=d,s.fire("collect-targets",l)}return"hold"===a&&(l.targets=l.targets.filter(function(e){return e.eventable.options.holdDuration===t.holdTimers[c].duration})),l.targets}i.signals.on("update-pointer-down",function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers[n]={duration:1/0,timeout:null}}),i.signals.on("remove-pointer",function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers.splice(n,1)}),i.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget,o=e.duplicateMove,a=t.getPointerIndex(n);o||t.pointerIsDown&&!t.pointerWasMoved||(t.pointerIsDown&&clearTimeout(t.holdTimers[a].timeout),f({interaction:t,pointer:n,event:r,eventTarget:i,type:"move"}))}),i.signals.on("down",function(e){for(var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget,a=e.pointerIndex,c=t.holdTimers[a],u=o.getPath(i),l={interaction:t,pointer:n,event:r,eventTarget:i,type:"hold",targets:[],path:u,element:null},d=0;d<u.length;d++){var h=u[d];l.element=h,s.fire("collect-targets",l)}if(l.targets.length){for(var p=1/0,m=0;m<l.targets.length;m++){var v=l.targets[m],g=v.eventable.options.holdDuration;g<p&&(p=g)}c.duration=p,c.timeout=setTimeout(function(){f({interaction:t,eventTarget:i,pointer:n,event:r,type:"hold"})},p)}}),i.signals.on("up",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;t.pointerWasMoved||f({interaction:t,eventTarget:i,pointer:n,event:r,type:"tap"})});for(var h=["up","cancel"],p=0;p<h.length;p++){var m=h[p];i.signals.on(m,function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers[n]&&clearTimeout(t.holdTimers[n].timeout)})}function v(e){return function(t){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;f({interaction:n,eventTarget:o,pointer:r,event:i,type:e})}}for(var g=0;g<c.length;g++)i.signals.on(c[g],v(u[g]));i.signals.on("new",function(e){e.prevTap=null,e.tapTime=0,e.holdTimers=[]}),a.pointerEvents=l.defaults,t.exports=l},{"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/Signals":34,"./PointerEvent":29}],31:[function(e,t,n){"use strict";var r=e("./base"),i=e("../Interaction");r.signals.on("new",c),r.signals.on("fired",u);for(var o=["move","up","cancel","endall"],a=0;a<o.length;a++){var s=o[a];i.signals.on(s,l)}function c(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)}function u(e){var t=e.interaction,n=e.pointerEvent,i=e.eventTarget,o=e.targets;if("hold"===n.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(t.holdIntervalHandle=setTimeout(function(){r.fire({interaction:t,eventTarget:i,type:"hold",pointer:n,event:n})},a))}}function l(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}r.defaults.holdRepeatInterval=0,r.types.push("holdrepeat"),t.exports={onNew:c,onFired:u,endHoldRepeat:l}},{"../Interaction":5,"./base":30}],32:[function(e,t,n){"use strict";var r=e("./base"),i=e("../Interactable"),o=e("../utils/is"),a=e("../scope"),s=e("../utils/extend"),c=e("../utils/arr"),u=c.merge;r.signals.on("collect-targets",function(e){var t=e.targets,n=e.element,r=e.type,i=e.eventTarget;a.interactables.forEachMatch(n,function(e){var a=e.events,s=a.options;a[r]&&o.element(n)&&e.testIgnoreAllow(s,n,i)&&t.push({element:n,eventable:a,props:{interactable:e}})})}),i.signals.on("new",function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}}),i.signals.on("set",function(e){var t=e.interactable,n=e.options;s(t.events.options,r.defaults),s(t.events.options,n)}),u(i.eventTypes,r.types),i.prototype.pointerEvents=function(e){return s(this.events.options,e),this};var l=i.prototype._backCompatOption;i.prototype._backCompatOption=function(e,t){var n=l.call(this,e,t);return n===this&&(this.events.options[e]=t),n},i.settingsMethods.push("pointerEvents")},{"../Interactable":4,"../scope":33,"../utils/arr":35,"../utils/extend":41,"../utils/is":46,"./base":30}],33:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./utils/events"),o=e("./utils/Signals").new(),a=e("./utils/window"),s=a.getWindow,c={signals:o,events:i,utils:r,document:e("./utils/domObjects").document,documents:[],addDocument:function(e,t){if(r.contains(c.documents,e))return!1;t=t||s(e),c.documents.push(e),i.documents.push(e),e!==c.document&&i.add(t,"unload",c.onWindowUnload),o.fire("add-document",{doc:e,win:t})},removeDocument:function(e,t){var n=c.documents.indexOf(e);t=t||s(e),i.remove(t,"unload",c.onWindowUnload),c.documents.splice(n,1),i.documents.splice(n,1),o.fire("remove-document",{win:t,doc:e})},onWindowUnload:function(){c.removeDocument(this.document,this)}};t.exports=c},{"./utils":44,"./utils/Signals":34,"./utils/domObjects":38,"./utils/events":40,"./utils/window":52}],34:[function(e,t,n){"use strict";var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.off=function(e,t){if(this.listeners[e]){var n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}},e.prototype.fire=function(e,t){var n=this.listeners[e];if(n)for(var r=0;r<n.length;r++){var i=n[r];if(!1===i(t,e))return}},e}();r.new=function(){return new r},t.exports=r},{}],35:[function(e,t,n){"use strict";t.exports={contains:function(e,t){return-1!==e.indexOf(t)},merge:function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}}},{}],36:[function(e,t,n){"use strict";var r=e("./window"),i=r.window,o=e("./is"),a=e("./domObjects"),s=a.Element,c=i.navigator,u={supportsTouch:!!("ontouchstart"in i||o.function(i.DocumentTouch)&&a.document instanceof i.DocumentTouch),supportsPointerEvent:!!a.PointerEvent,isIOS:/iP(hone|od|ad)/.test(c.platform),isIOS7:/iP(hone|od|ad)/.test(c.platform)&&/OS 7[^\d]/.test(c.appVersion),isIe9:/MSIE 9/.test(c.userAgent),prefixedMatchesSelector:"matches"in s.prototype?"matches":"webkitMatchesSelector"in s.prototype?"webkitMatchesSelector":"mozMatchesSelector"in s.prototype?"mozMatchesSelector":"oMatchesSelector"in s.prototype?"oMatchesSelector":"msMatchesSelector",pEventTypes:a.PointerEvent?a.PointerEvent===i.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,wheelEvent:"onmousewheel"in a.document?"mousewheel":"wheel"};u.isOperaMobile="Opera"===c.appName&&u.supportsTouch&&c.userAgent.match("Presto"),t.exports=u},{"./domObjects":38,"./is":46,"./window":52}],37:[function(e,t,n){"use strict";var r=e("./is");t.exports=function e(t){var n={};for(var i in t)r.plainObject(t[i])?n[i]=e(t[i]):n[i]=t[i];return n}},{"./is":46}],38:[function(e,t,n){"use strict";var r={},i=e("./window").window;function o(){}r.document=i.document,r.DocumentFragment=i.DocumentFragment||o,r.SVGElement=i.SVGElement||o,r.SVGSVGElement=i.SVGSVGElement||o,r.SVGElementInstance=i.SVGElementInstance||o,r.Element=i.Element||o,r.HTMLElement=i.HTMLElement||r.Element,r.Event=i.Event,r.Touch=i.Touch||o,r.PointerEvent=i.PointerEvent||i.MSPointerEvent,t.exports=r},{"./window":52}],39:[function(e,t,n){"use strict";var r=e("./window"),i=e("./browser"),o=e("./is"),a=e("./domObjects"),s={nodeContains:function(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1},closest:function(e,t){for(;o.element(e);){if(s.matchesSelector(e,t))return e;e=s.parentNode(e)}return null},parentNode:function(e){var t=e.parentNode;if(o.docFrag(t)){for(;(t=t.host)&&o.docFrag(t););return t}return t},matchesSelector:function(e,t){return r.window!==r.realWindow&&(t=t.replace(/\/deep\//g," ")),e[i.prefixedMatchesSelector](t)},indexOfDeepestElement:function(e){var t=[],n=[],r=void 0,i=e[0],o=i?0:-1,s=void 0,c=void 0,u=void 0,l=void 0;for(u=1;u<e.length;u++)if((r=e[u])&&r!==i)if(i){if(r.parentNode!==r.ownerDocument)if(i.parentNode!==r.ownerDocument){if(!t.length)for(s=i;s.parentNode&&s.parentNode!==s.ownerDocument;)t.unshift(s),s=s.parentNode;if(i instanceof a.HTMLElement&&r instanceof a.SVGElement&&!(r instanceof a.SVGSVGElement)){if(r===i.parentNode)continue;s=r.ownerSVGElement}else s=r;for(n=[];s.parentNode!==s.ownerDocument;)n.unshift(s),s=s.parentNode;for(l=0;n[l]&&n[l]===t[l];)l++;var f=[n[l-1],n[l],t[l]];for(c=f[0].lastChild;c;){if(c===f[1]){i=r,o=u,t=[];break}if(c===f[2])break;c=c.previousSibling}}else i=r,o=u}else i=r,o=u;return o},matchesUpTo:function(e,t,n){for(;o.element(e);){if(s.matchesSelector(e,t))return!0;if((e=s.parentNode(e))===n)return s.matchesSelector(e,t)}return!1},getActualElement:function(e){return e instanceof a.SVGElementInstance?e.correspondingUseElement:e},getScrollXY:function(e){return{x:(e=e||r.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}},getElementClientRect:function(e){var t=e instanceof a.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}},getElementRect:function(e){var t=s.getElementClientRect(e);if(!i.isIOS7&&t){var n=s.getScrollXY(r.getWindow(e));t.left+=n.x,t.right+=n.x,t.top+=n.y,t.bottom+=n.y}return t},getPath:function(e){for(var t=[];e;)t.push(e),e=s.parentNode(e);return t},trySelector:function(e){return!!o.string(e)&&(a.document.querySelector(e),!0)}};t.exports=s},{"./browser":36,"./domObjects":38,"./is":46,"./window":52}],40:[function(e,t,n){"use strict";var r,i=e("./is"),o=e("./domUtils"),a=e("./pointerUtils"),s=e("./pointerExtend"),c=e("./window"),u=c.window,l=e("./arr"),f=l.contains,d=[],h=[],p={},m=[],v=(r=!1,u.document.createElement("div").addEventListener("test",null,{get capture(){r=!0}}),r);function g(e,t,n,r){var i=x(r),o=d.indexOf(e),a=h[o];a||(a={events:{},typeCount:0},o=d.push(e)-1,h.push(a)),a.events[t]||(a.events[t]=[],a.typeCount++),f(a.events[t],n)||(e.addEventListener(t,n,v?i:!!i.capture),a.events[t].push(n))}function y(e,t,n,r){var i=x(r),o=d.indexOf(e),a=h[o];if(a&&a.events)if("all"!==t){if(a.events[t]){var s=a.events[t].length;if("all"===n){for(var c=0;c<s;c++)y(e,t,a.events[t][c],i);return}for(var u=0;u<s;u++)if(a.events[t][u]===n){e.removeEventListener("on"+t,n,v?i:!!i.capture),a.events[t].splice(u,1);break}a.events[t]&&0===a.events[t].length&&(a.events[t]=null,a.typeCount--)}a.typeCount||(h.splice(o,1),d.splice(o,1))}else for(t in a.events)a.events.hasOwnProperty(t)&&y(e,t,"all")}function b(e,t){var n=x(t),r={},c=p[e.type],u=a.getEventTargets(e),l=u[0],f=l;for(s(r,e),r.originalEvent=e,r.preventDefault=w;i.element(f);){for(var d=0;d<c.selectors.length;d++){var h=c.selectors[d],m=c.contexts[d];if(o.matchesSelector(f,h)&&o.nodeContains(m,l)&&o.nodeContains(m,f)){var v=c.listeners[d];r.currentTarget=f;for(var g=0;g<v.length;g++){var y=v[g],b=y[0],_=y[1],k=y[2];_===!!n.capture&&k===n.passive&&b(r)}}}f=o.parentNode(f)}}function _(e){return b.call(this,e,!0)}function w(){this.originalEvent.preventDefault()}function x(e){return i.object(e)?e:{capture:e}}t.exports={add:g,remove:y,addDelegate:function(e,t,n,r,i){var o=x(i);if(!p[n]){p[n]={selectors:[],contexts:[],listeners:[]};for(var a=0;a<m.length;a++){var s=m[a];g(s,n,b),g(s,n,_,!0)}}var c=p[n],u=void 0;for(u=c.selectors.length-1;u>=0&&(c.selectors[u]!==e||c.contexts[u]!==t);u--);-1===u&&(u=c.selectors.length,c.selectors.push(e),c.contexts.push(t),c.listeners.push([])),c.listeners[u].push([r,!!o.capture,o.passive])},removeDelegate:function(e,t,n,r,i){var o=x(i),a=p[n],s=!1,c=void 0;if(a)for(c=a.selectors.length-1;c>=0;c--)if(a.selectors[c]===e&&a.contexts[c]===t){for(var u=a.listeners[c],l=u.length-1;l>=0;l--){var f=u[l],d=f[0],h=f[1],m=f[2];if(d===r&&h===!!o.capture&&m===o.passive){u.splice(l,1),u.length||(a.selectors.splice(c,1),a.contexts.splice(c,1),a.listeners.splice(c,1),y(t,n,b),y(t,n,_,!0),a.selectors.length||(p[n]=null)),s=!0;break}}if(s)break}},delegateListener:b,delegateUseCapture:_,delegatedEvents:p,documents:m,supportsOptions:v,_elements:d,_targets:h}},{"./arr":35,"./domUtils":39,"./is":46,"./pointerExtend":48,"./pointerUtils":49,"./window":52}],41:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n in t)e[n]=t[n];return e}},{}],42:[function(e,t,n){"use strict";var r=e("./rect"),i=r.resolveRectLike,o=r.rectToXY;t.exports=function(e,t,n){var r=e.options[n],a=r&&r.origin,s=a||e.options.origin,c=i(s,e,t,[e&&t]);return o(c)||{x:0,y:0}}},{"./rect":51}],43:[function(e,t,n){"use strict";t.exports=function(e,t){return Math.sqrt(e*e+t*t)}},{}],44:[function(e,t,n){"use strict";var r=e("./extend"),i=e("./window"),o={warnOnce:function(e,t){var n=!1;return function(){return n||(i.window.console.warn(t),n=!0),e.apply(this,arguments)}},_getQBezierValue:function(e,t,n,r){var i=1-e;return i*i*t+2*i*e*n+e*e*r},getQuadraticCurvePoint:function(e,t,n,r,i,a,s){return{x:o._getQBezierValue(s,e,n,i),y:o._getQBezierValue(s,t,r,a)}},easeOutQuad:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},copyAction:function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},is:e("./is"),extend:r,hypot:e("./hypot"),getOriginXY:e("./getOriginXY")};r(o,e("./arr")),r(o,e("./domUtils")),r(o,e("./pointerUtils")),r(o,e("./rect")),t.exports=o},{"./arr":35,"./domUtils":39,"./extend":41,"./getOriginXY":42,"./hypot":43,"./is":46,"./pointerUtils":49,"./rect":51,"./window":52}],45:[function(e,t,n){"use strict";var r=e("../scope"),i=e("./index"),o={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e,t,n){for(var r=i.getPointerType(e),a=i.getPointerId(e),s={pointer:e,pointerId:a,pointerType:r,eventType:t,eventTarget:n},c=0;c<o.methodOrder.length;c++){var u=o.methodOrder[c],l=o[u](s);if(l)return l}},simulationResume:function(e){var t=e.pointerType,n=e.eventType,o=e.eventTarget;if(!/down|start/i.test(n))return null;for(var a=0;a<r.interactions.length;a++){var s=r.interactions[a],c=o;if(s.simulation&&s.simulation.allowResume&&s.pointerType===t)for(;c;){if(c===s.element)return s;c=i.parentNode(c)}}return null},mouseOrPen:function(e){var t=e.pointerId,n=e.pointerType,o=e.eventType;if("mouse"!==n&&"pen"!==n)return null;for(var a=void 0,s=0;s<r.interactions.length;s++){var c=r.interactions[s];if(c.pointerType===n){if(c.simulation&&!i.contains(c.pointerIds,t))continue;if(c.interacting())return c;a||(a=c)}}if(a)return a;for(var u=0;u<r.interactions.length;u++){var l=r.interactions[u];if(!(l.pointerType!==n||/down/i.test(o)&&l.simulation))return l}return null},hasPointer:function(e){for(var t=e.pointerId,n=0;n<r.interactions.length;n++){var o=r.interactions[n];if(i.contains(o.pointerIds,t))return o}},idle:function(e){for(var t=e.pointerType,n=0;n<r.interactions.length;n++){var i=r.interactions[n];if(1===i.pointerIds.length){var o=i.target;if(o&&!o.options.gesture.enabled)continue}else if(i.pointerIds.length>=2)continue;if(!i.interacting()&&t===i.pointerType)return i}return null}};t.exports=o},{"../scope":33,"./index":44}],46:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e("./window"),o=e("./isWindow"),a={array:function(){},window:function(e){return e===i.window||o(e)},docFrag:function(e){return a.object(e)&&11===e.nodeType},object:function(e){return!!e&&"object"===(void 0===e?"undefined":r(e))},function:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==(void 0===e?"undefined":r(e)))return!1;var t=i.getWindow(e)||i.window;return/object|function/.test(r(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return a.object(e)&&"Object"===e.constructor.name}};a.array=function(e){return a.object(e)&&void 0!==e.length&&a.function(e.splice)},t.exports=a},{"./isWindow":47,"./window":52}],47:[function(e,t,n){"use strict";t.exports=function(e){return!(!e||!e.Window)&&e instanceof e.Window}},{}],48:[function(e,t,n){"use strict";function r(e,n){for(var r in n){var i=t.exports.prefixedPropREs,o=!1;for(var a in i)if(0===r.indexOf(a)&&i[a].test(r)){o=!0;break}o||"function"==typeof n[r]||(e[r]=n[r])}return e}r.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/},t.exports=r},{}],49:[function(e,t,n){"use strict";var r=e("./hypot"),i=e("./browser"),o=e("./domObjects"),a=e("./domUtils"),s=e("./domObjects"),c=e("./is"),u=e("./pointerExtend"),l={copyCoords:function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},setCoordDeltas:function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp;var i=Math.max(e.timeStamp/1e3,.001);e.page.speed=r(e.page.x,e.page.y)/i,e.page.vx=e.page.x/i,e.page.vy=e.page.y/i,e.client.speed=r(e.client.x,e.page.y)/i,e.client.vx=e.client.x/i,e.client.vy=e.client.y/i},isNativePointer:function(e){return e instanceof o.Event||e instanceof o.Touch},getXY:function(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n},getPageXY:function(e,t){return t=t||{},i.isOperaMobile&&l.isNativePointer(e)?(l.getXY("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):l.getXY("page",e,t),t},getClientXY:function(e,t){return t=t||{},i.isOperaMobile&&l.isNativePointer(e)?l.getXY("screen",e,t):l.getXY("client",e,t),t},getPointerId:function(e){return c.number(e.pointerId)?e.pointerId:e.identifier},setCoords:function(e,t,n){var r=t.length>1?l.pointerAverage(t):t[0],i={};l.getPageXY(r,i),e.page.x=i.x,e.page.y=i.y,l.getClientXY(r,i),e.client.x=i.x,e.client.y=i.y,e.timeStamp=c.number(n)?n:(new Date).getTime()},pointerExtend:u,getTouchPair:function(e){var t=[];return c.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t},pointerAverage:function(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var i in t)t[i]+=r[i]}for(var o in t)t[o]/=e.length;return t},touchBBox:function(e){if(e.length||e.touches&&e.touches.length>1){var t=l.getTouchPair(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),i=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,width:i-n,height:o-r}}},touchDistance:function(e,t){var n=t+"X",i=t+"Y",o=l.getTouchPair(e),a=o[0][n]-o[1][n],s=o[0][i]-o[1][i];return r(a,s)},touchAngle:function(e,t,n){var r=n+"X",i=n+"Y",o=l.getTouchPair(e),a=o[1][r]-o[0][r],s=o[1][i]-o[0][i],c=180*Math.atan2(s,a)/Math.PI;return c},getPointerType:function(e){return c.string(e.pointerType)?e.pointerType:c.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof s.Touch?"touch":"mouse"},getEventTargets:function(e){var t=c.function(e.composedPath)?e.composedPath():e.path;return[a.getActualElement(t?t[0]:e.target),a.getActualElement(e.currentTarget)]}};t.exports=l},{"./browser":36,"./domObjects":38,"./domUtils":39,"./hypot":43,"./is":46,"./pointerExtend":48}],50:[function(e,t,n){"use strict";for(var r=e("./window"),i=r.window,o=["ms","moz","webkit","o"],a=0,s=void 0,c=void 0,u=0;u<o.length&&!i.requestAnimationFrame;u++)s=i[o[u]+"RequestAnimationFrame"],c=i[o[u]+"CancelAnimationFrame"]||i[o[u]+"CancelRequestAnimationFrame"];s||(s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(function(){e(t+n)},n);return a=t+n,r}),c||(c=function(e){clearTimeout(e)}),t.exports={request:s,cancel:c}},{"./window":52}],51:[function(e,t,n){"use strict";var r=e("./extend"),i=e("./is"),o=e("./domUtils"),a=o.closest,s=o.parentNode,c=o.getElementRect,u={getStringOptionResult:function(e,t,n){return i.string(e)?e="parent"===e?s(n):"self"===e?t.getRect(n):a(n,e):null},resolveRectLike:function(e,t,n,r){return e=u.getStringOptionResult(e,t,n)||e,i.function(e)&&(e=e.apply(null,r)),i.element(e)&&(e=c(e)),e},rectToXY:function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},xywhToTlbr:function(e){return!e||"left"in e&&"top"in e||((e=r({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e},tlbrToXywh:function(e){return!e||"x"in e&&"y"in e||((e=r({},e)).x=e.left||0,e.top=e.top||0,e.width=e.width||e.right-e.x,e.height=e.height||e.bottom-e.y),e}};t.exports=u},{"./domUtils":39,"./extend":41,"./is":46}],52:[function(e,t,n){"use strict";var r=t.exports,i=e("./isWindow");function o(e){r.realWindow=e;var t=e.document.createTextNode("");t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t&&(e=e.wrap(e)),r.window=e}"undefined"==typeof window?(r.window=void 0,r.realWindow=void 0):o(window),r.getWindow=function(e){if(i(e))return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r.window},r.init=o},{"./isWindow":47}]},{},[1])(1)},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(8),i=n.n(r),o=n(31),a=n.n(o),s=n(110),c=n.n(s),u=c()(function(e){return e.preventDefault()}),l=c()(function(e){return e.stopPropagation()}),f=i()(l,u);a()(["target","value"])},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return Ce});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(12),x=n(9),k=n(10),E=n(7),S=n(11),T=n(14),O=n(6),C=n(4),j=n.n(C),A=n(33),M=n.n(A),P=n(540),N=n.n(P),I=n(16),L=n.n(I),D=(n(1952),n(91)),R=n(167),B=n.n(R),F=n(17),U=n.n(F),q=n(190),z=n.n(q),H=n(2),W=n.n(H),V=n(39),Y=n.n(V),G=n(38),K=n.n(G),$=n(55),X=n.n($),Q=n(69),Z=n.n(Q),J=n(48),ee=n.n(J),te=n(32),ne=n.n(te),re=n(260),ie=n.n(re),oe=n(29),ae=n.n(oe),se=n(343),ce=n.n(se),ue=n(19),le=n.n(ue),fe=n(1),de=n.n(fe),he=n(182),pe=n.n(he),me=n(71),ve=n.n(me),ge=n(150),ye=n.n(ge),be=n(558),_e=n(1144),we=n(85),xe=n(709),ke=n(542);function Ee(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=Ee(Object(r),!0)).call(n,function(t){Object(w.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=Ee(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}function Te(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(O.a)(e);if(t){var o=Object(O.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(T.a)(this,n)}}var Oe=function(t){Object(S.a)(r,t);var n=Te(r);function r(e){var t,i,o,a,s,c,u,l,f,d;return Object(x.a)(this,r),(d=n.call(this,e)).state={arrow:{absolute:null,bottom:null,fixed:null,hidden:"prev",opacity:null,top:null},initiating:!0,scroll:{active:!1,auto:!1,end:!1},position:{next:null,prev:null},sidebar:null,slide:{active:!1,current:0,fade:!1,previous:null},style:null,width:{card:null,wrapper:null}},d.handleIntersect=j()(t=d.handleIntersect).call(t,Object(E.a)(d)),d.handleRestart=j()(i=d.handleRestart).call(i,Object(E.a)(d)),d.handleScroll=j()(o=d.handleScroll).call(o,Object(E.a)(d)),d.renderStep=j()(a=d.renderStep).call(a,Object(E.a)(d)),d.setArrows=j()(s=d.setArrows).call(s,Object(E.a)(d)),d.setHeight=j()(c=d.setHeight).call(c,Object(E.a)(d)),d.setPosition=j()(u=d.setPosition).call(u,Object(E.a)(d)),d.setWidth=j()(l=d.setWidth).call(l,Object(E.a)(d)),d.slideTo=j()(f=d.slideTo).call(f,Object(E.a)(d)),d.observer=new IntersectionObserver(d.handleIntersect,{rootMargin:"10000px"}),d}return Object(k.a)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props.isPreview,n=document.getElementsByClassName("page-wrap")[0];this.container=t?n:window,this.initRef=M()(function(){return e.setState({initiating:!1})},1e3),this.scrollRef=ye()(this.handleScroll,10),window.addEventListener("resize",this.setPosition),this.container.addEventListener("scroll",this.scrollRef),M()(this.setPosition,0),M()(this.handleScroll,0),this.observer.observe(this.inner)}},{key:"componentDidUpdate",value:function(e){this.props.menuOpen!==e.menuOpen&&(this.resizeRef=M()(this.setPosition,300))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.initRef),clearTimeout(this.resizeRef),clearTimeout(this.slideRef),clearTimeout(this.afterSlideRef),clearTimeout(this.arrowAnimRef),window.removeEventListener("resize",this.setPosition),this.container.removeEventListener("scroll",this.scrollRef),this.observer.disconnect()}},{key:"handleIntersect",value:function(e){N()(e).call(e,function(e){return e.intersectionRatio>0})&&this.setPosition()}},{key:"handleRestart",value:function(){var e=this,t=this.props,n=t.getScrollTop,r=t.steps,i=n(),o=Object(D.findDOMNode)(this.refs["slide-0"]).offsetHeight,a=this.container===window?"body, html":this.container,s=ae()(this.state.arrow,{hidden:"prev"}),c=ae()(this.state.scroll),u={active:!1,auto:!1,end:!1},l=ae()(this.state.slide,{fade:!0}),f={active:!1,current:0,fade:!0,previous:r.length-1},d=ae()(f,{fade:!1}),h=function(){e.setState({scroll:u,slide:f}),e.afterSlideRef=M()(e.setArrows,300)};this.setState({scroll:c({auto:!0}),slide:l,style:{height:o}},function(){B()(a).stop().animate({scrollTop:i},300,h)}),this.slideRef=M()(function(){return e.setState({slide:d})},700),this.arrowAnimRef=M()(function(){return e.setState({arrow:s})},300)}},{key:"handleScroll",value:function(){var e=this.state,t=e.arrow,n=e.scroll,r=e.slide.current,i="prev"===t.hidden?"next":"prev",o=Object(D.findDOMNode)(this.refs["slide-".concat(r)]),a=Object(D.findDOMNode)(this.refs["arrow-".concat(i)]),s=a&&a.firstChild||null;if(!n.auto&&o&&s){var c=o.getBoundingClientRect(),u=c.height,l=c.top,f=s.getBoundingClientRect().top,d=460-u,h=.005*(l-d+200),p=ae()(n),m=ae()(t);l<80&&l>d?this.setState({scroll:p({active:!0,end:!1})}):l<=d?this.setState({scroll:p({active:!1,end:!0}),arrow:m({opacity:h,top:f})}):this.setState({scroll:p({active:!1,end:!1}),arrow:m({opacity:h,top:f})})}}},{key:"handleSlide",value:function(e){var t=this.props.steps,n=this.state.slide.current,r="next"===e?n+1:n-1;r<=-1||r>=t.length||this.slideTo(r,n)}},{key:"render",value:function(){var t=this,n=this.props,r=n.menuOpen,i=n.steps,o=this.state,a=o.initiating,s=o.sidebar,c=o.slide,u=o.style,l=c.current,f=c.fade,d=i.length,h=l===d-1,p=0===l,m=Math.min(d-22,l-11),v=Math.max(24-l,l+12,23),g=p?0:Math.max(0,m),y=h?d:Math.min(d,v),b=pe()(g,y,i),_=d<23?b:ce()(i[0],b),w=W()("process-block",{"process-block--with-sidebar":r&&s>0}),x={className:W()("process-block__inner",{"process-block__inner--fade":f||a}),ref:function(e){return t.inner=e},style:u};return e.createElement("div",{className:w},e.createElement("div",x,this.renderArrow("prev"),h?L()(_).call(_,this.renderStep):L()(b).call(b,this.renderStep),this.renderArrow("next")))}},{key:"renderArrow",value:function(t){var n,r=this.state,i=r.arrow,o=r.scroll,a=r.sidebar,s=r.slide,c=this.props,u=c.menuOpen,l=c.steps,f=this.container&&this.container!==window,d=l.length>1?i.hidden:"both",h=Se(Se({},i),{},{hidden:d,isSliding:s.active,offset:f?this.container.offsetWidth-this.container.clientWidth:0,onClick:j()(n=this.handleSlide).call(n,this,t),opacity:i.opacity>=0?i.opacity:0,ref:"arrow-".concat(t),scroll:o,sidebar:u?a:0,type:t});return e.createElement(_e.a,h)}},{key:"renderStep",value:function(t){var n,r=t.description,i=t.id,o=t.index,a=t.media,s=t.title,c=t.type,u=this.props,l=u.blockId,f=u.enableVideoPlaybackSpeed,d=u.entered,h=u.labels,p=u.settings,m=u.steps,v=this.state,g=v.initiating,y=v.position,b=v.slide,_=v.width,w=b.current,x=b.fade,k=b.previous,E=_.card,S=_.wrapper,T=function(e){return!ne()(Z()(le()("type",e),m))},O=T("intro"),C=T("summary"),A=O?o:o+1,M=X()(le()("type","step"),m).length+1,P={blockId:l,current:w,description:r,enableVideoPlaybackSpeed:f,entered:d,fade:x,hasNavigation:m.length>1,id:i,index:o,initiating:g,key:o,labels:h,media:a,onMediaLoad:this.setHeight,onNextClick:j()(n=this.handleSlide).call(n,this,"next"),onRestartClick:this.handleRestart,number:A,position:y,previous:k,ref:"slide-".concat(o),settings:p,title:s,type:c,width:E,wrapperWidth:S},N={current:w,hasSummary:C,isFirst:!O,length:M,slideTo:this.slideTo};return e.createElement(be.a,P,e.createElement(xe.a,N))}},{key:"setArrows",value:function(){var e=this.state,t=e.arrow,n=t.hidden,r=t.opacity,i=e.sidebar,o=e.slide.current,a=this.props.menuOpen,s="prev"===n?"next":"prev",c=Object(D.findDOMNode)(this.refs["slide-".concat(o)]),u=Object(D.findDOMNode)(this.refs["arrow-".concat(s)]),l=u&&u.firstChild||null,f=ee()(ie.a),d=a?i:0,h=window.innerWidth;if(c&&l){var p=c.getBoundingClientRect(),m=p.height,v=p.left,g=p.width,y=l.getBoundingClientRect(),b=y.top,_=(h-g-v)/2-y.width,w=Y()([[f(1280+d),U()(_+20)],[f(1350+d),U()(_)],[ve.a,U()(v-d-170)]])(h),x=Y()([[f(1280+d),U()(_+20)],[f(1350+d),U()(_+40)],[ve.a,U()(v-d-130)]])(h);this.setState({arrow:{absolute:w,bottom:m-220,fixed:x,hidden:n,opacity:r,top:b}})}}},{key:"setHeight",value:function(e){var t=this.state.slide.current,n=Object(D.findDOMNode)(this.refs["slide-".concat(t)]),r="function"==typeof e?e:U.a;n&&this.setState({style:{height:n.offsetHeight}},r)}},{key:"setPosition",value:function(){this.setWidth(),this.setHeight(),this.setArrows()}},{key:"setWidth",value:function(){var e=this.state.slide.current,t=this.inner,n=Object(D.findDOMNode)(this.refs["slide-".concat(e)]),r=this.container&&this.container!==window?this.container.getBoundingClientRect().left:0,i=n&&n.offsetWidth||0,o=t&&t.offsetWidth||0,a=t&&n,s=a&&(o-i)/2+i/2,c=a&&(o-i)/2+1.5*i,u={card:n&&n.offsetWidth,wrapper:t&&t.offsetWidth},l={prev:c,next:s};t&&n&&this.setState({position:l,sidebar:r,width:u})}},{key:"slideTo",value:function(e,t){var n=this;if(!this.state.slide.active){var r=this.props,i=r.getScrollTop,o=r.onStep,a=r.steps,s=i(),c=Object(D.findDOMNode)(this.refs["slide-".concat(e)]).offsetHeight,u=this.container===window?"body, html":this.container,l=ae()(this.state.scroll),f={active:!1,auto:!1,end:!1},d=ae()(this.state.arrow),h=ae()({current:e,previous:t,fade:!1}),p=a[e],m=Y()([[K()(0),U()({hidden:"prev"})],[K()(a.length-1),U()({hidden:"next"})],[ve.a,U()({hidden:null})]])(e),v=function(){n.setState({scroll:f}),n.afterSlideRef=M()(n.setArrows,400)};this.setState({scroll:l({auto:!0}),slide:h({active:!0}),style:{height:c}},function(){B()(u).stop().animate({scrollTop:s},300,v)}),this.slideRef=M()(function(){return n.setState({slide:h({active:!1})})},600),this.arrowAnimRef=M()(function(){return n.setState({arrow:d(m)})},300),o&&o(p)}}}],[{key:"propTypes",get:function(){return{blockId:de.a.string.isRequired,entered:de.a.bool,getScrollTop:de.a.func.isRequired,isPreview:de.a.bool,labels:de.a.object.isRequired,menuOpen:de.a.bool,onStep:de.a.func,settings:de.a.object.isRequired,steps:de.a.array.isRequired,visible:de.a.bool}}}]),r}(e.Component),Ce=function(t){Object(S.a)(r,t);var n=Te(r);function r(e){var t,i,o,a,s,c,u;return Object(x.a)(this,r),(u=n.call(this,e)).state={current:0,fade:!1,height:null,help:!1,helped:!1,initiating:!0,width:null,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null},u.handleRestart=j()(t=u.handleRestart).call(t,Object(E.a)(u)),u.preventScroll=j()(i=u.preventScroll).call(i,Object(E.a)(u)),u.renderStep=j()(o=u.renderStep).call(o,Object(E.a)(u)),u.setHeight=j()(a=u.setHeight).call(a,Object(E.a)(u)),u.setPosition=j()(s=u.setPosition).call(s,Object(E.a)(u)),u.setWidth=j()(c=u.setWidth).call(c,Object(E.a)(u)),u}return Object(k.a)(r,[{key:"componentDidMount",value:function(){var e,t,n=this,r=this.props.isPreview,i=document.getElementsByClassName("page-wrap")[0],o=j()(e=this.handleSlide).call(e,this,"prev"),a=j()(t=this.handleSlide).call(t,this,"next"),s=function(){return n.setState({initiating:!1})};this.container=r?i:window,this.swipeEvents=Object(ke.a)(this.inner,this,a,o,60),this.initRef=M()(function(){return n.setPosition(s)},500),this.swipeEvents.addListeners(),window.addEventListener("resize",this.setPosition),this.setPosition(),this.showHelp()}},{key:"componentDidUpdate",value:function(e){this.props.menuOpen!==e.menuOpen&&(this.resizeRef=M()(this.setPosition,300))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.initRef),clearTimeout(this.afterSlideRef),clearTimeout(this.slideRef),clearTimeout(this.resizeRef),this.swipeEvents.removeListeners(),window.removeEventListener("resize",this.setPosition)}},{key:"handleRestart",value:function(){var e=this,t=(0,this.props.getScrollTop)(),n=this.container===window?"body, html":this.container,r=this.refs["slide-0"],i=r&&r.firstChild.offsetHeight||null,o=function(){e.preventScroll("end")};this.setState({fade:!0},function(){e.preventScroll("start"),B()(n).stop().animate({scrollTop:t},300,o)}),this.slideRef=M()(function(){return e.setState({current:0,height:i})},300),this.afterSlideRef=M()(function(){return e.setState({fade:!1})},700)}},{key:"handleSlide",value:function(e){var t=this,n=this.props,r=n.getScrollTop,i=n.onStep,o=n.steps,a=this.state.current,s=r(),c="next"===e?a+1:a-1;if(!(c<=-1||c>=o.length)){var u=o[c],l=this.container===window?"body, html":this.container,f=this.refs["slide-".concat(c)],d=f&&f.firstChild.offsetHeight||null,h=function(){t.preventScroll("end"),t.showHelp()};this.setState({current:c,height:d},function(){t.preventScroll("start"),B()(l).stop().animate({scrollTop:s},300,h)}),i&&i(u)}}},{key:"preventScroll",value:function(e){this.container!==window&&("start"===e&&we.a.isMobile?this.container.style.overflowY="hidden":this.container.style.overflowY="")}},{key:"render",value:function(){var t=this,n=this.props.steps,r=this.state,i=r.current,o=r.fade,a=r.height,s=r.initiating,c=n.length,u=i===c-1,l=0===i?0:i-1,f=u?c:i+2,d=pe()(l,f,n),h=c<3?d:z()(n[0],d),p={className:W()("process-block-mobile__inner",{"process-block-mobile__inner--fade":o,"process-block-mobile__inner--initiating":s}),ref:function(e){return t.inner=e},style:a?{height:a}:null};return e.createElement("div",{className:"process-block-mobile"},e.createElement("div",p,u?L()(h).call(h,this.renderStep):L()(d).call(d,this.renderStep)))}},{key:"renderStep",value:function(t){var n,r=t.description,i=t.id,o=t.index,a=t.media,s=t.title,c=t.type,u=this.props,l=u.blockId,f=u.enableVideoPlaybackSpeed,d=u.entered,h=u.labels,p=u.settings,m=u.steps,v=u.visible,g=this.state,y=g.current,b=g.help,_=g.helped,w=g.initiating,x=function(e){return!ne()(Z()(le()("type",e),m))},k=x("intro"),E=x("summary"),S=k?o:o+1,T=X()(le()("type","step"),m).length+1,O={blockId:l,current:y,description:r,enableVideoPlaybackSpeed:f,entered:v&&d,hasNavigation:m.length>1,id:i,index:o,initiating:w,labels:h,media:a,onMediaLoad:this.setHeight,onNextClick:j()(n=this.handleSlide).call(n,this,"next"),onRestartClick:this.handleRestart,number:S,settings:p,showHelp:b&&_,title:s,type:c,width:this.inner&&this.inner.offsetWidth},C={current:y,hasSummary:E,isFirst:!k,length:T};return e.createElement("div",{key:o,ref:"slide-".concat(o)},e.createElement(be.b,O,e.createElement(xe.a,C)))}},{key:"setHeight",value:function(e){var t=this.state.current,n=this.refs["slide-".concat(t)],r=n&&n.firstChild||null,i="function"==typeof e?e:U.a;r&&this.setState({height:r.offsetHeight},i)}},{key:"setPosition",value:function(e){this.setWidth(),this.setHeight(e)}},{key:"setWidth",value:function(){this.setState({width:this.inner.offsetWidth})}},{key:"showHelp",value:function(){var e=this.props.steps,t=this.state,n=t.current,r=t.help,i=t.helped;n!==(!ne()(Z()(le()("type","intro"),e))?1:0)||r||i?this.setState({help:!1}):this.setState({help:!0,helped:!0})}},{key:"shouldComponentUpdate",value:function(e,t){return e.entered!==this.props.entered||e.menuOpen!==this.props.menuOpen||e.visible!==this.props.visible||t.current!==this.state.current||t.fade!==this.state.fade||t.height!==this.state.height||t.help!==this.state.help||t.helped!==this.state.helped||t.initiating!==this.state.initiating||t.width!==this.state.width||t.xTouchDown!==this.state.xTouchDown||t.xTouchMove!==this.state.xTouchMove||t.yTouchDown!==this.state.yTouchDown||t.yTouchMove!==this.state.yTouchMove}}],[{key:"propTypes",get:function(){return{blockId:de.a.string.isRequired,entered:de.a.bool,getScrollTop:de.a.func.isRequired,isPreview:de.a.bool,menuOpen:de.a.bool,onStep:de.a.func,settings:de.a.object.isRequired,steps:de.a.array.isRequired,visible:de.a.bool}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return L});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(16),f=n.n(l),d=n(4),h=n.n(d),p=(n(1955),n(17)),m=n.n(p),v=n(2),g=n.n(v),y=n(39),b=n.n(y),_=n(418),w=n.n(_),x=n(32),k=n.n(x),E=n(260),S=n.n(E),T=n(1),O=n.n(T),C=n(415),j=n.n(C),A=n(71),M=n.n(A),P=n(40),N=n(85);function I(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var L=function(t){Object(s.a)(r,t);var n=I(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"getCounterPosition",value:function(){var e=this.props,t=e.current,n=e.isFirst,r=e.length,i=n?t+1:t,o=this.refs["item-".concat(i)],a=this.refs["item-".concat(r)];if(!this.counter||!o||!a)return{lastItemPosition:null,position:null,width:null};var s=this.getItemPosition(),c=a.offsetLeft+5,u=o.offsetWidth,l=this.counter.offsetWidth,f=s-l/2+u/2,d=c-l+u/2;return{lastItemPosition:c,position:b()([[w()(l/2),m()(0)],[S()(c-l/2),m()(d)],[M.a,m()(f)]])(s),width:l}}},{key:"getItemPosition",value:function(){var e=this.props,t=e.current,n=e.isFirst?t+1:t,r=this.refs["item-".concat(n)];return r?n>=10?r.offsetLeft+3:r.offsetLeft:null}},{key:"handleSlide",value:function(e){var t=this.props,n=t.current,r=t.isFirst;(0,t.slideTo)(r?e-1:e,n)}},{key:"render",value:function(){var t,n,r=this,i=this.props,o=i.hasSummary,a=i.length,s=this.getCounterPosition(),c=s.lastItemPosition,u=s.position,l=s.width,d=this.getItemPosition(),p=o?a+1:a,m=g()("process-counter",{"process-counter--overflow-before":u>0,"process-counter--overflow-after":c>u+l}),v={transform:"translate3d(-".concat(u,"px, 0px, 0px)")},y={opacity:1,transform:"translate3d(".concat(d,"px, 0px, 0px)")},b={className:"process-counter__inner",style:!k()(u)&&u>0?v:{transform:"translate3d(0px, 0px, 0px)"},ref:function(e){return r.counter=e}},_={className:"process-counter__active brand--border",style:k()(d)?null:y};return e.createElement("div",{className:m},e.createElement("div",b,e.createElement("div",_),f()(t=j()(1,p)).call(t,h()(n=this.renderItem).call(n,this))))}},{key:"renderItem",value:function(t){var n,r=this.props,i=r.current,o=r.hasSummary,a=r.length,s=o&&t===a,c=r.isFirst?i+1:i,u=N.a.isMobile,l={className:g()("process-counter__item",{"process-counter__item--active":t===c,"process-counter__item--double":t>=10,"process-counter__item--disabled":u}),onClick:!u&&h()(n=this.handleSlide).call(n,this,t),key:t,ref:"item-".concat(t)};return e.createElement("div",l,e.createElement("span",null,s?e.createElement(P.d,null):t))}}],[{key:"propTypes",get:function(){return{current:O.a.number.isRequired,hasSummary:O.a.bool,isFirst:O.a.bool,length:O.a.number.isRequired,slideTo:O.a.func}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var i=void 0;function o(){return void 0===i&&(i=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),i}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(){return function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]}}(),s.prototype.handleEvent=function(){return function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach(function(e){e&&e(n)})}}(),s.prototype.add=function(){return function(e,t,n){var r=this,i=this.getEventHandlers(e,n);a(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,a(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}}}();var c="__consolidated_events_handlers__";function u(e,t,n,r){e[c]||(e[c]=new s(e));var i=function(e){if(e)return o()?e:!!e.capture}(r);return e[c].add(t,n,i)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(153),i=n.n(r),o=function(e){if(!e)return"";var t=i()(e),n=i()(),r=i()(n).add(24,"hours");return t.isBefore(n)?"Overdue":t.isBefore(r)?"Due in ".concat(n.to(t,!0)):"Due ".concat(t.format("MMM D"))},a=function(e){return i()(e).isSameOrBefore(i()().add(3,"d"),"days")}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});n(2691);var r=n(0),i=n.n(r),o=n(2),a=n.n(o),s=function(e){var t=a()("progress-bar__line",{"progress-bar__line-rounded":e.rounded}),n=a()("progress-bar",{"progress-bar-rounded":e.rounded,"progress-bar-lg":e.lg});return i.a.createElement("div",{className:n},i.a.createElement("div",{className:"progress-bar__percentage-top"},e.value,"% ",e.lessonComplete),i.a.createElement("div",{className:t},i.a.createElement("div",{className:"progress-bar__fill",style:{width:e.value+"%"}})),i.a.createElement("div",{className:"progress-bar__percentage-bottom"},e.value,"% ",e.lessonComplete))},c=i.a.createElement(s,{value:0,lessonComplete:"complete"}).type;t.b=s},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(47),v=n.n(m),g=n(160),y=n.n(g),b=(n(1983),n(0)),_=n.n(b),w=n(545),x=n(156),k=n.n(x),E=n(8),S=n.n(E),T=n(427),O=n.n(T),C=n(24),j=n.n(C),A=n(546),M=n.n(A),P=n(559),N=n.n(P),I=n(434),L=n(114),D=n(50),R=n(16),B=n.n(R),F=(n(2126),n(68)),U=n.n(F),q=n(349),z=n.n(q),H=(n(2127),n(2)),W=n.n(H),V=n(32),Y=n.n(V);function G(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var K=function(e){Object(c.a)(n,e);var t=G(n);function n(){var e,r,i,a;Object(o.a)(this,n);for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return(a=t.call.apply(t,d()(e=[this]).call(e,u))).handleMouseEnter=p()(r=a.handleMouseEnter).call(r,Object(s.a)(a)),a.handleMouseLeave=p()(i=a.handleMouseLeave).call(i,Object(s.a)(a)),a}return Object(a.a)(n,[{key:"handleMouseEnter",value:function(){var e=this.props,t=e.index;(0,e.onEvent)(t)}},{key:"handleMouseLeave",value:function(){(0,this.props.onEvent)(null)}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.identifier,r=e.index,i=e.label,o=e.value,a=!Y()(t)&&t!==r,s=W()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":a});return _.a.createElement("div",{className:s,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},_.a.createElement("dt",{className:"block-chart__cartesianLegendTerm"},n,"."),_.a.createElement("dd",{className:"block-chart__cartesianLegendDefn"},i,_.a.createElement("span",{className:"block-chart__cartesianLegendDefnPipe"},"|"),_.a.createElement("span",{className:"block-chart__cartesianLegendDefnVal"},o)))}}]),n}(b.PureComponent),$=function(e){var t=e.activeIndex,n=e.labels,r=e.letters,i=e.onEvent,o=y()(e),a=z()(r,z()(n,o));return U()(a)?null:_.a.createElement("dl",{className:"block-chart__cartesianLegend"},B()(a).call(a,function(e,n){var r=Object(D.a)(e,2),o=r[0],a=Object(D.a)(r[1],2),s=a[0],c=a[1];return _.a.createElement(K,{activeIndex:t,identifier:o,index:n,key:o,label:s,onEvent:i,value:c})}))},X=Object(b.memo)($),Q=n(547),Z=n.n(Q),J=n(77),ee=function(e){var t=e.activeIndex,n=e.settings,r=n.backgroundColor,i=n.chartColor,o=n.lineCurve,a=y()(e),s=e.variant,c=i,u=i;if(!Y()(t)){var l=Z()(i,r||"#fff",.7);c=l,u=Object(J.h)(l,i,a.length,t)}return"bar"===s?{backgroundColor:u,borderColor:c,data:a,hoverBackgroundColor:u,hoverBorderColor:u}:{borderColor:c,cubicInterpolationMode:"linear"===o?"default":"monotone",data:a,lineTension:"linear"===o?0:void 0,pointBackgroundColor:u,pointBorderColor:u,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:i,pointHoverBorderColor:i,pointHoverBorderWidth:0,pointRadius:4}},te=n(433),ne=n.n(te),re=n(196),ie=n.n(re),oe=n(42),ae=n.n(oe),se=n(285),ce=n.n(se)()(/([^\s].{0,14}(?![.{3}])(?=[\s\W]|$))/gm),ue=n(126),le=function(e){var t,n=e[0],r=n.xLabel,i=n.yLabel,o=ae()(ne.a,ie()(" "),r);return d()(t="".concat(o,": ")).call(t,i)},fe=function(e){var t=e.hasDarkBgColor,n=e.isDesktop,r=e.onEvent,i=e.shouldAnimate,o=y()(e);return{animation:{duration:i?1e3:0},defaultFontColor:t?"#fff":"#313537",defaultFontFamily:'"lato", sans-serif',elements:{line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},legend:{display:!1},onClick:r,onHover:r,plugins:{datalabels:{display:!1}},responsive:!1,scales:{xAxes:[{barPercentage:.6,gridLines:{color:t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)",display:!1,drawBorder:!1,offsetGridLines:!0},maxBarThickness:60,offset:!0,scaleLabel:{display:!1},ticks:{autoSkip:!1,callback:ce,minor:{fontColor:t?"#fff":"#313537"},padding:10}}],yAxes:[{gridLines:{color:t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)",drawBorder:!1,drawTicks:!1,zeroLineColor:Object(ue.a)(o)?t?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.25)":t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)"},scaleLabel:{display:!1},ticks:{beginAtZero:!0,maxTicksLimit:8,minor:{fontColor:t?"#fff":"#313537"},padding:n?15:4}}]},tooltips:{backgroundColor:t?"#fff":"#000",callbacks:{label:function(){return null},title:le},caretPadding:10,cornerRadius:3,displayColors:!1,titleFontColor:t?"#313537":"#fff",titleFontStyle:"normal",titleMarginBottom:0,titleSpacing:0,xAlign:"center",xPadding:14,yAlign:"bottom",yPadding:10}}},de=n(689),he=n.n(de),pe=n(149),me=n.n(pe),ve=n(15),ge=n.n(ve),ye=n(261),be=n.n(ye),_e=n(316),we=n.n(_e),xe=be()(/<mark>|<\/mark>/gm,""),ke=S()(function(e){return we()(e,{length:30})},xe,ge()("type")),Ee=S()(me()(0),he.a,ge()("value")),Se=function(e){return{labels:B()(e).call(e,ke),values:B()(e).call(e,Ee)}},Te=n(79),Oe=n.n(Te)()(function(e,t,n){var r=we()(t,{length:e});return n?Object(ue.d)(r,n):r}),Ce=n(28);function je(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ae=function(e){var t=function(t){Object(c.a)(r,t);var n=je(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).handleEvent=p()(t=i.handleEvent).call(t,Object(s.a)(i)),i.state={activeIndex:null},i}return Object(a.a)(r,[{key:"handleEvent",value:function(e){this.setState({activeIndex:e})}},{key:"render",value:function(){return _.a.createElement(e,Object(Ce.a)({},this.props,{activeIndex:this.state.activeIndex,onEvent:this.handleEvent}))}}]),r}(b.PureComponent);return t.displayName="ChartEvents(".concat(Object(ue.b)(e),")"),t};function Me(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Pe=function(e){var t=function(t){Object(c.a)(r,t);var n=Me(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).chartRef=Object(b.createRef)(),i.handleResize=p()(t=i.handleResize).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"componentDidMount",value:function(){this.resize(),this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"handleResize",value:function(){this.resize(),this.update()}},{key:"resize",value:function(){var e=this.chartRef.current.chartInstance;e&&e.resize()}},{key:"update",value:function(){var e=this.chartRef.current.chartInstance;e&&e.update()}},{key:"render",value:function(){return _.a.createElement(e,Object(Ce.a)({},this.props,{onResize:this.handleResize,ref:this.chartRef}))}}]),r}(b.PureComponent);return t.displayName="ChartUpdater(".concat(Object(ue.b)(e),")"),t},Ne=n(548);function Ie(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),De=function(e){Object(c.a)(n,e);var t=Ie(n);function n(){var e,r,i,a;Object(o.a)(this,n);for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return(a=t.call.apply(t,d()(e=[this]).call(e,u))).handleEvent=p()(r=a.handleEvent).call(r,Object(s.a)(a)),a.handleResize=p()(i=a.handleResize).call(i,Object(s.a)(a)),a.wrapRef=Object(b.createRef)(),a.state={labelYTop:"50%"},a}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.resizeObserver=new w.a(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.wrapRef.current)}},{key:"buildDataset",value:function(e){var t=this.props,n=t.activeIndex,r=t.settings,i=t.variant;return ee({activeIndex:n,settings:r,values:e,variant:i})}},{key:"buildOptions",value:function(e){var t=this.props,n=t.hasDarkBgColor,r=t.isDesktop,i=t.shouldAnimate;return fe({hasDarkBgColor:n,isDesktop:r,onEvent:this.handleEvent,shouldAnimate:i,values:e})}},{key:"handleEvent",value:function(e,t){return(0,this.props.onEvent)(j()(null,[0,"_index"],t))}},{key:"handleResize",value:function(){this.props.onResize(),this.setLabelYTop()}},{key:"setLabelYTop",value:function(){var e=this.props.forwardedRef.current.chartInstance;if(e){var t=j()({},["scales","y-axis-0"],e),n=t.bottom,r=t.top;O()(n)&&O()(r)&&this.setState({labelYTop:"".concat((n+r)/2,"px")})}}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.forwardedRef,r=e.isDesktop,i=e.isVisible,o=e.items,a=e.itemsLabel,s=e.onEvent,c=e.search,u=e.valuesLabel,l=e.variant,f=this.state.labelYTop,d=Oe(80,a,c),h=Oe(30,u,c),p=Se(o),m=r?[]:v()(Le).call(Le,0,o.length),g=r?p.labels:m,b=i?y()(p):Object(ue.e)(0,o.length),w=this.buildOptions(b),x=this.buildDataset(b),k="line"===l?I.b:I.a;return _.a.createElement("div",{className:"block-chart__cartesian"},_.a.createElement("div",{className:"block-chart__cartesianChart",ref:this.wrapRef},_.a.createElement(k,{data:{labels:g,datasets:[x]},options:w,ref:n}),h&&Object(ue.f)(h)&&_.a.createElement("div",{className:"block-chart__cartesianLabelY",style:{top:f}},h)),d&&Object(ue.f)(d)&&_.a.createElement("div",{className:"block-chart__cartesianLabelX"},d),!r&&_.a.createElement(X,{activeIndex:t,labels:p.labels,letters:m,onEvent:s,values:b}))}}]),n}(b.PureComponent),Re=k()({search:j()("",["search","term"])}),Be=S()(Ne.a,Ae,N()("(min-width: 960px)","isDesktop","Desktop"),Pe,M.a,Object(L.b)(Re))(De);n(2141),n(2142),n(2143);function Fe(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ue=function(e){Object(c.a)(n,e);var t=Fe(n);function n(){var e,r,i,a;Object(o.a)(this,n);for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return(a=t.call.apply(t,d()(e=[this]).call(e,u))).handleMouseEnter=p()(r=a.handleMouseEnter).call(r,Object(s.a)(a)),a.handleMouseLeave=p()(i=a.handleMouseLeave).call(i,Object(s.a)(a)),a}return Object(a.a)(n,[{key:"handleMouseEnter",value:function(){var e=this.props,t=e.index;(0,e.onEvent)(t)}},{key:"handleMouseLeave",value:function(){(0,this.props.onEvent)(null)}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.backgroundColor,r=e.index,i=e.text,o=!Y()(t)&&t!==r,a=W()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":o});return _.a.createElement("div",{className:a,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},_.a.createElement("span",{className:"block-chart__circleLegendSymbol",style:{backgroundColor:n}}),_.a.createElement("span",{className:"block-chart__circleLegendText"},i))}}]),n}(b.PureComponent),qe=function(e){var t=e.activeIndex,n=e.colors,r=e.labels,i=e.onEvent,o=z()(r,n);return U()(o)?null:_.a.createElement("div",{className:"block-chart__circleLegend"},B()(o).call(o,function(e,n){var r=Object(D.a)(e,2),o=r[0],a=r[1];return _.a.createElement(Ue,{activeIndex:t,backgroundColor:a,index:n,key:o,onEvent:i,text:o})}))},ze=Object(b.memo)(qe),He=n(12),We=n(59),Ve=n.n(We),Ye=n(60),Ge=n.n(Ye),Ke=n(45),$e=n.n(Ke),Xe=n(44),Qe=n.n(Xe),Ze=n(34),Je=n.n(Ze),et=n(49),tt=n.n(et),nt=n(75),rt=n.n(nt),it=n(62),ot=n.n(it),at=n(207),st=n.n(at),ct=n(418),ut=n.n(ct),lt=n(208);function ft(e,t){var n=Ge()(e);if($e.a){var r=$e()(e);t&&(r=Ve()(r).call(r,function(t){return Qe()(e,t).enumerable})),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)Je()(n=ft(Object(r),!0)).call(n,function(t){Object(He.a)(e,t,r[t])});else if(tt.a)rt()(e,tt()(r));else{var i;Je()(i=ft(Object(r))).call(i,function(t){ot()(e,t,Qe()(r,t))})}}return e}var ht=n.n(lt)()(ut()(st.a,0),"value"),pt=function(e){var t=Ve()(e).call(e,ht),n=Se(t),r=B()(t).call(t,ge()("color"));return dt(dt({},n),{},{colors:r})},mt=(n(2144),n(348)),vt=n.n(mt),gt=function(e){var t=j()(0,["dataIndex"],e),n=j()({},["dataset"],e),r=j()("#000",["backgroundColor",t],n);return Object(ue.c)(r)?"#fff":"#313537"},yt=function(e,t,n){return"numeric"===e?String(t):Object(ue.g)(t/vt()(n.dataset.data))},bt=function(e,t,n){var r,i=j()(0,[0,"index"],t),o=j()("",["labels",i],n),a=j()([1],["datasets",0,"data"],n),s=a[i],c="numeric"===e?String(s):Object(ue.g)(s/vt()(a));return d()(r="".concat(o,": ")).call(r,c)},_t=function(e,t){var n=j()(0,["dataIndex"],t),r=j()([1],["dataset","data"],t),i=r[n],o=Y()(e)&&i/vt()(r)>=.06;return e===n||o},wt=function(e){var t=e.activeIndex,n=e.onEvent,r=e.settings.valueType,i=e.shouldAnimate;return{animation:{animateRotate:i,duration:i?1e3:0},legend:!1,onClick:n,onHover:n,maintainAspectRatio:!1,plugins:{datalabels:{color:gt,display:p()(_t).call(_t,null,t),font:{size:12,style:"bold"},formatter:p()(yt).call(yt,null,r)}},responsive:!1,rotation:.25*Math.PI,tooltips:{backgroundColor:"#000",callbacks:{label:function(){return null},title:p()(bt).call(bt,null,r)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFontColor:"#fff",titleFontStyle:"normal",titleMarginBottom:0,titleSpacing:0,xAlign:"center",xPadding:14,yAlign:"bottom",yPadding:10}}},xt=function(e){var t=e.activeIndex,n=e.colors,r=e.settings.backgroundColor,i=y()(e),o=Y()(t)?n:B()(n).call(n,function(e,n){return n===t?e:Z()(e,r||"#fff",.5)});return{backgroundColor:o,hoverBackgroundColor:o,borderWidth:0,data:i}};function kt(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Et=function(e){Object(c.a)(n,e);var t=kt(n);function n(){var e,r,i;Object(o.a)(this,n);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=t.call.apply(t,d()(e=[this]).call(e,c))).handleEvent=p()(r=i.handleEvent).call(r,Object(s.a)(i)),i.wrapRef=Object(b.createRef)(),i}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.resizeObserver=new w.a(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.wrapRef.current)}},{key:"buildDataset",value:function(e){var t=e.colors,n=y()(e),r=this.props,i=r.activeIndex,o=r.settings;return xt({activeIndex:i,colors:t,settings:o,values:n})}},{key:"buildOptions",value:function(){var e=this.props,t=e.activeIndex,n=e.settings,r=e.shouldAnimate;return wt({activeIndex:t,onEvent:this.handleEvent,settings:n,shouldAnimate:r})}},{key:"handleEvent",value:function(e,t){return(0,this.props.onEvent)(j()(null,[0,"_index"],t))}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.forwardedRef,r=e.isVisible,i=e.items,o=e.onEvent,a=pt(i),s=a.colors,c=a.labels,u=y()(a),l=r?u:Object(ue.e)(0,i.length),f=this.buildOptions(),d=this.buildDataset({colors:s,values:l});return _.a.createElement("div",{className:"block-chart__circle"},_.a.createElement("div",{className:"block-chart__circleChart",ref:this.wrapRef},_.a.createElement(I.c,{data:{labels:c,datasets:[d]},options:f,ref:n})),_.a.createElement(ze,{activeIndex:t,colors:s,labels:c,onEvent:o}))}}]),n}(b.PureComponent),St=S()(Ne.a,Ae,Pe,M.a)(Et);n.d(t,"a",function(){return Be}),n.d(t,"b",function(){return St})},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=(n(2690),n(0)),p=n.n(h),m=n(150),v=n.n(m),g=n(268),y=n(12),b=n(16),_=n.n(b),w=n(2),x=n.n(w),k=n(657),E=n(690),S=n(86),T=n(66),O=n(152),C=n(55),j=n.n(C),A=n(68),M=n.n(A),P=n(30),N=n.n(P),I=n(25),L=n.n(I),D=n(102),R=n.n(D),B=n(422),F=n(116),U=n.n(F),q=n(285),z=n.n(q),H=n(76),W=n.n(H),V=n(129),Y=n.n(V),G=n(723),K=n.n(G);function $(e){return($="function"==typeof Y.a&&"symbol"==typeof K.a?function(e){return typeof e}:function(e){return e&&"function"==typeof Y.a&&e.constructor===Y.a&&e!==Y.a.prototype?"symbol":typeof e})(e)}var X=n(133),Q=n.n(X),Z=n(32),J=n.n(Z),ee=Q.a,te=function(e){return!J()(e)&&"object"===$(e)},ne=function(e){return"string"==typeof e},re=function(e,t){return function(n){return L()(U.a,W.a,R()(!0))(function(e,t){return function(n,r){var i=R()(r,e);return te(n)?re(e,t)(n):!(!i||!ne(n)||M()(z()(t,Object(B.htmlDecode)(n))))}}(e,t),n)}},ie=re,oe=n(256),ae=n.n(oe),se=n(26),ce=n.n(se),ue=n(184),le=n.n(ue),fe=n(53),de=n.n(fe),he=n(109),pe=n.n(he),me=function(e,t){return function(n){return U()(function(e,t){return function(n,r){var i=R()(r,e);return ee(n)?W()(me(e,t)(n)):te(n)?me(e,t)(n):i&&ne(n)?de()(z()(t,Object(B.htmlDecode)(n))):0}}(e,t),n)}},ve=function e(t){return ee(t)?N()(e,t):te(t)?e(W()(t)):function(e){return"number"==typeof e}(t)?t:void 0},ge=function(e,t){return function(n){return L()(me(e,t),W.a,N()(ve),le.a,pe()(ae.a,0),function(e){return ce()("results",e,n)})(n)}},ye=n(261),be=n.n(ye),_e=function(e,t,n){return function(r){return U()(function(e,t,n){return function(r,i){var o=R()(i,e);return ee(r)?W()(_e(e,t,n)(r)):te(r)?_e(e,t,n)(r):o&&ne(r)?be()(t,n,Object(B.htmlDecode)(r)):r}}(e,t,n),r)}},we=_e,xe=function(e,t,n){var r=["caption","code","description","heading","message","name","paragraph","title","type"];if(M()(e))return!1;var i=e.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),o=new RegExp("(".concat(i,")(?![^<]*>)"),"ig"),a=we(r,o,function(e){return"<mark>".concat(e,"</mark>")}),s=N()(a,t),c=ie(r,o),u=ge(r,o);n(e,L()(j()(c),N()(u))(t),s)},ke=n(573),Ee=n(20),Se=n(74),Te=n(23),Oe=n(712),Ce=n(379),je=n(17),Ae=n.n(je),Me=n(8),Pe=n.n(Me),Ne=n(92),Ie=n.n(Ne);function Le(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var De=function(e){Object(c.a)(n,e);var t=Le(n);function n(e){var r,i,a,c,u,l,f,h,p,m,v,g;return Object(o.a)(this,n),(g=t.call(this,e)).state={coverImageLoaded:!1,focusName:null,searchActive:!1,searchValue:"",showSkipButton:!1},g.focusRefs=(r={},Object(y.a)(r,Fe({isClone:!0}),{}),Object(y.a)(r,Fe({isClone:!1}),{}),r),g.handleBlur=d()(i=g.handleBlur).call(i,Object(s.a)(g)),g.handleFocus=d()(a=g.handleFocus).call(a,Object(s.a)(g)),g.handleSearchChange=d()(c=g.handleSearchChange).call(c,Object(s.a)(g)),g.handleSearchClose=d()(u=g.handleSearchClose).call(u,Object(s.a)(g)),g.handleSearchSubmit=d()(l=g.handleSearchSubmit).call(l,Object(s.a)(g)),g.handleSearchToggle=d()(f=g.handleSearchToggle).call(f,Object(s.a)(g)),g.handleSkipButtonBlur=d()(h=g.setDisplaySkipButton).call(h,Object(s.a)(g),!1),g.handleSkipButtonFocus=d()(p=g.setDisplaySkipButton).call(p,Object(s.a)(g),!0),g.handleSkipButtonClick=d()(m=g.handleSkipButtonClick).call(m,Object(s.a)(g)),g.handleTransitionEnd=d()(v=g.handleTransitionEnd).call(v,Object(s.a)(g)),g}return Object(a.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.coverImage,n=t.media,r=void 0===n?{}:n,i=t.displaySidebar,o=r.image,a=void 0===o?{}:o,s=a.key,c=s&&Object(T.a)(a);s&&i&&(this.image=new Image,this.image.src=c,this.image.addEventListener("load",this.imageLoadRef=function(){e.setState({coverImageLoaded:!0})})),this.clone.addEventListener("transitionend",this.handleTransitionEnd)}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.removeEventListener("load",this.imageLoadRef),this.image=null),this.clone.removeEventListener("transitionend",this.handleTransitionEnd)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.showClone,i=n.showSearch,o=this.state.focusName;e.showSearch!==i&&this.setState({searchActive:i},function(){i&&t.searchInput&&t.focusRef({name:"searchInput"})}),e.showClone!==r&&!r&&o&&this.focusRef({name:o})}},{key:"coverStyles",value:function(e){var t=this.props,n=t.coverImage,r=t.showClone,i=this.state.searchActive,o=n.media,a=void 0===o?{}:o,s=n.displaySidebar,c=a.image,u=void 0===c?{}:c,l=u.key,f=l&&Object(T.a)(u),d=i&&e&&r?this.headerHeight:null;return l&&s?{backgroundImage:"url('".concat(f,"')"),height:d}:null}},{key:"getCloneHeaderHeight",value:function(){return this.clone.offsetHeight}},{key:"focus",value:function(){this.props.sessionPreferences.prefersKeyboardNavigation?Object(Ee.c)(this.header):this.header.focus()}},{key:"focusRef",value:function(e){var t=e.name,n=this.props.showClone,r=Fe({isClone:n}),i=this.focusRefs[r][t];i&&i.focus()}},{key:"addFocusRef",value:function(e){var t=this,n=e.isClone,r=e.name,i=Fe({isClone:n});return function(e){t.focusRefs[i][r]=e}}},{key:"handleBlur",value:function(){this.setState({focusName:null})}},{key:"handleFocus",value:function(e){var t=e.target.dataset.focusName;this.setState({focusName:t||null})}},{key:"handleSkipButtonClick",value:function(){(0,this.props.focusLessonContent)()}},{key:"handleSearchChange",value:function(e){var t=e.target.value;this.setState({searchValue:t},function(){return Object(Se.a)([Object(Ce.b)(!0)])})}},{key:"handleSearchClose",value:function(e){Object(Te.f)(e)&&this.handleSearchToggle()}},{key:"handleSearchSubmit",value:function(e){e.preventDefault();var t=e.target.lastChild.value,n=this.props.lessons;xe(t,n,function(e,t,n){return Object(Se.a)([Object(Ce.f)(e),Object(Ce.d)(t),Object(Ce.e)(n)])})}},{key:"handleSearchToggle",value:function(){var e=this,t=this.state.searchActive,n=this.props.showSearch;Object(Se.a)([Object(Ce.b)(n),Object(Ce.c)(!n)]),this.setState({searchActive:!n},function(){t?e.setState({focusName:null,searchValue:""},function(){e.focusRef({name:"showSearch"})}):e.focusRef({name:"searchInput"})})}},{key:"handleTransitionEnd",value:function(e){var t=e.target,n=e.propertyName,r=this.state.focusName,i=this.props.showClone;t===this.clone&&"top"===n&&i&&r&&this.focusRef({name:r})}},{key:"setDisplaySkipButton",value:function(e){this.setState({showSkipButton:e})}},{key:"setHeaderDimensions",value:function(){this.headerHeight=this.headerWrapper?this.headerWrapper.offsetHeight:null,this.headerWidth=this.headerWrapper?this.headerWrapper.offsetWidth:null}},{key:"renderInfo",value:function(e){var t=this,n=e.isClone,r=this.props,i=r.allowTabNavigation,o=r.children,a=r.courseTitle,s=r.skipLinkText,c=r.showClone,u=this.state,l=u.showSkipButton,f=u.searchActive,d=Ue({allowTabNavigation:i,isClone:n,showClone:c}),h=x()("overview-sidebar__info",{"overview-sidebar__info--faded":f}),m=x()("overview-sidebar__skip-button",{"overview-sidebar__skip-button--offscreen":!l});return p.a.createElement("div",{className:h,ref:n?null:function(e){return t.header=e},tabIndex:Ee.i},p.a.createElement(O.b,{to:"/",className:"overview-sidebar__title","data-focus-name":"title",innerRef:this.addFocusRef({isClone:n,name:"title"}),tabIndex:d},a),p.a.createElement("button",{"aria-label":s,className:m,"data-focus-name":"skip",onBlur:this.handleSkipButtonBlur,onClick:this.handleSkipButtonClick,onFocus:this.handleSkipButtonFocus,ref:this.addFocusRef({isClone:n,name:"skip"}),tabIndex:d,type:"button"},s),p.a.createElement("div",{className:"overview-sidebar__progress brand--ui"},Be(o)))}},{key:"renderSearch",value:function(e){var t=e.isClone,n=this.state,r=n.searchActive,i=n.searchValue,o=this.props,a=o.allowTabNavigation,s=o.labels.search,c=p.a.createElement(S.a,{classNames:"overview-sidebar__search",timeout:600},p.a.createElement("form",{className:"overview-sidebar__search",onSubmit:this.handleSearchSubmit},p.a.createElement("span",{"aria-hidden":"true",className:"overview-sidebar__search__search-icon"},p.a.createElement(ke.a,{height:13,width:13})),p.a.createElement("button",{"aria-label":"Close The Search Form",className:"overview-sidebar__search__close-icon","data-focus-name":"closeSearch",onClick:this.handleSearchToggle,ref:this.addFocusRef({isClone:t,name:"closeSearch"}),tabIndex:Object(Ee.m)(a),type:"button"},p.a.createElement(k.a,{height:8,width:8})),p.a.createElement("input",{"aria-label":"Search",className:"overview-sidebar__search__input","data-focus-name":"searchInput",placeholder:s,onChange:this.handleSearchChange,onKeyDown:this.handleSearchClose,ref:this.addFocusRef({isClone:t,name:"searchInput"}),tabIndex:Object(Ee.m)(a),type:"search",value:i})));return p.a.createElement(S.d,null,r&&c)}},{key:"renderSearchIcon",value:function(e){var t=e.isClone,n=this.props,r=n.allowTabNavigation,i=n.showClone,o=this.state.searchActive,a=Ue({allowTabNavigation:r,isClone:t,showClone:i}),s=p.a.createElement(S.a,{appear:!0,classNames:"overview-sidebar__search-icon",timeout:2e3},p.a.createElement("button",{"aria-label":"Show Search Bar",className:"overview-sidebar__search-icon","data-focus-name":"showSearch",onClick:this.handleSearchToggle,ref:this.addFocusRef({isClone:t,name:"showSearch"}),tabIndex:a,type:"button"},p.a.createElement(ke.a,null)));return p.a.createElement(S.d,null,!o&&s)}},{key:"renderClone",value:function(){var e=this,t=this.props.showClone,n=this.state.searchActive,r=x()("overview-sidebar__header-outer",{"overview-sidebar__header-outer--search":n,"overview-sidebar__header--clone":!0,"overview-sidebar__header--visible":t}),i=t&&this.cloneWrapper&&this.cloneWrapper.offsetHeight||"none",o=this.headerWidth;return this.renderBanner({classes:r,cloneRef:function(t){e.clone=t},hidden:!t,isClone:!0,style:{maxHeight:i,width:o},wrapperRef:function(t){e.cloneWrapper=t}})}},{key:"renderNormal",value:function(){var e=this,t=this.props.showClone,n=this.state.searchActive;this.setHeaderDimensions();var r=x()("overview-sidebar__header-outer",{"overview-sidebar__header-outer--search":n}),i=this.headerWrapper&&this.headerWrapper.offsetHeight||"none";return this.renderBanner({classes:r,hidden:t,isClone:!1,style:{maxHeight:i},wrapperRef:function(t){e.headerWrapper=t}})}},{key:"renderBanner",value:function(e){var t=e.classes,n=e.cloneRef,r=e.hidden,i=e.isClone,o=e.style,a=e.wrapperRef,s=this.props,c=s.allowSearch,u=s.allowTabNavigation,l=s.coverImage.alpha,f=this.state,d=f.coverImageLoaded,h=f.showSkipButton?Ie()({maxHeight:Ae()("none")},o):o;return p.a.createElement("section",{"aria-hidden":!u||r,"aria-label":"Course Information",className:t,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:n||null,style:h},c&&this.renderSearch({isClone:i}),p.a.createElement("div",{className:Re(this.props),ref:a},p.a.createElement("div",{className:"overview-sidebar__header--background",style:this.coverStyles(i)}),d&&p.a.createElement(E.a,{alpha:l,isSidebar:!0}),c&&this.renderSearchIcon({isClone:i}),this.renderInfo({isClone:i})))}},{key:"render",value:function(){return p.a.createElement(h.Fragment,null,this.renderNormal(),this.renderClone())}}]),n}(h.Component),Re=function(e){var t=e.coverImage,n=t.media,r=void 0===n?{}:n,i=t.displaySidebar,o=r.image,a=(void 0===o?{}:o).key,s=!a||a&&!i;return x()("overview-sidebar__header",{"brand--background":s})},Be=function(e){var t;return _()(t=p.a.Children).call(t,e,function(e){return e.type!==Oe.a?null:e})},Fe=function(e){return e.isClone?"clone":"normal"},Ue=Pe()(Ee.m,function(e){var t=e.allowTabNavigation,n=e.isClone,r=e.showClone;return t&&(r&&n||!r&&!n)});function qe(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}n.d(t,"b",function(){return ze}),n.d(t,"a",function(){return He});var ze=function(e){Object(c.a)(n,e);var t=qe(n);function n(e){var r,i,a;return Object(o.a)(this,n),(a=t.call(this,e)).handleFocus=d()(r=a.handleFocus).call(r,Object(s.a)(a)),a.onScroll=v()(d()(i=a.onScroll).call(i,Object(s.a)(a)),100),a.state={isShowingSidebarHeaderClone:!1},a}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.sidebar.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){this.sidebar.removeEventListener("scroll",this.onScroll)}},{key:"focus",value:function(){this.sidebarHeader.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowSearch,r=t.allowTabNavigation,i=t.children,o=t.courseTitle,a=t.coverImage,s=t.focusLessonContent,c=t.labels,u=t.lessons,l=t.searchActive,f=t.sessionPreferences,d=t.skipLinkText,h=this.state.isShowingSidebarHeaderClone;return p.a.createElement("div",{id:"overview-sidebar-container",ref:function(t){return e.sidebar=t},className:"overview-sidebar","data-overview-sidebar":!0},p.a.createElement("div",{className:"overview-sidebar__header-wrap brand--head","data-overview-sidebar-header-wrap":!0,ref:function(t){return e.sidebarHeaderWrap=t}},p.a.createElement(De,{allowSearch:n,allowTabNavigation:r,courseTitle:o,coverImage:a,focusLessonContent:s,labels:c,lessons:u,ref:function(t){e.sidebarHeader=t},sessionPreferences:f,showClone:h,showSearch:l,skipLinkText:d},i)),p.a.createElement("div",{className:"overview-sidebar__container"},p.a.createElement("div",{className:"overview-sidebar__content","data-overview-sidebar-content":!0,onFocus:this.handleFocus},i)))}},{key:"handleFocus",value:function(e){var t=e.target;if(this.state.isShowingSidebarHeaderClone){var n=this.sidebar.scrollTop,r=t.getBoundingClientRect().top,i=this.sidebarHeader.getCloneHeaderHeight();if(r<i){var o=n-(i-r);g.animateScroll.scrollTo(o,{containerId:"overview-sidebar-container",duration:300,smooth:!0})}}}},{key:"onScroll",value:function(){var e=this.sidebarHeaderWrap.clientHeight,t=this.sidebar.scrollTop;this.setState({isShowingSidebarHeaderClone:t>e})}}]),n}(h.Component),He=p.a.createElement(ze,null).type},function(e,t,n){"use strict";var r=n(138),i=n(142),o=(n(1),n(0)),a=n.n(o),s=n(91),c=n.n(s),u=!1,l=n(356),f="unmounted",d="exited",h="entering",p="entered",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=h):i=p:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==p&&(t=h):n!==h&&n!==p||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===h?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||u?this.safeSetState({status:p},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:h},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:p},function(){t.props.onEntered(o,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.a.findDOMNode(this);t&&!u?(this.props.onExit(r),this.safeSetState({status:"exiting"},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})):this.safeSetState({status:d},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.a.Provider,{value:null},"function"==typeof n?n(e,i):a.a.cloneElement(a.a.Children.only(n),i))},t}(a.a.Component);function v(){}m.contextType=l.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=f,m.EXITED=d,m.ENTERING=h,m.ENTERED=p,m.EXITING="exiting";t.a=m},,function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(216),i=n(442);e.exports=function(e){return i(e)&&(r("of",e)||r("of",e.constructor))}},function(e,t,n){var r=n(2201),i=n(2156);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(2213);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n,i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){"use strict";var r=n(2163),i=n(201),o=n(180),a=n(181)("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(326);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(373),i="["+n(1178)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$");e.exports=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(o,"")),2&t&&(e=e.replace(a,"")),e}},function(e,t,n){e.exports=n(1269)},function(e,t,n){var r=n(18),i=n(53),o=n(182);e.exports=r(function(e,t){return[o(0,e,t),o(e,i(t),t)]})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return me});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(28),x=n(12),k=n(9),E=n(10),S=n(11),T=n(14),O=n(6),C=n(5),j=n.n(C),A=n(4),M=n.n(A),P=n(55),N=n.n(P),I=n(53),L=n.n(I),D=n(231),R=n.n(D),B=n(73),F=n.n(B),U=n(25),q=n.n(U),z=n(19),H=n.n(z),W=n(241),V=n(365),Y=n(293),G=n(561),K=n(363),$=n(438),X=n(562),Q=n(429),Z=n(1122),J=n(701),ee=n(366),te=n(1128),ne=n(451),re=n(367),ie=n(1136),oe=n(1142),ae=n(1145),se=n(1147),ce=n(1150),ue=n(713);function le(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=le(Object(r),!0)).call(n,function(t){Object(x.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=le(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}function de(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(O.a)(e);if(t){var o=Object(O.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(T.a)(this,n)}}var he=N()(H()("variant","storyline")),pe=q()(he,L.a,R()(1)),me=function(t){Object(S.a)(r,t);var n=de(r);function r(){return Object(k.a)(this,r),n.apply(this,arguments)}return Object(E.a)(r,[{key:"render",value:function(){var t,n,r=this.props,i=r.dividerNumber,o=r.family,a=r.handleStorylineFullscreen,s=r.menuOpen,c=r.partnerContent,u=r.variant,l=r.enableVideoPlaybackSpeed,f=j()(t="".concat(o," ")).call(t,u),d=fe(fe({},F()(["handleStorylineFullscreen","dividerNumber"],this.props)),{},{variant:u,enableVideoPlaybackSpeed:l,partnerContent:c});switch(f){case"text paragraph":case"text table":return e.createElement(W.h,d);case"text heading paragraph":return e.createElement(W.d,d);case"text subheading paragraph":return e.createElement(W.e,d);case"text heading":return e.createElement(W.b,d);case"text subheading":return e.createElement(W.c,d);case"text two column":return e.createElement(W.g,d);case"text three column":return e.createElement(W.f,d);case"text code":return e.createElement(W.a,d);case"impact a":return e.createElement(V.e,d);case"impact b":return e.createElement(V.a,d);case"impact c":return e.createElement(V.b,d);case"impact d":return e.createElement(V.c,d);case"impact note":return e.createElement(V.d,d);case"quote a":return e.createElement(Y.f,d);case"quote b":return e.createElement(Y.a,d);case"quote c":return e.createElement(Y.c,d);case"quote d":return e.createElement(Y.e,d);case"quote background":return e.createElement(Y.b,d);case"quote carousel":return e.createElement(Y.d,d);case"list numbered":return e.createElement(G.c,d);case"list checkboxes":return e.createElement(G.b,d);case"list bulleted":return e.createElement(G.a,d);case"image hero":return e.createElement(K.d,d);case"image full":return e.createElement(K.a,d);case"image text aside":return e.createElement(K.c,d);case"image text overlay":return e.createElement(K.b,d);case"gallery centered":case"gallery full":return e.createElement($.b,d);case"gallery two column":return e.createElement($.a,d);case"gallery three column":return e.createElement($.a,Object(w.a)({width:3},d));case"gallery four column":return e.createElement($.a,Object(w.a)({width:4},d));case"divider divider":return e.createElement(X.c,d);case"divider numbered divider":return e.createElement(X.a,Object(w.a)({number:i},d));case"divider spacing divider":return e.createElement(X.b,d);case"360 storyline":return e.createElement(Z.a,Object(w.a)({},d,{isLesson:!0,menuOpen:s,handleStorylineFullscreen:a,hasManySlBlocks:M()(n=this.hasManySlBlocks).call(n,this)}));case"interactive accordion":return e.createElement(Q.c,d);case"interactive tabs":return e.createElement(Q.b,d);case"interactive-fullscreen labeledgraphic":return e.createElement(ie.a,d);case"interactive-fullscreen process":return e.createElement(oe.a,d);case"interactive-fullscreen scenario":return e.createElement(ae.a,d);case"interactive-fullscreen sorting":return e.createElement(se.a,d);case"interactive-fullscreen timeline":return e.createElement(ce.a,d);case"buttons button":return e.createElement(J.b,d);case"buttons button stack":return e.createElement(J.a,d);case"flashcard flashcard":return e.createElement(ne.b,d);case"flashcard stack":return e.createElement(ne.b,Object(w.a)({stack:!0},d));case"knowledge knowledge":return e.createElement(re.a,d);case"continue continue":return e.createElement(te.a,d);case"multimedia audio":return e.createElement(ee.b,d);case"multimedia video":return e.createElement(ee.d,d);case"multimedia custom video":return e.createElement(ee.d,Object(w.a)({},d,{type:"customVideo"}));case"multimedia embed":return e.createElement(ee.c,d);case"multimedia attachment":return e.createElement(ee.a,d);case"multimedia code":return e.createElement(W.a,d);case"knowledgeCheck multiple choice":case"knowledgeCheck multiple response":case"knowledgeCheck fillin":case"knowledgeCheck matching":return e.createElement(re.a,d);case"chart bar":case"chart line":return e.createElement(ue.a,d);case"chart pie":return e.createElement(ue.b,d);default:return"Unknown type: ".concat(f)}}},{key:"hasManySlBlocks",value:function(){var e=this.props.items;return e&&pe(e)}}]),r}(e.Component)}).call(this,n(0))},,function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return m}),n.d(t,"a",function(){return v}),n.d(t,"c",function(){return g});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=(n(2146),n(1)),f=n.n(l),d=n(185),h=n(43);function p(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(t){var n=t.processStepName,r=t.index,i=t.processStepPreposition,o=t.steps;return e.createElement("div",{className:"card__side"},e.createElement("div",{className:"card__step-label brand--background brand--body"},n," ",r," ",i," ",o))},v=function(t){var n=t.allowTabNavigation,r=t.description,i=t.index,o=t.labels,a=t.loadMedia,s=t.media,c=t.onFullScreenChange,u=t.settings,l=t.title,f=t.lessonNumber;return e.createElement("div",{className:"card__main"},e.createElement(h.a,{className:"card__title brand-afterBackground brand--lhead",tagName:"h1",value:l}),e.createElement("div",{className:"card__media"},a?e.createElement(d.a,{defaultAlign:"center",index:"".concat(i),labels:o,media:s,opts:u,onFullScreenChange:c,allowTabNavigation:n,lessonNumber:f}):null),e.createElement(h.a,{className:"card__description brand--lbody brand--linkColor",value:r,allowTabNavigation:n}))},g=function(t){Object(s.a)(r,t);var n=p(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t=this.props,n=t.index,r=t.labels,i=t.steps,o=r.processStepName,a=r.processStepPreposition;return e.createElement("div",{className:"card"},e.createElement("div",{className:"card__container"},e.createElement("div",{className:"card__row"},e.createElement(m,{processStepName:o,index:n,processStepPreposition:a,steps:i}),e.createElement(v,this.props))))}}],[{key:"defaultProps",get:function(){return{settings:{}}}},{key:"propTypes",get:function(){return{onClick:f.a.func,mediaSrc:f.a.string,mediaType:f.a.string,index:f.a.number.isRequired,title:f.a.string,description:f.a.string,loadMedia:f.a.bool.isRequired,allowTabNavigation:f.a.bool.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});n(60),n(45),n(59),n(44),n(34),n(49),n(75),n(62),n(12),n(28);var r=n(0);var i=Object(r.createContext)({});i.displayName="FeatureFlagsContext";var o=i.Provider;i.Consumer;function a(){return Object(r.useContext)(i)}function s(e){var t;return null!==(t=a()[e])&&void 0!==t&&t}}).call(this,n(0))},,,function(e,t,n){var r,i=n(133),o=n(255);
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(i(n)&&n.length){var c=s.apply(null,n);c&&e.push(c)}else if("object"===r)for(var u in n)a.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):"object"===o(n(637))&&n(637)?void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r):window.classNames=s}()},,function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))i.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){var r=n(155),i=n(118),o=n(581);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(118),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(585);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){e.exports=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(t){return new e(t)}}()},function(e,t,n){var r=n(220),i=n(18);e.exports=i(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})})},function(e,t,n){var r=n(176),i=n(219),o=n(588).indexOf,a=n(384);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(177);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(140),i=n(147),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){"use strict";var r=n(155),i=n(118),o=n(383),a=n(591),s=n(456),c=n(199),u=n(457),l=Object.assign,f=Object.defineProperty;e.exports=!l||i(function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")})?function(e,t){for(var n=c(e),i=arguments.length,l=1,f=a.f,d=s.f;i>l;)for(var h,p=u(arguments[l++]),m=f?o(p).concat(f(p)):o(p),v=m.length,g=0;v>g;)h=m[g++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:l},function(e,t,n){"use strict";var r=n(36),i=n(118),o=n(385),a=n(147),s=n(199),c=n(200),u=n(466),l=n(744),f=n(467),d=n(125),h=n(322),p=d("isConcatSpreadable"),m=h>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),v=f("concat"),g=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!v},{concat:function(e){var t,n,r,i,o,a=s(this),f=l(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],g(o)){if(d+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in o&&u(f,d,o[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(f,d++,o)}return f.length=d,f}})},function(e,t,n){var r=n(147),i=n(385),o=n(125)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(584),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){n(130)("iterator")},function(e,t,n){var r=n(459),i=n(247),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";var r=n(749).IteratorPrototype,i=n(299),o=n(298),a=n(274),s=n(329),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,n){"use strict";var r,i,o,a=n(118),s=n(386),c=n(203),u=n(176),l=n(125),f=n(105),d=l("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):h=!0);var p=null==r||a(function(){var e={};return r[d].call(e)!==e});p&&(r={}),f&&!p||u(r,d)||c(r,d,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(e,t,n){var r=n(118);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(178);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(153))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(153))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(153))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(153))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(153))},function(e,t,n){var r=n(1298),i=n(18);e.exports=i(function(e,t){for(var n,i,o=new r,a=[],s=0;s<t.length;)n=e(i=t[s]),o.add(n)&&a.push(i),s+=1;return a})},function(e,t,n){var r=n(38);e.exports=function(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(r(e[n],t))return n;n+=1}return-1}},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t})},function(e,t,n){"use strict";var r=n(168),i=n(199),o=n(1309),a=n(762),s=n(200),c=n(466),u=n(387);e.exports=function(e){var t,n,l,f,d,h,p=i(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=u(p),_=0;if(y&&(g=r(g,v>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(p.length));t>_;_++)h=y?g(p[_],_):p[_],c(n,_,h);else for(d=(f=b.call(p)).next,n=new m;!(l=d.call(f)).done;_++)h=y?o(f,g,[l.value,_],!0):l.value,c(n,_,h);return n.length=_,n}},function(e,t,n){var r=n(96);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(125),i=n(329),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(125)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(118),i=n(125),o=n(105),a=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},function(e,t,n){var r=n(96),i=n(387);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){var r=n(389)(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r});e.exports=r},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(390),i=n(179)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=i},function(e,t,n){var r=n(179),i=n(330),o=r(function(e,t){return i(e,function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i})});e.exports=o},function(e,t){e.exports=function(e){return function(){return!e.apply(this,arguments)}}},function(e,t,n){var r=n(51),i=n(751),o=n(273),a=n(600),s=n(381);e.exports=r(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():o(e)?[]:s(e)?"":a(e)?{}:i(e)?function(){return arguments}():void 0})},function(e,t){e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},function(e,t,n){var r=n(191),i=n(776),o=n(1340),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),u=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},l=r("function"!=typeof Object.keys||c?function(e){if(Object(e)!==e)return[];var t,n,r=[],l=c&&o(e);for(t in e)!i(t,e)||l&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)i(t=s[n],e)&&!u(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)});e.exports=l},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(191)(function(e){return function(){return e}});e.exports=r},function(e,t,n){var r=n(179)(function(e,t){return t>e?t:e});e.exports=r},function(e,t,n){var r=n(780),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},o={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},s=/\s|\//;function c(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(221)(c,n(339).EventEmitter),c.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},c.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},c.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));!this._options.xmlMode&&e in a||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},c.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},c.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},c.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},c.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},c.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},c.prototype.onattribdata=function(e){this._attribvalue+=e},c.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},c.prototype._getInstructionName=function(e){var t=e.search(s),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},c.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},c.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},c.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},c.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},c.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},c.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},c.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},c.prototype.parseComplete=function(e){this.reset(),this.end(e)},c.prototype.write=function(e){this._tokenizer.write(e)},c.prototype.end=function(e){this._tokenizer.end(e)},c.prototype.pause=function(){this._tokenizer.pause()},c.prototype.resume=function(){this._tokenizer.resume()},c.prototype.parseChunk=c.prototype.write,c.prototype.done=c.prototype.end,e.exports=c},function(e,t,n){e.exports=ye;var r,i,o=n(1349),a=n(1351),s=n(1352),c=n(1353),u=0,l=u++,f=u++,d=u++,h=u++,p=u++,m=u++,v=u++,g=u++,y=u++,b=u++,_=u++,w=u++,x=u++,k=u++,E=u++,S=u++,T=u++,O=u++,C=u++,j=u++,A=u++,M=u++,P=u++,N=u++,I=u++,L=u++,D=u++,R=u++,B=u++,F=u++,U=u++,q=u++,z=u++,H=u++,W=u++,V=u++,Y=u++,G=u++,K=u++,$=u++,X=u++,Q=u++,Z=u++,J=u++,ee=u++,te=u++,ne=u++,re=u++,ie=u++,oe=u++,ae=u++,se=u++,ce=u++,ue=u++,le=u++,fe=0,de=fe++,he=fe++,pe=fe++;function me(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function ve(e,t,n){var r=e.toLowerCase();return e===r?function(e){e===r?this._state=t:(this._state=n,this._index--)}:function(i){i===r||i===e?this._state=t:(this._state=n,this._index--)}}function ge(e,t){var n=e.toLowerCase();return function(r){r===n||r===e?this._state=t:(this._state=d,this._index--)}}function ye(e,t){this._state=l,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=l,this._special=de,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ye.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=f,this._sectionStart=this._index):this._decodeEntities&&this._special===de&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=l,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeTagName=function(e){"/"===e?this._state=p:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==de||me(e)?this._state=l:"!"===e?(this._state=E,this._sectionStart=this._index+1):"?"===e?(this._state=T,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?d:U,this._sectionStart=this._index)},ye.prototype._stateInTagName=function(e){("/"===e||">"===e||me(e))&&(this._emitToken("onopentagname"),this._state=g,this._index--)},ye.prototype._stateBeforeCloseingTagName=function(e){me(e)||(">"===e?this._state=l:this._special!==de?"s"===e||"S"===e?this._state=q:(this._state=l,this._index--):(this._state=m,this._sectionStart=this._index))},ye.prototype._stateInCloseingTagName=function(e){(">"===e||me(e))&&(this._emitToken("onclosetag"),this._state=v,this._index--)},ye.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=l,this._sectionStart=this._index+1)},ye.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=l,this._sectionStart=this._index+1):"/"===e?this._state=h:me(e)||(this._state=y,this._sectionStart=this._index)},ye.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=l,this._sectionStart=this._index+1):me(e)||(this._state=g,this._index--)},ye.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||me(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=b,this._index--)},ye.prototype._stateAfterAttributeName=function(e){"="===e?this._state=_:"/"===e||">"===e?(this._cbs.onattribend(),this._state=g,this._index--):me(e)||(this._cbs.onattribend(),this._state=y,this._sectionStart=this._index)},ye.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=w,this._sectionStart=this._index+1):"'"===e?(this._state=x,this._sectionStart=this._index+1):me(e)||(this._state=k,this._sectionStart=this._index,this._index--)},ye.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueNoQuotes=function(e){me(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=g,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeDeclaration=function(e){this._state="["===e?M:"-"===e?O:S},ye.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=l,this._sectionStart=this._index+1)},ye.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=l,this._sectionStart=this._index+1)},ye.prototype._stateBeforeComment=function(e){"-"===e?(this._state=C,this._sectionStart=this._index+1):this._state=S},ye.prototype._stateInComment=function(e){"-"===e&&(this._state=j)},ye.prototype._stateAfterComment1=function(e){this._state="-"===e?A:C},ye.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"-"!==e&&(this._state=C)},ye.prototype._stateBeforeCdata1=ve("C",P,S),ye.prototype._stateBeforeCdata2=ve("D",N,S),ye.prototype._stateBeforeCdata3=ve("A",I,S),ye.prototype._stateBeforeCdata4=ve("T",L,S),ye.prototype._stateBeforeCdata5=ve("A",D,S),ye.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=R,this._sectionStart=this._index+1):(this._state=S,this._index--)},ye.prototype._stateInCdata=function(e){"]"===e&&(this._state=B)},ye.prototype._stateAfterCdata1=(r="]",i=F,function(e){e===r&&(this._state=i)}),ye.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"]"!==e&&(this._state=R)},ye.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=z:"t"===e||"T"===e?this._state=Z:(this._state=d,this._index--)},ye.prototype._stateBeforeSpecialEnd=function(e){this._special!==he||"c"!==e&&"C"!==e?this._special!==pe||"t"!==e&&"T"!==e?this._state=l:this._state=ne:this._state=G},ye.prototype._stateBeforeScript1=ge("R",H),ye.prototype._stateBeforeScript2=ge("I",W),ye.prototype._stateBeforeScript3=ge("P",V),ye.prototype._stateBeforeScript4=ge("T",Y),ye.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||me(e))&&(this._special=he),this._state=d,this._index--},ye.prototype._stateAfterScript1=ve("R",K,l),ye.prototype._stateAfterScript2=ve("I",$,l),ye.prototype._stateAfterScript3=ve("P",X,l),ye.prototype._stateAfterScript4=ve("T",Q,l),ye.prototype._stateAfterScript5=function(e){">"===e||me(e)?(this._special=de,this._state=m,this._sectionStart=this._index-6,this._index--):this._state=l},ye.prototype._stateBeforeStyle1=ge("Y",J),ye.prototype._stateBeforeStyle2=ge("L",ee),ye.prototype._stateBeforeStyle3=ge("E",te),ye.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||me(e))&&(this._special=pe),this._state=d,this._index--},ye.prototype._stateAfterStyle1=ve("Y",re,l),ye.prototype._stateAfterStyle2=ve("L",ie,l),ye.prototype._stateAfterStyle3=ve("E",oe,l),ye.prototype._stateAfterStyle4=function(e){">"===e||me(e)?(this._special=de,this._state=m,this._sectionStart=this._index-5,this._index--):this._state=l},ye.prototype._stateBeforeEntity=ve("#",se,ce),ye.prototype._stateBeforeNumericEntity=ve("X",le,ue),ye.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?c:a;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},ye.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(s.hasOwnProperty(n))return this._emitPartial(s[n]),void(this._sectionStart+=t+1);t--}},ye.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==l?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ye.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),i=parseInt(r,t);this._emitPartial(o(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ye.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ye.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ye.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===l?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ye.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ye.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===l?this._stateText(e):this._state===f?this._stateBeforeTagName(e):this._state===d?this._stateInTagName(e):this._state===p?this._stateBeforeCloseingTagName(e):this._state===m?this._stateInCloseingTagName(e):this._state===v?this._stateAfterCloseingTagName(e):this._state===h?this._stateInSelfClosingTag(e):this._state===g?this._stateBeforeAttributeName(e):this._state===y?this._stateInAttributeName(e):this._state===b?this._stateAfterAttributeName(e):this._state===_?this._stateBeforeAttributeValue(e):this._state===w?this._stateInAttributeValueDoubleQuotes(e):this._state===x?this._stateInAttributeValueSingleQuotes(e):this._state===k?this._stateInAttributeValueNoQuotes(e):this._state===E?this._stateBeforeDeclaration(e):this._state===S?this._stateInDeclaration(e):this._state===T?this._stateInProcessingInstruction(e):this._state===O?this._stateBeforeComment(e):this._state===C?this._stateInComment(e):this._state===j?this._stateAfterComment1(e):this._state===A?this._stateAfterComment2(e):this._state===M?this._stateBeforeCdata1(e):this._state===P?this._stateBeforeCdata2(e):this._state===N?this._stateBeforeCdata3(e):this._state===I?this._stateBeforeCdata4(e):this._state===L?this._stateBeforeCdata5(e):this._state===D?this._stateBeforeCdata6(e):this._state===R?this._stateInCdata(e):this._state===B?this._stateAfterCdata1(e):this._state===F?this._stateAfterCdata2(e):this._state===U?this._stateBeforeSpecial(e):this._state===q?this._stateBeforeSpecialEnd(e):this._state===z?this._stateBeforeScript1(e):this._state===H?this._stateBeforeScript2(e):this._state===W?this._stateBeforeScript3(e):this._state===V?this._stateBeforeScript4(e):this._state===Y?this._stateBeforeScript5(e):this._state===G?this._stateAfterScript1(e):this._state===K?this._stateAfterScript2(e):this._state===$?this._stateAfterScript3(e):this._state===X?this._stateAfterScript4(e):this._state===Q?this._stateAfterScript5(e):this._state===Z?this._stateBeforeStyle1(e):this._state===J?this._stateBeforeStyle2(e):this._state===ee?this._stateBeforeStyle3(e):this._state===te?this._stateBeforeStyle4(e):this._state===ne?this._stateAfterStyle1(e):this._state===re?this._stateAfterStyle2(e):this._state===ie?this._stateAfterStyle3(e):this._state===oe?this._stateAfterStyle4(e):this._state===ae?this._stateBeforeEntity(e):this._state===se?this._stateBeforeNumericEntity(e):this._state===ce?this._stateInNamedEntity(e):this._state===ue?this._stateInNumericEntity(e):this._state===le?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},ye.prototype.pause=function(){this._running=!1},ye.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},ye.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},ye.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},ye.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===R||this._state===B||this._state===F?this._cbs.oncdata(e):this._state===C||this._state===j||this._state===A?this._cbs.oncomment(e):this._state!==ce||this._xmlMode?this._state!==ue||this._xmlMode?this._state!==le||this._xmlMode?this._state!==d&&this._state!==g&&this._state!==_&&this._state!==b&&this._state!==y&&this._state!==x&&this._state!==w&&this._state!==k&&this._state!==m&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},ye.prototype.reset=function(){ye.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},ye.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},ye.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},ye.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},ye.prototype._emitPartial=function(e){this._baseState!==l?this._cbs.onattribdata(e):this._cbs.ontext(e)}},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},i={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach(function(e){var t=r[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){e.exports=s;var r=n(779),i=n(1358).Writable||n(1371).Writable,o=n(610).StringDecoder,a=n(331).Buffer;function s(e,t){var n=this._parser=new r(e,t),a=this._decoder=new o;i.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end(a.end())})}n(221)(s,i),i.prototype._write=function(e,t,n){e instanceof a&&(e=this._decoder.write(e)),this._parser.write(e),n()}},function(e,t,n){"use strict";(function(t,r){var i=n(472);e.exports=b;var o,a=n(784);b.ReadableState=y;n(339).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(785),u=n(473).Buffer,l=t.Uint8Array||function(){};var f=n(394);f.inherits=n(221);var d=n(1361),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=n(1362),v=n(786);f.inherits(b,c);var g=["error","close","destroy","pause","resume"];function y(e,t){o=o||n(302),e=e||{},this.objectMode=!!e.objectMode,t instanceof o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(610).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(302),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,a)):(i||(o=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):T(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),T(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=u.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=n(610).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var x=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i(S,e):S(e))}function S(e){h("emit readable"),e.emit("readable"),A(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function C(e){h("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i(N,t,e))}function N(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function u(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}o.endEmitted?i(c):n.once("end",c),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var d=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!d&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){h("onerror",t),b(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){h("onfinish"),e.removeListener("close",g),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",y),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=I(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},b.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):i(C,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i(j,e,t))}(this,e)),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(h("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(h("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],r.emit.bind(r,g[o]));return r._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},r},b._fromList=M}).call(this,n(99),n(277))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(339).EventEmitter},function(e,t,n){"use strict";var r=n(472);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;o||a?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r(i,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=a;var r=n(302),i=n(394);function o(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(t)})}function s(e,t,n){if(t)return e.emit("error",t);null!=n&&e.push(n);var r=e._writableState,i=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(221),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(789)),o=r(n(1378)),a=r(n(790)),s=r(n(1379));function c(e){var t=Object.keys(e).join("|"),n=l(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=c(a.default),t.decodeHTMLStrict=c(i.default);var u=function(e,t){return e<t?1:-1};function l(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(u),t=Object.keys(i.default).sort(u),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=l(i.default);function c(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,c)}}()},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=c(r(n(790)).default),o=u(i);t.encodeXML=p(i,o);var a=c(r(n(789)).default),s=u(a);function c(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function u(e){var t=[],n=[];return Object.keys(e).forEach(function(e){return 1===e.length?t.push("\\"+e):n.push(e)}),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=p(a,s);var l=/[^\0-\x7F]/g,f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function d(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function h(e,t){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function p(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(f,h).replace(l,d)}}var m=u(i);t.escape=function(e){return e.replace(m,d).replace(f,h).replace(l,d)}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1396)),i=a(n(793)),o=a(n(1397));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r,i,o,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),a&&(this.plugin=a),void 0!==n&&void 0!==r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;void 0===e&&(e=r.default.stdout),e&&(n=(0,o.default)(n));var a=n.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;function l(t){return e&&i.default.red?i.default.red.bold(t):t}function f(t){return e&&i.default.gray?i.default.gray(t):t}return a.slice(s,c).map(function(e,n){var r=s+1+n,i=" "+(" "+r).slice(-u)+" | ";if(r===t.line){var o=f(i.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return l(">")+f(i)+e+"\n "+o+l("^")}return" "+f(i)+e}).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();t.default=s,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.css.valueOf(),T=t.ignoreErrors,O=void 0,C=void 0,j=void 0,A=void 0,M=void 0,P=void 0,N=void 0,I=void 0,L=void 0,D=void 0,R=void 0,B=void 0,F=void 0,U=void 0,q=n.length,z=-1,H=1,W=0,V=[],Y=[];function G(t){throw e.error("Unclosed "+t,H,W-z)}return{back:function(e){Y.push(e)},nextToken:function(){if(Y.length)return Y.pop();if(W>=q)return;((O=n.charCodeAt(W))===s||O===u||O===f&&n.charCodeAt(W+1)!==s)&&(z=W,H+=1);switch(O){case s:case c:case l:case f:case u:C=W;do{C+=1,(O=n.charCodeAt(C))===s&&(z=C,H+=1)}while(O===c||O===s||O===l||O===f||O===u);U=["space",n.slice(W,C)],W=C-1;break;case d:U=["[","[",H,W-z];break;case h:U=["]","]",H,W-z];break;case v:U=["{","{",H,W-z];break;case g:U=["}","}",H,W-z];break;case _:U=[":",":",H,W-z];break;case y:U=[";",";",H,W-z];break;case p:if(B=V.length?V.pop()[1]:"",F=n.charCodeAt(W+1),"url"===B&&F!==r&&F!==i&&F!==c&&F!==s&&F!==l&&F!==u&&F!==f){C=W;do{if(D=!1,-1===(C=n.indexOf(")",C+1))){if(T){C=W;break}G("bracket")}for(R=C;n.charCodeAt(R-1)===o;)R-=1,D=!D}while(D);U=["brackets",n.slice(W,C+1),H,W-z,H,C-z],W=C}else C=n.indexOf(")",W+1),P=n.slice(W,C+1),-1===C||E.test(P)?U=["(","(",H,W-z]:(U=["brackets",P,H,W-z,H,C-z],W=C);break;case m:U=[")",")",H,W-z];break;case r:case i:j=O===r?"'":'"',C=W;do{if(D=!1,-1===(C=n.indexOf(j,C+1))){if(T){C=W+1;break}G("string")}for(R=C;n.charCodeAt(R-1)===o;)R-=1,D=!D}while(D);P=n.slice(W,C+1),A=P.split("\n"),(M=A.length-1)>0?(I=H+M,L=C-A[M].length):(I=H,L=z),U=["string",n.slice(W,C+1),H,W-z,I,C-L],z=L,H=I,W=C;break;case w:x.lastIndex=W+1,x.test(n),C=0===x.lastIndex?n.length-1:x.lastIndex-2,U=["at-word",n.slice(W,C+1),H,W-z,H,C-z],W=C;break;case o:for(C=W,N=!0;n.charCodeAt(C+1)===o;)C+=1,N=!N;if(O=n.charCodeAt(C+1),N&&O!==a&&O!==c&&O!==s&&O!==l&&O!==f&&O!==u&&(C+=1,S.test(n.charAt(C)))){for(;S.test(n.charAt(C+1));)C+=1;n.charCodeAt(C+1)===c&&(C+=1)}U=["word",n.slice(W,C+1),H,W-z,H,C-z],W=C;break;default:O===a&&n.charCodeAt(W+1)===b?(0===(C=n.indexOf("*/",W+2)+1)&&(T?C=n.length:G("comment")),P=n.slice(W,C+1),A=P.split("\n"),(M=A.length-1)>0?(I=H+M,L=C-A[M].length):(I=H,L=z),U=["comment",P,H,W-z,I,C-L],z=L,H=I,W=C):(k.lastIndex=W+1,k.test(n),C=0===k.lastIndex?n.length-1:k.lastIndex-2,U=["word",n.slice(W,C+1),H,W-z,H,C-z],V.push(U),W=C)}return W++,U},endOfFile:function(){return 0===Y.length&&W>=q}}};var r=39,i=34,o=92,a=47,s=10,c=32,u=12,l=9,f=13,d=91,h=93,p=40,m=41,v=123,g=125,y=59,b=42,_=58,w=64,x=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,k=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,E=/.[\\\/\("'\n]/,S=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(792)),o=s(n(1398)),a=s(n(613));function s(e){return e&&e.__esModule?e:{default:e}}var c=0,u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.css=t.toString(),"\ufeff"!==this.css[0]&&""!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=a.default.resolve(n.from));var r=new o.default(this.css,n);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}this.file||(c+=1,this.id="<input css "+c+">"),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,a=this.origin(t,n);return(o=a?new i.default(e,a.line,a.column,a.source,a.file,r.plugin):new i.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var i={file:this.mapResolve(r.source),line:r.line,column:r.column},o=n.sourceContentFor(r.source);return o&&(i.source=o),i},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:a.default.resolve(this.map.consumer().sourceRoot||".",e)},r(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t.default=u,e.exports=t.default},function(e,t,n){t.SourceMapGenerator=n(797).SourceMapGenerator,t.SourceMapConsumer=n(1401).SourceMapConsumer,t.SourceNode=n(1404).SourceNode},function(e,t,n){var r=n(798),i=n(395),o=n(799).ArraySet,a=n(1400).MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(r){var o=r;null!==t&&(o=i.relative(t,r)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(r);null!=a&&n.setSourceContent(r,a)}),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=i.relative(a,r));var s=new o,c=new o;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=a&&(t.source=i.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var u=t.source;null==u||s.has(u)||s.add(u);var l=t.name;null==l||c.has(l)||c.add(l)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,r))},this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,o,a=0,s=1,c=0,u=0,l=0,f=0,d="",h=this._mappings.toArray(),p=0,m=h.length;p<m;p++){if(e="",(t=h[p]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(p>0){if(!i.compareByGeneratedPositionsInflated(t,h[p-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-f),f=o,e+=r.encode(t.originalLine-1-u),u=t.originalLine-1,e+=r.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var r=n(1399);t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,o,a,s,c=e.length,u=0,l=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),u+=(o&=31)<<l,l+=5}while(i);n.value=(s=(a=u)>>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){var r=n(395),i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function a(){this._array=[],this._set=o?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},a.prototype.size=function(){return o?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=o?e:r.toSetString(e),a=o?this.has(e):i.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(o?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(o)return this._set.has(e);var t=r.toSetString(e);return i.call(this._set,t)},a.prototype.indexOf=function(e){if(o){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},function(e,t,n){"use strict";t.__esModule=!0;var r={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.builder=t}return e.prototype.stringify=function(e,t){this[e.type](e,t)},e.prototype.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},e.prototype.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},e.prototype.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},e.prototype.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},e.prototype.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}},e.prototype.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}},e.prototype.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},e.prototype.raw=function(e,t,n){var i=void 0;if(n||(n=t),t&&void 0!==(i=e.raws[t]))return i;var o=e.parent;if("before"===n&&(!o||"root"===o.type&&o.first===e))return"";if(!o)return r[n];var a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,c="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[c]?i=this[c](a,e):a.walk(function(e){if(void 0!==(i=e.raws[t]))return!1}),void 0===i&&(i=r[n]),a.rawCache[n]=i,i},e.prototype.rawSemicolon=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},e.prototype.rawEmptyBody=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},e.prototype.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var i=n.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/[^\s]/g,""),!1}}),t},e.prototype.rawBeforeComment=function(e,t){var n=void 0;return e.walkComments(function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeDecl=function(e,t){var n=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeRule=function(e){var t=void 0;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeClose=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},e.prototype.beforeAfter=function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(-1!==n.indexOf("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n},e.prototype.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if(r[e])return;r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e)};var r={};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(803),a=(r=o)&&r.__esModule?r:{default:r};var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="6.0.16",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.default(this,e,t)},e.prototype.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;if(s.postcss&&(s=s.postcss),"object"===(void 0===s?"undefined":i(s))&&Array.isArray(s.plugins))t=t.concat(s.plugins);else{if("function"!=typeof s)throw"object"===(void 0===s?"undefined":i(s))&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}}return t},e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=l(n(1406)),a=l(n(614)),s=l(n(801)),c=l(n(1407)),u=l(n(615));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){return"object"===(void 0===e?"undefined":i(e))&&"function"==typeof e.then}var d=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringified=!1,this.processed=!1;var o=void 0;if("object"===(void 0===n?"undefined":i(n))&&"root"===n.type)o=n;else if(n instanceof e||n instanceof c.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=u.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new c.default(t,o,r)}return e.prototype.warnings=function(){return this.sync().warnings()},e.prototype.toString=function(){return this.css},e.prototype.then=function(e,t){return"from"in this.opts||(0,s.default)("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)},e.prototype.catch=function(e){return this.async().catch(e)},e.prototype.handleError=function(e,t){try{if(this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(t.postcssVersion){var n=t.postcssPlugin,r=t.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],i=this.run(r);this.plugin+=1,f(i)?i.then(function(){n.asyncTick(e,t)}).catch(function(e){n.handleError(e,r),n.processed=!0,t(e)}):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise(function(t,n){e.error?n(e.error):t(e.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)}).then(function(){return e.processed=!0,e.stringify()}),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r;if(f(this.run(i)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=a.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new o.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},r(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();t.default=d,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r={split:function(e,t,n){for(var r=[],i="",o=!1,a=0,s=!1,c=!1,u=0;u<e.length;u++){var l=e[u];s?c?c=!1:"\\"===l?c=!0:l===s&&(s=!1):'"'===l||"'"===l?s=l:"("===l?a+=1:")"===l?a>0&&(a-=1):0===a&&-1!==t.indexOf(l)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=l}return(n||""!==i)&&r.push(i.trim()),r},space:function(e){return r.split(e,[" ","\n","\t"])},comma:function(e){return r.split(e,[","],!0)}};t.default=r,e.exports=t.default},function(e,t){e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(18),i=n(193),o=n(515),a=n(57),s=n(30);e.exports=r(function(e,t){var n=a(e,t);return a(e,function(){return i(o,s(n,arguments[0]),Array.prototype.slice.call(arguments,1))})})},function(e,t,n){"use strict";t.__esModule=!0,t.isFSA=function(e){return o.default(e)&&void 0!==e.type&&Object.keys(e).every(s)},t.isError=function(e){return!0===e.error};var r,i=n(1431),o=(r=i)&&r.__esModule?r:{default:r},a=["type","payload","error","meta"];function s(e){return a.indexOf(e)>-1}},function(e,t){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a=Object.prototype,s=a.hasOwnProperty,c=a.toString,u=a.propertyIsEnumerable;e.exports=function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return t==i||t==o}(e)}(e)}(e)&&s.call(e,"callee")&&(!u.call(e,"callee")||c.call(e)==r)}},function(e,t,n){"use strict";var r=n(36),i=n(386),o=n(465),a=n(299),s=n(203),c=n(298),u=n(135),l=function(e,t){var n=this;if(!(n instanceof l))return new l(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return u(e,r.push,{that:r}),s(n,"errors",r),n};l.prototype=a(Error.prototype,{constructor:c(5,l),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:l})},function(e,t,n){var r=n(122);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(177),i=n(204),o=n(125),a=n(155),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r,i,o,a=n(122),s=n(118),c=n(168),u=n(740),l=n(581),f=n(813),d=n(397),h=a.location,p=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},x=function(e){return function(){w(e)}},k=function(e){w(e.data)},E=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&m||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},d?r=function(e){v.nextTick(x(e))}:y&&y.now?r=function(e){y.now(x(e))}:g&&!f?(o=(i=new g).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!s(E)?(r=E,a.addEventListener("message",k,!1)):r="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:p,clear:m}},function(e,t,n){var r=n(323);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(96),i=n(147),o=n(398);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(36),i=n(140),o=n(398),a=n(478),s=n(135);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,u=a(function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then(function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))},function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))})}),--c||r(o)});return u.error&&c(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(36),i=n(140),o=n(177),a=n(398),s=n(478),c=n(135);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s(function(){var n=i(t.resolve),a=[],s=0,l=1,f=!1;c(e,function(e){var i=s++,c=!1;a.push(void 0),l++,n.call(t,e).then(function(e){c||f||(f=!0,r(e))},function(e){c||f||(c=!0,a[i]=e,--l||u(new(o("AggregateError"))(a,"No one promise resolved")))})}),--l||u(new(o("AggregateError"))(a,"No one promise resolved"))});return l.error&&u(l.value),n.promise}})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(216),i=n(443);e.exports=function(e){return i(e)&&(r("empty",e)||r("empty",e.constructor))}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(90);e.exports=function(e){return e&&r(e.type)?e.type():{}.toString.call(e).slice(8,-1)}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(717),i=n(1450);e.exports=function(e){return function(t){return r(e)?e.of(t):i(Array,e)?[t]:e(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(821);e.exports=function(e){return r(e)&&isFinite(e)&&Math.floor(e)===e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){var r=n(462);e.exports=function(e){return function t(n){for(var i,o,a,s=[],c=0,u=n.length;c<u;){if(r(n[c]))for(a=0,o=(i=e?t(n[c]):n[c]).length;a<o;)s[s.length]=i[a],a+=1;else s[s.length]=n[c];c+=1}return s}}},function(e,t,n){var r=n(140),i=n(199),o=n(457),a=n(200),s=function(e){return function(t,n,s,c){r(n);var u=i(t),l=o(u),f=a(u.length),d=e?f-1:0,h=e?-1:1;if(s<2)for(;;){if(d in l){c=l[d],d+=h;break}if(d+=h,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=h)d in l&&(c=n(c,l[d],d,u));return c}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){var r=n(61),i=n(178),o=n(273),a=n(624),s=n(26),c=n(32);e.exports=r(function e(t,n,r){if(0===t.length)return n;var u=t[0];if(t.length>1){var l=!c(r)&&i(u,r)?r[u]:a(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,l)}if(a(u)&&o(r)){var f=[].concat(r);return f[u]=n,f}return s(u,n,r)})},function(e,t,n){var r=n(220),i=n(18);e.exports=function(e){return i(function(t,n){return r(Math.max(0,t.length-n.length),function(){return t.apply(this,e(n,arguments))})})}},function(e,t,n){var r=n(18),i=n(276),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=i(this.xf["@@transducer/step"](e,!0))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e&&t})},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r="string"==typeof e?e:String(e);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,o)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},s)}}},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){var r=n(773),i=n(602);e.exports=function e(t,n,o,a){var s=function(r){for(var i=n.length,s=0;s<i;){if(t===n[s])return o[s];s+=1}for(var c in n[s+1]=t,o[s+1]=r,t)r[c]=a?e(t[c],n,o,!0):t[c];return r};switch(i(t)){case"Object":return s({});case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return r(t);default:return t}}},function(e,t,n){var r=n(625),i=n(8),o=n(30);e.exports=function(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return i(i.apply(this,o(r,e)),t)}},function(e,t,n){var r=n(18),i=n(79),o=n(483);e.exports=r(function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:i(o(e,function(e,n,r,i,o,a,s,c,u,l){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,i);case 5:return new t(e,n,r,i,o);case 6:return new t(e,n,r,i,o,a);case 7:return new t(e,n,r,i,o,a,s);case 8:return new t(e,n,r,i,o,a,s,c);case 9:return new t(e,n,r,i,o,a,s,c,u);case 10:return new t(e,n,r,i,o,a,s,c,u,l)}}))})},function(e,t,n){var r=n(485),i=n(61);e.exports=i(function(e,t,n){for(var i=[],o=0,a=t.length;o<a;)r(e,t[o],n)||r(e,t[o],i)||i.push(t[o]),o+=1;return i})},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(134),o=n(834),a=n(143);e.exports=r(i([],o,function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r<i;)e(a(n),t[r])||(n[n.length]=t[r]),r+=1;return n}))},function(e,t,n){var r=n(18),i=n(524);e.exports=r(function(e,t){return i(e>=0?t.length-e:0,t)})},function(e,t,n){var r=n(51),i=n(348);e.exports=r(function(e){return i(e)/e.length})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n={},r=0,i=e.length;r<i;){var o=e[r];n[o]=t[o],r+=1}return n})},function(e,t,n){var r=n(18),i=n(57);e.exports=r(function(e,t){return i(t.length,function(){for(var n=[],r=0;r<t.length;)n.push(t[r].call(this,arguments[r])),r+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))})})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){for(var r=n.length-1;r>=0;)t=e(n[r],t),r-=1;return t})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);i<r;)n[i]=e(i),i+=1;return n})},function(e,t,n){var r=n(18),i=n(515),o=n(30),a=n(343),s=n(840);e.exports=r(function(e,t){return"function"==typeof t.sequence?t.sequence(e):s(function(e,t){return i(o(a,e),t)},e([]),t)})},function(e,t,n){var r=n(18),i=n(178);e.exports=r(function(e,t){for(var n in e)if(i(n,e)&&!e[n](t[n]))return!1;return!0})},function(e,t,n){var r=n(384),i=n(147),o=n(176),a=n(204).f,s=n(460),c=n(1609),u=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},onFreeze:function(e){return c&&h.REQUIRED&&f(e)&&!o(e,u)&&d(e),e}};r[u]=!0},function(e,t,n){"use strict";var r=n(96);e.exports=function(e,t){var n,i=r(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t&&"function"!=typeof o)throw TypeError("At least one callback required");return i.has(e)?(n=i.get(e),"function"==typeof t&&(n=t(n),i.set(e,n))):"function"==typeof o&&(n=o(),i.set(e,n)),n}},function(e,t){
/** @license ISC License (c) copyright 2016 original and current authors */
var n=Object.prototype.toString;e.exports=function(e){return!!e&&"[object Object]"===n.call(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(e){return"Const("+e+")"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Tuple:function(e){return e+"-Tuple"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e,t){return{type:function(){return r(e)(t)}}},type:r,typeFn:function(e,t,n){return"crocks/"+r(e)(n)+"@"+(t||0)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(303),i=n(1650);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(847),i=n(303);e.exports=function(e){return r(e)||!!e&&i("concat",e)}},function(e,t,n){var r=n(47),i=n(249);
/** @license ISC License (c) copyright 2017 original and current authors */e.exports=function(e){var t;return e&&i(e.type)?e.type():r(t={}.toString.call(e)).call(t,8,-1)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(189);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(189),i=n(1671),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:("undefined"!=typeof XMLHttpRequest?s=n(856):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(s=n(856)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(o)}),e.exports=c}).call(this,n(277))},function(e,t,n){"use strict";var r=n(189),i=n(1672),o=n(853),a=n(1674),s=n(1677),c=n(1678),u=n(857);e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var v=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,l,r),h=null}},h.onabort=function(){h&&(l(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(u(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(1679),y=(e.withCredentials||c(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in h&&r.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),l(e),h=null)}),void 0===f&&(f=null),h.send(f)})}},function(e,t,n){"use strict";var r=n(1673);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(189);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){void 0!==t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),c=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(c,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(607);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return r(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){
/** @license ISC License (c) copyright 2016 original and current authors */
var n=Object.prototype.toString;e.exports=function(e){return!!e&&"[object Object]"===n.call(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(e){return"Const("+e+")"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Tuple:function(e){return e+"-Tuple"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e,t){return{type:function(){return r(e)(t)}}},type:r,typeFn:function(e,t,n){return"crocks/"+r(e)(n)+"@"+(t||0)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(304),i=n(1696);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(862),i=n(304);e.exports=function(e){return r(e)||!!e&&i("concat",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(250);e.exports=function(e){return e&&r(e.type)?e.type():{}.toString.call(e).slice(8,-1)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t,n){var r=n(1737),i=n(1799),o=n(1806),a=n(251),s=n(1807);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(490),i=n(1744),o=n(1745),a=n(1746),s=n(1747),c=n(1748);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(333),i=n(305),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==c}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(99))},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(1767),i=n(334);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(1768),i=n(1771),o=n(1772),a=1,s=2;e.exports=function(e,t,n,c,u,l){var f=n&a,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=l.get(e);if(p&&l.get(t))return p==t;var m=-1,v=!0,g=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++m<d;){var y=e[m],b=t[m];if(c)var _=f?c(b,y,m,t,e,l):c(y,b,m,e,t,l);if(void 0!==_){if(_)continue;v=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(y===e||u(y,e,n,c,l)))return g.push(t)})){v=!1;break}}else if(y!==b&&!u(y,b,n,c,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(1786),i=n(334),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(223),i=n(1787),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(248)(e))},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(1788),i=n(880),o=n(881),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(872),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(248)(e))},function(e,t,n){var r=n(871),i=n(635);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(305);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(886),i=n(497);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(251),i=n(636),o=n(1800),a=n(280);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(492),i=n(888),o=n(251),a=n(496),s=1/0,c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1811);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(305),i=n(496),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(179),i=n(1827),o=r(function(e,t){return i([e],t)});e.exports=o},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){return null==e||e!=e}},function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i="http://www.w3.org/1999/xhtml",o={},a=o.ELEMENT_NODE=1,s=o.ATTRIBUTE_NODE=2,c=o.TEXT_NODE=3,u=o.CDATA_SECTION_NODE=4,l=o.ENTITY_REFERENCE_NODE=5,f=o.ENTITY_NODE=6,d=o.PROCESSING_INSTRUCTION_NODE=7,h=o.COMMENT_NODE=8,p=o.DOCUMENT_NODE=9,m=o.DOCUMENT_TYPE_NODE=10,v=o.DOCUMENT_FRAGMENT_NODE=11,g=o.NOTATION_NODE=12,y={},b={},_=(y.INDEX_SIZE_ERR=(b[1]="Index size error",1),y.DOMSTRING_SIZE_ERR=(b[2]="DOMString size error",2),y.HIERARCHY_REQUEST_ERR=(b[3]="Hierarchy request error",3)),w=(y.WRONG_DOCUMENT_ERR=(b[4]="Wrong document",4),y.INVALID_CHARACTER_ERR=(b[5]="Invalid character",5),y.NO_DATA_ALLOWED_ERR=(b[6]="No data allowed",6),y.NO_MODIFICATION_ALLOWED_ERR=(b[7]="No modification allowed",7),y.NOT_FOUND_ERR=(b[8]="Not found",8)),x=(y.NOT_SUPPORTED_ERR=(b[9]="Not supported",9),y.INUSE_ATTRIBUTE_ERR=(b[10]="Attribute in use",10));y.INVALID_STATE_ERR=(b[11]="Invalid state",11),y.SYNTAX_ERR=(b[12]="Syntax error",12),y.INVALID_MODIFICATION_ERR=(b[13]="Invalid modification",13),y.NAMESPACE_ERR=(b[14]="Invalid namespace",14),y.INVALID_ACCESS_ERR=(b[15]="Invalid access",15);function k(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,b[e]),this.message=b[e],Error.captureStackTrace&&Error.captureStackTrace(this,k);return n.code=e,t&&(this.message=this.message+": "+t),n}function E(){}function S(e,t){this._node=e,this._refresh=t,T(this)}function T(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);ne(e,"length",r.length),n(r,e),e._inc=t}}function O(){}function C(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function j(e,t,n,r){if(r?t[C(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&D(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function A(e,t,n){var r=C(t,n);if(!(r>=0))throw k(w,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(D(o,e,n),n.ownerElement=null)}}function M(e){if(this._features={},e)for(var t in e)this._features=e[t]}function P(){}function N(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function I(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(I(e,t))return!0}while(e=e.nextSibling)}function L(){}function D(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function R(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,R(e.ownerDocument,e),t}function F(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===v){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return R(e.ownerDocument||e,e),t.nodeType==v&&(t.firstChild=t.lastChild=null),t}function U(){this._nsMap={}}function q(){}function z(){}function H(){}function W(){}function V(){}function Y(){}function G(){}function K(){}function $(){}function X(){}function Q(){}function Z(){}function J(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return te(this,n,e,t,a),n.join("")}function ee(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function te(e,t,n,r,o){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case a:o||(o=[]);o.length;var f=e.attributes,g=f.length,y=e.firstChild,b=e.tagName;n=i===e.namespaceURI||n,t.push("<",b);for(var _=0;_<g;_++){"xmlns"==(w=f.item(_)).prefix?o.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&o.push({prefix:"",namespace:w.value})}for(_=0;_<g;_++){var w;if(ee(w=f.item(_),0,o)){var x=w.prefix||"",k=w.namespaceURI,E=x?" xmlns:"+x:" xmlns";t.push(E,'="',k,'"'),o.push({prefix:x,namespace:k})}te(w,t,n,r,o)}if(ee(e,0,o)){x=e.prefix||"",k=e.namespaceURI,E=x?" xmlns:"+x:" xmlns";t.push(E,'="',k,'"'),o.push({prefix:x,namespace:k})}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(b)){if(t.push(">"),n&&/^script$/i.test(b))for(;y;)y.data?t.push(y.data):te(y,t,n,r,o),y=y.nextSibling;else for(;y;)te(y,t,n,r,o),y=y.nextSibling;t.push("</",b,">")}else t.push("/>");return;case p:case v:for(y=e.firstChild;y;)te(y,t,n,r,o),y=y.nextSibling;return;case s:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,N),'"');case c:return t.push(e.data.replace(/[<&]/g,N));case u:return t.push("<![CDATA[",e.data,"]]>");case h:return t.push("\x3c!--",e.data,"--\x3e");case m:var S=e.publicId,T=e.systemId;if(t.push("<!DOCTYPE ",e.name),S)t.push(' PUBLIC "',S),T&&"."!=T&&t.push('" "',T),t.push('">');else if(T&&"."!=T)t.push(' SYSTEM "',T,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case d:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ne(e,t,n){e[t]=n}k.prototype=Error.prototype,n(y,k),E.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)te(this[r],n,e,t);return n.join("")}},S.prototype.item=function(e){return T(this),this[e]},r(S,E),O.prototype={length:0,item:E.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new k(x);var n=this.getNamedItem(e.nodeName);return j(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new k(x);return t=this.getNamedItemNS(e.namespaceURI,e.localName),j(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},M.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new L;if(r.implementation=this,r.childNodes=new E,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new Y;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},P.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return F(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return B(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var o in n){var c=n[o];"object"!=typeof c&&c!=i[o]&&(i[o]=c)}n.childNodes&&(i.childNodes=new E);i.ownerDocument=t;switch(i.nodeType){case a:var u=n.attributes,l=i.attributes=new O,f=u.length;l._ownerElement=i;for(var d=0;d<f;d++)i.setAttributeNode(e(t,u.item(d),!0));break;case s:r=!0}if(r)for(var h=n.firstChild;h;)i.appendChild(e(t,h,r)),h=h.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==c&&e.nodeType==c?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==s?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==s?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(o,P),n(o,P.prototype),L.prototype={nodeName:"#document",nodeType:p,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==v){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==a&&(this.documentElement=e),F(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case a:(i=n.cloneNode(!1)).ownerDocument=t;case v:break;case s:r=!0}i||(i=n.cloneNode(!1));i.ownerDocument=t;i.parentNode=null;if(r)for(var o=n.firstChild;o;)i.appendChild(e(t,o,r)),o=o.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return I(this.documentElement,function(n){if(n.nodeType==a&&n.getAttribute("id")==e)return t=n,!0}),t},createElement:function(e){var t=new U;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new E,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new E,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Q;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new q;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new $;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new U,r=t.split(":"),i=n.attributes=new O;return n.childNodes=new E,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new q,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(L,P),U.prototype={nodeType:a,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===v?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t),r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,R(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new S(this,function(t){var n=[];return I(t,function(r){r===t||r.nodeType!=a||"*"!==e&&r.tagName!=e||n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new S(this,function(n){var r=[];return I(n,function(i){i===n||i.nodeType!==a||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)}),r})}},L.prototype.getElementsByTagName=U.prototype.getElementsByTagName,L.prototype.getElementsByTagNameNS=U.prototype.getElementsByTagNameNS,r(U,P),q.prototype.nodeType=s,r(q,P),z.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(b[_])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(z,P),H.prototype={nodeName:"#text",nodeType:c,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,z),W.prototype={nodeName:"#comment",nodeType:h},r(W,z),V.prototype={nodeName:"#cdata-section",nodeType:u},r(V,z),Y.prototype.nodeType=m,r(Y,P),G.prototype.nodeType=g,r(G,P),K.prototype.nodeType=f,r(K,P),$.prototype.nodeType=l,r($,P),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=v,r(X,P),Q.prototype.nodeType=d,r(Q,P),Z.prototype.serializeToString=function(e,t,n){return J.call(e,t,n)},P.prototype.toString=J;try{if(Object.defineProperty){Object.defineProperty(S.prototype,"length",{get:function(){return T(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case a:case v:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case a:case v:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ne=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=M,t.XMLSerializer=Z},function(e,t,n){"use strict";e.exports={parseSei:function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},parseUserData:function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[2+(i=3*n)],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},discardEmulationPreventionBytes:function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},USER_DATA_REGISTERED_ITU_T_T35:4}},function(e,t,n){"use strict";var r=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};r.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},r.prototype.push=function(e){this.trigger("data",e)},r.prototype.flush=function(e){this.trigger("done",e)},r.prototype.partialFlush=function(e){this.trigger("partialdone",e)},r.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},r.prototype.reset=function(e){this.trigger("reset",e)},e.exports=r},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Align left":n,o=t.desc,a=void 0===o?"Three vertical lines aligned to the left":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"12":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 12",width:c,height:l,className:i()("i",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),e.createElement("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),e.createElement("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){t.a=function(t){var n=t.width,r=void 0===n?"17":n,i=t.height,o=void 0===i?"15":i,a=t.title,s=void 0===a?"Book":a,c=t.desc,u=void 0===c?"Book":c,l=t.focusable,f=void 0===l?"false":l,d=t.className;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 17 15",focusable:f,className:d},e.createElement("title",null,s),e.createElement("desc",null,u),e.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(5),n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"DestinationArrow":n,o=t.desc,a=void 0===o?"DestinationArrow":o,s=t.width,c=void 0===s?"13":s,u=t.height,l=void 0===u?"10":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 13 10",width:c,height:l,className:i()("i i-destinationArrow",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Download":n,o=t.desc,a=void 0===o?"Arrow down with horizontal line beneath it":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"19":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 19",width:c,height:l,className:i()("i i-download",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("rect",{y:"17",width:"16",height:"2",rx:"1"}),e.createElement("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),e.createElement("path",{d:"M7 0h2v12H7z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Draw":n,o=t.desc,a=void 0===o?"Arrow down with horizontal line beneath it":o,s=t.width,c=void 0===s?"15":s,u=t.height,l=void 0===u?"15":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 15",width:c,height:l,className:i()("i i-drawFromQuestionBank",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.15625 10.9688C7.96875 11.1562 7.78125 11.25 7.5 11.25C7.21875 11.25 7.03125 11.1562 6.84375 10.9688L1.5 5.625L2.8125 4.3125L6.5625 8.0625V0H8.4375V8.0625L12.1875 4.3125L13.5 5.625L8.15625 10.9688Z"}),e.createElement("path",{d:"M1.875 10.3125V13.125H13.125V10.3125H15V14.0625C15 14.625 14.625 15 14.0625 15H0.9375C0.375 15 0 14.625 0 14.0625V10.3125H1.875Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Draggable":n,o=t.desc,a=void 0===o?"Three dots stacked on top of one another":o,s=t.width,c=void 0===s?"4":s,u=t.height,l=void 0===u?"14":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 4 14",width:c,height:l,className:i()("i i-ellipsis--vert",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(.158 .445)"},e.createElement("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),e.createElement("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),e.createElement("circle",{cx:"1.5",cy:"1.5",r:"1.5"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Fill in the Blank":n,o=t.desc,a=void 0===o?"Pencil writing on a surface":o,s=t.width,c=void 0===s?"15":s,u=t.height,l=void 0===u?"15":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 15",width:c,height:l,className:i()("i i-fillInTheBlank",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"More":n,o=t.desc,a=void 0===o?"Filled caret pointing right":o,s=t.width,c=void 0===s?"7":s,u=t.height,l=void 0===u?"5":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 5 7",width:c,height:l,className:i()("i i-filledChevronRight",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",null,e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 3.625L1 1v5.25z"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.className,r=t.decorative,o=void 0===r||r,a=t.desc,s=void 0===a?"Heart":a,c=t.focusable,u=void 0===c?"false":c,l=t.height,f=void 0===l?"16":l,d=t.isFilled,h=void 0===d||d,p=t.title,m=void 0===p?"Heart":p,v=t.width,g=void 0===v?"16":v;return e.createElement("svg",{"aria-hidden":o,viewBox:"0 0 16 16",width:g,height:f,className:i()("i i-heart".concat(h?"Filled":"Outline"),n),focusable:u},e.createElement("title",null,m),e.createElement("desc",null,s),e.createElement("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){t.a=function(t){var n=t["aria-hidden"],r=t["aria-label"],i=t.className,o=t.desc,a=t.height,s=t.role,c=void 0===s?"img":s,u=t.title,l=t.width;return e.createElement("svg",{"aria-hidden":n,"aria-label":r,className:i,fill:"none",focusable:"false",height:a,role:c,viewBox:"0 0 40 40",width:l,xmlns:"http://www.w3.org/2000/svg"},u&&e.createElement("title",null,u),o&&e.createElement("desc",null,o),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 23C24 24.5064 23.1673 25.8183 21.9371 26.5005C21.9782 26.6602 22 26.8275 22 27V30C22 31.1046 21.1046 32 20 32C18.8954 32 18 31.1046 18 30V27C18 26.8275 18.0218 26.6602 18.0629 26.5005C16.8327 25.8183 16 24.5064 16 23C16 20.7909 17.7909 19 20 19C22.2091 19 24 20.7909 24 23ZM20 25C21.1046 25 22 24.1046 22 23C22 21.8954 21.1046 21 20 21C18.8954 21 18 21.8954 18 23C18 24.1046 18.8954 25 20 25Z",fill:"#313537"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10V13C8.68629 13 6 15.6863 6 19V32C6 35.3137 8.68629 38 12 38H28C31.3137 38 34 35.3137 34 32V19C34 15.6863 31.3137 13 28 13V10C28 5.58172 24.4183 2 20 2C15.5817 2 12 5.58172 12 10ZM20 4C16.6863 4 14 6.68629 14 10V13H26V10C26 6.68629 23.3137 4 20 4ZM8 19C8 16.7909 9.79086 15 12 15H28C30.2091 15 32 16.7909 32 19V32C32 34.2091 30.2091 36 28 36H12C9.79086 36 8 34.2091 8 32V19Z",fill:"#313537"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Matching":n,o=t.desc,a=void 0===o?"Two rows of stacked squares":o,s=t.width,c=void 0===s?"15":s,u=t.height,l=void 0===u?"15":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 15",width:c,height:l,className:i()("i i-matching",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Multiple Choice":n,o=t.desc,a=void 0===o?"Stacked circles to the left of stacked lines":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"16":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 16",width:c,height:l,className:i()("i i-multipleChoice",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),e.createElement("circle",{cx:"7.904",cy:"7.904",r:"1.904"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Multiple Response":n,o=t.desc,a=void 0===o?"A box with a checkmark in it":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"16":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 16",width:c,height:l,className:i()("i i-multipleResponse",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Not Allowed":n,o=t.desc,a=void 0===o?"A circle with a slanted line through it":o,s=t.width,c=void 0===s?"12":s,u=t.height,l=void 0===u?"12":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 12 12",width:c,height:l,className:i()("i i-notAllowed",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Pick One":n,o=t.desc,a=void 0===o?"Pick One":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"14":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:l,viewBox:"0 0 16 14",className:i()("i i-pickOne",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{fillRule:"evenodd"},e.createElement("path",{fillRule:"nonzero",d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z"}),e.createElement("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Question box":n,o=t.desc,a=void 0===o?"Question mark inside of a square":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"16":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 16",width:c,height:l,className:i()("i",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),e.createElement("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),e.createElement("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Sortable":n,o=t.desc,a=void 0===o?"Three horizontal lines stacked on top of each other":o,s=t.width,c=void 0===s?"22":s,u=t.height,l=void 0===u?"7":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 22 7",width:c,height:l,className:i()("i i-sortable",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("rect",{x:"0",y:"0",width:"100%",height:"1",strokeWidth:"1"}),e.createElement("rect",{x:"0",y:"3",width:"100%",height:"1",strokeWidth:"1"}),e.createElement("rect",{x:"0",y:"6",width:"100%",height:"1",strokeWidth:"1"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Touch":n,o=t.desc,a=void 0===o?"Hand with a finger extended and a semi-circle around the finger":o,s=t.width,c=void 0===s?"15":s,u=t.height,l=void 0===u?"16":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 15 16",width:c,height:l,className:i()("i",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),e.createElement("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Video camera":n,o=t.desc,a=void 0===o?"Video camera":o,s=t.width,c=void 0===s?"16":s,u=t.height,l=void 0===u?"12":u,f=t.className,d=t.focusable,h=void 0===d?"false":d;return e.createElement("svg",{viewBox:"0 0 16 12",width:c,height:l,className:i()("vgIcon",f),focusable:h},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(-1 -2)"},e.createElement("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1014),i=n(1015),o=n(1016).type("Async"),a=n(1898),s=n(1017),c=n(1902),u=n(1903),l=n(640),f=n(1904),d=n(252),h=n(1905),p=n(1018),m=function(e){return e.reduce(function(e,t){return e&&p(g,t)},!0)},v=function(e){return g(function(t,n){return n(e)})};function g(e,t){if(!d(e))throw new TypeError("Async: Function required");var n,r=s(function(){n=!0},d(t)?t:u);function a(t,i,o){if(!d(t)||!d(i))throw new TypeError("Async.fork: Reject and resolve functions required");var a=d(o)?o:u;return e(function(e){return n?u():t(e)},function(e){return n?u():i(e)}),c(s(a,r))}return{fork:a,toPromise:function(){return new Promise(function(e,t){a(t,e)})},inspect:function(){return"Async"+i(e)},type:o,swap:function(e,t){if(!d(e)||!d(t))throw new TypeError("Async.swap: Functions required for both arguments");return g(function(n,r){a(s(r,e),s(n,t))},r)},coalesce:function(e,t){if(!d(e)||!d(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return g(function(n,r){a(s(r,e),s(r,t))},r)},map:function(e){if(!d(e))throw new TypeError("Async.map: Function required");return g(function(t,n){a(t,s(n,e))},r)},bimap:function(e,t){if(!d(e)||!d(t))throw new TypeError("Async.bimap: Functions required for both arguments");return g(function(n,r){a(s(n,e),s(r,t))},r)},alt:function(e){var t=u;if(!p(g,e))throw new TypeError("Async.alt: Async required");return g(function(n,r){a(function(){t=e.fork(n,r)},r)},c(function(){return t(r())}))},ap:function(e){var t,n,i=!1,o=!1,l=u;if(!p(g,e))throw new TypeError("Async.ap: Async required");return g(function(r,u){var f=c(r);function h(){i&&o&&s(u,t)(n)}a(f,function(e){if(!d(e))throw new TypeError("Async.ap: Wrapped value must be a function");i=!0,t=e,h()}),l=e.fork(f,function(e){o=!0,n=e,h()})},c(function(){l(r())}))},chain:function(e){var t=u;if(!d(e))throw new TypeError("Async.chain: Async returning function required");return g(function(n,r){a(n,function(i){var o=e(i);if(!p(g,o))throw new TypeError("Async.chain: Function must return another Async");t=o.fork(n,r)})},c(function(){t(r())}))},of:v,constructor:g}}g.type=o,g.of=v,g.Rejected=function(e){return g(function(t){return t(e)})},g.Resolved=v,g.fromPromise=function(e){if(!d(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return g(function(n,r){var i=e.apply(null,t);if(!h(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r).catch(n)})}},g.fromNode=function(e,t){if(!d(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return g(function(r,i){e.apply(t,n.concat(function(e,t){return e?r(e):i(t)}))})}},g.all=function(e){if(!f(e)||!m(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return l(e)?a.sequence(g.of,e):e.sequence(g.of)},g["@@implements"]=r(["alt","ap","bimap","chain","map","of"]),e.exports=g},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(640),i=n(252),o=n(1896),a=n(1897);function s(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(s).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" {}":a(e)?' "'+e+'"':" "+e;var t}e.exports=s},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(){return"Const"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e){return{type:r(e)}},type:r}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1906),i=n(252),o=n(1907);e.exports=r(function(e,t){var n=o(e),r=o(t);return n===r||i(e)&&e.name===r||i(t)&&t.name===n})},function(e,t,n){var r=n(641),i=n(1908),o=r(function(e){return i(e.length,e)});e.exports=o},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t,n){var r=n(641),i=n(642);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1014),i=n(1015),o=n(1016).type("IO"),a=n(1017),s=n(252),c=n(1018),u=function(e){return l(function(){return e})};function l(e){if(!s(e))throw new TypeError("IO: Must wrap a function");function t(t){if(!s(t))throw new TypeError("IO.chain: Function required");return l(function(){var n=t(e());if(!c(l,n))throw new TypeError("IO.chain: Function must return an IO");return n.run()})}return{inspect:function(){return"IO"+i(e)},run:e,type:o,map:function(t){if(!s(t))throw new TypeError("IO.map: Function required");return l(a(t,e))},ap:function(e){if(!c(l,e))throw new TypeError("IO.ap: IO required");return t(function(t){return e.map(t)})},of:u,chain:t,constructor:l}}l.of=u,l.type=o,l["@@implements"]=r(["ap","chain","map","of"]),e.exports=l},function(e,t,n){var r=n(1921);e.exports=function(e,t){var n=-1,i=e.length,o=i-1;for(t=void 0===t?i:t;++n<t;){var a=r(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r),o=n(20),a=function(e){var t=e.canProceed;return i()("quiz-card__actions",{"quiz-card__actions--proceed":t})},s=function(e){var t=e.canSubmit;return i()("quiz-card__button",{"quiz-card__button--disabled":!t,"brand--background":t})};t.a=function(t){var n=t.allowTabNavigation,r=t.canProceed,i=t.canSubmit,c=t.onSubmit,u=t.quizSubmit,l=n&&i;return e.createElement("div",{className:a({canProceed:r})},e.createElement("div",{className:"quiz-card__submit brand--ui"},e.createElement("button",{"aria-disabled":!i,"aria-hidden":!n||r,className:s({canSubmit:i}),onClick:c,tabIndex:Object(o.m)(l),type:"button"},u)))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(1929);var r=n(2),i=n.n(r),o=function(e){var t=e.isActive,n=e.isComplete;return i()("quiz-card",{"quiz-card--active":t,"quiz-card--done":n})};t.a=function(t){var n=t.children,r=t.isActive,i=t.isComplete;return e.createElement("div",{className:o({isActive:r,isComplete:i})},e.createElement("div",{className:"quiz-card__container"},e.createElement("div",{className:"quiz-card__row"},e.createElement("div",{className:"quiz-card__main"},n))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r),o=function(e){var t=e.hasNoBorder,n=e.type;return i()("quiz-card__interactive",{"quiz-card__interactive--no-border":t,"quiz-card__interactive--fill":"FILL_IN_THE_BLANK"===n})};t.a=function(t){var n=t.children,r=t.hasNoBorder,i=t.type;return e.createElement("div",{className:o({hasNoBorder:r,type:i})},n)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(197),i=n.n(r),o=n(350),a=n.n(o),s=n(1131),c=n.n(s),u=n(1132),l=n.n(u),f=n(24),d=n.n(f),h=n(1133),p=n(171),m=n(185),v=i()(l()(["tmp"]),d()({},["media"])),g=c()(v,p.a),y=a()(g,p.a),b=Object(h.a)(y,function(t){var n=t.allowTabNavigation,r=t.blockId,i=t.enableVideoPlaybackSpeed,o=t.index,a=t.labels,s=t.media,c=t.settings;return e.createElement("div",{className:"quiz-card__media"},e.createElement(m.a,{allowTabNavigation:n,blockId:r,enableVideoPlaybackSpeed:i,index:o,labels:a,media:s,opts:c}))});t.a=b}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(43);t.a=function(t){var n=t.allowTabNavigation,i=t.id,o=t.value;return e.createElement(r.a,{allowTabNavigation:n,className:"quiz-card__title brand--body brand--linkColor",id:i,value:o})}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return xe});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(4),h=n.n(d),p=n(540),m=n.n(p),v=n(128),g=n.n(v),y=n(33),b=n.n(y),_=(n(1935),n(1936),n(188)),w=n.n(_),x=n(259),k=n.n(x),E=n(190),S=n.n(E),T=n(2),O=n.n(T),C=n(8),j=n.n(C),A=n(39),M=n.n(A),P=n(38),N=n.n(P),I=n(183),L=n.n(I),D=n(523),R=n.n(D),B=n(184),F=n.n(B),U=n(124),q=n.n(U),z=n(318),H=n.n(z),W=n(68),V=n.n(W),Y=n(30),G=n.n(Y),K=n(111),$=n.n(K),X=n(31),Q=n.n(X),Z=n(109),J=n.n(Z),ee=n(233),te=n.n(ee),ne=n(313),re=n.n(ne),ie=n(85),oe=n(705),ae=n(171),se=n(423),ce=n(77),ue=n(97),le=n(150),fe=n.n(le),de=n(86),he=n(20),pe=n(23),me=n(40);function ve(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var ge=w()(G.a),ye=j()($.a,V.a),be=L()("title"),_e=function(t){Object(u.a)(r,t);var n=ve(r);function r(e){var t,i;return Object(a.a)(this,r),(i=n.call(this,e)).state={isDragging:!1},i.setDrag=h()(t=i.setDrag).call(t,Object(c.a)(i)),i}return Object(s.a)(r,[{key:"focus",value:function(){this.listItem.focus()}},{key:"setDrag",value:function(e){this.setState({isDragging:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowMovableKeySelect,i=n.allowTabNavigation,o=n.id,a=n.isEnabled,s=n.isKeySelected,c=n.isMatched,u=n.height,l=n.nextIndex,f=n.onDragEnd,d=n.onDragStart,h=n.onKeyDown,p=n.prefersKeyboardNavigation,m=n.prevIndex,v=n.text,g=n.willBeReplaced,y=i&&r,b=Ce({isMatched:c,prefersKeyboardNavigation:p,willBeReplaced:g});return e.createElement(de.d,{className:this.state.isDragging?"".concat(b," dragging"):b,component:"li",onKeyDown:h,style:{height:u}},e.createElement(se.a,{key:o},e.createElement(oe.a,{childRef:function(e){t.listItem=e},isEnabled:a,key:o,nextIndex:l,onDragEnd:f,onDragStart:d,prevIndex:m,setDrag:this.setDrag},e.createElement("div",{className:"quiz-match__item-wrapper","aria-hidden":!y,tabIndex:Object(he.m)(y)},e.createElement(ke,{className:Se({isKeySelected:s})}),e.createElement("div",{className:"quiz-match__item-content"},e.createElement(me.E,{className:"quiz-match__item-sortable"}),e.createElement(me.k,{className:"quiz-match__item-sortable--dots"}),e.createElement("span",{"data-match-content":!0},v))))))}}]),r}(e.Component),we=function(t){Object(u.a)(r,t);var n=ve(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"focus",value:function(){this.listItem.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowMovableKeySelect,i=n.allowTabNavigation,o=n.id,a=n.isEnabled,s=n.height,c=n.onDrop,u=n.onKeyDown,l=n.onKeyUp,f=n.onEnter,d=n.onLeave,h=n.prefersKeyboardNavigation,p=n.text,m=i&&!r;return e.createElement(oe.b,{activeClassName:"quiz-match__item--active",childRef:function(e){t.listItem=e},isEnabled:a,key:o,onDrop:c,onEnter:f,onLeave:d},e.createElement("li",{"aria-hidden":!m,className:je({prefersKeyboardNavigation:h}),onKeyDown:u,onKeyUp:l,style:{height:s},tabIndex:Object(he.m)(m)},e.createElement(Ee,{className:Te({isSelectable:!r})}),e.createElement("div",{className:"quiz-match__item-content"},e.createElement("span",{"data-match-content":!0},p))))}}]),r}(e.Component),xe=function(t){Object(u.a)(r,t);var n=ve(r);function r(e){var t,i,o,s;return Object(a.a)(this,r),(s=n.call(this,e)).state={allowMovableKeySelect:!0,dragIndex:null,dropZoneIndex:null,height:null,isLoaded:!1,keySelectedSourceIndex:null,titleIndices:e.titleIndices,toDropRow:null},s.moveableItems=[],s.matchItems=[],s.handleResize=fe()(h()(t=s.handleResize).call(t,Object(c.a)(s)),100),s.handleCancelKeyDrop=h()(i=s.handleCancelKeyDrop).call(i,Object(c.a)(s)),s.handleIntersect=h()(o=s.handleIntersect).call(o,Object(c.a)(s)),s.observer=new IntersectionObserver(s.handleIntersect,{rootMargin:"10000px"}),s}return Object(s.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize),window.addEventListener("keydown",this.handleCancelKeyDrop),document.addEventListener("mousedown",this.handleCancelKeyDrop),this.observer.observe(this.el)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("keydown",this.handleCancelKeyDrop),document.removeEventListener("mousedown",this.handleCancelKeyDrop),this.observer.disconnect()}},{key:"handleIntersect",value:function(e){m()(e).call(e,function(e){return e.intersectionRatio>0})&&this.setHeights()}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.titleIndices,n=this.props,r=n.isKnowledgeCheck,i=n.isLearner,o=n.isRetake,a=n.matches,s=e.isRetake,c=e.matches,u=e.matchIndices,l=e.titleIndices,f=a!==c,d=!o&&s;if(!V()(c)||r)if(f){var h,p=Object(ce.f)(u),m=g()(h=te()(c)).call(h,p,t);this.setState({titleIndices:m})}else if(r){var v=Pe({titleIndices:t,nextTitleIndices:l,isLearner:i,isNewRetake:d});this.setState({titleIndices:v})}}},{key:"componentDidUpdate",value:function(e){var t=this.props.answers,n=e.answers;N()(be(t),be(n))||this.setHeights();var r=this.state,i=r.dragIndex,o=r.dropZoneIndex;k()(ae.b,[i,o])&&(this.props.onMatch({dragIndex:i,dropZoneIndex:o}),this.setState({dragIndex:null,dropZoneIndex:null}))}},{key:"render",value:function(){var t=this;return e.createElement("div",{className:this.getClassName(),ref:function(e){t.el=e}},this.buildResultsList(),this.buildMovableList(),this.buildMatchList())}},{key:"getClassName",value:function(){return O()("quiz-match",{"quiz-match--completed":this.props.isComplete,"quiz-match--hidden":!this.state.isLoaded})}},{key:"buildResultsList",value:function(){var e,t=ge(h()(e=this.buildResultItem).call(e,this));return j()(Me,t,ce.i)(this.props.matchIndices)}},{key:"buildResultItem",value:function(t){var n=this.props,r=n.isComplete,i=n.matchIndices,o=n.revealAnswers,a=this.state,s=a.height,c=r&&o,u=a.titleIndices[t],l=u===i[t],f=O()("quiz-match__item-feedback",{"quiz-match__item-feedback--hidden":!c});return c?l?e.createElement("li",{className:f,key:t,style:{height:s}},e.createElement(me.e,{"aria-label":"Check mark",className:"brand--fill"})):e.createElement("li",{className:f,key:t,style:{height:s}},e.createElement("span",{className:"quiz-match__item-feedback-bubble"},q()(H()(u,i)))):e.createElement("li",{className:f,key:t,style:{height:s}})}},{key:"buildMovableList",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.answers,a=n.isActive,s=n.isComplete,c=n.matches,u=n.prefersKeyboardNavigation,l=this.state,f=l.allowMovableKeySelect,d=l.dragIndex,p=l.height,m=l.keySelectedSourceIndex,v=l.titleIndices,g=l.toDropRow;return j()(Ae,ge(function(n,r){return e.createElement(_e,Object(o.a)({key:"movable-item-".concat(r),nextIndex:r,prevIndex:g,ref:function(e){t.moveableItems[r]=e}},n))}))(ge(function(e,n){var o,l,y,b=Q()([e],i),_=b.id,w=b.title,x=Object(ae.b)(d)&&n===g&&g!==H()(d,v);return{allowMovableKeySelect:f,allowTabNavigation:r,height:p,id:_,isEnabled:a&&!s,isKeySelected:e===m,isMatched:Object(ae.b)(c[e]),onDragEnd:h()(o=t.handleDragEnd).call(o,t),onDragStart:h()(l=t.handleDragStart).call(l,t,e),onKeyDown:h()(y=t.handleMovableKeyDown).call(y,t,e,n),prefersKeyboardNavigation:u,text:w,willBeReplaced:x}},v))}},{key:"buildMatchList",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.answers,a=n.isActive,s=n.matchIndices,c=n.prefersKeyboardNavigation,u=this.state,l=u.allowMovableKeySelect,f=u.height;return j()(Ae,ge(function(n,r){return e.createElement(we,Object(o.a)({key:"match-item-".concat(r),ref:function(e){t.matchItems[r]=e}},n))}))(ge(function(e,n){var o,s,u,d,p,m=Q()([e],i),v=m.id,g=m.matchTitle;return{allowMovableKeySelect:l,allowTabNavigation:r,height:f,id:v,isEnabled:a,onDrop:h()(o=t.handleDrop).call(o,t,e),onEnter:h()(s=t.handleDropEnter).call(s,t,n),onKeyDown:h()(u=t.handleMatchKeyDown).call(u,t,e,n),onKeyUp:h()(d=t.handleMatchKeyUp).call(d,t),onLeave:h()(p=t.handleDropLeave).call(p,t),prefersKeyboardNavigation:c,text:g}},s))}},{key:"handleDragEnd",value:function(){var e=this;b()(function(){e.setState({dragIndex:null})},0)}},{key:"handleDragStart",value:function(e){this.setState({dragIndex:e})}},{key:"handleDropEnter",value:function(e){this.setState({toDropRow:e})}},{key:"handleDrop",value:function(e){this.setState({dropZoneIndex:e})}},{key:"handleDropLeave",value:function(){this.setState({toDropRow:null})}},{key:"handleResize",value:function(){this.setHeights()}},{key:"keySelectMovableAtIndex",value:function(e){this.state.dragIndex===e?this.resetKeySelection():this.setState({allowMovableKeySelect:!1,dragIndex:e,keySelectedSourceIndex:e})}},{key:"keySelectMatch",value:function(e,t){this.setState({dropZoneIndex:e,toDropRow:t})}},{key:"handleMovableKeyDown",value:function(e,t,n){var r=this,i=this.state.allowMovableKeySelect,o=Object(ue.a)(function(){return r.keySelectMovableAtIndex(e)}),a=Object(ue.a)(function(){return Object(he.g)({list:r.moveableItems,currentIndex:t})}),s=Object(ue.a)(function(){return Object(he.f)({list:r.moveableItems,currentIndex:t})}),c=Object(ue.a)(function(){return!i&&Object(he.e)({list:r.matchItems,index:t})});M()([[pe.k,o],[pe.b,s],[pe.m,a],[pe.i,c]])(n)}},{key:"handleMatchKeyDown",value:function(e,t,n){var r=this,i=this.props,o=i.canSubmit,a=i.onEnterToSubmit;if(o&&Object(pe.d)(n))a();else{var s=Object(ue.a)(function(){return r.keySelectMatch(e,t)}),c=Object(ue.a)(function(){return Object(he.g)({list:r.matchItems,currentIndex:t})}),u=Object(ue.a)(function(){return Object(he.f)({list:r.matchItems,currentIndex:t})}),l=Object(ue.a)(function(){return Object(he.e)({list:r.moveableItems,index:t})});M()([[pe.e,s],[pe.b,u],[pe.m,c],[pe.g,l]])(n)}}},{key:"handleMatchKeyUp",value:function(e){Object(pe.e)(e)&&this.resetKeySelection()}},{key:"handleCancelKeyDrop",value:function(e){("mousedown"===e.type||Object(pe.f)(e))&&this.setState({allowMovableKeySelect:!0,keySelectedSourceIndex:null})}},{key:"resetKeySelection",value:function(){this.setState({allowMovableKeySelect:!0,dragIndex:null,dropZoneIndex:null,keySelectedSourceIndex:null,toDropRow:null})}},{key:"setHeights",value:function(){var e=this.el.querySelectorAll("[data-match-content]"),t=J()(function(e,t){return Math.max(e,t.offsetHeight+32)},0,e);this.setState({height:t,isLoaded:!0})}}]),r}(e.Component),ke=function(t){var n=t.className;return e.createElement("svg",{className:n,viewBox:"-0.5 -0.5 315 55",preserveAspectRatio:"none",focusable:"false"},e.createElement("title",null,"Draggable item"),e.createElement("desc",null,"Rectangular shape with an arrow on the right side"),e.createElement("polygon",{points:"0,0 298.5,0 312,27.5 298.5,54 0,54"}),e.createElement("rect",{x:"0",y:"0",width:"5",height:"54"}))},Ee=function(t){var n=t.className;return e.createElement("svg",{className:n,viewBox:"-0.5 -0.5 315 55",preserveAspectRatio:"none",focusable:"false"},e.createElement("title",null,"Drop zone item"),e.createElement("desc",null,"Rectangular shape with a fish-tail shape on the left side"),e.createElement("polygon",{points:"0,0 314,0 314,54 0,54 13.5,27.5 0,0"}))},Se=function(e){var t=e.isKeySelected;return O()("quiz-match__item-arrow",{"quiz-match__item-arrow--selected":t})},Te=function(e){var t=e.isSelectable;return O()("quiz-match__item-tail",{"quiz-match__item-tail--selectable":t})},Oe=ie.a.isIe11||ie.a.isEdge,Ce=function(e){var t=e.isMatched,n=e.prefersKeyboardNavigation,r=e.willBeReplaced;return O()("quiz-match__item quiz-match__item--draggable",{"quiz-match__item--matched":t,"quiz-match__item--faded":r,"quiz-match__item--ms_browser-focus":n&&Oe})},je=function(e){var t=e.prefersKeyboardNavigation;return O()("quiz-match__item quiz-match__item--immobile",{"quiz-match__item--ms_browser-focus":t&&Oe})},Ae=function(t){return e.createElement("ul",{className:"quiz-match__list brand--body"},t)},Me=function(t){return e.createElement("ul",{className:"quiz-match__list quiz-match__list--results"},t)},Pe=function(e){var t=e.titleIndices,n=e.nextTitleIndices,r=e.isNewRetake,i=e.isLearner;if(r&&i)return n;var o=re()(t,n),a=R()(t,n);return ye(a)?re()(a,t):ye(o)?F()(S()(o,t)):t}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return q});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(139),v=n.n(m),g=n(33),y=n.n(g),b=n(2),_=n.n(b),w=n(213),x=n(32),k=n.n(x),E=n(94),S=n.n(E),T=n(29),O=n.n(T),C=n(58),j=n.n(C),A=n(24),M=n.n(A),P=n(529),N=n.n(P),I=n(42),L=n.n(I);function D(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var R=S()(["draggableOptions","autoScroll","container"]),B=N()(R),F=L()(k.a,function(){return document.querySelector(".page-wrap, .block-knowledge__wrapper, .question-banks-draw-dialog")}),U=j()(R,F),q=function(t){Object(c.a)(r,t);var n=D(r);function r(e){var t,i,a,c;return Object(o.a)(this,r),(c=n.call(this,e)).state={isDragging:!1,x:0,y:0,zIndex:0},c.handleEnd=p()(t=c.handleEnd).call(t,Object(s.a)(c)),c.handleMove=p()(i=c.handleMove).call(i,Object(s.a)(c)),c.handleStart=p()(a=c.handleStart).call(a,Object(s.a)(c)),c}return Object(a.a)(r,[{key:"componentDidMount",value:function(){this.interact=Object(w.a)(this.el,this.props.interactOptions),this.props.isEnabled&&this.enableInteract()}},{key:"componentWillEnter",value:function(e){var t=this.props.prevIndex-this.props.nextIndex>0?"up":"down",n=this.el,r="movable-item__will-enter-".concat(t);this.animate({activeClass:"movable-item__will-enter-active",element:n,enterClass:r,timeout:300}).then(e)}},{key:"componentWillReceiveProps",value:function(e){!this.props.isEnabled&&e.isEnabled?this.enableInteract():this.props.isEnabled&&!e.isEnabled&&this.disableInteract()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutRef)}},{key:"render",value:function(){var t=this;return e.cloneElement(e.Children.only(this.props.children),{className:this.getClassName(),ref:function(e){t.el=e,t.props.childRef(e)},style:this.getStyle()})}},{key:"animate",value:function(e){var t=this,n=e.activeClass,r=e.element,i=e.enterClass,o=e.timeout;return new v.a(function(e){r.classList.add(i),y()(function(){r.classList.add(n)},10),t.timeoutRef=y()(function(){r.classList.remove(i,n),e()},o)})}},{key:"enableInteract",value:function(){var e=U(this.props);this.interact.draggable(O()({onstart:this.handleStart,onmove:this.handleMove,onend:this.handleEnd},e.draggableOptions)),this.interactScrollHandler(e)}},{key:"interactScrollHandler",value:function(e){var t=this;this.yBefore=0,this.yAfter=0,B(e).addEventListener("scroll",function(e){t.yBefore=t.yAfter,t.yAfter=e.currentTarget.scrollTop,t.state.isDragging&&t.setState({y:t.state.y+(t.yAfter-t.yBefore)})})}},{key:"disableInteract",value:function(){this.interact.draggable(!1),delete this.yBefore,delete this.yAfter}},{key:"getClassName",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=M()("",["props","className"],t);return _()(r,{draggable:n,"draggable--dragging":this.state.isDragging})}},{key:"getStyle",value:function(){var e,t,n,r,i,o=M()({},["props","style"],this.props.children);return O()(o,(e=this.state,n=e.x,r=e.y,i=e.zIndex,{transform:d()(t="translate(".concat(n,"px, ")).call(t,r,"px)"),zIndex:i}))}},{key:"handleStart",value:function(e){this.props.onDragStart(e),this.props.setDrag(!0),this.setState({isDragging:!0})}},{key:"handleEnd",value:function(e){this.props.onDragEnd(e),this.props.setDrag(!1),this.setState({isDragging:!1,x:0,y:0,zIndex:0})}},{key:"handleMove",value:function(e){var t=e.dx,n=e.dy,r=this.state.x+t,i=this.state.y+n;this.setState({x:r,y:i,zIndex:1})}}],[{key:"defaultProps",get:function(){return{childRef:Function.prototype,draggableOptions:{autoScroll:{container:null}},interactOptions:{styleCursor:!1},isEnabled:!0,onDragEnd:Function.prototype,onDragStart:Function.prototype}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return x});var r=n(3),i=n.n(r),o=n(12),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(4),h=n.n(d),p=n(2),m=n.n(p),v=n(213),g=n(29),y=n.n(g),b=n(24),_=n.n(b);function w(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var x=function(t){Object(u.a)(r,t);var n=w(r);function r(e){var t,i,o,s;return Object(a.a)(this,r),(s=n.call(this,e)).state={isActive:!1},s.handleEnter=h()(t=s.handleEnter).call(t,Object(c.a)(s)),s.handleLeave=h()(i=s.handleLeave).call(i,Object(c.a)(s)),s.handleDrop=h()(o=s.handleDrop).call(o,Object(c.a)(s)),s}return Object(s.a)(r,[{key:"componentDidMount",value:function(){this.interact=Object(v.a)(this.el,this.props.interactOptions),this.props.isEnabled&&this.enableInteract()}},{key:"componentWillReceiveProps",value:function(e){!this.props.isEnabled&&e.isEnabled?this.enableInteract():this.props.isEnabled&&!e.isEnabled&&this.disableInteract()}},{key:"render",value:function(){var t=this;return e.cloneElement(e.Children.only(this.props.children),{className:this.getClassName(),ref:function(e){t.el=e,t.props.childRef(e)},style:this.getStyle()})}},{key:"enableInteract",value:function(){this.interact.dropzone(y()({ondrop:this.handleDrop,ondragenter:this.handleEnter,ondragleave:this.handleLeave},this.props.droppableOptions))}},{key:"disableInteract",value:function(){this.interact.dropzone(!1)}},{key:"getClassName",value:function(){var e=this.state.isActive,t=this.props,n=t.activeClassName,r=t.children,i=t.isEnabled,a=_()("",["props","className"],r);return m()(a,Object(o.a)({droppable:i,"droppable--active":e},n,e))}},{key:"getStyle",value:function(){return _()({},["props","style"],this.props.children)}},{key:"handleEnter",value:function(e){this.props.onEnter(e),this.setState({isActive:!0})}},{key:"handleLeave",value:function(e){this.props.onLeave(e),this.setState({isActive:!1})}},{key:"handleDrop",value:function(e){this.props.onDrop(e),this.setState({isActive:!1})}}],[{key:"defaultProps",get:function(){return{activeClassName:"",childRef:Function.prototype,droppableOptions:{overlap:.015},interactOptions:{},isEnabled:!0,onDrop:Function.prototype,onEnter:Function.prototype,onLeave:Function.prototype}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){e.exports=n(1943)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=a(n(0)),o=a(n(1945));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(function(e,t,n,o,a){var s=e[t],c=void 0===s?"undefined":r(s);return i.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===c&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,o.default.findDOMNode(e)||t};var r,i=n(91),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,i.default)(r.default.findDOMNode(e))};var r=o(n(91)),i=o(n(1946));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){var r=n(1969),i=n(1970),o=n(1973),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},function(e,t,n){var r=n(1980);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t,n){var r=n(1981),i=n(501),o=n(1982);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(1993),i=n(1995),o=function(e){return e instanceof o?e:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=i.getRgba(e))?this.setValues("rgb",t):(t=i.getHsla(e))?this.setValues("hsl",t):(t=i.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new o(e);var t};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new o,r=this.values,i=n.values;for(var a in r)r.hasOwnProperty(a)&&(e=r[a],"[object Array]"===(t={}.toString.call(e))?i[a]=e.slice(0):"[object Number]"===t?i[a]=e:console.error("unexpected color value:",e));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},o.prototype.setValues=function(e,t){var n,i,o=this.values,a=this.spaces,s=this.maxes,c=1;if(this.valid=!0,"alpha"===e)c=t;else if(t.length)o[e]=t.slice(0,e.length),c=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)o[e][n]=t[e.charAt(n)];c=t.a}else if(void 0!==t[a[e][0]]){var u=a[e];for(n=0;n<e.length;n++)o[e][n]=t[u[n]];c=t.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===c?o.alpha:c)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(s[e][n],o[e][n])),o[e][n]=Math.round(i);for(var l in a)l!==e&&(o[l]=r[e][l](o[e]));return!0},o.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},o.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:n===r[t]?this:(r[t]=n,this.setValues(e,r),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},function(e,t,n){"use strict";var r=n(224);t=e.exports=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(t.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})},function(e,t,n){"use strict";var r=n(106),i=n(83);r._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,n,r){var i,o,a=this.animations;for(t.chart=e,r||(e.animating=!0),i=0,o=a.length;i<o;++i)if(a[i].chart===e)return void(a[i]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=i.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=i.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this,t=Date.now(),n=0;e.dropFrames>1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var r=Date.now();e.dropFrames+=(r-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,r=this.animations,o=0;o<r.length;)n=(t=r[o]).chart,t.currentStep=(t.currentStep||0)+e,t.currentStep=Math.min(t.currentStep,t.numSteps),i.callback(t.render,[n,t],n),i.callback(t.onAnimationProgress,[t],n),t.currentStep>=t.numSteps?(i.callback(t.onAnimationComplete,[t],n),n.animating=!1,r.splice(o,1)):++o}}},function(e,t,n){"use strict";var r=n(83);function i(e,t){return e.native?{x:e.x,y:e.y}:r.getRelativePosition(e,t)}function o(e,t){var n,r,i,o,a;for(r=0,o=e.data.datasets.length;r<o;++r)if(e.isDatasetVisible(r))for(i=0,a=(n=e.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||t(s)}}function a(e,t){var n=[];return o(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function s(e,t,n,r){var i=Number.POSITIVE_INFINITY,a=[];return o(e,function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=r(t,o);s<i?(a=[e],i=s):s===i&&a.push(e)}}),a}function c(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function u(e,t,n){var r=i(t,e);n.axis=n.axis||"x";var o=c(n.axis),u=n.intersect?a(e,r):s(e,r,!1,o),l=[];return u.length?(e.data.datasets.forEach(function(t,n){if(e.isDatasetVisible(n)){var r=e.getDatasetMeta(n).data[u[0]._index];r&&!r._view.skip&&l.push(r)}}),l):[]}e.exports={modes:{single:function(e,t){var n=i(t,e),r=[];return o(e,function(e){if(e.inRange(n.x,n.y))return r.push(e),r}),r.slice(0,1)},label:u,index:u,dataset:function(e,t,n){var r=i(t,e);n.axis=n.axis||"xy";var o=c(n.axis),u=n.intersect?a(e,r):s(e,r,!1,o);return u.length>0&&(u=e.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(e,t){return u(e,t,{intersect:!1})},point:function(e,t){return a(e,i(t,e))},nearest:function(e,t,n){var r=i(t,e);n.axis=n.axis||"xy";var o=c(n.axis),a=s(e,r,n.intersect,o);return a.length>1&&a.sort(function(e,t){var n=e.getArea()-t.getArea();return 0===n&&(n=e._datasetIndex-t._datasetIndex),n}),a.slice(0,1)},x:function(e,t,n){var r=i(t,e),a=[],s=!1;return o(e,function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var r=i(t,e),a=[],s=!1;return o(e,function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){"use strict";var r=n(83),i=n(2001),o=n(2002),a=o._enabled?o:i;e.exports=r.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){"use strict";var r=n(106),i=n(83);r._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,i,o,a,s,c=this.descriptors(e),u=c.length;for(r=0;r<u;++r)if("function"==typeof(s=(o=(i=c[r]).plugin)[t])&&((a=[e].concat(n||[])).push(i.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],o=[],a=e&&e.config||{},s=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,a=s[t];!1!==a&&(!0===a&&(a=i.clone(r.global.plugins[t])),n.push(e),o.push({plugin:e,options:a||{}}))}}),t.descriptors=o,t.id=this._cacheId,o},_invalidate:function(e){delete e.$plugins}}},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83);r._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:o.noop,title:function(e,t){var n="",r=t.labels,i=r?r.length:0;if(e.length>0){var o=e[0];o.xLabel?n=o.xLabel:i>0&&o.index<i&&(n=r[o.index])}return n},afterTitle:o.noop,beforeBody:o.noop,beforeLabel:o.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),n+=e.yLabel},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:o.noop,afterBody:o.noop,beforeFooter:o.noop,footer:o.noop,afterFooter:o.noop}}});var a={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:Math.round(r/o),y:Math.round(i/o)}},nearest:function(e,t){var n,r,i,a=t.x,s=t.y,c=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var u=e[n];if(u&&u.hasValue()){var l=u.getCenterPoint(),f=o.distanceBetweenPoints(t,l);f<c&&(c=f,i=u)}}if(i){var d=i.tooltipPosition();a=d.x,s=d.y}return{x:a,y:s}}};function s(e,t){var n=o.color(e);return n.alpha(t*n.alpha()).rgbaString()}function c(e,t){return t&&(o.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function u(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function l(e){var t=r.global,n=o.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function f(e){return c([],u(e))}(e.exports=i.extend({initialize:function(){this._model=l(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),n=e.title.apply(this,arguments),r=e.afterTitle.apply(this,arguments),i=[];return i=c(i,u(t)),i=c(i,u(n)),i=c(i,u(r))},getBeforeBody:function(){return f(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return o.each(e,function(e){var o={before:[],lines:[],after:[]};c(o.before,u(r.beforeLabel.call(n,e,t))),c(o.lines,r.label.call(n,e,t)),c(o.after,u(r.afterLabel.call(n,e,t))),i.push(o)}),i},getAfterBody:function(){return f(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),r=e.afterFooter.apply(this,arguments),i=[];return i=c(i,u(t)),i=c(i,u(n)),i=c(i,u(r))},update:function(e){var t,n,r,i,s,c,u,f=this,d=f._options,h=f._model,p=f._model=l(d),m=f._active,v=f._data,g={xAlign:h.xAlign,yAlign:h.yAlign},y={x:h.x,y:h.y},b={width:h.width,height:h.height},_={x:h.caretX,y:h.caretY};if(m.length){p.opacity=1;var w=[],x=[];_=a[d.position].call(f,m,f._eventPosition);var k=[];for(t=0,n=m.length;t<n;++t)k.push((r=m[t],i=void 0,s=void 0,c=void 0,u=void 0,i=r._xScale,s=r._yScale||r._scale,c=r._index,u=r._datasetIndex,{xLabel:i?i.getLabelForIndex(c,u):"",yLabel:s?s.getLabelForIndex(c,u):"",index:c,datasetIndex:u,x:r._model.x,y:r._model.y}));d.filter&&(k=k.filter(function(e){return d.filter(e,v)})),d.itemSort&&(k=k.sort(function(e,t){return d.itemSort(e,t,v)})),o.each(k,function(e){w.push(d.callbacks.labelColor.call(f,e,f._chart)),x.push(d.callbacks.labelTextColor.call(f,e,f._chart))}),p.title=f.getTitle(k,v),p.beforeBody=f.getBeforeBody(k,v),p.body=f.getBody(k,v),p.afterBody=f.getAfterBody(k,v),p.footer=f.getFooter(k,v),p.x=Math.round(_.x),p.y=Math.round(_.y),p.caretPadding=d.caretPadding,p.labelColors=w,p.labelTextColors=x,p.dataPoints=k,b=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,a=t.body,s=a.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var c=t.title.length,u=t.footer.length,l=t.titleFontSize,f=t.bodyFontSize,d=t.footerFontSize;r+=c*l,r+=c?(c-1)*t.titleSpacing:0,r+=c?t.titleMarginBottom:0,r+=s*f,r+=s?(s-1)*t.bodySpacing:0,r+=u?t.footerMarginTop:0,r+=u*d,r+=u?(u-1)*t.footerSpacing:0;var h=0,p=function(e){i=Math.max(i,n.measureText(e).width+h)};return n.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,p),n.font=o.fontString(f,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),p),h=t.displayColors?f+2:0,o.each(a,function(e){o.each(e.before,p),o.each(e.lines,p),o.each(e.after,p)}),h=0,n.font=o.fontString(d,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,p),{width:i+=2*t.xPadding,height:r}}(this,p),y=function(e,t,n,r){var i=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,c=e.cornerRadius,u=n.xAlign,l=n.yAlign,f=a+s,d=c+s;return"right"===u?i-=t.width:"center"===u&&((i-=t.width/2)+t.width>r.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===l?o+=f:o-="bottom"===l?t.height+f:t.height/2,"center"===l?"left"===u?i+=f:"right"===u&&(i-=f):"left"===u?i-=d:"right"===u&&(i+=d),{x:i,y:o}}(p,b,g=function(e,t){var n,r,i,o,a,s=e._model,c=e._chart,u=e._chart.chartArea,l="center",f="center";s.y<t.height?f="top":s.y>c.height-t.height&&(f="bottom");var d=(u.left+u.right)/2,h=(u.top+u.bottom)/2;"center"===f?(n=function(e){return e<=d},r=function(e){return e>d}):(n=function(e){return e<=t.width/2},r=function(e){return e>=c.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>c.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=h?"top":"bottom"},n(s.x)?(l="left",i(s.x)&&(l="center",f=a(s.y))):r(s.x)&&(l="right",o(s.x)&&(l="center",f=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:l,yAlign:p.yAlign?p.yAlign:f}}(this,b),f._chart)}else p.opacity=0;return p.xAlign=g.xAlign,p.yAlign=g.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=_.x,p.caretY=_.y,f._model=p,e&&d.custom&&d.custom.call(f,p),f},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,o,a,s,c,u=n.caretSize,l=n.cornerRadius,f=n.xAlign,d=n.yAlign,h=e.x,p=e.y,m=t.width,v=t.height;if("center"===d)s=p+v/2,"left"===f?(i=(r=h)-u,o=r,a=s+u,c=s-u):(i=(r=h+m)+u,o=r,a=s-u,c=s+u);else if("left"===f?(r=(i=h+l+u)-u,o=i+u):"right"===f?(r=(i=h+m-l-u)-u,o=i+u):(r=(i=n.caretX)-u,o=i+u),"top"===d)s=(a=p)-u,c=a;else{s=(a=p+v)+u,c=a;var g=o;o=r,r=g}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:c}},drawTitle:function(e,t,n,r){var i=t.title;if(i.length){n.textAlign=t._titleAlign,n.textBaseline="top";var a,c,u=t.titleFontSize,l=t.titleSpacing;for(n.fillStyle=s(t.titleFontColor,r),n.font=o.fontString(u,t._titleFontStyle,t._titleFontFamily),a=0,c=i.length;a<c;++a)n.fillText(i[a],e.x,e.y),e.y+=u+l,a+1===i.length&&(e.y+=t.titleMarginBottom-l)}},drawBody:function(e,t,n,r){var i=t.bodyFontSize,a=t.bodySpacing,c=t.body;n.textAlign=t._bodyAlign,n.textBaseline="top",n.font=o.fontString(i,t._bodyFontStyle,t._bodyFontFamily);var u=0,l=function(t){n.fillText(t,e.x+u,e.y),e.y+=i+a};n.fillStyle=s(t.bodyFontColor,r),o.each(t.beforeBody,l);var f=t.displayColors;u=f?i+2:0,o.each(c,function(a,c){var u=s(t.labelTextColors[c],r);n.fillStyle=u,o.each(a.before,l),o.each(a.lines,function(o){f&&(n.fillStyle=s(t.legendColorBackground,r),n.fillRect(e.x,e.y,i,i),n.lineWidth=1,n.strokeStyle=s(t.labelColors[c].borderColor,r),n.strokeRect(e.x,e.y,i,i),n.fillStyle=s(t.labelColors[c].backgroundColor,r),n.fillRect(e.x+1,e.y+1,i-2,i-2),n.fillStyle=u),l(o)}),o.each(a.after,l)}),u=0,o.each(t.afterBody,l),e.y-=a},drawFooter:function(e,t,n,r){var i=t.footer;i.length&&(e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=s(t.footerFontColor,r),n.font=o.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),o.each(i,function(r){n.fillText(r,e.x,e.y),e.y+=t.footerFontSize+t.footerSpacing}))},drawBackground:function(e,t,n,r,i){n.fillStyle=s(t.backgroundColor,i),n.strokeStyle=s(t.borderColor,i),n.lineWidth=t.borderWidth;var o=t.xAlign,a=t.yAlign,c=e.x,u=e.y,l=r.width,f=r.height,d=t.cornerRadius;n.beginPath(),n.moveTo(c+d,u),"top"===a&&this.drawCaret(e,r),n.lineTo(c+l-d,u),n.quadraticCurveTo(c+l,u,c+l,u+d),"center"===a&&"right"===o&&this.drawCaret(e,r),n.lineTo(c+l,u+f-d),n.quadraticCurveTo(c+l,u+f,c+l-d,u+f),"bottom"===a&&this.drawCaret(e,r),n.lineTo(c+d,u+f),n.quadraticCurveTo(c,u+f,c,u+f-d),"center"===a&&"left"===o&&this.drawCaret(e,r),n.lineTo(c,u+d),n.quadraticCurveTo(c,u,c+d,u),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(this.drawBackground(r,t,e,n,i),r.x+=t.xPadding,r.y+=t.yPadding,this.drawTitle(r,t,e,i),this.drawBody(r,t,e,i),this.drawFooter(r,t,e,i))}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),(t=!o.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}})).positioners=a},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(306))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(306))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(306))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(306))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(306))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(306))},function(e,t,n){var r=n(503),i=n(2036),o=n(2037),a=n(2038),s=n(2039),c=n(2040);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(407),i=n(506),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==c}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(99))},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(2059),i=n(2062),o=n(2063),a=1,s=2;e.exports=function(e,t,n,c,u,l){var f=n&a,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=l.get(e);if(p&&l.get(t))return p==t;var m=-1,v=!0,g=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++m<d;){var y=e[m],b=t[m];if(c)var _=f?c(b,y,m,t,e,l):c(y,b,m,e,t,l);if(void 0!==_){if(_)continue;v=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(y===e||u(y,e,n,c,l)))return g.push(t)})){v=!1;break}}else if(y!==b&&!u(y,b,n,c,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},function(e,t,n){var r=n(2077),i=n(408),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(253),i=n(2078),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(248)(e))},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(2079),i=n(2080),o=n(2081),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(506);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(1065),i=n(511);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(254),i=n(649),o=n(2098),a=n(2101);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(113),i=n(409),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(127),i=n(2154),o=r["__core-js_shared__"]||i("__core-js_shared__",{});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:n(650)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports={}},function(e,t,n){var r=n(335),i=n(187),o=n(567);e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(113),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(162),i=n(653),o=n(181)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(113),i=n(181)("species");e.exports=function(e){return!r(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports={}},function(e,t,n){var r=n(1173),i=n(181)("iterator"),o=n(1075);e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){e.exports=!n(113)(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(169),i=n(2160),o=n(187),a=n(570),s=n(1076),c=n(2210),u={};(e.exports=function(e,t,n,l,f){var d,h,p,m,v,g=a(t,n,l?2:1);if(f)d=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(i(h)){for(p=0,m=o(e.length);m>p;p++)if((l?g(r(v=e[p])[0],v[1]):g(e[p]))===u)return u;return}d=h.call(e)}for(;!(v=d.next()).done;)if(c(d,g,v.value,l)===u)return u}).BREAK=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={pushHash:function(e){if(e=e?0===e.indexOf("#")?e:"#"+e:"",history.pushState){var t=window.location;history.pushState(null,null,e?t.pathname+t.search+e:t.pathname+t.search)}else location.hash=e},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t){return e===document?t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset):"static"!==getComputedStyle(e).position?t.offsetTop:t.getBoundingClientRect().top+e.scrollTop}}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(61),i=n(38);e.exports=r(function(e,t,n){return i(t[e],n[e])})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})})},function(e,t,n){var r=n(193),i=n(737),o=n(57);e.exports=o(4,function(e,t,n,o){return r(e("function"==typeof t?i(t):t),n,o)})},function(e,t,n){var r=n(18),i=n(38),o=n(30),a=n(843);e.exports=r(function(e,t){return a(o(i,e),t)})},function(e,t,n){(function(n){var r;!function(n,i){e.exports=function(n){"use strict";var i,o=(n=n||{}).Base64,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(a),c=String.fromCharCode,u=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(l,u)},d=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[a.charAt(n>>>18),a.charAt(n>>>12&63),t>=2?"=":a.charAt(n>>>6&63),t>=1?"=":a.charAt(63&n)];return r.join("")},h=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,d)},p=function(e){return h(f(String(e)))},m=function(e){return e.replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,"")},v=function(e,t){return t?m(p(e)):p(e)};n.Uint8Array&&(i=function(e,t){for(var n="",r=0,i=e.length;r<i;r+=3){var o=e[r],s=e[r+1],c=e[r+2],u=o<<16|s<<8|c;n+=a.charAt(u>>>18)+a.charAt(u>>>12&63)+(void 0!==s?a.charAt(u>>>6&63):"=")+(void 0!==c?a.charAt(63&u):"=")}return t?m(n):n});var g,y=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return c(55296+(n>>>10))+c(56320+(1023&n));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_=function(e){return e.replace(y,b)},w=function(e){var t=e.length,n=t%4,r=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),i=[c(r>>>16),c(r>>>8&255),c(255&r)];return i.length-=[0,0,2,1][n],i.join("")},x=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,w)},k=function(e){return x(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(e){return String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},S=function(e){return function(e){return _(x(e))}(E(e))};n.Uint8Array&&(g=function(e){return Uint8Array.from(k(E(e)),function(e){return e.charCodeAt(0)})});if(n.Base64={VERSION:"2.6.4",atob:k,btoa:h,fromBase64:S,toBase64:v,utob:f,encode:v,encodeURI:function(e){return v(e,!0)},btou:_,decode:S,noConflict:function(){var e=n.Base64;return n.Base64=o,e},fromUint8Array:i,toUint8Array:g},"function"==typeof Object.defineProperty){var T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return S(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(e){return v(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return v(this,!0)}))}}n.Meteor&&(Base64=n.Base64);e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r);return{Base64:n.Base64}}(n)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:this)}).call(this,n(99))},function(e,t,n){"use strict";var r=n(392),i=n(1388),o=n(1389),a=n(1390),s=n(1391),c=n(1392),u=n(1395);function l(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function d(e,t){var n=[];return l(e,function(e){t(e)&&n.push(e)}),n}e.exports=p;var h=/^[^\0\t\n\f\r /<=>]+$/;function p(e,t,n){var v="";function g(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.updateParentNodeText=function(){S.length&&(S[S.length-1].text+=n.text)}}t?(t=i(p.defaults,t)).parser?t.parser=i(m,t.parser):t.parser=m:(t=p.defaults).parser=m;var y,b,_=t.nonTextTags||["script","style","textarea"];t.allowedAttributes&&(y={},b={},l(t.allowedAttributes,function(e,t){y[t]=[];var n=[];e.forEach(function(e){e.indexOf("*")>=0?n.push(o(e).replace(/\\\*/g,".*")):y[t].push(e)}),b[t]=new RegExp("^("+n.join("|")+")$")}));var w={};l(t.allowedClasses,function(e,t){y&&(f(y,t)||(y[t]=[]),y[t].push("class")),w[t]=e});var x,k={};l(t.transformTags,function(e,t){var n;"function"==typeof e?n=e:"string"==typeof e&&(n=p.simpleTransform(e)),"*"===t?x=n:k[t]=n});var E=0,S=[],T={},O={},C=!1,j=0,A=new r.Parser({onopentag:function(e,n){if(C)j++;else{var r=new g(e,n);S.push(r);var i,o=!1,p=!!r.text;f(k,e)&&(i=k[e](e,n),r.attribs=n=i.attribs,void 0!==i.text&&(r.innerText=i.text),e!==i.tagName&&(r.name=e=i.tagName,O[E]=i.tagName)),x&&(i=x(e,n),r.attribs=n=i.attribs,e!==i.tagName&&(r.name=e=i.tagName,O[E]=i.tagName)),t.allowedTags&&-1===t.allowedTags.indexOf(e)&&(o=!0,-1!==_.indexOf(e)&&(C=!0,j=1),T[E]=!0),E++,o||(v+="<"+e,(!y||f(y,e)||y["*"])&&l(n,function(n,i){if(h.test(i))if(!y||f(y,e)&&-1!==y[e].indexOf(i)||y["*"]&&-1!==y["*"].indexOf(i)||f(b,e)&&b[e].test(i)||b["*"]&&b["*"].test(i)){if(("href"===i||"src"===i)&&P(e,n))return void delete r.attribs[i];if("srcset"===i)try{var o;if(l(o=c.parse(n),function(e){P("srcset",e.url)&&(e.evil=!0)}),!(o=d(o,function(e){return!e.evil})).length)return void delete r.attribs[i];n=c.stringify(d(o,function(e){return!e.evil})),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i&&!(n=function(e,t){if(!t)return e;return(e=e.split(/\s+/)).filter(function(e){return-1!==t.indexOf(e)}).join(" ")}(n,w[e])).length)return void delete r.attribs[i];if("style"===i)try{if(0===(n=function(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(t.prop+":"+t.value+";"),e},[]).join("")}(function(e,t){if(!t)return e;var n,r=a(e),i=e.nodes[0];n=t[i.selector]&&t["*"]?s(a(t[i.selector]),t["*"],function(e,t){if(Array.isArray(e))return e.concat(t)}):t[i.selector]||t["*"];n&&(r.nodes[0].nodes=i.nodes.reduce(function(e){return function(t,n){if(e.hasOwnProperty(n.prop)){var r=e[n.prop].some(function(e){return e.test(n.value)});r&&t.push(n)}return t}}(n),[]));return r}(u.parse(e+" {"+n+"}"),t.allowedStyles))).length)return void delete r.attribs[i]}catch(e){return void delete r.attribs[i]}v+=" "+i,n.length&&(v+='="'+M(n)+'"')}else delete r.attribs[i];else delete r.attribs[i]}),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||p||t.textFilter||(v+=r.innerText)))}},ontext:function(e){if(!C){var n,r=S[S.length-1];if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"script"===n||"style"===n)v+=e;else{var i=M(e);t.textFilter?v+=t.textFilter(i):v+=i}if(S.length)S[S.length-1].text+=e}},onclosetag:function(e){if(C){if(--j)return;C=!1}var n=S.pop();if(n){if(C=!1,T[--E])return delete T[E],void n.updateParentNodeText();O[E]&&(e=O[E],delete O[E]),t.exclusiveFilter&&t.exclusiveFilter(n)?v=v.substr(0,n.tagPosition):(n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)&&(v+="</"+e+">"))}}},t.parser);return A.write(e),A.end(),v;function M(e){return"string"!=typeof e&&(e+=""),e.replace(/\&/g,"&").replace(/</g,"<").replace(/\>/g,">").replace(/\"/g,""")}function P(e,n){var r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<\!\-\-.*?\-\-\>/g,"")).match(/^([a-zA-Z]+)\:/);if(!r)return!!n.match(/^[\/\\]{2}/)&&!t.allowProtocolRelative;var i=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}}var m={decodeEntities:!0};p.defaults={allowedTags:["h3","h4","h5","h6","blockquote","p","a","ul","ol","nl","li","b","i","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre"],allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},p.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){var o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},function(e,t){e.exports=function(e){return function(t){return function(n){n&&"function"==typeof n.fork?n.fork(e.dispatch,e.dispatch):t(n)}}}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(807);var o,a=(o="function",function(e){return(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)===o;var t});t.default=function(e){return function(t){var n=t.dispatch,o=function(t){return t&&a(t[e])};return function(t){return function(a){return(0,i.isFSA)(a)?o(a.payload)?n(r({},a,{payload:a.payload[e]()})):t(a):o(a)?n(a[e]()):t(a)}}}}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.dispatch;return function(e){return function(n){return i.isFSA(n)?o(n.payload)?n.payload.then(function(e){return t(r({},n,{payload:e}))},function(e){return t(r({},n,{payload:e,error:!0}))}):e(n):o(n)?n.then(t):e(n)}}};var i=n(807);function o(e){return e&&"function"==typeof e.then}e.exports=t.default},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}t.__esModule=!0;var i=r();i.withExtraArgument=r,t.default=i},function(e,t,n){e.exports=n(1478)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1490);e.exports=r.origFn("assoc")},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(480),o=n(90),a=n(173);e.exports=r(function(e,t,n){if(!o(e))throw new TypeError("reduce: Function required for first argument");if(!i(n))throw new TypeError("reduce: Foldable required for third argument");return(n[a.reduce]||n.reduce).call(n,e,t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(370),i=n(371),o=n(194).type("IO"),a=n(194).typeFn(o(),2),s=n(173),c=n(279),u=n(90),l=n(206),f=function(e){return d(function(){return e})};function d(e){var t;if(!u(e))throw new TypeError("IO: Must wrap a function");var n=f,r=function(){return"IO"+i(e)};function h(t){return function(n){if(!u(n))throw new TypeError("IO."+t+": Function required");return d(c(n,e))}}function p(t){return function(n){if(!u(n))throw new TypeError("IO."+t+": Function required");return d(function(){var r=n(e());if(!l(d,r))throw new TypeError("IO."+t+": Function must return an IO");return r.run()})}}return(t={inspect:r,toString:r,run:e,type:o,ap:function(t){if(!l(d,t))throw new TypeError("IO.ap: IO required");return d(function(){var n=e();if(!u(n))throw new TypeError("IO.ap: Wrapped value must be a function");return t.map(n).run()})},of:n,map:h("map"),chain:p("chain")})[s.of]=n,t[s.map]=h(s.map),t[s.chain]=p(s.chain),t["@@type"]=a,t.constructor=d,t}d.of=f,d.type=o,d[s.of]=f,d["@@type"]=a,d["@@implements"]=r(["ap","chain","map","of"]),e.exports=d},function(e,t,n){"use strict";var r=n(1496),i=n(1497),o=n(829);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){var r=n(1498),i=n(1499);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},function(e,t,n){"use strict";var r=n(161),i=function(e,t,n){var r=e.length;if(r==t)return e;for(var i=t-r,o="",a=1;a<=i;a++)o+=n;return o+e};e.exports=function(e){(null==e||e<1)&&(e=15);var t,n=r(i("",e,"9")),o=0;return function(){var r=Math.floor(Math.random()*n);return r==t?o++:(o=0,t=r),i("".concat(r+=o),e,"0")}}},function(e,t){function n(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,i,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function r(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function i(e){return e!=e}var o=Array.prototype.splice,a=Math.max;function s(e,t,i,a){var s,c=a?r:n,u=-1,l=t.length,f=e;for(e===t&&(t=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(t)),i&&(f=function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(e,(s=i,function(e){return s(e)})));++u<l;)for(var d=0,h=t[u],p=i?i(h):h;(d=c(f,p,d,a))>-1;)f!==e&&o.call(f,d,1),o.call(e,d,1);return e}var c,u,l=(c=function(e,t){return e&&e.length&&t&&t.length?s(e,t):e},u=a(void 0===u?c.length-1:u,0),function(){for(var e=arguments,t=-1,n=a(e.length-u,0),r=Array(n);++t<n;)r[t]=e[u+t];t=-1;for(var i=Array(u+1);++t<u;)i[t]=e[t];return i[u]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(c,this,i)});e.exports=l},function(e,t,n){var r=n(769),i=n(1682),o=n(1688),a=n(1689),s=i(r(Promise.reject,Promise),a(o(Error),Error));e.exports=s},function(e,t,n){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function r(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function o(e,n){function r(){var e=o;i(e)&&e.a.parentNode&&n(e.g)}var o=e;t(e.b,r),t(e.c,r),i(e)}function a(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,c=null,u=null,l=null;function f(){return null===l&&(l=!!document.fonts),l}function d(){if(null===u){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}u=""!==e.style.font}return u}function h(e,t){return[e.style,e.weight,d()?e.stretch:"","100px",t].join(" ")}a.prototype.load=function(e,t){var i=this,a=e||"BESbswy",u=0,l=t||3e3,d=(new Date).getTime();return new Promise(function(e,t){if(f()&&!function(){if(null===c)if(f()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);c=!!e&&603>parseInt(e[1],10)}else c=!1;return c}()){var p=new Promise(function(e,t){!function n(){(new Date).getTime()-d>=l?t(Error(l+"ms timeout exceeded")):document.fonts.load(h(i,'"'+i.family+'"'),a).then(function(t){1<=t.length?e():setTimeout(n,25)},t)}()}),m=new Promise(function(e,t){u=setTimeout(function(){t(Error(l+"ms timeout exceeded"))},l)});Promise.race([m,p]).then(function(){clearTimeout(u),e(i)},t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),e()}):document.attachEvent("onreadystatechange",function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())})}(function(){function c(){var t;(t=-1!=v&&-1!=g||-1!=v&&-1!=y||-1!=g&&-1!=y)&&((t=v!=g&&v!=y&&g!=y)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(v==b&&g==b&&y==b||v==_&&g==_&&y==_||v==w&&g==w&&y==w)),t=!t),t&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(u),e(i))}var f=new n(a),p=new n(a),m=new n(a),v=-1,g=-1,y=-1,b=-1,_=-1,w=-1,x=document.createElement("div");x.dir="ltr",r(f,h(i,"sans-serif")),r(p,h(i,"serif")),r(m,h(i,"monospace")),x.appendChild(f.a),x.appendChild(p.a),x.appendChild(m.a),document.body.appendChild(x),b=f.a.offsetWidth,_=p.a.offsetWidth,w=m.a.offsetWidth,function e(){if((new Date).getTime()-d>=l)x.parentNode&&x.parentNode.removeChild(x),t(Error(l+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(v=f.a.offsetWidth,g=p.a.offsetWidth,y=m.a.offsetWidth,c()),u=setTimeout(e,50)}}(),o(f,function(e){v=e,c()}),r(f,h(i,'"'+i.family+'",sans-serif')),o(p,function(e){g=e,c()}),r(p,h(i,'"'+i.family+'",serif')),o(m,function(e){y=e,c()}),r(m,h(i,'"'+i.family+'",monospace'))})})},e.exports=a}()},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function o(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:o).apply(null,arguments)}var s=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var u=!!window.FontFace;function l(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function f(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function m(e,t,n){function r(){s&&i&&o&&(s(a),s=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,a=null,s=n||null;u?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout(function(){i=!0,r()},0),f(e,"head",t)}function v(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=l(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout(function(){a||(a=!0,n&&n(Error("Script load timeout")))},r||5e3),o}return null}function g(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,_(e)}}function b(e,t){e.c=t,_(e)}function _(e){0==e.a&&e.c&&(e.c(),e.c=null)}function w(e){this.a=e||"-"}function x(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function k(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function E(e){return e.a+e.f}function S(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function T(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function O(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new w("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function C(e){if(e.g){var t=p(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),h(e.f,n,r)}j(e,"inactive")}function j(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,E(n)):e.h[t]())}function A(){this.c={}}function M(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function P(e){f(e.c,"body",e.a)}function N(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+k(e.c)+";font-style:"+S(e)+";font-weight:"+e.f+"00;"}function I(e,t,n,r,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function L(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new M(this.c,this.s),this.h=new M(this.c,this.s),this.j=new M(this.c,this.s),this.m=new M(this.c,this.s),e=N(e=new x(this.a.c+",serif",E(this.a))),this.g.a.style.cssText=e,e=N(e=new x(this.a.c+",sans-serif",E(this.a))),this.h.a.style.cssText=e,e=N(e=new x("serif",E(this.a))),this.j.a.style.cssText=e,e=N(e=new x("sans-serif",E(this.a))),this.m.a.style.cssText=e,P(this.g),P(this.h),P(this.j),P(this.m)}w.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},I.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise(function(r,i){!function o(){s()-n>=t.f?i():e.fonts.load(function(e){return S(e)+" "+e.f+"00 300px "+k(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(o,25)},function(){i()})}()}),i=null,o=new Promise(function(e,n){i=setTimeout(n,t.f)});Promise.race([o,r]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var D={D:"serif",C:"sans-serif"},R=null;function B(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function F(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function U(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=B()&&F(e,n,r)),t?s()-e.A>=e.w?B()&&F(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?q(e,e.v):q(e,e.B):function(e){setTimeout(a(function(){U(this)},e),50)}(e):q(e,e.v)}function q(e,t){setTimeout(a(function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)},e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}L.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),U(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&h(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):C(e.a))}function V(e){this.j=e,this.a=new A,this.h=0,this.f=this.g=!0}function Y(e,t,n,r,i){var o=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,s=r||{};if(0===n.length&&o)C(t.a);else{t.f+=n.length,o&&(t.j=o);var c,u=[];for(c=0;c<n.length;c++){var l=n[c],f=s[l.c],d=t.a,p=l;if(d.g&&h(d.f,[d.a.c("wf",p.c,E(p).toString(),"loading")]),j(d,"fontloading",p),d=null,null===H)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=p?42<parseInt(p[1],10):!m}else H=!1;d=H?new I(a(t.g,t),a(t.h,t),t.c,l,t.s,f):new L(a(t.g,t),a(t.h,t),t.c,l,t.s,e,f),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}},0)}function G(e,t){this.c=e,this.a=t}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&h(t.f,[t.a.c("wf",e.c,E(e).toString(),"active")],[t.a.c("wf",e.c,E(e).toString(),"loading"),t.a.c("wf",e.c,E(e).toString(),"inactive")]),j(t,"fontactive",e),this.m=!0,W(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=p(t.f,t.a.c("wf",e.c,E(e).toString(),"active")),r=[],i=[t.a.c("wf",e.c,E(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,E(e).toString(),"inactive")),h(t.f,r,i)}j(t,"fontinactive",e),W(this)},V.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=n.timeout;!function(e){e.g&&h(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t);var r=function(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c),o=new z(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){Y(e,o,t,n,r)})}(this,new O(this.c,e),e)},G.prototype.load=function(e){var t=this,n=t.a.projectId,r=t.a.version;if(n){var i=t.c.o;v(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(r?"?v="+r:""),function(r){r?e([]):(i["__MonotypeConfiguration__"+n]=function(){return t.a},function t(){if(i["__mti_fntLst"+n]){var r,o=i["__mti_fntLst"+n](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(r=o[s].fontStyle+o[s].fontWeight,a.push(new x(c,r))):a.push(new x(c))}e(a)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+n}else e([])},K.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=this.a.testStrings||{},a=new g;for(t=0,n=r.length;t<n;t++)m(this.c,r[t],y(a));var s=[];for(t=0,n=i.length;t<n;t++)if((r=i[t].split(":"))[1])for(var c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new x(r[0],c[u]));else s.push(new x(r[0]));b(a,function(){e(s,o)})};var X="https://fonts.googleapis.com/css";function Q(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function oe(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new g,n=this.c,r=new $(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new Q(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).match(/^[\w-]+$/))if(null==(d=te.exec(l.toLowerCase())))l="";else{if(l=null==(l=d[2])||""==l?"n":ee[l],null==(d=d[1])||""==d)d="4";else var f=J[d],d=f||(isNaN(d)?"4":d.substr(0,1));l=[l,d].join("")}else l="";l&&a.push(l)}0<a.length&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Z[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new x(i,o[r]))}}(o),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),y(t)),b(t,function(){e(o.a,o.c,re)})},ie.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?v(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new x(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},oe.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];r.a.push(new x(a.name,T("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},v(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var ae=new V(window);ae.a.c.custom=function(e,t){return new K(t,e)},ae.a.c.fontdeck=function(e,t){return new oe(t,e)},ae.a.c.monotype=function(e,t){return new G(t,e)},ae.a.c.typekit=function(e,t){return new ie(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var se={load:a(ae.load,ae)};void 0===(r=function(){return se}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){var r=n(1736)(n(1809));e.exports=r},function(e,t,n){e.exports=n(1812)},function(e,t){e.exports=playerjs},function(e,t,n){var r=n(766),i=n(1167),o=n(1828),a=n(1829),s=n(892),c=n(770),u=n(1830);e.exports=c(3,function(e,t){return u(a(e),i(r(t),[s(e),o(e)]))})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(370),i=n(371),o=n(566),a=n(194).type("Any"),s=n(194).typeFn(a(),2),c=n(173),u=n(90),l=n(893),f=n(206),d=function(){return h(!1)};function h(e){var t,n=l(e)?d().valueOf():e;if(!arguments.length||u(n))throw new TypeError("Any: Non-function value required");var r=function(){return!!n},p=d,m=function(){return"Any"+i(r())},v=function(e){return f(h,e)&&o(n,e.valueOf())};function g(e){return function(t){if(!f(h,t))throw new TypeError("Any."+e+": Any required");return h(t.valueOf()||r())}}return(t={inspect:m,toString:m,equals:v,valueOf:r,type:a,empty:p})["@@type"]=s,t.concat=g("concat"),t[c.equals]=v,t[c.concat]=g(c.concat),t[c.empty]=p,t.constructor=h,t}h["@@implements"]=r(["equals","concat","empty"]),h.empty=d,h.type=a,h[c.empty]=d,h["@@type"]=s,e.exports=h},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90);e.exports=r(function(e,t){if(!i(t))throw new TypeError("applyTo: Function required for second argument");return t(e)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(279),i=n(119),o=n(243),a=n(278),s=n(90),c=n(619),u=n(479),l=n(622),f=n(173);e.exports=i(function(e,t){if(!s(e))throw new TypeError("map: Function required for first argument");if(s(t))return r(e,t);if(o(t))return u.map(e,t);if(t&&c(t))return(t[f.map]||t.map).call(t,e);if(a(t))return l.map(e,t);throw new TypeError("map: Object, Function or Functor of the same type required for second argument")})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(480),o=n(90),a=n(817),s=n(1831);e.exports=r(function(e,t,n){if(!a(e))throw new TypeError("mreduceMap: Monoid required for first argument");if(!o(t))throw new TypeError("mreduceMap: Function required for second argument");if(!i(n))throw new TypeError("mreduceMap: Foldable required for third argument");return s(e,t,n).valueOf()})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(119),i=n(401),o=n(498);e.exports=r(function(e,t){if(!i(e)||!i(t))throw new TypeError("or: Preds or predicate functions required for first two arguments");return function(n){return!(!o(e,n)&&!o(t,n))}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=n(1),a=(r=n(669))&&r.__esModule?r:{default:r};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return m(e)}(this,n)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,i.Component);var t,n,r,s=p(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=s.call.apply(s,[this].concat(n))).state={},e.setDimensions=e.setDimensions.bind(m(e)),e.shouldBeFullWidth=e.shouldBeFullWidth.bind(m(e)),e.getParentDimensions=e.getParentDimensions.bind(m(e)),e}return t=c,r=[{key:"defaultProps",get:function(){return{aspectRatio:9/16,fullWidth:!1,fullWidthAt:0,options:{preload:"auto",controls:!0,controlBar:{remainingTimeDisplay:!0,children:["playToggle","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle","volumePanel"],volumePanel:{inline:!1}}}}}},{key:"propTypes",get:function(){return{aspectRatio:o.PropTypes.number,crossOrigin:o.PropTypes.string,fullWidth:o.PropTypes.bool,fullWidthAt:o.PropTypes.number,options:o.PropTypes.shape({bigPlayButton:o.PropTypes.bool,preload:o.PropTypes.string,controls:o.PropTypes.bool,controlBar:o.PropTypes.object}),poster:o.PropTypes.string}}}],(n=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.setDimensions),this.player=(0,a.default)(this.video,this.options,function(){this.on("ended",function(){this.posterImage.show(),this.bigPlayButton.show(),this.currentTime(0)})}),this.setDimensions()}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),window.removeEventListener("resize",this.setDimensions)}},{key:"getParentPadding",value:function(){var e=window.getComputedStyle(this.container.parentNode,null),t=function(e,t){return parseInt(e.getPropertyValue(t),10)||0};return{top:t(e,"padding-top"),bottom:t(e,"padding-bottom")}}},{key:"getParentDimensions",value:function(){var e=this.container.parentNode.getBoundingClientRect(),t=e.width,n=e.height,r=this.getParentPadding();return{parentHeight:n-r.top-r.bottom,parentWidth:t}}},{key:"render",value:function(){var e=this,t={className:"video-js vjs-default-skin",ref:function(t){e.video=t},poster:this.props.poster};return this.props.crossOrigin&&(t.crossOrigin=this.props.crossOrigin),i.default.createElement("div",{className:"videoContainer",style:this.state.dimensions,ref:function(t){e.container=t}},i.default.createElement("video",t,this.props.children))}},{key:"shouldBeFullWidth",value:function(){var e=this.props,t=e.aspectRatio,n=e.fullWidth,r=e.fullWidthAt,i=this.getParentDimensions(),o=i.parentWidth,a=i.parentHeight;return n||o*t<=a||r&&window.innerWidth<r}},{key:"setDimensions",value:function(){var e=this.props.aspectRatio,t=this.getParentDimensions(),n=t.parentWidth,r=t.parentHeight,i=this.shouldBeFullWidth(),o=i?n:r/e,a=i?n*e:r;this.setState({dimensions:{width:o,height:a}})}},{key:"snapshot",value:function(){var e=document.createElement("canvas"),t=e.getContext("2d"),n=this.player.videoHeight(),r=this.player.videoWidth();return e.width=r,e.height=n,t.drawImage(this.video,0,0,r,n),e.toDataURL("image/png")}},{key:"options",get:function(){var e,t,n;return(null===(e=this.props.options)||void 0===e?void 0:null===(t=e.controlBar)||void 0===t?void 0:t.children)?this.props.options:l(l({},this.props.options),{},{controlBar:l(l({},null===(n=this.props.options)||void 0===n?void 0:n.controlBar),{},{children:this.constructor.defaultProps.options.controlBar.children})})}}])&&d(t.prototype,n),r&&d(t,r),c}();t.default=g},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){var r=n(638),i=n(1842);function o(t,n,a){return i()?(e.exports=o=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.default=e.exports,e.exports.__esModule=!0),o.apply(null,arguments)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(638);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";(function(t){var r,i=(r=n(284))&&"object"==typeof r&&"default"in r?r.default:r,o=function(e){return i.atob?i.atob(e):t.from(e,"base64").toString("binary")};e.exports=function(e){for(var t=o(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}}).call(this,n(331).Buffer)},function(e,t,n){function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,l=n.xmlns||{},f={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(f.nbsp=" ",f.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,f):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u<s;u++){e=r.getURI(u);var l=r.getValue(u),f=(n=r.getQName(u),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(u),f),f.value=f.nodeValue=l,a.setAttributeNode(f)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=s.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){i.prototype[e]=function(){return null}});var u=n(1844).XMLReader,l=t.DOMImplementation=n(894).DOMImplementation;t.XMLSerializer=n(894).XMLSerializer,t.DOMParser=r},function(e,t,n){"use strict";var r=n(895).discardEmulationPreventionBytes,i=n(1845).CaptionStream,o=n(362),a=n(525),s=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},c=function(e,t){var n=o.findBox(e,["moof","traf"]),i=o.findBox(e,["mdat"]),c={},u=[];return i.forEach(function(e,t){var r=n[t];u.push({mdat:e,traf:r})}),u.forEach(function(e){var n,i=e.mdat,u=e.traf,l=o.findBox(u,["tfhd"]),f=a.parseTfhd(l[0]),d=f.trackId,h=o.findBox(u,["tfdt"]),p=h.length>0?a.parseTfdt(h[0]).baseMediaDecodeTime:0,m=o.findBox(u,["trun"]);t===d&&m.length>0&&(n=function(e,t,n){var i,o,a,c,u=new DataView(e.buffer,e.byteOffset,e.byteLength),l=[];for(o=0;o+4<e.length;o+=a)if(a=u.getUint32(o),o+=4,!(a<=0))switch(31&e[o]){case 6:var f=e.subarray(o+1,o+1+a),d=s(o,t);i={nalUnitType:"sei_rbsp",size:a,data:f,escapedRBSP:r(f),trackId:n},d?(i.pts=d.pts,i.dts=d.dts,c=d):(i.pts=c.pts,i.dts=c.dts),l.push(i)}return l}(i,function(e,t,n){var r=t,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,s=n.trackId,c=[];return e.forEach(function(e){var t=a.parseTrun(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=s,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration}),c=c.concat(t)}),c}(m,p,f),d),c[d]||(c[d]=[]),c[d]=c[d].concat(n))}),c};e.exports=function(){var e,t,n,r,o,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new i,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,o.captions.push(e),o.captionStreams[e.stream]=!0})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&r===t[n])},this.parse=function(e,i,a){var s;if(!this.isInitialized())return null;if(!i||!a)return null;if(this.isNewInit(i,a))n=i[0],r=a[n];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var u=t.shift();this.parse(u,i,a)}return null!==(s=function(e,t,n){return null===t?null:{seiNals:c(e,t)[t],timescale:n}}(e,n,r))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),o):null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},function(e,t,n){"use strict";var r=n(897),i=n(1846).handleRollover,o={};o.ts=n(1847),o.aac=n(1848);var a=n(1849).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c++,u++;else{switch(r=e.subarray(c,u),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),l=!0)}if(l)break;c+=188,u+=188}for(c=(u=e.byteLength)-188,l=!1;c>=0;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c--,u--;else{switch(r=e.subarray(c,u),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),l=!0)}if(l)break;c-=188,u-=188}},c=function(e,t,n){for(var r,i,a,s,c,u,l,f=0,d=188,h=!1,p={data:[],size:0};d<e.byteLength;)if(71!==e[f]||71!==e[d])f++,d++;else{switch(r=e.subarray(f,d),o.ts.parseType(r,t.pid)){case"pes":if(i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(a&&!h&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),h=!0),!n.firstKeyFrame)){if(a&&0!==p.size){for(c=new Uint8Array(p.size),u=0;p.data.length;)l=p.data.shift(),c.set(l,u),u+=l.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var m=o.ts.parsePesTime(c);m?(n.firstKeyFrame=m,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(r),p.size+=r.byteLength}}if(h&&n.firstKeyFrame)break;f+=188,d+=188}for(f=(d=e.byteLength)-188,h=!1;f>=0;)if(71!==e[f]||71!==e[d])f--,d--;else{switch(r=e.subarray(f,d),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),h=!0)}if(h)break;f-=188,d-=188}},u=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,r=0,i=188;i<e.byteLength;)if(71!==e[r]||71!==e[i])r++,i++;else{switch(n=e.subarray(r,i),o.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=o.ts.parsePat(n));break;case"pmt":t.table||(t.table=o.ts.parsePmt(n))}if(t.pid&&t.table)return;r+=188,i+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case r.H264_STREAM_TYPE:n.video=[],c(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(e,t,n),0===n.audio.length&&delete n.audio}}return n};e.exports={inspect:function(e,t){var n;return(n=o.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,c=0,u=0;e.length-u>=3;){switch(o.aac.parseType(e,u)){case"timed-metadata":if(e.length-u<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,u))>e.length){n=!0;break}null===s&&(t=e.subarray(u,u+c),s=o.aac.parseAacTimestamp(t)),u+=c;break;case"audio":if(e.length-u<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,u))>e.length){n=!0;break}null===i&&(t=e.subarray(u,u+c),i=o.aac.parseSampleRate(t)),r++,u+=c;break;default:u++}if(n)return null}if(null===i||null===s)return null;var l=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*l,pts:s+1024*r*l}]}}(e):u(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;void 0===n&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a})}if(e.video&&e.video.length){var r=t;if(void 0===r&&(r=e.video[0].dts),e.video.forEach(function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a}),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/a,o.ptsTime=o.dts/a}}}(n,t),n):null},parseAudioPes_:s}},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(435),c=n(11),u=n(14),l=n(6);function f(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var d=function(e){Object(c.a)(n,e);var t=f(n);function n(e,r){var i;Object(o.a)(this,n),i=t.call(this,e,[]);var a=r.showRestrictSeekTooltip,s=r.getMaxTime;return i.showRestrictSeekTooltip=a,i.getMaxTime=s,i}return Object(a.a)(n,[{key:"handleMouseMove",value:function(e){var t=this.player(),n=this.calculateDistance(e)*t.duration(),r=this.getMaxTime();n>r?(this.showRestrictSeekTooltip(!0),n=r):this.showRestrictSeekTooltip(!1),n===t.duration()&&(n-=.1),t.currentTime(n)}},{key:"handleMouseUp",value:function(e){Object(s.a)(Object(l.a)(n.prototype),"handleMouseUp",this).call(this,e),this.showRestrictSeekTooltip(!1)}}]),n}(n(669).default.getComponent("SeekBar"));t.a=d},function(e,t,n){
/*!
* sweet-scroll
* Modern and the sweet smooth scroll library.
* @author tsuyoshiwada
* @license MIT
* @version 2.2.1
*/
e.exports=function(){"use strict";var e=Math.cos,t=Math.sin,n=Math.pow,r=Math.abs,i=Math.sqrt,o=Math.asin,a=Math.PI,s=Math.max,c=Math.min,u=Math.round,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(2,53)-1,p={};function m(e){return null==e?"":"object"===(void 0===e?"undefined":l(e))||"function"==typeof e?p[Object.prototype.toString.call(e)]||"object":void 0===e?"undefined":l(e)}function v(e){return"string"===m(e)}function g(e){return"function"===m(e)}function y(e){return Array.isArray(e)}function b(e){var t=null==e?null:e.length;return function(e){return"number"===m(e)}(t)&&t>=0&&t<=h}function _(e,t){return e&&e.hasOwnProperty(t)}function w(e,t,n){if(null==e)return e;var r=n||e;if(function(e){return!y(e)&&"object"===m(e)}(e)){for(var i in e)if(_(e,i)&&!1===t.call(r,e[i],i))break}else if(b(e))for(var o=0;o<e.length&&!1!==t.call(r,e[o],o);o++);return e}function x(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return w(n,function(t){w(t,function(t,n){e[n]=t})}),e}["Boolean","Number","String","Function","Array","Object"].forEach(function(e){p["[object "+e+"]"]=e.toLowerCase()});var k=!("undefined"==typeof window||!window.document||!window.document.createElement),E=function(){if(!k)return!1;var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history&&"file:"!==window.location.protocol}(),S=k?window:null,T=k?document:null;function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return(null==t?T:t).querySelector(e)}function C(e,t){for(var n=(e.document||e.ownerDocument).querySelectorAll(t),r=n.length;--r>=0&&n.item(r)!==e;);return r>-1}var j={y:"scrollTop",x:"scrollLeft"},A={y:"pageYOffset",x:"pageXOffset"};function M(e){return e===T.documentElement||e===T.body}function P(e){for(var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=j[r],a=e instanceof Element?[e]:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return(null==t?T:t).querySelectorAll(e)}(e),s=[],c=T.createElement("div"),u=0;u<a.length;u++){var l=a[u];if(l[o]>0?s.push(l):(c.style.width=l.clientWidth+1+"px",c.style.height=l.clientHeight+1+"px",l.appendChild(c),l[o]=1.5/(t=void 0,n=void 0,t=S.outerWidth,n=S.innerWidth,t?t/n:1),l[o]>0&&s.push(l),l[o]=0,l.removeChild(c)),!i&&s.length>0)break}return s}function N(e,t){var n=P(e,t,!1);return n.length>=1?n[0]:null}function I(e){return null!=e&&e===e.window?e:9===e.nodeType&&e.defaultView}function L(e){return s(e.scrollHeight,e.clientHeight,e.offsetHeight)}function D(e){return s(e.scrollWidth,e.clientWidth,e.offsetWidth)}function R(e){return{width:D(e),height:L(e)}}function B(e){return M(e)?{viewport:{width:c(S.innerWidth,T.documentElement.clientWidth),height:S.innerHeight},size:{width:s(D(T.body),D(T.documentElement)),height:s(L(T.body),L(T.documentElement))}}:{viewport:{width:e.clientWidth,height:e.clientHeight},size:R(e)}}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=I(e);return n?n[A[t]]:e[j[t]]}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"y",r=I(e),i="y"===n;r?r.scrollTo(i?r[A.x]:t,i?t:r[A.y]):e[j[n]]=t}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||e&&!e.getClientRects().length)return{top:0,left:0};var n=e.getBoundingClientRect();if(n.width||n.height){var r={},i=null;if(null==t||M(t))i=e.ownerDocument.documentElement,r.top=S.pageYOffset,r.left=S.pageXOffset;else{var o=(i=t).getBoundingClientRect();r.top=-1*o.top+i.scrollTop,r.left=-1*o.left+i.scrollLeft}return{top:n.top+r.top-i.clientTop,left:n.left+r.left-i.clientLeft}}return n}function z(e,t,n){var r=t.split(",");r.forEach(function(t){e.addEventListener(t.trim(),n,!1)})}function H(e,t,n){var r=t.split(",");r.forEach(function(t){e.removeEventListener(t.trim(),n,!1)})}function W(e,t,n,r,i){return(t/=i)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n}function V(e,t,n,r,i){return r-W(0,i-t,0,r,i)+n}var Y=Object.freeze({linear:function(e){return e},InQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},OutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},InOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},InCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},OutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},InOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},InQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},OutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},InOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},InQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},OutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},InOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},InSine:function(t,n,r,i,o){return-i*e(n/o*(a/2))+i+r},OutSine:function(e,n,r,i,o){return i*t(n/o*(a/2))+r},InOutSine:function(t,n,r,i,o){return-i/2*(e(a*n/o)-1)+r},InExpo:function(e,t,r,i,o){return 0===t?r:i*n(2,10*(t/o-1))+r},OutExpo:function(e,t,r,i,o){return t===o?r+i:i*(1-n(2,-10*t/o))+r},InOutExpo:function(e,t,r,i,o){return 0===t?r:t===o?r+i:(t/=o/2)<1?i/2*n(2,10*(t-1))+r:i/2*(2-n(2,-10*--t))+r},InCirc:function(e,t,n,r,o){return-r*(i(1-(t/=o)*t)-1)+n},OutCirc:function(e,t,n,r,o){return r*i(1-(t=t/o-1)*t)+n},InOutCirc:function(e,t,n,r,o){return(t/=o/2)<1?-r/2*(i(1-t*t)-1)+n:r/2*(i(1-(t-=2)*t)+1)+n},InElastic:function(e,i,s,c,u){var l=1.70158,f=0,d=c;return 0===i?s:1==(i/=u)?s+c:(f||(f=.3*u),d<r(c)?(d=c,l=f/4):l=f/(2*a)*o(c/d),-d*n(2,10*(i-=1))*t(2*a*(i*u-l)/f)+s)},OutElastic:function(e,i,s,c,u){var l=1.70158,f=0,d=c;return 0===i?s:1==(i/=u)?s+c:(f||(f=.3*u),d<r(c)?(d=c,l=f/4):l=f/(2*a)*o(c/d),d*n(2,-10*i)*t(2*a*(i*u-l)/f)+c+s)},InOutElastic:function(e,i,s,c,u){var l=1.70158,f=0,d=c;return 0===i?s:2==(i/=u/2)?s+c:(f||(f=u*(.3*1.5)),d<r(c)?(d=c,l=f/4):l=f/(2*a)*o(c/d),i<1?d*n(2,10*(i-=1))*t(2*a*(i*u-l)/f)*-.5+s:d*n(2,-10*(i-=1))*t(2*a*(i*u-l)/f)*.5+c+s)},InBack:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return r*(t/=i)*t*((o+1)*t-o)+n},OutBack:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return r*((t=t/i-1)*t*((o+1)*t+o)+1)+n},InOutBack:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return(t/=i/2)<1?r/2*(t*t*((1+(o*=1.525))*t-o))+n:r/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+n},OutBounce:W,InBounce:V,InOutBounce:function(e,t,n,r,i){return t<i/2?.5*V(0,2*t,0,r,i)+n:.5*W(0,2*t-i,0,r,i)+.5*r+n}}),G=["ms","moz","webkit"],K=0,$=k?S.requestAnimationFrame:null,X=k?S.cancelAnimationFrame:null;if(k){for(var Q=0;Q<G.length&&!$;++Q)$=S[G[Q]+"RequestAnimationFrame"],X=S[G[Q]+"CancelAnimationFrame"]||S[G[Q]+"CancelRequestAnimationFrame"];$||($=function(e){var t=Date.now(),n=s(0,16-(t-K)),r=setTimeout(function(){e(t+n)},n);return K=t+n,r}),X||(X=function(e){clearTimeout(e)})}var Z=function(){function e(t){f(this,e),this.el=t,this.props={},this.options={},this.progress=!1,this.easing=null,this.startTime=null,this.rafId=null}return d(e,[{key:"run",value:function(e,t,n){var r=this;this.progress||(this.props={x:e,y:t},this.options=n,this.easing=g(n.easing)?n.easing:Y[n.easing.replace("ease","")],this.progress=!0,setTimeout(function(){r.startProps=r.calcStartProps(e,t),r.rafId=$(function(e){return r._loop(e)})},this.options.delay))}},{key:"stop",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.options.complete;this.startTime=null,this.progress=!1,X(this.rafId),e&&(U(this.el,this.props.x,"x"),U(this.el,this.props.y,"y")),g(t)&&(t.call(this),this.options.complete=null)}},{key:"_loop",value:function(e){var t=this;if(this.startTime||(this.startTime=e),this.progress){var n=this.el,r=this.props,i=this.options,o=this.startTime,a=this.startProps,l=this.easing,f=i.duration,d=i.step,h={},p=e-o,m=c(1,s(p/f,0));w(r,function(e,t){var n=a[t],r=e-n;if(0===r)return!0;var i=l(m,f*m,0,1,f);h[t]=u(n+r*i)}),w(h,function(e,t){U(n,e,t)}),p<=f?(d.call(this,m,h),this.rafId=$(function(e){return t._loop(e)})):this.stop(!0)}else this.stop(!1)}},{key:"calcStartProps",value:function(e,t){var n={x:F(this.el,"x"),y:F(this.el,"y")};if(this.options.quickMode){var i=B(this.el),o=i.viewport,a=o.width,s=o.height;r(n.y-t)>s&&(n.y=n.y>t?t+s:t-s),r(n.x-e)>a&&(n.x=n.x>e?e+a:e-a)}return n}}]),e}(),J=(k?"onwheel"in T?"wheel":"onmousewheel"in T?"mousewheel":"DOMMouseScroll":"wheel")+", touchstart, touchmove",ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body, html";f(this,e),this.isSSR=!k,this.options=x({},e.defaults,t),this.container=this.getContainer(n),null==this.container?(this.header=null,this.tween=null,this.isSSR||(/comp|inter|loaded/.test(T.readyState)?this.log('Not found scrollable container. => "'+n+'"'):this.log("Should be initialize later than DOMContentLoaded."))):(this.header=O(this.options.header),this.tween=new Z(this.container),this._trigger=null,this._shouldCallCancelScroll=!1,this.bindContainerClick())}return d(e,[{key:"log",value:function(e){this.options.outputLog&&function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}("[SweetScroll] "+e)}},{key:"getScrollOffset",value:function(e,t){var n=this.container,r=this.header,i=this.parseCoodinate(t.offset),o=this.parseCoodinate(e);if(!o&&v(e))if("#"===e)o={top:0,left:0};else{var a=O(e),c=q(a,n);if(!c)return;o=c}return o?(i&&(o.top+=i.top,o.left+=i.left),r&&(o.top=s(0,o.top-R(r).height)),o):null}},{key:"normalizeScrollOffset",value:function(e,t){var n=this.container,r=x({},e),i=B(n),o=i.viewport,a=i.size;return r.top=t.verticalScroll?s(0,c(a.height-o.height,r.top)):F(n,"y"),r.left=t.horizontalScroll?s(0,c(a.width-o.width,r.left)):F(n,"x"),r}},{key:"to",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isSSR){var r=this.container,i=x({},this.options,n),o=this._trigger,a=v(e)&&/^#/.test(e)?e:null;if(this._options=i,this._trigger=null,this._shouldCallCancelScroll=!1,this.stop(),!r)return this.log("Not found container element.");var s=this.getScrollOffset(e,i);if(!s)return this.log("Invalid parameter of distance. => "+e);!1!==this.hook(i,"beforeScroll",s,o)?(s=this.normalizeScrollOffset(s,i),this.tween.run(s.left,s.top,{duration:i.duration,delay:i.delay,easing:i.easing,quickMode:i.quickMode,complete:function(){null!=a&&a!==S.location.hash&&t.updateURLHash(a,i.updateURL),t.unbindContainerStop(),t._options=null,t._shouldCallCancelScroll?t.hook(i,"cancelScroll"):t.hook(i,"afterScroll",s,o),t.hook(i,"completeScroll",t._shouldCallCancelScroll)},step:function(e,n){t.hook(i,"stepScroll",e,n)}}),this.bindContainerStop()):this._options=null}}},{key:"toTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.to(e,x({},t,{verticalScroll:!0,horizontalScroll:!1}))}},{key:"toLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.to(e,x({},t,{verticalScroll:!1,horizontalScroll:!0}))}},{key:"toElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isSSR)if(e instanceof Element){var n=q(e,this.container);this.to(n,x({},t))}else this.log("Invalid parameter.")}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isSSR||(this.container?(this._stopScrollListener&&(this._shouldCallCancelScroll=!0),this.tween.stop(e)):this.log("Not found scrollable container."))}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.container?(this.stop(),this.unbindContainerClick(),this.unbindContainerStop(),this.options=x({},this.options,e),this.header=O(this.options.header),this.bindContainerClick()):this.isSSR||this.log("Not found scrollable container.")}},{key:"destroy",value:function(){this.container?(this.stop(),this.unbindContainerClick(),this.unbindContainerStop(),this.container=null,this.header=null,this.tween=null):this.isSSR||this.log("Not found scrollable container.")}},{key:"beforeScroll",value:function(e,t){return!0}},{key:"cancelScroll",value:function(){}},{key:"afterScroll",value:function(e,t){}},{key:"completeScroll",value:function(e){}},{key:"stepScroll",value:function(e,t){}},{key:"parseCoodinate",value:function(e){var t,n=this._options?this._options.verticalScroll:this.options.verticalScroll,r={top:0,left:0};if(_(e,"top")||_(e,"left"))r=x(r,e);else if(y(e))2===e.length?(r.top=e[0],r.left=e[1]):(r.top=n?e[0]:0,r.left=n?0:e[0]);else if(!y(t=e)&&t-parseFloat(t)+1>=0)r.top=n?e:0,r.left=n?0:e;else{if(!v(e))return null;var i=e.replace(/\s*/g,"")||"";if(/^\d+,\d+$/.test(i))i=i.split(","),r.top=i[0],r.left=i[1];else if(/^(top|left):\d+,?(?:(top|left):\d+)?$/.test(i)){var o=i.match(/top:(\d+)/),a=i.match(/left:(\d+)/);r.top=o?o[1]:0,r.left=a?a[1]:0}else{if(!this.container||!/^(\+|-)=(\d+)$/.test(i))return null;var s=F(this.container,n?"y":"x"),c=i.match(/^(\+|-)=(\d+)$/),u=c[1],l=parseInt(c[2],10);"+"===u?(r.top=n?s+l:0,r.left=n?0:s+l):(r.top=n?s-l:0,r.left=n?0:s-l)}}return r.top=parseInt(r.top,10),r.left=parseInt(r.left,10),r}},{key:"updateURLHash",value:function(e,t){!this.isSSR&&E&&t&&S.history["replace"===t?"replaceState":"pushState"](null,null,e)}},{key:"getContainer",value:function(e){var t=this.options,n=t.verticalScroll,r=t.horizontalScroll,i=null;return this.isSSR?i:(n&&(i=N(e,"y")),!i&&r&&(i=N(e,"x")),i)}},{key:"bindContainerClick",value:function(){var e=this.container;e&&(this._containerClickListener=this.handleContainerClick.bind(this),z(e,"click",this._containerClickListener))}},{key:"unbindContainerClick",value:function(){var e=this.container;e&&this._containerClickListener&&(H(e,"click",this._containerClickListener),this._containerClickListener=null)}},{key:"bindContainerStop",value:function(){var e=this.container;e&&(this._stopScrollListener=this.handleStopScroll.bind(this),z(e,J,this._stopScrollListener))}},{key:"unbindContainerStop",value:function(){var e=this.container;e&&this._stopScrollListener&&(H(e,J,this._stopScrollListener),this._stopScrollListener=null)}},{key:"hook",value:function(e,t){for(var n=e[t],r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(g(n)){var a=n.apply(this,i);if(void 0===a)return a}return this[t].apply(this,i)}},{key:"handleStopScroll",value:function(e){var t=this._options?this._options.stopScroll:this.options.stopScroll;t?this.stop():e.preventDefault()}},{key:"handleContainerClick",value:function(e){for(var t=this.options,n=e.target;n&&n!==T;n=n.parentNode)if(C(n,t.trigger)){var r=n.getAttribute("data-scroll"),i=this.parseDataOptions(n),o=r||n.getAttribute("href");(t=x({},t,i)).preventDefault&&e.preventDefault(),t.stopPropagation&&e.stopPropagation(),this._trigger=n,t.horizontalScroll&&t.verticalScroll?this.to(o,t):t.verticalScroll?this.toTop(o,t):t.horizontalScroll&&this.toLeft(o,t)}}},{key:"parseDataOptions",value:function(e){var t=e.getAttribute("data-scroll-options");return t?JSON.parse(t):{}}}]),e}();return ee.defaults={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,delay:0,easing:"easeOutQuint",offset:0,verticalScroll:!0,horizontalScroll:!1,stopScroll:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,outputLog:!1,quickMode:!1,beforeScroll:null,afterScroll:null,cancelScroll:null,completeScroll:null,stepScroll:null},ee}()},function(e,t,n){"use strict";var r=n(255),i=n(62),o=n(44),a=n(531),s=n(133),c=n(159),u=n(377),l=n(413),f=n(4),d=n(33),h=n(98),p=n(16),m=n(5),v=n(659);i(t,"__esModule",{value:!0});var g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),i(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e,t,n){for(var r=!0;r;){var i=e,s=t,c=n;r=!1,null===i&&(i=Function.prototype);var u=o(i,s);if(void 0!==u){if("value"in u)return u.value;var l=u.get;if(void 0===l)return;return l.call(c)}var f=a(i);if(null===f)return;e=f,t=s,n=c,r=!0,u=f=void 0}};function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=u(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(l?l(e,t):e.__proto__=t)}var x=n(0),k=b(x),E=b(n(1168)),S=b(n(1854)),T=function(e){function t(e){var n;_(this,t),y(a(t.prototype),"constructor",this).call(this,e),this.serverSide="undefined"==typeof window,this.listener=(0,E.default)(f(n=this.handleScroll).call(n,this),50),this.visibility={inViewport:!1,onScreen:!1},this.state={classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}}return w(t,x.Component),g(t,[{key:"getElementTop",value:function(e){for(var t=0;e&&void 0!==e.offsetTop&&void 0!==e.clientTop;)t+=e.offsetTop+e.clientTop,e=e.offsetParent;return t}},{key:"getScrollPos",value:function(){return void 0!==this.scrollableParent.pageYOffset?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}},{key:"getScrollableParentHeight",value:function(){return void 0!==this.scrollableParent.innerHeight?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}},{key:"getViewportTop",value:function(){return this.getScrollPos()+this.props.offset}},{key:"getViewportBottom",value:function(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}},{key:"isInViewport",value:function(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}},{key:"isAboveViewport",value:function(e){return e<this.getViewportTop()}},{key:"isBelowViewport",value:function(e){return e>this.getViewportBottom()}},{key:"inViewport",value:function(e,t){return this.isInViewport(e)||this.isInViewport(t)||this.isAboveViewport(e)&&this.isBelowViewport(t)}},{key:"onScreen",value:function(e,t){return!this.isAboveScreen(t)&&!this.isBelowScreen(e)}},{key:"isAboveScreen",value:function(e){return e<this.getScrollPos()}},{key:"isBelowScreen",value:function(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}},{key:"getVisibility",value:function(){var e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),t=e+this.node.clientHeight,n=this.inViewport(e,t);return{aboveViewport:this.isAboveViewport(e),belowViewport:this.isBelowViewport(e),inViewport:n,onScreen:this.onScreen(e,t)}}},{key:"componentDidMount",value:function(){if(!this.serverSide){var e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener):console.warn("Cannot find element by locator: "+this.props.scrollableParentSelector),this.handleScroll()}}},{key:"componentWillUnmount",value:function(){this.cleanup()}},{key:"cleanup",value:function(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),window&&window.removeEventListener&&window.removeEventListener("scroll",this.listener)}},{key:"visibilityHasChanged",value:function(e,t){return e.inViewport!==t.inViewport||e.onScreen!==t.onScreen}},{key:"captureRef",value:function(e){e&&(this.node=e.animateRef?e.animateRef:e)}},{key:"animate",value:function(e,t){var n=this;this.delayedAnimationTimeout=d(function(){n.animating=!0,n.setState({classes:"animated "+e,style:{animationDuration:n.props.duration+"s"}}),n.callbackTimeout=d(t,1e3*n.props.duration)},this.props.delay)}},{key:"animateIn",value:function(e){var t=this;this.animate(this.props.animateIn,function(){t.props.animateOnce||(t.setState({style:{animationDuration:t.props.duration+"s",opacity:1}}),t.animating=!1);var n=t.getVisibility();e&&e(n)})}},{key:"animateOut",value:function(e){var t=this;this.animate(this.props.animateOut,function(){t.setState({classes:"animated",style:{animationDuration:t.props.duration+"s",opacity:0}});var n=t.getVisibility();n.inViewport&&t.props.animateIn?t.animateIn(t.props.afterAnimatedIn):t.animating=!1,e&&e(n)})}},{key:"shouldNotAnimate",value:function(e){return this.props.animateIn&&this.props.animateOut?!e.onScreen:this.props.animateIn?!e.onScreen&&!e.aboveViewport:!e.onScreen&&!e.belowViewport}},{key:"shouldAnimateIn",value:function(e){return!!this.props.animateIn&&(this.props.animateOut?e.inViewport:e.inViewport||e.aboveViewport)}},{key:"shouldAnimateOut",value:function(e){return!(!this.props.animateOut||!e.onScreen||1!==this.state.style.opacity)&&(this.props.animateIn?e.inViewport:e.inViewport||e.belowViewport)}},{key:"handleScroll",value:function(){if(!this.animating){if(!this.node)return this.cleanup(),!0;var e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),this.shouldNotAnimate(e)?this.setState({classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}):this.shouldAnimateIn(e)?this.animateIn(this.props.afterAnimatedIn):this.shouldAnimateOut(e)&&this.animateOut(this.props.afterAnimatedOut),this.visibility=e)}}},{key:"renderChild",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=this.props,i=r.initiallyVisible,o=r.keepStructure,a=r.siblingDelay*n,s=h({},this.state.style,this.props.style,{animationDelay:a+"s"});return k.default.createElement(O,{classes:t,initiallyVisible:i,keepStructure:o,key:n,style:s},e)}},{key:"renderChildren",value:function(e,t){var n,r,i,o=this,a=this.props,u=a.children,l=a.siblingDelay,f=s(t)?t:u;return l&&s(f)?p(n=m(r=[]).call(r,function(e){if(s(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return c(e)}(v(i=Array(f.length)).call(i)))).call(n,function(t){return o.renderChild(f[t],e,t)}):this.renderChild(f,e)}},{key:"renderWrapped",value:function(e){var t=this;return k.default.createElement("div",{ref:function(e){t.node=e}},this.renderChildren(e))}},{key:"renderStructure",value:function(e){var t,n=this,r=this.props.children;return 1===k.default.Children.count(r)?p(t=k.default.Children).call(t,r,function(t){var r;return k.default.cloneElement(t,{ref:f(r=n.captureRef).call(r,n)},n.renderChildren(e,t.props.children))}):this.renderWrapped(e)}},{key:"render",value:function(){var e=this.props.className?this.props.className+" "+this.state.classes:this.state.classes;return this.props.keepStructure?this.renderStructure(e):this.renderWrapped(e)}}]),t}();t.default=T,T.defaultProps={animateOnce:!1,delay:0,duration:1,keepStructure:!1,initiallyVisible:!1,offset:150,siblingDelay:0},T.propTypes={animateIn:S.default.string,animateOnce:S.default.bool,animateOut:S.default.string,className:S.default.string,delay:S.default.number,duration:S.default.number,initiallyVisible:S.default.bool,keepStructure:S.default.bool,offset:S.default.number,scrollableParentSelector:S.default.string,siblingDelay:S.default.number,style:S.default.object};var O=function(e){function t(e){_(this,t),y(a(t.prototype),"constructor",this).call(this,e),this.state={hasAnimated:!1}}return w(t,x.Component),g(t,[{key:"componentDidMount",value:function(){var e=this;this.animationEndListener=this.ref.addEventListener("animationend",function(){e.ref&&e.setState({hasAnimated:!0})})}},{key:"componentWillUnmount",value:function(){this.ref&&this.ref.removeEventListener&&this.ref.removeEventListener("animationend",this.animationEndListener)}},{key:"componentWillReceiveProps",value:function(e){0===e.style.opacity&&this.setState({hasAnimated:!1})}},{key:"captureRef",value:function(e){e&&(this.ref=e.animateRef?e.animateRef:e)}},{key:"renderStructure",value:function(e){var t,n=this,r=e.style,i=this.props,o=i.children,a=i.classes;return p(t=k.default.Children).call(t,o,function(e){var t;return k.default.cloneElement(e,{className:a,style:r,ref:f(t=n.captureRef).call(t,n)})})}},{key:"renderWrapped",value:function(e){var t=this,n=e.style,r=this.props,i=r.children,o=r.classes;return k.default.createElement("div",{className:o,style:n,ref:function(e){return t.ref=e}},i)}},{key:"render",value:function(){var e=this.props,t=e.initiallyVisible,n=e.keepStructure,r=this.state.hasAnimated,i=this.props.style,o=void 0===i.animationDelay||t?i.opacity:0,a=h({},i,{opacity:r?1:o});return n?this.renderStructure({style:a}):this.renderWrapped({style:a})}}]),t}();O.defaultProps={keepStructure:!1},O.propTypes={classes:S.default.string,keepStructure:S.default.bool,style:S.default.object},e.exports=t.default},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return j});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(5),p=n.n(h),m=(n(1893),n(82)),v=n.n(m),g=n(87),y=n.n(g),b=n(8),_=n.n(b),w=n(2),x=n.n(w),k=n(56),E=n(22),S=n(63),T=n(81),O=n(198);function C(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var j=function(t){Object(c.a)(r,t);var n=C(r);function r(){var e,t,i,a,c,u,l;return Object(o.a)(this,r),(l=n.call(this)).state={fullscreen:!1,reopenMenu:!1},l.iframe=null,l.canFullscreen=d()(e=l.canFullscreen).call(e,Object(s.a)(l)),l.handleCourseUpdate=d()(t=l.handleCourseUpdate).call(t,Object(s.a)(l)),l.handleFullscreenEnter=d()(i=l.handleFullscreenEnter).call(i,Object(s.a)(l)),l.handleFullscreenExit=d()(a=l.handleFullscreenExit).call(a,Object(s.a)(l)),l.handleMessages=d()(c=l.handleMessages).call(c,Object(s.a)(l)),l.renderItem=d()(u=l.renderItem).call(u,Object(s.a)(l)),l}return Object(a.a)(r,[{key:"componentWillMount",value:function(){window.addEventListener("message",this.handleMessages)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.handleMessages)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.items,n=e.onStep,r=v()(t),i=_()(O.b,O.f);y()(i,n,r)}},{key:"canFullscreen",value:function(e){var t=this.props,n=t.blockId,r=t.hasManySlBlocks;return n===e.windowName||!r()}},{key:"handleMessages",value:function(e){var t=e.data,n=t.type,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[n];r&&r(t)}},{key:"handleCourseUpdate",value:function(e){var t=this.props,n=t.items,r=t.onStep,i=t.blockId,o=v()(n);if(i===e.windowName&&Object(O.h)(e)){var a=Object(O.c)(e),s=a.score,c=a.success;if(Object(O.j)(e)){var u=100*s.scaled;Object(T.f)(i,c,!0,u)}else Object(T.f)(i,!0,!1);r(o)}}},{key:"handleFullscreenEnter",value:function(e){var t=this.props,n=t.menuOpen,r=t.handleStorylineFullscreen;this.canFullscreen(e)&&(n&&r(!0),this.setState({fullscreen:!0,reopenMenu:n}))}},{key:"handleFullscreenExit",value:function(e){var t=this.props.handleStorylineFullscreen,n=this.state.reopenMenu;this.canFullscreen(e)&&(n&&t(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLesson,i=t.isLearner,o=t.items,a=t.labels.storylineGroup,s=t.settings,c=t.takingSnapshot,u=v()(o),l=s.paddingTop,f=s.paddingBottom,d=s.backgroundColor,h=s.mediaWidth,p=void 0===h?"0":h,m={backgroundColor:Object(S.a)("",d),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*f,"px"),display:r&&!Object(O.g)(u)?"none":"block"},g=x()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":"0"===p,"blocks-storyline__wrapper--medium":"1"===p,"blocks-storyline__wrapper--full":"2"===p,"blocks-storyline__wrapper--snapshot":c});return e.createElement("div",{className:"blocks-storyline",style:m},e.createElement(k.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:i},e.createElement("div",{"aria-label":a,className:g,role:"group"},c?this.renderThumbnail(u):this.renderStorylineBlock(u))))}},{key:"renderStorylineBlock",value:function(e){return Object(O.i)(e)?this.renderProcessing():Object(O.g)(e)?this.renderItem(e):this.renderEmpty()}},{key:"renderThumbnail",value:function(t){var n,r=Object(O.e)(t),i=p()(n="".concat(Object(E.c)("CDN_USER_CONTENT_URI"),"/")).call(n,r);return e.createElement("img",{src:i})}},{key:"renderEmpty",value:function(){var e=this.props.renderEmpty;return"function"==typeof e?e():null}},{key:"renderItem",value:function(t){var n=this,r=this.state.fullscreen,i=this.props,o=i.blockId,a=i.isLesson,s=i.previewType,c=Object(O.d)(t),u=c.src,l=c.meta,f=c.title,d=l.player,h=Object(O.a)(u,a,s),p=d.height/d.width,m={paddingBottom:"".concat(100*p,"%")},v=x()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":r});return e.createElement("div",{className:"blocks-storyline__item",style:m},e.createElement("iframe",{allowtransparency:"true",ref:function(e){return n.iframe=e},name:o,className:v,src:Object(E.g)(h),title:f}))}},{key:"renderProcessing",value:function(){var e=this.props.renderProcessing;return"function"==typeof e?e():null}}],[{key:"defaultProps",get:function(){return{isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(372)},function(e,t,n){"use strict";(function(t){
/**
* filesize
*
* @copyright 2017 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.5.11
*/
!function(t){var n=/^(b|B)$/,r={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},i={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function o(e){var t,o,a,s,c,u,l,f,d,h,p,m,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],y=0,b=void 0,_=void 0;if(isNaN(e))throw new Error("Invalid arguments");return o=!0===v.bits,d=!0===v.unix,t=v.base||2,f=void 0!==v.round?v.round:d?1:2,h=void 0!==v.spacer?v.spacer:d?"":" ",m=v.symbols||v.suffixes||{},p=2===t&&v.standard||"jedec",l=v.output||"string",s=!0===v.fullform,c=v.fullforms instanceof Array?v.fullforms:[],b=void 0!==v.exponent?v.exponent:-1,a=t>2?1e3:1024,(u=(_=Number(e))<0)&&(_=-_),(-1===b||isNaN(b))&&(b=Math.floor(Math.log(_)/Math.log(a)))<0&&(b=0),b>8&&(b=8),0===_?(g[0]=0,g[1]=d?"":r[p][o?"bits":"bytes"][b]):(y=_/(2===t?Math.pow(2,10*b):Math.pow(1e3,b)),o&&(y*=8)>=a&&b<8&&(y/=a,b++),g[0]=Number(y.toFixed(b>0?f:0)),g[1]=10===t&&1===b?o?"kb":"kB":r[p][o?"bits":"bytes"][b],d&&(g[1]="jedec"===p?g[1].charAt(0):b>0?g[1].replace(/B$/,""):g[1],n.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))),u&&(g[0]=-g[0]),g[1]=m[g[1]]||g[1],"array"===l?g:"exponent"===l?b:"object"===l?{value:g[0],suffix:g[1],symbol:g[1]}:(s&&(g[1]=c[b]?c[b]:i[p][b]+(o?"bit":"byte")+(1===g[0]?"":"s")),g.join(h))}o.partial=function(e){return function(t){return o(t,e)}},e.exports=o}("undefined"!=typeof window&&window)}).call(this,n(99))},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(54),a=n.n(o),s=n(680),c=n(681),u=(n(1913),a()("partner-content-block-card__"));t.a=function(e){var t=e.backgroundColor,n=e.blockId,r=e.courseId,o=e.partnerContent,a=e.publishedAt,l=e.tenantId,f=o.data,d=o.type,h=f.authors,p=f.bookImage,m=f.bookTitle,v=f.buyLink,g=f.internalId,y=f.nbicLink,b={blockId:n,courseId:r,partnerContentId:g,tenantId:l,contentSubtype:d};return i.a.createElement("section",null,i.a.createElement("h2",{className:"visually-hidden"},"More Info"),i.a.createElement("ol",{className:"partner-content-block-card",role:"list"},i.a.createElement("li",{role:"listitem"},i.a.createElement(s.a,{authors:h,backgroundColor:t,block:!0,bookImage:p,bookTitle:m,buyLink:v,publishedAt:a,trackingInfo:b})),i.a.createElement("li",{role:"listitem"},i.a.createElement("div",{className:u("divider")})),i.a.createElement("li",{role:"listitem"},i.a.createElement(c.a,{backgroundColor:t,block:!0,link:y,publishedAt:a,trackingInfo:b}))))}},function(e,t,n){var r=n(1013),i=n(1019),o=n(1022);e.exports=i(function(e,t,n){var i={};return function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];return o(function(){var o=t.apply(null,a);return i[o]||(i[o]={},i[o].async=r(function(e,t){Object.assign(i[o],{reject:e,resolve:t})})),clearTimeout(i[o].timeout),i[o].timeout=setTimeout(function(){var e=i[o],t=e.reject,r=e.resolve;n.apply(null,a).fork(t,r),delete i[o]},e),i[o].async})}})},function(e,t,n){var r=n(1013),i=n(1019),o=n(1022),a=n(1910);e.exports=i(function(e,t,n){var i={};return function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];return o(function(){var o=t.apply(null,s);i[o]||(i[o]={},i[o].async=r(function(e,t){Object.assign(i[o],{reject:e,resolve:t})})),i[o].args=s;var c=Date.now()-(i[o].last||0);if(!i[o].timeout){var u=a(0,e-c);i[o].timeout=setTimeout(function(e){i[e].last=Date.now();var t=i[e],r=t.args,o=t.reject,a=t.resolve;n.apply(null,r).fork(o,a),delete i[e].args,delete i[e].timeout}.bind(null,o),u)}return i[o].async})}})},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=(n(1914),n(0)),f=n.n(l),d=n(1),h=n.n(d),p=n(63),m=n(574),v=n(682),g=n(56);function y(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=function(e){Object(s.a)(n,e);var t=y(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"render",value:function(){var e=this.props,t=e.animateBlockEntrance,n=e.canContinue,r=e.isLearner,i=e.items,o=e.onStep,a=e.settings,s=i[0]||{},c=!s.type||n;return f.a.createElement("div",{style:w(a)},f.a.createElement(g.a,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:r,offset:25},f.a.createElement("div",{className:"block-text--onecol"},f.a.createElement("div",{className:"block-text__container"},f.a.createElement("div",{className:"block-text__row"},f.a.createElement("div",{className:"block-text__col"},c&&f.a.createElement(_,{bgColor:s.buttonColor,id:s.id,onStep:o,title:s.title}),!c&&f.a.createElement(v.a,{text:s.completeHint})))))))}}],[{key:"propTypes",get:function(){return{items:h.a.array,settings:h.a.object.isRequired,canContinue:h.a.bool,onStep:h.a.func}}},{key:"defaultProps",get:function(){return{canContinue:!1,items:[],onStep:Function.prototype}}}]),n}(f.a.Component),_=function(e){var t=e.bgColor,n=e.id,r=e.onStep,i=e.title,o=Object(l.useCallback)(function(){r({id:n})},[n,r]);return f.a.createElement(m.a,{bgColor:t,onClick:o,text:i})};function w(e){return{backgroundColor:Object(p.a)("",e.backgroundColor),paddingTop:"".concat(10*e.paddingTop,"px"),paddingBottom:"".concat(10*e.paddingBottom,"px")}}},function(e,t,n){"use strict";(function(e){t.a=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 23 17",focusable:!1},e.createElement("path",{fillRule:"nonzero",d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z"}))}}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(620)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(279),i=n(119),o=n(90),a=n(1169),s=n(173);e.exports=i(function(e,t){if(!o(e))throw new TypeError("contramap: Function required for first argument");if(o(t))return r(t,e);if(a(t))return(t[s.contramap]||t.contramap).call(t,e);throw new TypeError("contramap: Function or Contavariant Functor of the same type required for second argument")})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(119),i=n(480),o=n(278);e.exports=r(function(e,t){if(!i(e))throw new TypeError("omit: Foldable required for first argument");if(!o(t))throw new TypeError("omit: Object required for second argument");return Object.keys(t).reduce(function(e,t){return function(n,r){var i;return-1===e.indexOf(r)&&void 0!==t[r]?Object.assign(n,((i={})[r]=t[r],i)):n}}(e,t),{})})},function(e,t,n){"use strict";var r=n(197),i=n.n(r),o=n(121),a=n.n(o),s=n(1134),c=n.n(s),u=n(1135),l=n.n(u),f=a()(function(e,t){return i()(c()(null),l()(e,t))});t.a=f},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90);e.exports=r(function(e,t){if(!t||!i(t.option))throw new TypeError("option: Last argument must be a Maybe, First or Last");return t.option(e)})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(279),i=n(119),o=n(401),a=n(90),s=n(668),c=function(e){return function(t){return t.map(e)}};e.exports=i(function(e,t){if(!o(e))throw new TypeError("safeLift: Pred or predicate function required for first argument");if(!a(t))throw new TypeError("safeLift: Function required for second argument");return r(c(t),s(e))})},function(e,t,n){"use strict";(function(e){var r=n(28),i=(n(1939),n(31)),o=n.n(i),a=n(63),s=n(683),c=n(65).b.blocks;t.a=function(t){var n=t.blockId,i=t.progress,u=t.settings,l=u.backgroundColor,f=u.paddingTop,d=u.paddingBottom,h={backgroundColor:Object(a.a)("",l),paddingTop:"".concat(10*f,"px"),paddingBottom:"".concat(10*d,"px")},p=o()(["items",n],i);return e.createElement("div",{className:"block-labeled-graphic","data-ba":c.blockLabeledGraphic,style:h},e.createElement(s.a,Object(r.a)({},t,{editable:!1,isBlock:!0,parentId:n,progress:p})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return D});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(33),p=n.n(h),m=n(16),v=n.n(m),g=(n(1942),n(1138)),y=n.n(g),b=n(17),_=n.n(b),w=n(2),x=n.n(w),k=n(39),E=n.n(k),S=n(541),T=n.n(S),O=n(1),C=n.n(O),j=n(150),A=n.n(j),M=n(40),P=n(43),N=n(23),I=n(20);function L(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var D=function(t){Object(c.a)(r,t);var n=L(r);function r(e){var t,i,a,c,u,l,f;return Object(o.a)(this,r),(f=n.call(this,e)).state={hasOverflow:!1},f.renderOverflowMask=d()(t=f.renderOverflowMask).call(t,Object(s.a)(f)),f.handleScroll=d()(i=f.handleScroll).call(i,Object(s.a)(f)),f.handleBubbleClick=d()(a=f.handleBubbleClick).call(a,Object(s.a)(f)),f.handleKeyDown=d()(c=f.handleKeyDown).call(c,Object(s.a)(f)),f.handleNextClick=d()(u=f.handleNextClick).call(u,Object(s.a)(f)),f.handlePreviousClick=d()(l=f.handlePreviousClick).call(l,Object(s.a)(f)),f}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e=this;p()(function(){e.focusTarget=e.selectFocusTarget()},0)}},{key:"componentWillUnmount",value:function(){this.contentRef.removeEventListener("scroll",this.scrollRef),this.videoContainer&&this.videoContainer.removeEventListener("click",this.handleBubbleClick)}},{key:"componentWillReceiveProps",value:function(e){e.isActive&&p()(this.renderOverflowMask,100)}},{key:"componentDidUpdate",value:function(e){var t=this.contentRef;!e.isActive&&this.props.isActive&&(t.scrollTop=0,this.focusTarget&&this.focusTarget.focus()),this.state.hasOverflow&&e.isActive&&!this.props.isActive&&t.removeEventListener("scroll",this.scrollRef),this.stopVideoClickBubbling(e.isActive)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.accentColor,o=r.allowNav,a=r.children,s=r.description,c=r.isActive,u=r.labels,l=r.onClose,f=r.title,d=r.x,h=r.y,p=x()("bubble",{"bubble--active":c}),m=R({x:d,y:h}),g=B({hasOverflow:this.state.hasOverflow,x:d,y:h}),y={borderColor:i},b=u.labeledGraphicBubbleLabel,_=e.createElement("div",{ref:function(e){n.el=e},className:p,style:m},e.createElement("div",{"aria-hidden":!c,"aria-label":b,className:g,onClick:this.handleBubbleClick,onKeyDown:this.handleKeyDown,ref:function(e){n.bubbleRef=e},style:y,tabIndex:I.i},e.createElement("div",{className:"noOutline",ref:function(e){n.titleRef=e},tabIndex:I.i},e.createElement(P.a,{allowTabNavigation:c,className:"bubble__title brand--head",value:f})),e.createElement("div",{className:"bubble__content",ref:function(e){n.contentRef=e},tabIndex:I.i},e.createElement("div",{className:"bubble__media",ref:function(e){n.mediaRef=e},tabIndex:I.i},v()(t=e.Children).call(t,a,function(t){return t&&c?e.createElement("div",{className:"bubble__figure"},t):null})),e.createElement(P.a,{allowTabNavigation:c,className:"bubble__description brand--body brand--linkColor",value:s})),o&&this.renderControls(),e.createElement("button",{className:"bubble__close",onClick:l,type:"button"},e.createElement(M.g,null))));return window.matchMedia("(max-width: 767px)").matches?e.createElement(T.a,null,_):_}},{key:"renderControls",value:function(){var t=this.props.labels,n=t.labeledGraphicPreviousMarkerLabel,r=t.labeledGraphicNextMarkerLabel;return e.createElement("div",{className:"bubble__controls"},e.createElement("div",{"aria-label":n,className:"bubble__prev brand--hoverColor",onClick:this.handlePreviousClick,onKeyDown:Object(N.a)(this.handlePreviousClick),role:"button",tabIndex:I.a},e.createElement("i",{className:"icon icon-chevron-left"})),e.createElement("div",{"aria-label":r,className:"bubble__next brand--hoverColor",onClick:this.handleNextClick,onKeyDown:Object(N.a)(this.handleNextClick),role:"button",tabIndex:I.a},e.createElement("i",{className:"icon icon-chevron-right"})))}},{key:"renderOverflowMask",value:function(){if(this.contentRef){var e=this.contentRef,t=e.offsetHeight;e.scrollHeight>t?(e.addEventListener("scroll",this.scrollRef=A()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}}},{key:"handleBubbleClick",value:function(e){e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.allowNav,r=t.onClose,i=t.onNextClick,o=t.onPreviousClick,a=Object(N.r)(this.contentRef,this.state.hasOverflow),s=y()(_()(n));E()([[s(N.g),o],[s(N.i),i],[N.f,r],[N.n,a]])(e)}},{key:"handleNextClick",value:function(e){var t=this.props.onNextClick;e.preventDefault(),t(e)}},{key:"handlePreviousClick",value:function(e){var t=this.props.onPreviousClick;e.preventDefault(),t(e)}},{key:"handleScroll",value:function(){var e=this.contentRef;e.scrollTop>=e.scrollHeight-e.offsetHeight-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}},{key:"selectFocusTarget",value:function(){var e=this.props,t=e.description,n=e.hasMedia;return e.title?this.titleRef:n?this.mediaRef:t?this.contentRef:this.bubbleRef}},{key:"stopVideoClickBubbling",value:function(e){if(!e&&this.props.isActive&&!this.videoContainer&&window.matchMedia("(max-width: 767px)").matches){var t=this.el.querySelector(".videoContainer");t&&(this.videoContainer=t,this.videoContainer.addEventListener("click",this.handleBubbleClick))}else e&&!this.props.isActive&&this.videoContainer&&(this.videoContainer.removeEventListener("click",this.handleBubbleClick),delete this.videoContainer)}}],[{key:"propTypes",get:function(){return{accentColor:C.a.string.isRequired,description:C.a.string.isRequired,isActive:C.a.bool.isRequired,onClose:C.a.func.isRequired,onNextClick:C.a.func.isRequired,onPreviousClick:C.a.func.isRequired,title:C.a.string.isRequired}}},{key:"defaultProps",get:function(){return{allowNav:!0,onClose:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype}}}]),r}(e.Component),R=function(e){var t=e.x,n=e.y,r={top:"initial",bottom:"initial",left:0,right:0};return t>50?r.right=100-t+"%":r.left=t+"%",n>50?r.bottom=100-n+"%":r.top=n+"%",r},B=function(e){var t=e.hasOverflow,n=e.x,r=e.y,i=n<50,o="top";return r>33&&(o=r>66?"bottom":"middle"),x()("bubble__body",{"bubble__body--has-overflow":t,"bubble__body--left":i,"bubble__body--right":!i,"bubble__body--top":"top"===o,"bubble__body--middle":"middle"===o,"bubble__body--bottom":"bottom"===o})}}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(119),i=n(401),o=n(498);e.exports=r(function(e,t){if(!i(e)||!i(t))throw new TypeError("and: Preds or predicate functions required for first two arguments");return function(n){return!(!o(e,n)||!o(t,n))}})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return q});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(12),x=n(9),k=n(10),E=n(11),S=n(14),T=n(6),O=(n(1948),n(2)),C=n.n(O),j=n(8),A=n.n(j),M=n(15),P=n.n(M),N=n(288),I=n.n(N),L=n(66),D=n(265),R=n(267);function B(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function F(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(T.a)(e);if(t){var o=Object(T.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var U=A()(function(e){return e.substr(1)},P()("path"),I.a.parse),q=function(t){Object(E.a)(r,t);var n=F(r);function r(e){var t;return Object(x.a)(this,r),(t=n.call(this,e)).state={style:{}},t}return Object(k.a)(r,[{key:"render",value:function(){var t=this,n=this.props,r=n.canvasClassNames,i=n.children,o=n.editable,a=n.imageLoaded,s=n.media,c=void 0===s?{}:s,u=n.onCreateMarker,l=n.onShowAltDialog,f=this.state.style,h=c.image,m=void 0===h?{}:h,g=m.alt,b=m.key,x=m.originalUrl,k=m.src,E=!!m.alt,S=Object(D.a)({alt:g,fileName:x,key:b}),T=Object(D.b)(m),O=C()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":o}),j=b?Object(L.a)(m):Object(L.a)(function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=B(Object(r),!0)).call(n,function(t){Object(w.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=B(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}({key:U(k)},m));return e.createElement("div",{className:r||"labeled-graphic-canvas"},e.createElement("div",{className:"labeled-graphic-canvas__item"},e.createElement("div",{className:"labeled-graphic-canvas__bounds"},e.createElement("figure",{className:O},E&&o?e.createElement(R.a,{className:"item-media__tooltip"},e.createElement("div",{onClick:l,className:"labeled-graphic-canvas__alt-tag"},"ALT"),e.createElement(R.b,{side:"top"},"Edit alt text")):[],a&&e.createElement("img",{alt:S,className:"labeled-graphic-canvas__image",onClick:u,onLoad:function(){return t.setState({style:T})},ref:function(e){t.imageEl=e},role:"img",src:j,style:f}),e.createElement("ol",{role:"list"},i)))))}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E});var r=n(3),i=n.n(r),o=n(12),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(5),h=n.n(d),p=n(4),m=n.n(p),v=(n(1950),n(2)),g=n.n(v),y=n(1),b=n.n(y),_=n(1141),w=n(23),x=n(85);function k(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var E=function(t){Object(u.a)(r,t);var n=k(r);function r(e){var t,i;return Object(a.a)(this,r),(i=n.call(this,e)).state={dragging:!1,hovering:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},i.onClick=m()(t=i.onClick).call(t,Object(c.a)(i)),i}return Object(s.a)(r,[{key:"parentCanvasElement",value:function(){return this.marker.parentElement.parentElement.parentElement}},{key:"componentDidMount",value:function(){var e=this,t=this.parentCanvasElement();t.addEventListener("mousemove",this.onMouseMove=function(t){e.onItemDrag(t)}),t.addEventListener("mouseleave",this.onMouseLeave=function(t){e.onItemRelease(t)})}},{key:"componentWillUnmount",value:function(){var e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isSelected,n=e.useLocalStateForCompletion;t&&n&&!this.state.isComplete&&this.setState({isComplete:!0})}},{key:"render",value:function(){var t,n,r,i,a,s,c=this,u=this.props,l=u.icon,f=u.isActive,d=u.isComplete,p=u.isSelected,v=u.isVisible,y=u.markerClassName,b=u.onFocus,x=u.labels,k=u.styles,E=u.useLocalStateForCompletion,S=Object(_.a)(l),T=E?this.state.isComplete:d,O=function(e){var t,n,r,i=e.icon,o=e.label,a=e.viewed;return h()(t=h()(n=h()(r=[]).call(r,o?[o]:[])).call(n,i?[i]:[])).call(t,[a?"Viewed":"Not Viewed"]).join(", ")}({icon:S,label:x&&x.labeledGraphicMarkerLabel||"",viewed:T}),C=g()("labeled-graphic-marker",{"labeled-graphic-marker--active":p,"labeled-graphic-marker--dragged":this.state.isDragged,"labeled-graphic-marker--visible":v,"labeled-graphic-marker--complete":T}),j=g()("labeled-graphic-marker__pin",(t={},Object(o.a)(t,"".concat(y,"--hover"),!p&&this.state.hovering),Object(o.a)(t,"".concat(y,"--normal"),!p),Object(o.a)(t,"".concat(y,"--selected"),p),t));return e.createElement("button",{"aria-expanded":f,"aria-label":O,className:C,onClick:this.onClick,onContextMenu:m()(n=this.onItemRelease).call(n,this),onFocus:b,onKeyDown:Object(w.a)(this.onClick),onMouseDown:m()(r=this.onItemGrab).call(r,this),onMouseEnter:m()(i=this.onHover).call(i,this),onMouseLeave:m()(a=this.onLeave).call(a,this),onMouseUp:m()(s=this.onItemRelease).call(s,this),ref:function(e){c.marker=e},style:k,type:"button"},e.createElement("div",{className:j},e.createElement("i",{className:"icon icon-Master-".concat(l)})))}},{key:"focus",value:function(){this.marker&&this.marker.focus&&this.marker.focus()}},{key:"onHover",value:function(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}},{key:"onLeave",value:function(){this.props.onLeave(),this.setState({hovering:!1})}},{key:"onClick",value:function(e){e.stopPropagation(),e.preventDefault(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation();var t=this.props,n=t.editable,r=t.itemId,i=t.onClick,o={detail:{itemId:r,parentId:t.parentId}},a=null;x.a.isIe11?(a=document.createEvent("UIEvents")).initUIEvent("labeledGraphicMarkerClick",!1,!1,window,o):a=new CustomEvent("labeledGraphicMarkerClick",o),document.dispatchEvent(a),n||i()}},{key:"onItemGrab",value:function(e){if(this.props.editable){var t=this.marker.getBoundingClientRect(),n=t.left-e.clientX+this.marker.offsetWidth/2,r=t.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:n,offsetY:r,isDragged:!0})}}},{key:"onItemDrag",value:function(e){if(this.state.isDragged){var t,n=e.clientX-this.state.posX,r=e.clientY-this.state.posY;this.marker.style.transform=h()(t="translate3d(".concat(n,"px, ")).call(t,r,"px, 0)")}}},{key:"onItemRelease",value:function(e){var t=this.props.editable,n={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():t&&e.currentTarget&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(n.offsetX=0,n.offsetY=0),this.setState(n)}}],[{key:"propTypes",get:function(){return{editable:b.a.bool,isActive:b.a.bool,isDragged:b.a.bool,isSelected:b.a.bool,markerClassName:b.a.string.isRequired,onClick:b.a.func,onLeave:b.a.func,onSetPosition:b.a.func,styles:b.a.shape({top:b.a.string,left:b.a.string}).isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r={"01":"Plus","02":"Dot","03":"Information","04":"Question Mark","05":"Check Mark","06":"X","07":"Heart","08":"Map Location","09":"Left Arrow",10:"Right Arrow",11:"Up Arrow",12:"Down Arrow",13:"Up Left Arrow",14:"Up Right Arrow",15:"Down Left Arrow",16:"Down Right Arrow",17:"1",18:"2",19:"3",20:"4",21:"5",22:"6",23:"7",24:"8",25:"9",26:"0"},i=function(e){return r[e]||""}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return B});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(28),x=n(12),k=n(9),E=n(10),S=n(11),T=n(14),O=n(6),C=n(4),j=n.n(C),A=(n(1951),n(39)),M=n.n(A),P=n(20),N=n(23),I=n(1143);function L(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(O.a)(e);if(t){var o=Object(O.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(T.a)(this,n)}}var R=n(65).b.blocks,B=function(t){Object(S.a)(r,t);var n=D(r);function r(){return Object(k.a)(this,r),n.apply(this,arguments)}return Object(E.a)(r,[{key:"onKeyDown",value:function(e){var t,n;M()([[N.i,j()(t=this.triggerSlide).call(t,this,"next")],[N.g,j()(n=this.triggerSlide).call(n,this,"prev")]])(e)}},{key:"render",value:function(){var t,n=this,r=this.props.settings,i=r.paddingBottom,o=r.paddingTop,a={paddingBottom:"".concat(10*i,"px"),paddingTop:"".concat(10*o,"px")},s={className:"block-process",onKeyDown:j()(t=this.onKeyDown).call(t,this),style:a,tabIndex:P.a},c=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=L(Object(r),!0)).call(n,function(t){Object(x.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=L(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}({ref:function(e){return n.process=e}},this.props);return e.createElement("div",Object(w.a)({},s,{"data-ba":R.blockProcess}),e.createElement(I.a,c))}},{key:"triggerSlide",value:function(e){this.process.triggerSlide(e)}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return K});var r=n(3),i=n.n(r),o=n(28),a=n(141),s=n(9),c=n(10),u=n(7),l=n(11),f=n(14),d=n(6),h=n(4),p=n.n(h),m=n(5),v=n.n(m),g=n(16),y=n.n(g),b=n(91),_=n(167),w=n.n(_),x=n(190),k=n.n(x),E=n(26),S=n.n(E),T=n(8),O=n.n(T),C=n(55),j=n.n(C),A=n(69),M=n.n(A),P=n(46),N=n.n(P),I=n(32),L=n.n(I),D=n(30),R=n.n(D),B=n(19),F=n.n(B),U=n(1),q=n.n(U),z=n(136),H=n.n(z),W=n(708),V=n(85),Y=n(56);function G(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var K=function(t){Object(l.a)(r,t);var n=G(r);function r(e){var t,i,o,a,c;return Object(s.a)(this,r),(c=n.call(this,e)).state={entered:!1,visible:!1},c.getScrollTop=p()(t=c.getScrollTop).call(t,Object(u.a)(c)),c.handleEntranceEnd=p()(i=c.handleEntranceEnd).call(i,Object(u.a)(c)),c.handleScroll=p()(o=c.handleScroll).call(o,Object(u.a)(c)),c.triggerSlide=p()(a=c.triggerSlide).call(a,Object(u.a)(c)),c}return Object(c.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.onStep,n=e.previewType,r=document.getElementsByClassName("page-wrap")[0];this.container=L()(n)?window:r,this.container.addEventListener("scroll",this.handleScroll),this.handleScroll(),t&&this.setProgress()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("scroll",this.handleScroll)}},{key:"getScrollTop",value:function(){var e=this.props.settings.paddingTop,t=this.container,n=Object(b.findDOMNode)(this),r=w()(n).offset().top,i=10*e;return t===window?r-i:w()(t).scrollTop()+r-w()(t).offset().top-i}},{key:"getSteps",value:function(){var e,t=this.props.items,n=M()(F()("type","intro"),t),r=M()(F()("type","summary"),t),i=j()(F()("type","step"),t),o=v()(e=[n]).call(e,Object(a.a)(i),[r]),s=H()(F()("isHidden",!0),o);return y()(s).call(s,function(e,t){return S()("index",t,e)})}},{key:"handleEntranceEnd",value:function(){this.setState({visible:!0})}},{key:"handleScroll",value:function(){this.state.entered||this.wrapper.getBoundingClientRect().bottom-100<=(this.container.innerHeight||this.container.offsetHeight)&&!this.state.entered&&this.setState({entered:!0})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.blockId,a=n.isLearner,s=n.labels,c=n.menuOpen,u=n.onStep,l=n.previewType,f=n.settings,d=n.enableVideoPlaybackSpeed,h=this.state,p=h.entered,m=h.visible,v=this.getSteps(),g=!L()(l),y=r?"fadeIn":"none",b=g&&r?1:0,_={afterAnimatedIn:this.handleEntranceEnd,animateBlockEntrance:g,animateIn:y,duration:b,initiallyVisible:!r,isLearner:a,offset:300},w={className:"process-block-wrapper",ref:function(e){return t.wrapper=e}},x={blockId:i,entered:p,getScrollTop:this.getScrollTop,labels:s,menuOpen:c,onStep:u,isPreview:g,settings:f,steps:v,visible:m,enableVideoPlaybackSpeed:d},k=S()("ref",function(e){return t.process=e},x),E=S()("ref",function(e){return t.processMobile=e},x),T=e.createElement(W.a,k),O=e.createElement(W.b,E);return e.createElement(Y.a,_,e.createElement("div",Object(o.a)({"aria-label":"Process",role:"group"},w),V.a.isMobile?O:T))}},{key:"setProgress",value:function(){var e=this.props,t=e.items,n=e.onStep,r=this.getSteps(),i=j()(F()("isHidden",!0),t),o=r[0]?k()(r[0]):N.a;O()(R()(n),o)(i)}},{key:"shouldComponentUpdate",value:function(e,t){return e.menuOpen!==this.props.menuOpen||e.settings!==this.props.settings||t.entered!==this.state.entered||t.visible!==this.state.visible}},{key:"triggerSlide",value:function(e){V.a.isMobile?this.processMobile.handleSlide(e):this.process.handleSlide(e)}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:q.a.bool,blockId:q.a.string.isRequired,isLearner:q.a.bool,items:q.a.array.isRequired,labels:q.a.object.isRequired,menuOpen:q.a.bool,onStep:q.a.func,previewType:q.a.string,settings:q.a.object.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return M});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(4),f=n.n(l),d=(n(1954),n(17)),h=n.n(d),p=n(40),m=n(2),v=n.n(m),g=n(8),y=n.n(g),b=n(39),_=n.n(b),w=n(86),x=n(111),k=n.n(x),E=n(19),S=n.n(E),T=n(1),O=n.n(T),C=n(71),j=n.n(C);function A(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var M=function(t){Object(s.a)(r,t);var n=A(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"onClick",value:function(){var e=this.props,t=e.onClick;e.opacity>.5&&t()}},{key:"render",value:function(){var t,n=this.props,r=n.absolute,i=n.bottom,o=n.fixed,a=n.hidden,s=n.isSliding,c=n.offset,u=n.opacity,l=n.scroll,d=n.sidebar,m=n.top,g=n.type,y="next"===g,b="prev"===g,x=b&&"prev"===a||y&&"next"===a||"both"===a,k=l.active?o+d:r,E=l.active?o+c:r,T=_()([[S()("active",!0),h()(m)],[S()("end",!0),h()(i)],[j.a,h()(null)]])(l),O=v()("process-arrow",{"process-arrow--left":b,"process-arrow--right":y,"process-arrow--hidden":x,"process-arrow--scrolling":l.active,"process-arrow--disabled":u<=.5}),C={left:b?k:null,opacity:l.end?u:null,right:y?E:null,top:T},A={className:O,key:"arrow",onClick:f()(t=this.onClick).call(t,this),role:"button",style:C};return e.createElement(w.d,{component:"div"},!s&&e.createElement(w.a,{classNames:"process-arrow",timeout:{enter:300,exit:200}},e.createElement("div",A,e.createElement(p.f,null))))}},{key:"shouldComponentUpdate",value:function(e){var t=function(e,t){return y()(k.a,S()(e,t))};return _()([[t("absolute",this.props.absolute),h()(!0)],[t("fixed",this.props.fixed),h()(!0)],[t("isSliding",this.props.isSliding),h()(!0)],[t("opacity",this.props.opacity),h()(!0)],[t("scroll",this.props.scroll),h()(!0)],[t("top",this.props.top),h()(!0)],[j.a,h()(!1)]])(e)}}],[{key:"propTypes",get:function(){return{absolute:O.a.number,bottom:O.a.number,fixed:O.a.number,hidden:O.a.oneOf(["both","next",null,"prev"]),isSliding:O.a.bool,offset:O.a.number,onClick:O.a.func.isRequired,opacity:O.a.number,scroll:O.a.object,sidebar:O.a.number,top:O.a.number,type:O.a.oneOf(["next","prev"])}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=(n(1956),n(32)),f=n.n(l),d=n(1),h=n.n(d),p=n(56),m=n(684);function v(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var g=n(65).b.blocks,y=function(t){Object(s.a)(r,t);var n=v(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.previewType,o=t.settings,a=!f()(i),s=n?"fadeIn":"none",c=a&&n?1:0,u=o.backgroundColor,l=o.paddingBottom,d=o.paddingTop,h={backgroundColor:u,paddingBottom:"".concat(10*l,"px"),paddingTop:"".concat(10*d,"px")},v={animateBlockEntrance:a,animateIn:s,duration:c,initiallyVisible:!n,isLearner:r,offset:300};return e.createElement("div",{className:"block-scenario","data-ba":g.blockScenario,style:h},e.createElement(p.a,v,e.createElement(m.a,this.props)))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:h.a.bool,blockId:h.a.string.isRequired,isLearner:h.a.bool,items:h.a.array.isRequired,lessonId:h.a.string.isRequired,menuOpen:h.a.bool,onStep:h.a.func,onItemUpdate:h.a.func,previewType:h.a.string,settings:h.a.object.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r=n(26),i=n.n(r),o=n(101),a=n.n(o),s=n(8),c=n.n(s),u=n(55),l=n.n(u),f=n(69),d=n.n(f),h=n(287),p=n.n(h),m=n(68),v=n.n(m),g=n(30),y=n.n(g),b=n(116),_=n.n(b),w=n(25),x=n.n(w),k=n(15),E=n.n(k),S=n(19),T=n.n(S),O=n(340),C=n.n(O),j=n(288),A=n.n(j),M=x()(E()("filters"),l()(T()("name","rise_emotion")),a()(v.a)),P=x()(E()("filters"),d()(T()("name","rise_emotion")),E()("value")),N=c()(C.a,E()("pathname"),A.a.parse),I=x()(E()("poses"),l()(M),y()(function(e){return[P(e),e]}),p.a,_()(function(e){return x()(i()("key",N(e.src)),i()("thumbnailKey",N(e.thumbnail)))(e)}))},function(e,t,n){"use strict";(function(e){n(1958);var r=n(24),i=n.n(r),o=n(15),a=n.n(o),s=n(151),c=n(353),u=n(56),l=n(685),f=n(74),d=n(297),h=function(e){var t=e.blockId,n=e.lessonId;return function(e){var r=e.itemId,i=e.isCorrect;return Object(f.a)(Object(d.d)({itemId:r,lessonId:n,blockId:t,isCorrect:i}))}},p=function(e){var t=e.blockId,n=e.lessonId;return function(){return Object(f.a)(Object(d.b)({lessonId:n,blockId:t}))}};t.a=function(t){var n=t.animateBlockEntrance,r=t.blockId,o=t.items,f=t.labels,d=t.piles,m=t.progress,v=t.settings,g=a()("backgroundColor",v),y=Object(s.a)(g),b=t.onCardDrop||h,_=t.onReplay||p;return e.createElement(c.a,{settings:v,type:"sorting-activity"},e.createElement(u.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:!0},e.createElement(l.a,{hasDarkBackground:y,id:r,items:o,labels:f,onCardDrop:b(t),onReplay:_(t),piles:d,progress:i()({},["items",r],m)})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(5),f=n.n(l),d=n(16),h=n.n(d),p=(n(1960),n(2)),m=n.n(p),v=n(82),g=n.n(v),y=n(145),b=n.n(y),_=n(19),w=n.n(_),x=n(52),k=n.n(x),E=n(543),S=n(544);function T(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var O=function(e){return m()("deck",{"deck--complete":w()("percentViewed",100,e)})},C=function(e){var t=e.item,n=e.progress;return w()("lastIncorrectCardId",String(t.id),n)},j=w()("percentViewed",100),A=function(t){Object(s.a)(r,t);var n=T(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).cardRefs=[],t}return Object(a.a)(r,[{key:"startKeyDrop",value:function(){var e=g()(this.cardRefs);e&&e.onStartSortAttempt()}},{key:"endKeyDrop",value:function(){var e=g()(this.cardRefs);e&&e.onEndSortAttempt()}},{key:"render",value:function(){var t=this,n=this.props,r=n.count,i=n.items,o=n.labels,a=n.id,s=n.progress,c=n.onReplay,u=j(s);return e.createElement("div",{className:O(s)},e.createElement("div",{className:"deck__spacer"}),e.createElement("div",{"aria-hidden":!u,className:"deck__cardholder"},e.createElement("div",{className:"deck__title brand--ui"},function(e){var t,n=e.progress,r=e.count;return f()(t="".concat(k()(0,"correctlyAnswered",n),"/")).call(t,r)}({progress:s,count:r})," ",o.sortingCardsCorrect),e.createElement(S.a,{allowTabNavigation:u,onClick:b()(c,[a]),text:o.sortingReplay})),e.createElement("div",{className:"deck__content"},h()(i).call(i,function(n,r){return e.createElement(E.a,{id:n.id,isDeckTopCard:t.cardRefs[r]===g()(t.cardRefs),isIncorrect:C({item:n,progress:s}),key:n.id,ref:function(e){t.cardRefs[r]=e},title:n.title})})))}}]),r}(e.Component);A.defaultProps={onReplay:Function.prototype}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return C});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(33),p=n.n(h),m=(n(1963),n(2)),v=n.n(m),g=n(39),y=n.n(g),b=n(213),_=n(1),w=n.n(_),x=n(20),k=n(543),E=n(43),S=n(23),T=n(97);function O(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var C=function(t){Object(c.a)(r,t);var n=O(r);function r(e){var t,i,a,c,u;return Object(o.a)(this,r),(u=n.call(this,e)).state={isSuccess:!1,showFocusOutline:!0},u.handleDragEnter=d()(t=u.handleDragEnter).call(t,Object(s.a)(u)),u.handleDragLeave=d()(i=u.handleDragLeave).call(i,Object(s.a)(u)),u.handleMouseDrop=d()(a=u.handleMouseDrop).call(a,Object(s.a)(u)),u.handleKeyboardDrop=d()(c=u.handleKeyboardDrop).call(c,Object(s.a)(u)),u}return Object(a.a)(r,[{key:"focus",value:function(){this.pileContent.focus()}},{key:"componentDidMount",value:function(){Object(b.a)(this.pile).dropzone({overlap:"pointer"}).on("dragenter",this.handleDragEnter).on("dragleave",this.handleDragLeave).on("drop",this.handleMouseDrop)}},{key:"componentWillUnmount",value:function(){Object(b.a)(this.pile).off("dragenter",this.handleDragEnter).off("dragleave",this.handleDragLeave).off("drop",this.handleMouseDrop),clearTimeout(this.successTimer),clearTimeout(this.focusOutlineTimer)}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.onNavigateToNext,r=t.onNavigateToPrevious,i=Object(T.a)(this.handleKeyboardDrop),o=Object(T.a)(r),a=Object(T.a)(n);y()([[S.e,i],[S.g,o],[S.i,a]])(e)}},{key:"onKeyUp",value:function(e){Object(S.e)(e)&&this.props.onKeyDropEnd()}},{key:"handleDragEnter",value:function(e){var t=b.a.getElementRect(e.target),n={x:t.left+t.width/2,y:t.top+t.height/2};e.draggable.draggable({snap:{targets:[n]}})}},{key:"handleDragLeave",value:function(e){e.draggable.draggable({snap:{targets:[function(e,t){return{x:e,y:t}}]}})}},{key:"handleMouseDrop",value:function(e){e.draggable.draggable({snap:{targets:[function(e,t){return{x:e,y:t}}]}}),this.handleDrop()}},{key:"handleKeyboardDrop",value:function(){var e=this.props,t=e.deckTopCard,n=e.onKeyDropStart;t&&(n(),this.handleDrop())}},{key:"handleDrop",value:function(){var e,t,n=this.props,r=n.lessonId,i=n.id,o=n.deckTopCard,a=n.onCardDrop,s=o.id.toString(),c=o.pileId===i;(a({id:r,itemId:s,isCorrect:c}),c)&&(this.setState({activeCard:o,isSuccess:!0,showFocusOutline:!1}),this.successTimer=p()(d()(e=function(){this.setState({activeCard:null,isSuccess:!1})}).call(e,this),1500),this.focusOutlineTimer=p()(d()(t=function(){this.setState({showFocusOutline:!0})}).call(t,this),1300))}},{key:"render",value:function(){var t,n,r=this,i=this.props.title,o=this.state,a=o.activeCard,s=o.isSuccess,c=o.showFocusOutline,u=v()("pile",{"drop-success":s}),l=v()("pile__content",{"drop-animating":!c});return e.createElement("div",{className:u,ref:function(e){return r.pile=e}},e.createElement("div",{className:"pile__wrapwrap"},e.createElement("div",{className:"pile__wrap"},e.createElement("div",{className:"pile__message"},e.createElement(E.a,{className:"pile__title brand--head",value:i})),e.createElement("div",{className:l,onKeyDown:d()(t=this.onKeyDown).call(t,this),onKeyUp:d()(n=this.onKeyUp).call(n,this),ref:function(e){return r.pileContent=e},tabIndex:x.a},a&&e.createElement(k.a,{id:a.id,title:a.title})),e.createElement("div",{className:"pile__background"}))))}}],[{key:"propTypes",get:function(){return{id:w.a.any.isRequired,lessonId:w.a.any.isRequired,onCardDrop:w.a.func.isRequired,title:w.a.string}}},{key:"defaultProps",get:function(){return{onCardDrop:Function.prototype}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(1964);var r=n(24),i=n.n(r),o=n(15),a=n.n(o),s=n(151),c=n(353),u=n(56),l=n(686),f=function(t){var n=t.animateBlockEntrance,r=t.blockId,o=t.enableVideoPlaybackSpeed,f=t.isLearner,d=t.items,h=t.labels,p=t.progress,m=t.settings,v=a()("backgroundColor",m),g=Object(s.a)(v);return e.createElement(c.a,{settings:m,type:"timeline"},e.createElement(u.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:!0},e.createElement(l.a,{enableVideoPlaybackSpeed:o,hasDarkBackground:g,id:r,isBlock:!0,isLearner:f,items:d,labels:h,progress:i()({},["items",r],p)})))};f.defaultProps={isLearner:!0},t.a=f}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return N});var r=n(71),i=n.n(r),o=n(8),a=n.n(o),s=n(39),c=n.n(s),u=n(79),l=n.n(u),f=n(287),d=n.n(f),h=n(46),p=n.n(h),m=n(84),v=n.n(m),g=n(53),y=n.n(g),b=n(30),_=n.n(b),w=n(25),x=n.n(w),k=(n(15),n(233)),E=n.n(k),S=(n(76),n(433)),T=n.n(S),O=n(432),C=n.n(O),j=n(1152),A=n.n(j),M=n(1153),P=n.n(M),N=(l()(function(e,t){return x()(E.a,_()(e),d.a)(t)}),a()(y.a,v.a)),I=function(e,t,n){var r={};for(var i in n)r[e(i)]=t(n[i]);return r},L=c()([[C.a,function(e){return I(P.a,L,e)}],[T.a,function(e){return _()(L,e)}],[i.a,p.a]]),D=c()([[C.a,function(e){return I(A.a,D,e)}],[T.a,function(e){return _()(D,e)}],[i.a,p.a]])},function(e,t,n){var r=n(1036)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},function(e,t,n){var r=n(1977),i=n(1036)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},function(e,t,n){var r=n(2116),i=n(2118)(function(e,t,n){r(e,n,t)});e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=[],i=0;return n.replace(e,function(){var e=Array.prototype.slice.call(arguments),n=e.length,o=e[0],a=e[n-1],s=e[n-2],c=a.slice(i,s),u="function"==typeof t?t.apply(null,e):t;r.push(c,u),i=s+o.length}),r.push(n.slice(i)),r}},function(e,t,n){"use strict";var r=n(12),i=n(59),o=n.n(i),a=n(16),s=n.n(a),c=n(0),u=n.n(c),l=n(54),f=n.n(l),d=n(69),h=n.n(d),p=n(31),m=n.n(p),v=n(19),g=n.n(v),y=n(2),b=n.n(y),_=n(66),w=(n(2152),f()("partner-content-course-author__"));t.a=function(e){var t=e.partnerContentAuthors,n=e.darkText,i=e.learn,a=e.lesson,c=e.selectedContentId,l=h()(g()("id",c),t),f=m()(["data","authors"],l),d=a?f:t,p=o()(d).call(d,function(e){return e.name}),v=b()(w("author-container"),Object(r.a)({},w("author-container-padding-top"),n)),y=b()(Object(r.a)({},w("gray-text"),!i)),x=function(e){return"url(".concat(Object(_.f)({width:"76",height:"76",imageKey:e.image}),")")};return u.a.createElement("section",null,u.a.createElement("h2",{className:"visually-hidden"},"Authors"),u.a.createElement("ol",{className:v,role:"list"},s()(p).call(p,function(e){return u.a.createElement("li",{key:e.name,className:w("author"),role:"listitem"},u.a.createElement("div",{"aria-hidden":"true",className:w("author-image"),style:{backgroundImage:x(e)}}),u.a.createElement("span",{className:y},e.name))})))}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(1158),c=n.n(s),u=n(17),l=n.n(u),f=n(8),d=n.n(f),h=n(92),p=n.n(h),m=n(236),v=n.n(m),g=n(87),y=n.n(g)()(v()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),l()("#FFF")),b=p()({color:y}),_=d()(function(e){var t=e.bodyTypeface,n=e.color,r=e.headingTypeface,i=e.uiTypeface;return a.a.createElement("div",{dangerouslySetInnerHTML:{__html:c()({bodyTypeface:t,color:n,headingTypeface:r,uiTypeface:i})}})},b);_.displayName="Branding",_.propTypes={bodyTypeface:i.a.string,color:i.a.string.isRequired,headingTypeface:i.a.string,uiTypeface:i.a.string},t.a=Object(o.memo)(_)},function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+="<style>\n :root {\n --color-accent: "+(null==(__t=color)?"":__t)+";\n }\n\n .brand--head, .brand--head * { font-family: "+(null==(__t=headingTypeface)?"":__t)+" !important; }\n .brand--body, .brand--body * { font-family: "+(null==(__t=bodyTypeface)?"":__t)+" !important; }\n .brand--lhead, .brand--lhead * { font-family: "+(null==(__t=headingTypeface)?"":__t)+" !important; }\n .brand--lbody, .brand--lbody * { font-family: "+(null==(__t=bodyTypeface)?"":__t)+" !important; }\n .brand--ui, .brand--ui * { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n\n .brand--beforeHead:before { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n .brand--afterHead:after { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n\n .brand--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--background-transparent { background-color: "+(null==(__t=color+"1A")?"":__t)+" !important; }\n .brand--background-all * { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--border { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--color { color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--color-all * { color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--shadow { box-shadow: 0 0 0 0.2rem "+(null==(__t=color)?"":__t)+" !important; }\n .brand--shadow-all * { box-shadow: 0 0 0 0.2rem "+(null==(__t=color)?"":__t)+" !important; }\n .brand--fill { fill: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--stroke { stroke: "+(null==(__t=color)?"":__t)+" !important; }\n\n\n .brand--beforeBackground:before { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--beforeBorder:before { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--beforeColor:before { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n .brand--afterBackground:after { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--afterBorder:after { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--afterColor:after { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n /* should be applied to containers where links\n need to appear in brand color */\n .brand--linkColor a {\n color: "+(null==(__t=color)?"":__t)+" !important;\n fill: "+(null==(__t=color)?"":__t)+" !important;\n }\n\n /* should be applied to containers where links\n need to change to brand color on hover */\n .brand--linkColorHover a:hover {\n color: "+(null==(__t=color)?"":__t)+" !important;\n fill: "+(null==(__t=color)?"":__t)+" !important;\n }\n\n /* should be applied to any single element that\n needs to change color on hover */\n .brand--hoverColor:hover { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n .brand--linkColor a:hover,\n .button.brand--background:hover { opacity: .65 !important; }\n\n .brandHover:hover .brandHover__target--fill { fill: "+(null==(__t=color)?"":__t)+" !important; }\n\n @media (min-width: 47.9375em) { /* 768px */\n .brand--min768--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--min768--border { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--min768--color { color: "+(null==(__t=color)?"":__t)+" !important; }\n }\n\n @media (max-width: 47.9375em) { /* 768px */\n .brand--max768--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--max768--border { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n .brand--max768--color { color: "+(null==(__t=color)?"":__t)+" !important; }\n }\n</style>\n";return __p}},function(e,t,n){"use strict";var r,i=n(60),o=n.n(i),a=n(45),s=n.n(a),c=n(59),u=n.n(c),l=n(44),f=n.n(l),d=n(34),h=n.n(d),p=n(49),m=n.n(p),v=n(75),g=n.n(v),y=n(62),b=n.n(y),_=n(12),w=n(234),x=n(29),k=n.n(x),E=n(64),S=Object(E.c)({},Object(_.a)({},w.a,function(e,t){var n=t.labelSet;return k()(e,n)})),T=n(70),O=n(54),C=n.n(O),j=n(110),A=n.n(j),M=n(678),P=n(218),N=n(74),I=(C()("rise/fonts/")("LOAD_FONTS"),k()({})),L=Object(E.c)({},(r={},Object(_.a)(r,w.a,function(e,t){var n=t.fonts;return k()(e,A()(D)(n))}),Object(_.a)(r,w.b,function(e,t){var n=t.fonts;return I(n)}),r)),D=function(e){return Object(M.a)(e,function(){return Object(N.a)(Object(P.e)(!0))})},R=n(317),B={hasModernOverview:Object(R.a)("modernOverview"),isPreview:"preview"===window.viewType,externalLinksModalVisible:!1},F=C()("rise/globals/")("SHOW_EXTERNAL_LINKS_MODAL"),U=Object(E.c)(B,Object(_.a)({},F,function(e,t){return k()(e,{externalLinksModalVisible:t})})),q=n(691),z=n(26),H=n.n(z),W=n(186),V=n(109),Y=n.n(V),G=function(e,t){return H()(t.id,t,e)},K=Object(W.handle)({},Object(_.a)({},w.a,function(e,t){var n=t.media;return Y()(G,{},n)})),$=n(190),X=n.n($),Q=n(92),Z=n.n(Q),J=n(137),ee=n.n(J),te=n(19),ne=n.n(te),re=n(411),ie=n.n(re),oe=n(535),ae=function(e,t){var n=ee()(ne()("id",t.id),e.content),r=-1===n?X()(t):ie()(n,t);return Z()({content:r},e)},se=Object(_.a)({},oe.a,function(e,t){return Y()(ae,e,t)}),ce=Object(W.handle)({content:[]},se),ue=n(379),le=n(263);function fe(e,t){var n=o()(e);if(s.a){var r=s()(e);t&&(r=u()(r).call(r,function(t){return f()(e,t).enumerable})),n.push.apply(n,r)}return n}var de=n(22).e?{learningPathUpNext:q.a}:{};t.a=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)h()(n=fe(Object(r),!0)).call(n,function(t){Object(_.a)(e,t,r[t])});else if(m.a)g()(e,m()(r));else{var i;h()(i=fe(Object(r))).call(i,function(t){b()(e,t,f()(r,t))})}}return e}({course:w.c,courseLabels:S,courseProgress:T.d,fonts:L,global:U,media:K,partnerContent:ce,search:ue.a,sessionPreferences:le.a,status:P.a},de)},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=(n(2140),n(0)),v=n.n(m),g=n(8),y=n.n(g),b=n(2),_=n.n(b),w=n(15),x=n.n(w),k=n(126),E=n(16),S=n.n(E),T={bar:function(e){return"Bar chart with the following items: ".concat(e)},line:function(e){return"Line chart with the following items: ".concat(e)},pie:function(e){return"Pie chart with the following items: ".concat(e)}},O=function(e,t){var n=S()(t).call(t,function(e){var t;return d()(t="".concat(e.type,": ")).call(t,e.value)}).join(", ");return T[e](n)},C=n(353),j=n(56),A=n(43),M=n(65);function P(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}n.d(t,"a",function(){return D});var N=M.b.blocks,I=y()(k.c,x()("backgroundColor")),L={bar:"Bar Chart",line:"Line Chart",pie:"Pie Chart"},D=function(e){Object(c.a)(n,e);var t=P(n);function n(){var e,r,i,a;Object(o.a)(this,n);for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return(a=t.call.apply(t,d()(e=[this]).call(e,u))).handleAnimationEnd=p()(r=a.handleAnimationEnd).call(r,Object(s.a)(a)),a.renderTitle=p()(i=a.renderTitle).call(i,Object(s.a)(a)),a.state={isVisible:!a.props.animateBlockEntrance},a}return Object(a.a)(n,[{key:"handleAnimationEnd",value:function(){this.setState({isVisible:!0})}},{key:"renderTitle",value:function(){var e=this.props.title;return v.a.createElement(A.a,{value:e})}},{key:"render",value:function(){var e,t,n=this.props,r=n.animateBlockEntrance,i=n.blockId,o=n.children,a=n.editable,s=n.isLearner,c=n.items,u=n.itemsLabel,l=n.lessonId,f=n.settings,h=n.title,p=n.valuesLabel,m=n.variant,g=n.renderTitle,y=void 0===g?this.renderTitle:g,b=this.state.isVisible,w=d()(e="chartTitle-".concat(l,"-")).call(e,i),x=L[m],k=d()(t="chartDesc-".concat(l,"-")).call(t,i),E=O(m,c),S=I(f),T=_()("block-chart__container",{"block-chart__container--darkTheme":S});return v.a.createElement(C.a,{settings:f,type:"chart"},v.a.createElement(j.a,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:r,animateIn:"fadeIn",initiallyVisible:!r,isLearner:s},v.a.createElement("div",{"aria-describedby":k,"aria-labelledby":w,className:T,"data-ba":N.blockChart,role:"img"},v.a.createElement("div",{className:"block-chart__row"},v.a.createElement("div",{className:"block-chart__rowInner"},(!a&&h||a)&&v.a.createElement("h2",{className:"block-chart__title brand--head",id:w},y()),!a&&!h&&v.a.createElement("h2",{className:"visually-hidden",id:w},x),v.a.createElement("div",{className:"block-chart__chart"},v.a.cloneElement(v.a.Children.only(o),{hasDarkBgColor:S,isVisible:b,items:c,itemsLabel:u,settings:f,shouldAnimate:r,valuesLabel:p,variant:m}),v.a.createElement("p",{className:"visually-hidden",id:k},E)))))))}}]),n}(m.PureComponent)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});n(2597);var r=n(22);function i(t){return t.enableExitCourse?e.createElement("button",{className:t.className,onClick:r.b,type:"button"},t.text):null}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u});var r=n(163),i=n.n(r),o=n(171),a=960;function s(){return document.querySelector(".page-wrap")}var c=i()(o.b,function(e){return e.getBoundingClientRect().bottom-e.offsetHeight/4<=window.innerHeight});function u(){return window.innerWidth<a}},function(e,t,n){"use strict";var r=n(12),i=n(1199),o=n.n(i),a=n(8),s=n.n(a),c=n(137),u=n.n(c),l=n(19),f=n.n(l),d=n(102),h=n.n(d),p=(n(55),n(184),n(48)),m=n.n(p),v=(n(68),n(32)),g=n.n(v),y=(n(183),n(208)),b=n.n(y),_=n(136),w=n.n(_),x=(n(245),n(76),n(688),n(3)),k=n.n(x),E=n(47),S=n.n(E),T=n(159),O=n.n(T),C=n(129),j=n.n(C),A=n(174),M=n.n(A),P=n(133),N=n.n(P),I=n(60),L=n.n(I),D=n(45),R=n.n(D),B=n(59),F=n.n(B),U=n(44),q=n.n(U),z=n(34),H=n.n(z),W=n(49),V=n.n(W),Y=n(75),G=n.n(Y),K=n(62),$=n.n(K),X=n(120),Q=n(50),Z=n(7),J=n(9),ee=n(10),te=n(11),ne=n(14),re=n(6),ie=n(141),oe=n(5),ae=n.n(oe),se=n(98),ce=n.n(se),ue=n(4),le=n.n(ue),fe=n(355),de=n.n(fe),he=n(160),pe=n.n(he),me=n(16),ve=n.n(me),ge=n(112),ye=n.n(ge),be=n(33),_e=n.n(be),we=(n(1200),n(242)),xe=n.n(we),ke=n(21),Ee=n(0),Se=n.n(Ee),Te=(n(2281),n(150)),Oe=n.n(Te),Ce=n(71),je=n.n(Ce),Ae=n(17),Me=n.n(Ae),Pe=n(39),Ne=n.n(Pe),Ie=n(115),Le=n.n(Ie),De=n(46),Re=n.n(De),Be=n(310),Fe=n.n(Be),Ue=n(73),qe=n.n(Ue),ze=n(145),He=n.n(ze),We=n(15),Ve=n.n(We),Ye=n(91),Ge=(n(316),n(153),["active","align","children","className","dropdownClassName","onClose","role","slideIn"]),Ke=["menu"],$e=["children","enableHover"];function Xe(e,t){var n=L()(e);if(R.a){var r=R()(e);t&&(r=F()(r).call(r,function(t){return q()(e,t).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n,i=null!=arguments[t]?arguments[t]:{};if(t%2)H()(n=Xe(Object(i),!0)).call(n,function(t){Object(r.a)(e,t,i[t])});else if(V.a)G()(e,V()(i));else{var o;H()(o=Xe(Object(i))).call(o,function(t){$()(e,t,q()(i,t))})}}return e}function Ze(e,t){var n=void 0!==j.a&&M()(e)||e["@@iterator"];if(!n){if(N()(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Je(e,t);var r=S()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return O()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Je(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function et(e){var t=function(){if("undefined"==typeof Reflect||!k.a)return!1;if(k.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(k()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(re.a)(e);if(t){var i=Object(re.a)(this).constructor;n=k()(r,arguments,i)}else n=r.apply(this,arguments);return Object(ne.a)(this,n)}}var tt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ke.pipe.apply(void 0,n)(e)},nt=Object(ke.sortBy)(Object(ke.compose)(ke.toLower,Object(ke.prop)("title"))),rt=Object(ke.pipe)(function(e){var t=Object(ke.indexBy)(Object(ke.prop)("id"),e||[]);return Object(ke.reduce)(function(e){return function(t,n){return e[n.parentId]?t:Object(ke.append)(n,t)}}(t),[],e)},Object(ke.pluck)(["id"])),it=Object(ke.pipe)(function(e){return{folders:e,ids:rt(e)}},function(e){var t=e.folders,n=e.ids;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ke.compose.apply(void 0,Object(ie.a)(Object(ke.dropLast)(1,t)))(Object(ke.last)(t))}(nt,Object(ke.map)(function e(t){return function(n){var r=Object(ke.find)(Object(ke.propEq)("id",n),t),i=tt(t,Object(ke.chain)(Object(ke.ifElse)(Object(ke.propEq)("parentId",n),Object(ke.pipe)(Object(ke.prop)("id"),e(t)),Object(ke.always)([]))),nt);return Object(ke.assoc)("subfolders",i,r)}}(t)),n)}),ot=["viewer","editor","manager","owner"],at=function(e){var t=e.effectiveRole,n=e.requiredRole;return Object(ke.indexOf)(t,ot)>=Object(ke.indexOf)(n,ot)},st=function(e){Object(te.a)(n,e);var t=et(n);function n(){return Object(J.a)(this,n),t.apply(this,arguments)}return Object(ee.a)(n,[{key:"render",value:function(){return Se.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1","aria-hidden":this.props.decorative,"aria-label":this.props.title,role:this.props.role,className:xe()(this.props.className),focusable:"false",height:this.props.height,viewBox:this.props.viewBox,width:this.props.width},this.props.children)}}]),n}(Ee.Component),ct=function(e){return Se.a.createElement(st,ce()({},e,{viewBox:"0 0 6 10"}),Se.a.createElement("path",{fillRule:"nonzero",d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z"}))};ct.defaultProps={width:"6",height:"10"};var ut=Object(Ee.memo)(ct),lt=function(e){return Se.a.createElement(st,ce()({},e,{viewBox:"0 0 15 15"}),Se.a.createElement("path",{d:"M13.32 2.84H7.543L5.182.477a.794.794 0 0 0-.613-.262h-3.5c-.525 0-.875.35-.875.875v12.25c0 .525.35.875.875.875h12.25c.525 0 .875-.35.875-.875V3.715c0-.525-.35-.875-.875-.875"}))};lt.defaultProps={width:"15",height:"15"};var ft=Object(Ee.memo)(lt);function dt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var ht="Breadcrumb_breadcrumb__3jOBC",pt="Breadcrumb_breadcrumbActive__uXT0K",mt="Breadcrumb_breadcrumbDisabled__3U_tf",vt="Breadcrumb_breadcrumbRoot__3Hu5o",gt="Breadcrumb_label__1nKa0",yt="Breadcrumb_caret__2vXzq";dt("@mixin dropdownAlign($x){&.Dropdown_dropdownSlideIn__167LF{transform:translate(#{$x},-1rem)}&.Dropdown_dropdownInPlace__J0m4i{transform:translate(#{$x})}}.Dropdown_wrap__3N94O{display:inline-block;height:0;position:relative;width:0}.Dropdown_pos__2Rbyy{position:absolute;top:0;z-index:1000}.Dropdown_posLeft__b_gaU{left:0}.Dropdown_posRight__2iFMb{right:0}.Dropdown_posActive__VxvLr{pointer-events:all}.Dropdown_posInactive__3TMYz{pointer-events:none}.Dropdown_dropdown__18Y4r{background:#fff;border-radius:.6rem;box-shadow:0 .5rem 4rem rgba(#000,.1);padding:2rem 0;transition:{duration:.25s;property:opacity,transform,visibility;timing-function:ease-in-out}}.Dropdown_dropdownInactive__tWA5j{opacity:0;visibility:hidden;&.Dropdown_dropdownAlignLeft__Wox4_{@include dropdownAlign(0)}&.Dropdown_dropdownAlignCenter__1dpfo{@include dropdownAlign(-50%)}&.Dropdown_dropdownAlignRight__2rlwb{@include dropdownAlign(0)}}.Dropdown_dropdownActive__2CFcf{opacity:1;visibility:visible;&.Dropdown_dropdownAlignLeft__Wox4_{transform:translate(0)}&.Dropdown_dropdownAlignCenter__1dpfo{transform:translate(-50%)}&.Dropdown_dropdownAlignRight__2rlwb{transform:translate(0)}}.Dropdown_dropdownItem__1A5M4{cursor:pointer;font-size:1.4rem;padding:1.1rem 2.2rem;white-space:nowrap;&:hover{background:#fafafa;svg{fill:#313537;fill:#adaeaf}}}.Breadcrumb_breadcrumb__3jOBC{align-items:center;color:#6a737c;cursor:pointer;display:inline-flex;flex-shrink:1;font-size:1.5rem;line-height:2;margin-right:1.6rem;max-width:18.5rem}.Breadcrumb_breadcrumbActive__uXT0K{color:#313537;font-weight:700;max-width:calc(100% - 7rem);cursor:auto}.Breadcrumb_breadcrumbDisabled__3U_tf{cursor:not-allowed}.Breadcrumb_breadcrumbRoot__3Hu5o{cursor:auto}.Breadcrumb_label__1nKa0{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Breadcrumb_caret__2vXzq{display:inline-block;line-height:0;margin-left:1.6rem;transform:scale(-1)}.Breadcrumb_caret__2vXzq svg{fill:#6a737c;height:.7rem;width:auto}.Breadcrumb_dropdownTrigger__1L96T{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;line-height:1;outline:none;padding:0;position:relative}.Breadcrumb_dropdownTrigger__1L96T svg{fill:#6a737c;height:1.6rem;width:1.6rem}.Breadcrumb_dropdownWrap__3awv6{left:-1.6rem;top:1.5rem}.Breadcrumb_dropdown__1YjcF{font-weight:400;max-width:25rem}.Breadcrumb_dropdownItem__3znYl{align-items:center;display:flex}.Breadcrumb_dropdownLabel__3t1ca{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Breadcrumb_dropdownCaret__1lQpE{border-bottom:.3rem solid #fff;border-left:.3rem solid transparent;border-right:.3rem solid transparent;display:inline-block;height:0;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) rotate(180deg);width:0}.Breadcrumb_dropdownCaretActive__1bZL1{transform:translate(-50%,-50%) rotate(0)}",{insertAt:"top"});var bt=Ne()([[Fe()(String),Re.a],[g.a,Me()(void 0)],[Le()("displayName"),Ve()("displayName")],[Le()("name"),Ve()("name")],[je.a,Me()("Component")]]),_t=qe()(["enableClickOutside","hideScroll","onClickOutside","preventDefault","stopPropagation"]),wt=function(e){Object(te.a)(n,e);var t=et(n);function n(){var e,r,i,o;Object(J.a)(this,n);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(o=t.call.apply(t,ae()(e=[this]).call(e,s))).onBodyMouseDownDelegate=le()(r=o.onBodyMouseDown).call(r,Object(Z.a)(o)),o.onBodyClickDelegate=le()(i=o.onBodyClick).call(i,Object(Z.a)(o)),o.addDomEvents(),o}return Object(ee.a)(n,[{key:"componentWillUnmount",value:function(){this.removeDomEvents()}},{key:"onBodyClick",value:function(e){var t=this.props,n=t.onClickOutside,r=t.preventDefault,i=t.stopPropagation,o=e.target;this.shouldClickOutside(o)&&(r&&e.preventDefault(),i&&e.stopPropagation(),n(e)),this.cancel=!1}},{key:"onBodyMouseDown",value:function(e){this.cancel=!this.shouldClickOutside(e.target)}},{key:"render",value:function(){var e=this.Child,t=this.props;return Se.a.createElement(e,_t(t))}},{key:"setupDomEvents",value:function(e){var t=e?"addEventListener":"removeEventListener";document.body[t]("click",this.onBodyClickDelegate,!0),document.body[t]("mousedown",this.onBodyMouseDownDelegate,!0)}},{key:"shouldClickOutside",value:function(e){var t=this.props.enableClickOutside,n=Object(Ye.findDOMNode)(this);return t&&!this.cancel&&null!==n&&n!==e&&!n.contains(e)}}]),n}(Ee.Component);wt.defaultProps={onClickOutside:Me()(),preventDefault:!0,stopPropagation:!0};var xt=wt.prototype;ce()(xt,{addDomEvents:He()(xt.setupDomEvents,[!0]),removeDomEvents:He()(xt.setupDomEvents,[!1])});var kt,Et=(kt="div",function(e){Object(te.a)(n,e);var t=et(n);function n(){return Object(J.a)(this,n),t.apply(this,arguments)}return Object(ee.a)(n,[{key:"Child",get:function(){return kt}}],[{key:"displayName",get:function(){return"ClickableOutside(".concat(bt(kt),")")}}]),n}(wt)),St="Dropdown_wrap__3N94O",Tt="Dropdown_posLeft__b_gaU",Ot="Dropdown_posRight__2iFMb",Ct="Dropdown_posActive__VxvLr Dropdown_pos__2Rbyy",jt="Dropdown_posInactive__3TMYz Dropdown_pos__2Rbyy",At="Dropdown_dropdownInactive__tWA5j Dropdown_dropdown__18Y4r",Mt="Dropdown_dropdownAlignLeft__Wox4_",Pt="Dropdown_dropdownSlideIn__167LF",Nt="Dropdown_dropdownInPlace__J0m4i",It="Dropdown_dropdownAlignCenter__1dpfo",Lt="Dropdown_dropdownAlignRight__2rlwb",Dt="Dropdown_dropdownActive__2CFcf Dropdown_dropdown__18Y4r";dt(".Dropdown_wrap__3N94O{display:inline-block;height:0;position:relative;width:0}.Dropdown_pos__2Rbyy{position:absolute;top:0;z-index:1000}.Dropdown_posLeft__b_gaU{left:0}.Dropdown_posRight__2iFMb{right:0}.Dropdown_posActive__VxvLr{pointer-events:all}.Dropdown_posInactive__3TMYz{pointer-events:none}.Dropdown_dropdown__18Y4r{background:#fff;border-radius:.6rem;box-shadow:0 .5rem 4rem rgba(0,0,0,.1);padding:2rem 0;transition-duration:.25s;transition-property:opacity,transform,visibility;transition-timing-function:ease-in-out}.Dropdown_dropdownInactive__tWA5j{opacity:0;visibility:hidden}.Dropdown_dropdownInactive__tWA5j.Dropdown_dropdownAlignLeft__Wox4_.Dropdown_dropdownSlideIn__167LF{transform:translateY(-1rem)}.Dropdown_dropdownInactive__tWA5j.Dropdown_dropdownAlignLeft__Wox4_.Dropdown_dropdownInPlace__J0m4i{transform:translate(0)}.Dropdown_dropdownInactive__tWA5j.Dropdown_dropdownAlignCenter__1dpfo.Dropdown_dropdownSlideIn__167LF{transform:translate(-50%,-1rem)}.Dropdown_dropdownInactive__tWA5j.Dropdown_dropdownAlignCenter__1dpfo.Dropdown_dropdownInPlace__J0m4i{transform:translate(-50%)}.Dropdown_dropdownInactive__tWA5j.Dropdown_dropdownAlignRight__2rlwb.Dropdown_dropdownSlideIn__167LF{transform:translateY(-1rem)}.Dropdown_dropdownInactive__tWA5j.Dropdown_dropdownAlignRight__2rlwb.Dropdown_dropdownInPlace__J0m4i{transform:translate(0)}.Dropdown_dropdownActive__2CFcf{opacity:1;visibility:visible}.Dropdown_dropdownActive__2CFcf.Dropdown_dropdownAlignLeft__Wox4_{transform:translate(0)}.Dropdown_dropdownActive__2CFcf.Dropdown_dropdownAlignCenter__1dpfo{transform:translate(-50%)}.Dropdown_dropdownActive__2CFcf.Dropdown_dropdownAlignRight__2rlwb{transform:translate(0)}.Dropdown_dropdownItem__1A5M4{cursor:pointer;font-size:1.4rem;padding:1.1rem 2.2rem;white-space:nowrap}.Dropdown_dropdownItem__1A5M4:hover{background:#fafafa}.Dropdown_dropdownItem__1A5M4:hover svg{fill:#313537}.Dropdown_dropdownItem__1A5M4 svg{fill:#adaeaf}",{insertAt:"top"});var Rt=new de.a,Bt=Oe()(function(){var e,t=Ze(pe()(Rt).call(Rt));try{for(t.s();!(e=t.n()).done;)(0,e.value)()}catch(e){t.e(e)}finally{t.f()}},250);window.addEventListener("resize",Bt),window.addEventListener("orientationchange",Bt);var Ft=function(e){Object(te.a)(n,e);var t=et(n);function n(){var e,r;Object(J.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.call.apply(t,ae()(e=[this]).call(e,o))).posRef=Se.a.createRef(),r.update(r.props),r}return Object(ee.a)(n,[{key:"componentWillReceiveProps",value:function(e){this.update(e,this.props)}},{key:"componentWillUnmount",value:function(){Rt.delete(this)}},{key:"fitOnScreen",value:function(){var e=this.props.fit,t=this.posRef.current;if(e&&null!=t){ce()(t.style,{left:"",right:""});var n=function e(t){return null==t?0:t.offsetLeft+e(t.offsetParent)}(t)+t.offsetWidth-window.innerWidth+20>0?["auto","0"]:["",""],r=Object(Q.a)(n,2),i=r[0],o=r[1];ce()(t.style,{left:i,right:o})}}},{key:"render",value:function(){var e,t,n=this.props,i=n.active,o=n.align,a=n.children,s=n.className,c=n.dropdownClassName,u=n.onClose,l=n.role,f=void 0===l?"menu":l,d=n.slideIn,h=Object(X.a)(n,Ge),p=xe()((e={},Object(r.a)(e,jt,!i),Object(r.a)(e,Ct,i),Object(r.a)(e,Tt,"right"!==o),Object(r.a)(e,Ot,"right"===o),e)),m=Qe({className:xe()(c,(t={},Object(r.a)(t,At,!i),Object(r.a)(t,Dt,i),Object(r.a)(t,Mt,"left"===o),Object(r.a)(t,It,"center"===o),Object(r.a)(t,Lt,"right"===o),Object(r.a)(t,Pt,d),Object(r.a)(t,Nt,!d),t)),enableClickOutside:i,onClickOutside:u,role:f},Object(ke.omit)(["fit"],h));return Se.a.createElement("div",{className:s||St},Se.a.createElement("div",{ref:this.posRef,className:p},Se.a.createElement(Et,ce()({"aria-hidden":!i},m),a)))}},{key:"update",value:function(e){var t,n=e.fit,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fit;n&&!r?Rt.set(this,le()(t=this.fitOnScreen).call(t,this)):!n&&r&&Rt.delete(this)}}]),n}(Ee.Component);ce()(Ft.prototype,{componentDidMount:Ft.prototype.fitOnScreen,componentDidUpdate:Ft.prototype.fitOnScreen}),Ft.defaultProps={align:"center"};var Ut=function(e){var t,n=e.active,i=e.allowViewer,o=e.effectiveRole,a=e.id,s=e.label,c=e.onClick,u=e.showCaret,l=e.showMenu,f=e.type,d=Object(ke.isNil)(a),h=function(e){var t=e.allowViewer,n=e.effectiveRole,r=e.id,i=e.type;return Object(ke.isNil)(r)||!("shared"===i)||at({effectiveRole:n,requiredRole:t?"viewer":"editor"})}({allowViewer:i,effectiveRole:o,id:a,type:f}),p=Object(Ee.useCallback)(function(e){h&&c(e)},[h,c]),m=Object(Ee.useCallback)(function(e){13===e.keyCode&&p(e)},[p]),v={className:xe()(ht,(t={},Object(r.a)(t,pt,n),Object(r.a)(t,vt,(d||"deleted"===a)&&n),Object(r.a)(t,mt,!h),t)),onClick:p,onKeyPress:m,role:"listitem","aria-current":n?"page":null};return Se.a.createElement("li",v,Se.a.createElement("span",{className:gt},s),l&&n&&Se.a.createElement(zt,e),u&&!n&&Se.a.createElement(qt,null))};Ut.defaultProps={allowViewer:!1};var qt=function(){return Se.a.createElement("span",{className:yt},Se.a.createElement(ut,null))},zt=function(e){var t=e.menu,n=Object(X.a)(e,Ke);return Se.a.createElement(t,Object(ke.pick)(["category","id","isDeleted","type","effectiveRole"],n))};dt(".Breadcrumbs_breadcrumbs__1em8J{align-items:center;display:flex;list-style-type:none;margin-right:auto;padding:0}",{insertAt:"top"});Object(ke.addIndex)(ke.forEach);var Ht=function(e){return function(t){13===t.keyCode&&e()}},Wt=(Object(ke.always)(),Object(ke.complement)(ke.isNil)),Vt=Object(ke.complement)(ke.isEmpty),Yt=Object(ke.both)(Wt,Vt),Gt=(Object(ke.either)(ke.isNil,ke.isEmpty),"FolderTree_wrap__3YmYW"),Kt="FolderTree_folderWrap__2jUIX",$t="FolderTree_folder__11EzK",Xt="FolderTree_folderWrapOpen__3Nkg-",Qt="FolderTree_folderIcon__Qa8q2",Zt="FolderTree_folderCaret__1UJpS",Jt="FolderTree_folderOptions__1K0Q3",en="FolderTree_folderMenu__2cGzm",tn="FolderTree_folderActive__12rcZ",nn="FolderTree_folderHideCaret__1g3-B",rn="FolderTree_folderCaretWrap__1S5RW",on="FolderTree_folderCaretOpen__1Vuc5",an="FolderTree_folderNameWrap__542W6",sn="FolderTree_folderName__3p5Ih",cn="FolderTree_folderOptionsActive__2bOhy",un="FolderTree_folderEmpty__3ODqW",ln="FolderTree_deleted__2ai3j",fn="FolderTree_new__35w5a",dn="FolderTree_newDisabled__3Ct3T";dt(".FolderTree_wrap__3YmYW{margin-bottom:1rem}.FolderTree_folderWrap__2jUIX{max-height:4rem;transition:max-height .2s,opacity .2s,height .2s}.FolderTree_folderWrap__2jUIX>.FolderTree_folderWrap__2jUIX{opacity:0;visibility:hidden;max-height:0;transition:max-height .2s,opacity .2s,height .2s}.FolderTree_folderWrap__2jUIX>.FolderTree_folderWrap__2jUIX>.FolderTree_folder__11EzK{height:0}.FolderTree_folderWrapOpen__3Nkg-{max-height:none}.FolderTree_folderWrapOpen__3Nkg->.FolderTree_folderWrap__2jUIX{opacity:1;visibility:visible;max-height:200rem}.FolderTree_folderWrapOpen__3Nkg->.FolderTree_folderWrap__2jUIX>.FolderTree_folder__11EzK{height:4rem}.FolderTree_folder__11EzK{width:100%;background-color:transparent;color:#6a737c;cursor:pointer;display:flex;height:4rem;font-size:1.4rem;line-height:1;padding:0 1.5rem 0 2.1rem;position:relative;transition:all .2s}.FolderTree_folder__11EzK:hover{background-color:#fafafa;color:#313537}.FolderTree_folder__11EzK:hover .FolderTree_folderIcon__Qa8q2 svg{fill:#313537}.FolderTree_folder__11EzK:hover .FolderTree_folderCaret__1UJpS{border-color:#313537 transparent transparent}.FolderTree_folder__11EzK:hover .FolderTree_folderOptions__1K0Q3{transition:width 0s;visibility:visible;width:auto}.FolderTree_folder__11EzK:hover .FolderTree_folderMenu__2cGzm{display:flex}.FolderTree_folderActive__12rcZ{color:#313537;font-weight:700}.FolderTree_folderActive__12rcZ .FolderTree_folderCaret__1UJpS{border-color:#313537 transparent transparent}.FolderTree_folderActive__12rcZ .FolderTree_folderIcon__Qa8q2 svg{fill:#313537}.FolderTree_folderHideCaret__1g3-B .FolderTree_folderCaretWrap__1S5RW{visibility:hidden}.FolderTree_folderCaretWrap__1S5RW{align-items:center;display:inline-flex;flex:0 0 1.9rem;height:100%;vertical-align:top;width:1.9rem}.FolderTree_folderCaret__1UJpS{border-color:#c9c9ca transparent transparent;border-style:solid solid none;border-width:.5rem .4rem;transform:rotate(-90deg);transition:all .2s}.FolderTree_folderCaretOpen__1Vuc5{transform:rotate(0deg)}.FolderTree_folderIcon__Qa8q2{align-items:center;display:inline-flex;height:100%;vertical-align:top}.FolderTree_folderIcon__Qa8q2 svg{fill:#c9c9ca;height:auto;margin-right:1.1rem;transition:fill .2s;width:1.4rem}.FolderTree_folderNameWrap__542W6{align-items:center;display:inline-flex;height:100%;overflow:hidden;vertical-align:top;white-space:nowrap}.FolderTree_folderName__3p5Ih{overflow:hidden;text-overflow:ellipsis}.FolderTree_folderOptions__1K0Q3{flex-shrink:0;height:100%;margin-left:auto;transition:width 0s linear .2s;visibility:hidden;width:0}.FolderTree_folderOptionsActive__2bOhy{transition:width 0s;visibility:visible;width:auto}.FolderTree_folderOptionsActive__2bOhy .FolderTree_folderMenu__2cGzm{display:flex;z-index:2}.FolderTree_folderMenu__2cGzm{align-items:center;display:none;height:100%;z-index:1}.FolderTree_folderEmpty__3ODqW{-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;background-color:transparent;border:none;color:#6a737c;cursor:pointer;font-family:Lato,sans-serif;font-size:1.2rem;height:100%;outline:none;margin:0;padding:0 0 0 .7rem}.FolderTree_folderEmpty__3ODqW:active,.FolderTree_folderEmpty__3ODqW:hover{text-decoration:underline}.FolderTree_deleted__2ai3j{padding-left:4.2rem}.FolderTree_new__35w5a{padding-left:6.4rem}.FolderTree_new__35w5a svg{fill:#c9c9ca;height:auto;margin-right:1.4rem;transition:fill .2s;width:.8rem}.FolderTree_newDisabled__3Ct3T{cursor:default;opacity:.7}.FolderTree_newDisabled__3Ct3T:hover{background-color:#fff;color:#6a737c}.FolderTree_newDisabled__3Ct3T:hover .FolderTree_folderIcon__Qa8q2 svg{fill:#c9c9ca}",{insertAt:"top"});var hn=function(e){return Se.a.createElement(st,ce()({},e,{viewBox:"0 0 10 10"}),Se.a.createElement("g",{fillRule:"evenodd"},Se.a.createElement("path",{d:"M0 4.107h10v2H0z"}),Se.a.createElement("path",{d:"M4 0h2v10H4z"})))};hn.defaultProps={width:"10",height:"10"};var pn=Object(Ee.memo)(hn),mn=function(e){return Se.a.createElement(st,ce()({},e,{viewBox:"0 0 16 16"}),Se.a.createElement("path",{d:"M14.1259 3.625C14.65 3.625 15 3.975 15 4.5V14.125C15 14.65 14.65 15 14.1249 15H1.87506C1.35003 15 1 14.65 1 14.125V1.875C1 1.35 1.35003 1 1.87506 1H5.37531C5.63833 1 5.81334 1.087 5.98836 1.262L8.35052 3.625H14.1259ZM7.9785 6.093C7.10444 6.093 6.38938 6.808 6.38938 7.683V8.079C6.38938 8.953 7.10444 9.668 7.9785 9.668C8.85256 9.668 9.56761 8.953 9.56761 8.079V7.682C9.56761 6.808 8.85256 6.093 7.9775 6.093H7.9785ZM9.56761 9.827C9.35786 10.0329 9.10928 10.1951 8.8363 10.3041C8.56332 10.4131 8.2714 10.4668 7.9775 10.462C7.68393 10.4665 7.39239 10.4127 7.11977 10.3037C6.84716 10.1947 6.5989 10.0327 6.38938 9.827C5.67433 10.065 5.1983 10.581 5.1983 11.257V12.448H10.7587V11.257C10.7587 10.581 10.2817 10.065 9.56761 9.827Z"}))};mn.defaultProps={width:"16",height:"16"};var vn=Object(Ee.memo)(mn),gn=function(e){return Se.a.createElement(st,ce()({},e,{viewBox:"0 0 10 13"}),Se.a.createElement("path",{d:"M9.28713712,12.0991694 C9.28713712,12.4960933 8.96564674,12.814808 8.57149855,12.814808 L1.42899128,12.814808 C1.03500637,12.814808 0.714169089,12.4960933 0.714169089,12.0991694 L0.714169089,4.9568254 L9.28713712,4.9568254 L9.28713712,12.0991694 L9.28713712,12.0991694 Z M10,3.33274903 L0,3.33274903 L0,2.62053925 C0,2.22508485 0.319367795,1.90571706 0.714169089,1.90571706 L2.85830911,1.90571706 L2.85830911,1.19220107 C2.85830911,0.798052883 3.17702381,0.4765625 3.5724782,0.4765625 L6.42948111,0.4765625 C6.82346602,0.4765625 7.1436502,0.798052883 7.1436502,1.19220107 L7.1436502,1.90571706 L9.28713712,1.90571706 C9.68046893,1.90571706 10,2.22524813 10,2.62053925 L10,3.33274903 L10,3.33274903 Z"}))};gn.defaultProps={width:"10",height:"13"};var yn=Object(Ee.memo)(gn),bn=Object(ke.flip)(ke.concat),_n=Object(ke.propEq)("deleted",!0),wn=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object(ke.compose)(Object(ke.map)(Object(ke.assoc)("treeType","item")),Object(ke.when)(Object(ke.always)(t),Object(ke.reject)(Object(ke.propEq)("deleted",!0))),Object(ke.filter)(Object(ke.propEq)("folderId",e)))},xn=function(e){var t=e.deleted,n=e.id;return t?"".concat(n,"-deleted"):n},kn=Object(ke.compose)(Object(ke.pluck)("id"),function e(t){return tt(t,Object(ke.propOr)([],"subfolders"),Object(ke.map)(e),ke.flatten,Object(ke.prepend)(En(t)))}),En=function(e){return _n(e)?Object(ke.evolve)({id:bn("-deleted")},e):e},Sn=function(e,t,n){var r,i=e.id,o=e.openFolders,a=e.setOpenFolders,s=xn(t),c=kn(t),u=Object(ke.compose)(a,Object(ke.without)([s])),l=Object(ke.compose)(a,Object(ke.without)(c)),f=document.getElementById(ae()(r="".concat(i,"-qbf-")).call(r,s));f.style.maxHeight="".concat(f.offsetHeight,"px"),f.style.overflow="hidden",n([_e()(function(){return u(o)},0),_e()(function(){return f.style.maxHeight=null},0),_e()(function(){return f.removeAttribute("style")},500),_e()(function(){return l(o)},200)])},Tn=function(e,t,n,r){var i,o=e.id,a=e.openFolders,s=e.setOpenFolders,c=t.subfolders,u=xn(t),l=r?r.length:0,f=c&&c.length+1+l,d=Object(ke.compose)(s,Object(ke.append)(u)),h=document.getElementById(ae()(i="".concat(o,"-qbf-")).call(i,u));h.style.maxHeight="".concat(40*f,"px"),h.style.overflow="hidden",n([_e()(function(){return d(a)},0),_e()(function(){return h.removeAttribute("style")},300)])},On=function(e){var t=e.props,n=e.folder,i=e.containedItems,o=Object(Ee.useState)([]),a=Object(Q.a)(o,2),s=a[0],c=a[1];Object(Ee.useEffect)(function(){return function(){ve()(s).call(s,clearTimeout)}},[s]);var u=t.openFolders,l=xn(n),f=function(e,t,n,r){return function(i){var o=e.openFolders,a=xn(t),s=ye()(o).call(o,a)?Sn:Tn;i.stopPropagation(),s(e,t,r,n)}}(t,n,i,c),d=xe()(Zt,Object(r.a)({},on,ye()(u).call(u,l))),h={className:rn,onClick:f,onKeyPress:Ht(f),role:"button"};return Se.a.createElement("div",h,Se.a.createElement("div",{className:d}))},Cn=function(e){var t,n,i,o=e.active,a=e.activeClassName,s=e.className,c=e.deleted,u=e.deletedFolders,l=e.deletedItems,f=e.emptyLabel,d=e.id,h=e.onFolderClick,p=e.openFolders,m=c.id,v=c.title,g=Object(Ee.useCallback)(function(){return h(c)},[c,h]),y=Object(ke.compose)(function(t){return Se.a.createElement(jn,{key:t.id,props:e,folder:t})},Object(ke.assoc)("treeType","folder"),Object(ke.assoc)("index",1)),b=xe()(Kt,Object(r.a)({},Xt,ye()(p).call(p,m))),_={className:xe()($t,ln,s,(t={},Object(r.a)(t,tn,o===m),Object(r.a)(t,nn,Object(ke.isEmpty)(u)),Object(r.a)(t,a,o===m),t)),onClick:g,onKeyPress:Ht(g),role:"button",tabIndex:"0"},w=Object(Ee.useCallback)((i=e.onEmptyClick,function(e){e.stopPropagation(),i()}),[]),x=Se.a.createElement("div",{className:Jt},Se.a.createElement("button",{className:un,onClick:w},f));return Se.a.createElement("div",{id:ae()(n="".concat(d,"-qbf-")).call(n,m),className:b},Se.a.createElement("div",_,Se.a.createElement(On,{props:e,folder:{id:m,subfolders:u}}),Se.a.createElement("div",{className:Qt},Se.a.createElement(yn,{height:15,width:14})),Se.a.createElement("div",{className:an},Se.a.createElement("div",{className:sn},v)),(Vt(u)||Vt(l))&&x),Vt(u)&&ve()(u).call(u,y))},jn=function e(t){var n,i,o,a,s=t.folder,c=t.props,u=c.active,l=c.activeClassName,f=c.className,d=c.id,h=c.items,p=c.itemIcon,m=c.menu,v=c.onFolderClick,g=c.onItemClick,y=c.openFolders,b=c.showItems,_=s.title,w=s.subfolders,x=s.treeType,k=s.type,E=xn(s),S=s.index||0,T=Object(Ee.useCallback)(function(){return"folder"===x?v(s):g(s)},[s,v,g,x]),O={paddingLeft:"".concat(21*(S+2),"px")},C=b?wn(E)(h):[],j=Object(ke.compose)(function(t){return Se.a.createElement(e,{key:t.id,props:c,folder:t})},Object(ke.assoc)("treeType","folder"),Object(ke.assoc)("index",S+1)),A=Object(ke.compose)(function(t){return Se.a.createElement(e,{key:t.id,props:c,folder:t})},Object(ke.assoc)("treeType","item"),Object(ke.assoc)("index",S+1)),M=Object(ke.cond)([[Object(ke.propEq)("treeType","item"),A],[ke.T,j]]),P=xe()(Kt,Object(r.a)({},Xt,ye()(y).call(y,E))),N=Yt(w)||Yt(C),I=N?ve()(n=ae()(i=[]).call(i,Object(ie.a)(w),Object(ie.a)(C))).call(n,M):null,L={className:xe()($t,f,(o={},Object(r.a)(o,tn,u===s.id),Object(r.a)(o,nn,!N),Object(r.a)(o,l,u===s.id),o)),onClick:T,onKeyPress:Object(Ee.useCallback)(Ht(T),[Ht,T]),role:"button",style:O,tabIndex:"0"},D="private"===k?ft:vn;return Se.a.createElement("div",{id:ae()(a="".concat(d,"-qbf-")).call(a,E),key:E,className:P},Se.a.createElement("div",L,Se.a.createElement(On,{props:c,folder:s,containedItems:b?wn(E)(h):[]}),Se.a.createElement("div",{className:Qt},"folder"===x?Se.a.createElement(D,null):Se.a.createElement(p,null)),Se.a.createElement("div",{className:an},Se.a.createElement("div",{className:sn},_)),m&&Se.a.createElement(Mn,ce()({},c,{folder:s}))),I)},An=function(e){var t=e.folders,n=e.id,i=e.items,o=e.openFolders,a=e.root,s=e.showItems,c=xe()(Kt,Object(r.a)({},Xt,ye()(o).call(o,"root")));return Se.a.createElement("div",{id:"".concat(n,"-qbf-root"),className:c},a&&Se.a.createElement(Nn,e),Object(ke.compose)(Object(ke.map)(function(t){return Se.a.createElement(jn,{key:t.id,props:e,folder:t})}),Object(ke.map)(Object(ke.assoc)("treeType","folder")))(t),s&&Object(ke.compose)(Object(ke.map)(function(t){return Se.a.createElement(jn,{key:t.id,props:e,folder:t})}),Object(ke.map)(Object(ke.assoc)("treeType","item")),wn(null))(i))},Mn=function(e){var t=e.activeMenu,n=e.category,i=e.folder,o=i.deleted,a=i.effectiveRole,s=i.id,c=i.type,u=e.menu,l=e.setActiveMenu,f=xe()(Jt,Object(r.a)({},cn,t===s)),d=Object(Ee.useCallback)(function(){return l(null)},[l]),h=Object(Ee.useCallback)(function(){return l(s)},[s,l]);return Se.a.createElement("div",{className:f},Se.a.createElement(u,{category:n,className:en,effectiveRole:a,id:s,isDeleted:o,onClose:d,onOpen:h,type:c}))},Pn=function(e){var t=e.className,n=e.newButtonDisabled,i=e.newLabel,o=e.onNewClick,a=e.type,s=Object(Ee.useCallback)(function(){n||o(a)},[n,o,a]),c={className:xe()($t,fn,t,Object(r.a)({},dn,n)),onClick:s,onKeyPress:Ht(s),role:"button",tabIndex:"0"};return Se.a.createElement("div",c,Se.a.createElement("div",{className:Qt},Se.a.createElement(pn,null)),Se.a.createElement("div",{className:an},Se.a.createElement("div",{className:sn},i)))},Nn=function(e){var t,n=e.active,i=e.activeClassName,o=e.activeType,a=e.className,s=e.folders,c=e.items,u=e.onFolderClick,l=e.root,f=e.showItems,d=e.type,h=l.id,p=l.title,m=Object(Ee.useCallback)(function(){return u(l)},[u,l]),v=n===h&&o===d,g={className:xe()($t,a,(t={},Object(r.a)(t,tn,v),Object(r.a)(t,nn,Object(ke.isEmpty)(s)),Object(r.a)(t,i,v),t)),onClick:m,onKeyPress:Ht(m),role:"button",tabIndex:"0"};return Se.a.createElement("button",g,Se.a.createElement(On,{props:e,folder:{id:"root",subfolders:s},containedItems:f?wn(h)(c):[]}),Se.a.createElement("div",{className:an},Se.a.createElement("div",{className:sn},p)))};(function(e){var t=e.id,n=e.active,r=e.deleted,i=e.folders,o=e.onEmptyClick,a=e.onNewClick,s=e.openToActive,c=e.viewingTree,u=Object(Ee.useState)(!1),l=Object(Q.a)(u,2),f=l[0],d=l[1],h=Object(Ee.useState)(c?["root"]:[]),p=Object(Q.a)(h,2),m=p[0],v=p[1],g=Object(Ee.useState)(null),y=Object(Q.a)(g,2),b=y[0],_=y[1],w=it(i),x=Object(ke.defaultTo)([],e.items),k=s?function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null==t||"private"===t||"shared"===t||"deleted"===t)return i;if(!n||0===n.length)return[];var o=Object(ke.find)(Object(ke.propEq)("id",t),n);return void 0===o?[]:e(o.parentId,n,ae()(r=[o]).call(r,Object(ie.a)(i)))}(n,i):[];Object(Ee.useEffect)(function(){s&&!f&&(Object(ke.compose)(v,ke.flatten,Object(ke.flip)(ke.append)(m),ke.init,Object(ke.pluck)("id"))(k),d(!0))},[s,f,t,m,k]);var E=Qe(Qe({},e),{},{activeMenu:b,deletedFolders:Object(ke.filter)(_n,w),deletedItems:Object(ke.filter)(_n,x),folders:Object(ke.reject)(_n,w),openFolders:m,setActiveMenu:_,setOpenFolders:v});return Se.a.createElement("div",{className:Gt},Se.a.createElement(An,E),o&&r&&Se.a.createElement(Cn,E),a&&Se.a.createElement(Pn,e))}).defaultProps={items:[],openToActive:!1,showItems:!1,viewingTree:!0};dt(".FoldersList_wrap__1IhuD{margin-bottom:2.5rem}.FoldersList_label__2rDNz{color:#6a737c;display:block;font-size:1.4rem;margin-bottom:1.5rem}.FoldersList_list__2SOmr{display:flex;flex-wrap:wrap}.FoldersList_folder__18qyc{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:.1rem solid #c9c9ca;border-radius:.6rem;color:#6a737c;cursor:pointer;display:inline-flex;font-family:Lato,sans-serif;font-size:1.4rem;height:5rem;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;margin:0 1.5rem 1.5rem 0;overflow:hidden;padding:1.7rem 1rem 1.7rem 1.1rem;text-align:left;transition:all .2s;line-height:1.2;width:18.2rem;word-break:break-word}.FoldersList_folder__18qyc:hover{border-color:#313537;color:#313537}.FoldersList_folder__18qyc:hover svg{fill:#313537}.FoldersList_folderIcon__3ySGO{display:inline-block;line-height:0;margin-right:1.1rem}.FoldersList_folderIcon__3ySGO svg{fill:#c9c9ca;transition:fill .2s}.FoldersList_addIcon__Mtpk7{display:inline-block;line-height:0;margin:0 1.6rem 0 .5rem}.FoldersList_addIcon__Mtpk7 svg{fill:#c9c9ca;transition:fill .2s}",{insertAt:"top"});dt('.Table_table__36Sz1{border-collapse:collapse;max-width:100%;width:100%}.Table_cellBase__3pmfj{color:#313537;letter-spacing:.05rem;padding-left:3rem;text-align:left}.Table_cell__1Th73{padding-bottom:2rem;padding-top:2rem}.Table_thcol__2aejJ{background:#fafafa;font-size:1.7rem;font-weight:700;white-space:nowrap;&:first-child{border-radius:.6rem 0 0 .6rem}&:last-child{border-radius:0 .6rem .6rem 0}@media (max-width:1140px){&:first-child,&:last-child{border-radius:0}}@include screen-small{font-size:1.5rem}}.Table_thcolSortable__3DhVE{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;&:after{border-color:transparent;border-style:none solid solid;border-width:.6rem .5rem;content:"";display:inline-block;height:0;margin:0 0 0 .5em;vertical-align:calc(1ex - .6rem);width:0}}.Table_thcolAsc__moMoy{&:after{border-bottom-color:#8894a3}}.Table_thcolDesc__RhAw8{&:after{transform:rotate(180deg)}}.Table_thcolHover__2JEIc{&:after{border-bottom-color:#d7dadf}}.Table_thcolDescHover__1YPXz{&:after{transform:rotate(180deg)}}.Table_tdBase__3kPO3{border-bottom:.1rem solid #eee;font-weight:400;font-size:1.5rem;@include screen-small{font-size:1.4rem}}.QuestionBanksList_wrap__9FLsc{margin-bottom:22rem}.QuestionBanksList_label__5qBNg{color:#6a737c;display:block;font-size:1.4rem;margin-bottom:1.5rem}.QuestionBanksList_table__U6bfq{border-collapse:collapse;border-spacing:0;color:#313537;width:100%;table-layout:fixed}.QuestionBanksList_thead__w98aq{border-radius:.6rem}.QuestionBanksList_th__TefbW{font-size:1.4rem}.QuestionBanksList_tr__1UIII{cursor:pointer}.QuestionBanksList_tr__1UIII:first-child td{border-top:none}.QuestionBanksList_tr__1UIII:last-child td{border-bottom:.1rem solid #eee}.QuestionBanksList_tr__1UIII:hover .QuestionBanksList_td__2CPHV{background-color:#eee;border-color:transparent}.QuestionBanksList_tr__1UIII:hover+.QuestionBanksList_tr__1UIII .QuestionBanksList_td__2CPHV{border-top-color:transparent}.QuestionBanksList_tr__1UIII:hover .QuestionBanksList_menu__3ffyt{visibility:visible}.QuestionBanksList_tr--deleted__17PQg{cursor:default}.QuestionBanksList_trActive__2WUzl .QuestionBanksList_menu__3ffyt{visibility:visible;z-index:2}.QuestionBanksList_td__2CPHV{border-bottom:none;border-top:.1rem solid #eee;font-size:1.4rem;transition:all .2s}.QuestionBanksList_td__2CPHV:first-child{border-bottom-left-radius:.6rem;border-top-left-radius:.6rem}.QuestionBanksList_td__2CPHV:last-child{border-bottom-right-radius:.6rem;border-top-right-radius:.6rem}.QuestionBanksList_colTitle__1RWjf{width:40%}.QuestionBanksList_colQuestions__3Liqy,.QuestionBanksList_colUpdated__2HQIC{width:25%}.QuestionBanksList_colMenu__1i0r2{width:10%}.QuestionBanksList_title__vHemc{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.QuestionBanksList_menuTd__37ROQ{padding:1rem 2rem;vertical-align:middle}.QuestionBanksList_menuWrap__2sHjF{width:3rem}.QuestionBanksList_menu__3ffyt{display:flex;letter-spacing:0;margin:0!important;visibility:hidden;z-index:1}',{insertAt:"top"});var In={table:"Table_table__36Sz1",cellBase:"Table_cellBase__3pmfj",cell:"Table_cell__1Th73 Table_cellBase__3pmfj",thcol:"Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",thcolSortable:"Table_thcolSortable__3DhVE Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",thcolAsc:"Table_thcolAsc__moMoy Table_thcolSortable__3DhVE Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",thcolDesc:"Table_thcolDesc__RhAw8 Table_thcolAsc__moMoy Table_thcolSortable__3DhVE Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",thcolHover:"Table_thcolHover__2JEIc Table_thcolAsc__moMoy Table_thcolSortable__3DhVE Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",thcolAscHover:"Table_thcolAscHover__2Bwjw Table_thcolHover__2JEIc Table_thcolAsc__moMoy Table_thcolSortable__3DhVE Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",thcolDescHover:"Table_thcolDescHover__1YPXz Table_thcolHover__2JEIc Table_thcolAsc__moMoy Table_thcolSortable__3DhVE Table_thcol__2aejJ Table_cell__1Th73 Table_cellBase__3pmfj",tdBase:"Table_tdBase__3kPO3",td:"Table_td__23-Nn Table_cell__1Th73 Table_cellBase__3pmfj Table_tdBase__3kPO3"};dt('.Table_table__36Sz1{border-collapse:collapse;max-width:100%;width:100%}.Table_cellBase__3pmfj{color:#313537;letter-spacing:.05rem;padding-left:3rem;text-align:left}.Table_cell__1Th73{padding-bottom:2rem;padding-top:2rem}.Table_thcol__2aejJ{background:#fafafa;font-size:1.7rem;font-weight:700;white-space:nowrap}.Table_thcol__2aejJ:first-child{border-radius:.6rem 0 0 .6rem}.Table_thcol__2aejJ:last-child{border-radius:0 .6rem .6rem 0}@media (max-width:1140px){.Table_thcol__2aejJ:first-child,.Table_thcol__2aejJ:last-child{border-radius:0}}@media (max-width:500px){.Table_thcol__2aejJ{font-size:1.5rem}}.Table_thcolSortable__3DhVE{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.Table_thcolSortable__3DhVE:after{border-color:transparent;border-style:none solid solid;border-width:.6rem .5rem;content:"";display:inline-block;height:0;margin:0 0 0 .5em;vertical-align:calc(1ex - .6rem);width:0}.Table_thcolAsc__moMoy:after{border-bottom-color:#8894a3}.Table_thcolDesc__RhAw8:after{transform:rotate(180deg)}.Table_thcolHover__2JEIc:after{border-bottom-color:#d7dadf}.Table_thcolDescHover__1YPXz:after{transform:rotate(180deg)}.Table_tdBase__3kPO3{border-bottom:.1rem solid #eee;font-weight:400;font-size:1.5rem}@media (max-width:500px){.Table_tdBase__3kPO3{font-size:1.4rem}}',{insertAt:"top"});var Ln=[1,2],Dn=Object(ke.prop)("sortable"),Rn=Object(ke.both)(Dn,Object(ke.propEq)("sortDirection",1)),Bn=Object(ke.both)(Dn,Object(ke.propEq)("sortDirection",2)),Fn=Object(ke.both)(Dn,Object(ke.compose)(Object(ke.prop)("hover"),Object(ke.nthArg)(1))),Un=Object(ke.pipe)(Object(ke.cond)([[Object(ke.both)(Fn,Rn),Object(ke.always)("thcolAscHover")],[Object(ke.both)(Fn,Bn),Object(ke.always)("thcolDescHover")],[Fn,Object(ke.always)("thcolHover")],[Rn,Object(ke.always)("thcolAsc")],[Bn,Object(ke.always)("thcolDesc")],[Dn,Object(ke.always)("thcolSortable")],[ke.T,Object(ke.always)("thcol")]]),Object(ke.prop)(ke.__,In)),qn=Object(ke.cond)([[Rn,Object(ke.always)("ascending")],[Bn,Object(ke.always)("descending")],[ke.T,Object(ke.always)("none")]]),zn=Object(ke.pipe)(Object(ke.indexOf)(ke.__,Ln),Object(ke.ifElse)(Object(ke.equals)(Ln.length-1),Object(ke.always)(0),ke.inc),Object(ke.prop)(ke.__,Ln)),Hn=Object(ke.omit)(["onSort","sortable","sortDirection","sortKey","className"]),Wn=(Ee.Component,function(e){Object(te.a)(n,e);var t=et(n);function n(){var e,r,i,o,a;Object(J.a)(this,n);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return(a=t.call.apply(t,ae()(e=[this]).call(e,c))).state={hover:!1},a.onClickDelegate=le()(r=a.onClick).call(r,Object(Z.a)(a)),a.onMouseEnterDelegate=le()(i=a.onMouseEnter).call(i,Object(Z.a)(a)),a.onMouseLeaveDelegate=le()(o=a.onMouseLeave).call(o,Object(Z.a)(a)),a}return Object(ee.a)(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.sortDirection,n=this.props.sortDirection,r=this.state.hover;this.setState({hover:r&&n===t})}},{key:"onClick",value:function(){var e=this.props,t=e.sortKey,n=e.sortDirection,r=e.onSort,i=zn(n);r(0===i?0:t|i)}},{key:"onMouse",value:function(e){this.setState({hover:e})}},{key:"render",value:function(){var e,t=this.props,n=t.sortable,r=t.className;return Se.a.createElement("th",ce()({"aria-sort":qn(this.props),className:ae()(e="".concat(Un(this.props,this.state)," ")).call(e,r),onClick:n?this.onClickDelegate:void 0,onMouseEnter:n?this.onMouseEnterDelegate:void 0,onMouseLeave:n?this.onMouseLeaveDelegate:void 0,role:"columnheader",scope:"col",tabIndex:n?"0":void 0},Hn(this.props)))}}]),n}(Ee.Component));Wn.defaultProps={sortable:!1,sortDirection:0,onSort:Object(ke.always)()},ce()(Wn.prototype,{onMouseEnter:Object(ke.partial)(Wn.prototype.onMouse,[!0]),onMouseLeave:Object(ke.partial)(Wn.prototype.onMouse,[!1])});var Vn,Yn=n(158);n(144);n.d(t,"a",function(){return Gn}),n.d(t,"b",function(){return Kn});var Gn=(Vn={},Object(r.a)(Vn,Yn.a.FILL_IN_THE_BLANK,"fillin"),Object(r.a)(Vn,Yn.a.MATCHING,"matching"),Object(r.a)(Vn,Yn.a.MULTIPLE_CHOICE,"multiple choice"),Object(r.a)(Vn,Yn.a.MULTIPLE_RESPONSE,"multiple response"),Vn),Kn=function(e){var t=e.drawCount,n=e.questions,r=e.drawnQuestions,i=void 0===r?[]:r;if(i.length===t)return null;return s()(o()("index",function(e){return u()(f()("id",e.id),n)}),function(e){return e[Math.floor(Math.random()*e.length)]},w()(b()(m()(h.a)(i),"id")))(n)}},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(11),u=n(14),l=n(6),f=n(226),d=n.n(f),h=n(29),p=n.n(h),m=n(123);function v(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var g=function(t){Object(c.a)(r,t);var n=v(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"componentWillEnter",value:function(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}},{key:"componentDidEnter",value:function(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}},{key:"componentWillExit",value:function(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}},{key:"componentDidExit",value:function(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}},{key:"render",value:function(){var t=this,n=this.props,r=n.childProps,i=n.component,a=d()("component",this.props);return e.createElement(m.a,Object(o.a)({},a,{render:function(n){var o=n.match,a=p()(r,{match:o,ref:function(e){return t.child=e}});return e.createElement(i,a)}}))}}]),r}(e.Component);t.a=g}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(90);e.exports=r(function(e,t){if(!i(e))throw new TypeError("merge: Function required for first argument");if(!t||!i(t.merge))throw new TypeError("merge: Pair or Tuple required for second argument");return t.merge(e)})},,function(e,t,n){var r=n(179),i=n(774),o=n(330),a=n(778),s=n(1826),c=n(565),u=r(function(e,t){return o(c(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,i(function(e){return e.apply(r,n)},t))})});e.exports=u},function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=l||f||Function("return this")(),h=Object.prototype.toString,p=Math.max,m=Math.min,v=function(){return d.Date.now()};function g(e,t,r){var i,o,a,s,c,u,l=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function g(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function _(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-l>=a}function w(){var e=v();if(_(e))return x(e);c=setTimeout(w,function(e){var n=t-(e-u);return d?m(n,a-(e-l)):n}(e))}function x(e){return c=void 0,h&&i?g(e):(i=o=void 0,s)}function k(){var e=v(),n=_(e);if(i=arguments,o=this,u=e,n){if(void 0===c)return function(e){return l=e,c=setTimeout(w,t),f?g(e):s}(u);if(d)return c=setTimeout(w,t),g(u)}return void 0===c&&(c=setTimeout(w,t)),s}return t=b(t)||0,y(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(b(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),k.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=u=o=c=void 0},k.flush=function(){return void 0===c?s:x(v())},k}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}}).call(this,n(99))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(216);e.exports=function(e){return!!e&&r("contramap",e)}},function(e,t,n){var r=n(1068)("keys"),i=n(1069);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(181)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(409),i=n(181)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var r=n(335),i=n(569),o=n(1075),a=n(374),s=n(2161),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(127),i=n(180),o=n(170).NATIVE_ARRAY_BUFFER,a=n(308),s=n(721),c=n(113),u=n(571),l=n(375),f=n(187),d=n(2216),h=n(652).f,p=n(201).f,m=n(2159),v=n(444),g=n(374),y=g.get,b=g.set,_=r.ArrayBuffer,w=_,x=r.DataView,k=r.Math,E=r.RangeError,S=k.abs,T=k.pow,O=k.floor,C=k.log,j=k.LN2,A=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,u=c>>1,l=23===t?T(2,-24)-T(2,-77):0,f=e<0||0===e&&1/e<0?1:0,d=0;for((e=S(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=O(C(e)/j),e*(o=T(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?l/o:l*T(2,1-u))*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*T(2,t),r+=u):(i=e*T(2,u-1)*T(2,t),r=0));t>=8;a[d++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[d++]=255&r,r/=256,s-=8);return a[--d]|=128*f,a},M=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,u=e[c--],l=127&u;for(u>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===o)return n?NaN:u?-1/0:1/0;n+=T(2,t),l-=a}return(u?-1:1)*n*T(2,l-t)},P=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},N=function(e){return[255&e]},I=function(e){return[255&e,e>>8&255]},L=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},D=function(e){return A(e,23,4)},R=function(e){return A(e,52,8)},B=function(e,t){p(e.prototype,t,{get:function(){return y(this)[t]}})},F=function(e,t,n,r){var i=d(+n),o=y(e);if(i+t>o.byteLength)throw E("Wrong index");var a=y(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},U=function(e,t,n,r,i,o){var a=d(+n),s=y(e);if(a+t>s.byteLength)throw E("Wrong index");for(var c=y(s.buffer).bytes,u=a+s.byteOffset,l=r(+i),f=0;f<t;f++)c[u+f]=l[o?f:t-f-1]};if(o){if(!c(function(){_(1)})||!c(function(){new _(-1)})||c(function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name})){for(var q,z=(w=function(e){return u(this,w),new _(d(e))}).prototype=_.prototype,H=h(_),W=0;H.length>W;)(q=H[W++])in w||a(w,q,_[q]);z.constructor=w}var V=new x(new w(2)),Y=x.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||s(x.prototype,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else w=function(e){u(this,w,"ArrayBuffer");var t=d(e);b(this,{bytes:m.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},x=function(e,t,n){u(this,x,"DataView"),u(e,w,"DataView");var r=y(e).byteLength,o=l(t);if(o<0||o>r)throw E("Wrong offset");if(o+(n=void 0===n?r-o:f(n))>r)throw E("Wrong length");b(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(B(w,"byteLength"),B(x,"buffer"),B(x,"byteLength"),B(x,"byteOffset")),s(x.prototype,{getInt8:function(e){return F(this,1,e)[0]<<24>>24},getUint8:function(e){return F(this,1,e)[0]},getInt16:function(e){var t=F(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=F(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return P(F(this,4,e,arguments[1]))},getUint32:function(e){return P(F(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return M(F(this,4,e,arguments[1]),23)},getFloat64:function(e){return M(F(this,8,e,arguments[1]),52)},setInt8:function(e,t){U(this,1,e,N,t)},setUint8:function(e,t){U(this,1,e,N,t)},setInt16:function(e,t){U(this,2,e,I,t,arguments[2])},setUint16:function(e,t){U(this,2,e,I,t,arguments[2])},setInt32:function(e,t){U(this,4,e,L,t,arguments[2])},setUint32:function(e,t){U(this,4,e,L,t,arguments[2])},setFloat32:function(e,t){U(this,4,e,D,t,arguments[2])},setFloat64:function(e,t){U(this,8,e,R,t,arguments[2])}});v(w,"ArrayBuffer"),v(x,"DataView"),t.ArrayBuffer=w,t.DataView=x},function(e,t,n){"use strict";var r=n(127),i=n(1072),o=n(37),a=n(326),s=n(655),c=n(1078),u=n(571),l=n(162),f=n(113),d=n(1172),h=n(444),p=n(2164);e.exports=function(e,t,n,m,v){var g=r[e],y=g&&g.prototype,b=g,_=m?"set":"add",w={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof g||!(v||y.forEach&&!f(function(){(new g).entries().next()}))))b=n.getConstructor(t,e,m,_),s.REQUIRED=!0;else if(i(e,!0)){var k=new b,E=k[_](v?{}:-0,1)!=k,S=f(function(){k.has(1)}),T=d(function(e){new g(e)}),O=!v&&f(function(){for(var e=new g,t=5;t--;)e[_](t,t);return!e.has(-0)});T||((b=t(function(t,n){u(t,b,e);var r=p(new g,t,b);return null!=n&&c(n,r[_],r,m),r})).prototype=y,y.constructor=b),(S||O)&&(x("delete"),x("has"),m&&x("get")),(O||E)&&x(_),v&&y.clear&&delete y.clear}return w[e]=b,o({global:!0,forced:b!=g},w),h(b,e),v||n.setStrong(b,e,m),b}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";e.exports=n(650)||!n(113)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(127)[e]})},function(e,t,n){var r=n(127).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(169);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r,i,o=n(1181),a=RegExp.prototype.exec,s=String.prototype.replace,c=a,u=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(u||l)&&(c=function(e){var t,n,r,i,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),u&&(t=c.lastIndex),r=a.call(c,e),u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),l&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=c},function(e,t,n){var r=n(375),i=n(373);e.exports=function(e,t,n){var o,a,s=String(i(e)),c=r(t),u=s.length;return c<0||c>=u?n?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?n?s.charAt(c):o:n?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}},function(e,t,n){var r=n(409),i=n(1182);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";var r=n(308),i=n(326),o=n(113),a=n(181),s=n(1182),c=a("species"),u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),l=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,f){var d=a(e),h=!o(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),p=h&&!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!t});if(!h||!p||"replace"===e&&!u||"split"===e&&!l){var m=/./[d],v=n(d,""[e],function(e,t,n,r,i){return t.exec===s?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),g=v[0],y=v[1];i(String.prototype,e,g),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),f&&r(RegExp.prototype[d],"sham",!0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(1079)),o=s(n(2239)),a=s(n(2177));function s(e){return e&&e.__esModule?e:{default:e}}var c={},u=void 0;t.default={unmount:function(){c={}},register:function(e,t){c[e]=t},unregister:function(e){delete c[e]},get:function(e){return c[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return u=e},getActiveLink:function(){return u},scrollTo:function(e,t){var n=this.get(e);if(n){var s=(t=r({},t,{absolute:!1})).containerId,c=t.container,u=void 0;u=s?document.getElementById(s):c&&c.nodeType?c:document,a.default.registered.begin&&a.default.registered.begin(e,n),t.absolute=!0;var l=i.default.scrollOffset(u,n)+(t.offset||0);if(!t.smooth)return u===document?window.scrollTo(0,l):u.scrollTop=l,void(a.default.registered.end&&a.default.registered.end(e,n));o.default.animateTopScroll(l,t,e,n)}else console.warn("target Element not found")}}},function(e,t,n){e.exports=n(2602)()},function(e,t,n){var r=n(255);e.exports=function(e){return null!=e&&"object"===r(e)&&!0===e["@@functional/placeholder"]}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(60),i=n(514),o=n(1190),a=n(2642),s=!{toString:null}.propertyIsEnumerable("toString"),c=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),l=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},f=i("function"!=typeof r||u?function(e){if(Object(e)!==e)return[];var t,n,r=[],i=u&&a(e);for(t in e)!o(t,e)||i&&"length"===t||(r[r.length]=t);if(s)for(n=c.length-1;n>=0;)o(t=c[n],e)&&!l(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:r(e)});e.exports=f},,,,,function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(58),i=n.n(r),o=n(94),a=n.n(o),s=n(26),c=n.n(s),u=n(70),l=function(e){return c()("audioVideoPlayhead",e)},f=function(e){var t=e.blockId,n=e.itemId,r=e.playheadPercentage;return t?i()(a()(["items",t,"items",n]),l(r)):l(r)},d=function(e){var t=e.blockId,n=e.lessonId,r=e.itemId,i=e.playheadPercentage;return Object(u.h)({id:n,updateFn:f({blockId:t,lessonId:n,itemId:r,playheadPercentage:i})})}},function(e,t,n){"use strict";n.d(t,"a",function(){return k});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(33),v=n.n(m),g=n(0),y=n.n(g),b=n(150),_=n.n(b),w=n(1162);function x(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var k=function(e){Object(c.a)(n,e);var t=x(n);function n(){var e,r,i;Object(o.a)(this,n);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=t.call.apply(t,d()(e=[this]).call(e,c))).wrapRef=Object(g.createRef)(),i.check=p()(r=i.check).call(r,Object(s.a)(i)),i.onScroll=_()(i.check,100),i}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.scrollableContainer=Object(w.a)(),this.scrollableContainer&&this.scrollableContainer.addEventListener("scroll",this.onScroll),this.props.isFirstLesson&&(this.checkTimeout=v()(this.check,1e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.checkTimeout),this.rmScrollListener()}},{key:"render",value:function(){return y.a.createElement("div",{ref:this.wrapRef},this.props.children)}},{key:"rmScrollListener",value:function(){this.scrollableContainer&&this.scrollableContainer.removeEventListener("scroll",this.onScroll)}},{key:"check",value:function(){var e=this.wrapRef;e&&Object(w.b)(e.current)&&(this.rmScrollListener(),this.props.onViewed())}}]),n}(g.Component)},function(e,t,n){var r=n(766),i=n(1167),o=n(2607),a=n(770);e.exports=a(3,function(e,t){return i(r(e),[t,o])})},function(e,t,n){e.exports=n(2609)},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(4),h=n.n(d),p=n(33),m=n.n(p),v=n(85),g=n(150),y=n.n(g);function b(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var _=function(){for(var e=window;e.parent!=e;)e=e.parent;try{e.innerHeight}catch(e){return window}return e};t.a=function(t){return function(n){Object(u.a)(i,n);var r=b(i);function i(e){var t,n;return Object(a.a)(this,i),(n=r.call(this,e)).state={orientation:{},navigationHidden:{}},n.applySafariLandscapeHack=h()(t=n.applySafariLandscapeHack).call(t,Object(c.a)(n)),n.root=_(),n}return Object(s.a)(i,[{key:"componentDidMount",value:function(){v.a.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=y()(this.applySafariLandscapeHack,500)))}},{key:"componentWillUnmount",value:function(){this.root.removeEventListener("resize",this.resizeRef)}},{key:"applySafariLandscapeHack",value:function(){var e=this.root,t=window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape",n=("landscape"===t?screen.width:screen.height)-e.innerHeight;t==this.state.orientation&&n==this.state.difference||("landscape"===t&&0!==n&&m()(function(){e.document.body.scrollTop=0},0),this.setState({orientation:t,difference:n}))}},{key:"render",value:function(){return e.createElement(t,Object(o.a)({},this.props,{applySafariLandscapeHack:"landscape"===this.state.orientation&&0!==this.state.difference,safariLandscapeHackOffset:this.state.difference}))}}]),i}(e.Component)}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(50),i=n(0),o=n.n(i),a=n(530),s=n(235),c=n.n(s),u=n(315),l=n.n(u),f=n(2),d=n.n(f),h=n(212),p=n(22),m=(n(2628),"".concat(Object(p.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/certificate-icon.svg")),v="".concat(Object(p.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/error_x.svg"),g="".concat(Object(p.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/loading_spinner.svg"),y="ok",b=function(e){var t=e.type,n=Object(i.useState)(function(){return c()("certdownload-")}),s=Object(r.a)(n,1)[0],u=Object(i.useState)(y),f=Object(r.a)(u,2),p=f[0],b=f[1],_=l()(p),w=Object(i.useRef)(),x="".concat(s,"-live"),k=d()("certificateDownload",{certificateDownloadContained:"contained"===t}),E=Object(i.useCallback)(function(){b("downloading")},[]);return Object(i.useEffect)(function(){return"downloading"===p&&"downloading"!==_&&Object(h.b)().then(function(){b(y)}).catch(function(e){Object(a.isCancel)(e)?b(y):b("error")}),function(){Object(h.c)()}},[_,p]),Object(i.useEffect)(function(){w.current&&("error"===p&&"error"!==_||p===y&&("error"===_||"downloading"===_))&&w.current.focus()},[_,p]),o.a.createElement("div",{className:k},o.a.createElement("div",{"aria-live":"polite",id:x,role:"status"},"downloading"===p&&o.a.createElement("span",{className:"certificateDownload__downloading"},o.a.createElement("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:g,width:"15"}),"Downloading..."),"error"===p&&o.a.createElement("span",{className:"certificateDownload__error"},o.a.createElement("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:v,width:"15"}),o.a.createElement("span",{className:"visually-hidden"},"Failed to download certificate"))),(p===y||"error"===p)&&o.a.createElement("button",{"aria-controls":x,className:"certificateDownload__btn",onClick:E,ref:w,type:"button"},p===y&&"contained"===t&&o.a.createElement("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:m,width:"15"}),p===y?"Download certificate":"Retry download"))},_=function(){return o.a.createElement(b,{type:"contained"})};t.b=Object(i.memo)(b)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(674),i=n(672),o=n(419),a=n(675);function s(e){return Object(r.a)(e)||Object(i.a)(e)||Object(o.a)(e)||Object(a.a)()}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(31),i=n.n(r),o=n(24),a=n.n(o),s=function(e,t){var n=i()(["lessons",t],e);return{percentComplete:a()(0,["percentComplete"],n),passedQuiz:i()(["passed"],n)}}},function(e,t,n){"use strict";var r=n(28),i=n(120),o=n(0),a=n.n(o),s=n(2),c=n.n(s),u=n(12),l=n(50),f=n(5),d=n.n(f),h=n(60),p=n.n(h),m=n(45),v=n.n(m),g=n(59),y=n.n(g),b=n(44),_=n.n(b),w=n(34),x=n.n(w),k=n(49),E=n.n(k),S=n(75),T=n.n(S),O=n(62),C=n.n(O),j=n(246),A=n.n(j);function M(e,t){var n=p()(e);if(v.a){var r=v()(e);t&&(r=y()(r).call(r,function(t){return _()(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)x()(n=M(Object(r),!0)).call(n,function(t){Object(u.a)(e,t,r[t])});else if(E.a)T()(e,E()(r));else{var i;x()(i=M(Object(r))).call(i,function(t){C()(e,t,_()(r,t))})}}return e}var N=function(e){var t,n,r,i,s,c,u,f,h,p,m=e.borderWidth,v=e.checkClassName,g=e.className,y=e.desc,b=e.diameter,_=e.percentComplete,w=e.progressClassName,x=e.progressColor,k=e.title,E=e.trackClassName,S=e.trackColor,T=e.transitionTiming,O=Number(m),C=Number(b),j=Number(_),M=Number(T),N=C/2,L=N-O,D=(Math.PI*L*2).toFixed(3),R=D*(100-j)/100,B=I/C,F=function(e){return e/B},U=Object(o.useState)(A()()),q=Object(l.a)(U,1)[0],z="pc-t-".concat(q),H="pc-d-".concat(q),W={opacity:"0",visibility:"hidden"},V=d()(t="opacity ".concat(M,"s ")).call(t,M,"s"),Y={transition:"none"},G=P(P(P({},{stroke:S,transition:V}),0===j?Y:{}),100===j?W:{}),K=P(P(P({},{stroke:x,transition:d()(n=d()(r="stroke-dashoffset ".concat(M+.1,"s ease-out, fill ")).call(r,M,"s ")).call(n,M,"s")}),0===j?Y:{}),100===j?{fill:x}:{}),$=P(P(P({},{transition:V}),100!==j?W:{}),0===j?Y:{}),X=k||"".concat(j,"% complete");return a.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-labelledby":z,"aria-describedby":H,className:g,focusable:"false",height:C,role:"img",style:{display:"inline-block",verticalAlign:"middle"},width:C},a.a.createElement("title",{id:z},X),a.a.createElement("desc",{id:H},y),a.a.createElement("circle",{className:E,cx:N,cy:N,fill:"transparent",r:L,strokeWidth:O,style:G,transform:d()(i="rotate(-89.9 ".concat(N," ")).call(i,N,")")}),a.a.createElement("circle",{className:w,cx:N,cy:N,fill:"transparent",r:L,strokeDasharray:D,strokeDashoffset:R,strokeWidth:O,style:K,transform:d()(s="rotate(-89.9 ".concat(N," ")).call(s,N,")")}),a.a.createElement("path",{className:v,d:["M".concat(F(8.64)),"0L".concat(F(9.9)),d()(c="".concat(F(1.17),"L")).call(c,F(3.51)),"".concat(F(7.2),"L0"),d()(u="".concat(F(3.87),"L")).call(u,F(1.26)),d()(f="".concat(F(2.7),"l")).call(f,F(2.34)),d()(h="".concat(F(2.16),"L")).call(h,F(8.64)),"0z"].join(","),fill:"#fff",style:$,transform:d()(p="translate(".concat(F(5.5)," ")).call(p,F(7),")")}))};N.displayName="ProgressCircle";var I=21;N.defaultProps={borderWidth:2,desc:"A circle with a colored border representing one's progress.",diameter:I,percentComplete:0,progressColor:"#50abf1",trackColor:"rgba(49, 53, 55, 0.1)",transitionTiming:.3};var L=Object(o.memo)(N),D=n(40),R=["percentComplete","passedQuiz"],B=function(e){var t=e.percentComplete,n=e.passedQuiz,o=Object(i.a)(e,R);if(void 0!==n&&!n)return a.a.createElement(D.H,{"aria-label":"Quiz failed"});var s=c()("brand--stroke brand--fill-opacity",{"brand--fill":100===t});return a.a.createElement(L,Object(r.a)({},o,{desc:"A circle with a colored border representing one's progress through a lesson.",progressClassName:s,percentComplete:t}))};a.a.createElement(B,null).type,t.a=Object(o.memo)(B)},,function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return C}),n.d(t,"b",function(){return j});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=(n(2622),n(152)),v=n(2),g=n.n(v),y=n(1),b=n.n(y),_=n(65),w=n(165),x=n(40),k=n(43),E=n(267),S=n(144);function T(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var O=_.a.learn.course.lesson,C=function(t){var n=t.courseFinishLabel,r=t.onNextClick;return e.createElement("div",{className:"next-lesson brand--linkColorHover"},e.createElement(m.b,{className:"next-lesson__link",onClick:r,to:"/lessons/progress-summary"},e.createElement("div",{className:"next-lesson__name brand--ui"},n),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(x.f,null))))},j=function(t){Object(c.a)(r,t);var n=T(r);function r(){var e,t,i,a,c,u;Object(o.a)(this,r);for(var l=arguments.length,f=new Array(l),h=0;h<l;h++)f[h]=arguments[h];return(u=n.call.apply(n,d()(e=[this]).call(e,f))).onKeyBlur=p()(t=u.handleKeyboardFocus).call(t,Object(s.a)(u),!1),u.onKeyFocus=p()(i=u.handleKeyboardFocus).call(i,Object(s.a)(u),!0),u.onMouseEnter=p()(a=u.handleMouseHover).call(a,Object(s.a)(u),!0),u.onMouseLeave=p()(c=u.handleMouseHover).call(c,Object(s.a)(u),!1),u.state={hasFocus:!1},u}return Object(a.a)(r,[{key:"handleRestrictedClick",value:function(e){e.preventDefault()}},{key:"handleKeyboardFocus",value:function(e){this.setState({hasFocus:e})}},{key:"handleMouseHover",value:function(e){this.props.onMouse(e)}},{key:"render",value:function(){var t=this.props,n=t.allowTooltip,r=t.next,i=t.nextTitle,o=t.nextNumber,a=t.onNextClick,s=t.restrictions,c=t.isContinue,u=t.isLesson,l=t.labels,f=t.type,h=s.isRestricted,p=l.lessonName,v=l.quizContinue,y=this.state.hasFocus,b=g()("next-lesson","brand--linkColorHover",{"next-lesson--restricted":h,"next-lesson--map":"map"===f}),_=e.createElement(k.a,{className:"next-lesson__name--inline",value:i});if(h){var S,T,C=Object(w.a)({labels:l,restrictions:s}),j=u&&!c,A=c?v:_,M=g()("runtime-tooltip",{"runtime-tooltip--show":n&&y});return e.createElement(E.a,{className:M},e.createElement("div",{className:b},e.createElement("span",{"aria-disabled":"true","aria-label":d()(S="The ".concat(i," lesson is currently unavailable: ")).call(S,C),className:"next-lesson__link",onBlur:this.onKeyBlur,onFocus:this.onKeyFocus,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,role:"link",tabIndex:"0"},e.createElement("div",{className:"next-lesson__name brand--ui"},j?d()(T="".concat(p," ")).call(T,o," - "):""," ",A),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(x.f,null)))),e.createElement(E.b,{"aria-hidden":"true",side:"top"},C))}if(i||c){var P,N=u&&!c,I=c?v:_;return e.createElement("div",{className:b,"data-ba":O.nextLessonLink},e.createElement(m.b,{className:"next-lesson__link",to:"/lessons/"+encodeURIComponent(r),onClick:a},e.createElement("div",{className:"next-lesson__name brand--ui"},N?d()(P="".concat(p," ")).call(P,o," - "):""," ",I),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(x.f,null))))}return e.createElement("div",null)}}],[{key:"defaultProps",get:function(){return{onMouse:S.b}}},{key:"propTypes",get:function(){return{isContinue:b.a.bool,next:b.a.any.isRequired,nextTitle:b.a.string}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){e.exports=n(2681)},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return _});var r=n(3),i=n.n(r),o=n(28),a=n(12),s=n(9),c=n(10),u=n(11),l=n(14),f=n(6),d=(n(2693),n(2)),h=n.n(d),p=n(65),m=n(85);function v(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var g=p.a.learn.course.lesson,y=function(t){Object(u.a)(r,t);var n=v(r);function r(){return Object(s.a)(this,r),n.apply(this,arguments)}return Object(c.a)(r,[{key:"render",value:function(){var t=this.props,n=t.className,r=t.children;return e.createElement("div",{className:n,"data-ba":g.container,"data-lesson":!0,ref:this.props.contentRef},r)}}]),r}(e.Component),b=function(t){var n=t.children,r=t.hidden,i=t.id,s=t.label,c="".concat("lesson__sidebar","--safari"),u={className:h()("lesson__sidebar",Object(a.a)({},c,m.a.isSafari)),id:i};return e.createElement("section",Object(o.a)({"aria-hidden":r,"aria-label":s,"data-lesson-side":!0},u),n)},_=function(t){Object(u.a)(r,t);var n=v(r);function r(){return Object(s.a)(this,r),n.apply(this,arguments)}return Object(c.a)(r,[{key:"render",value:function(){var t=this.props.onMobileMenuActiveClick;return e.createElement("div",{className:"lesson__content",onClick:t},this.props.children)}}]),r}(e.Component)}).call(this,n(0))},,function(e,t,n){"use strict";
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(733),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function w(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var k=x.prototype=new w;k.constructor=x,r(k,_.prototype),k.isPureReactComponent=!0;var E={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var j=/\/+/g,A=[];function M(e,t,n,r){if(A.length){var i=A.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+I(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var l=n+I(s=t[u],u);c+=e(s,l,r,i)}else if(l=null===t||"object"!=typeof t?null:"function"==typeof(l=v&&t[v]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),u=0;!(s=t.next()).done;)c+=e(s=s.value,l=n+I(s,u++),r,i);else if("object"===s)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return c}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,function(e){return e}):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(j,"$&/")+"/")+n)),r.push(e))}function R(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(j,"$&/")+"/"),N(e,D,t=M(t,o,r,i)),P(t)}var B={current:null};function F(){var e=B.current;if(null===e)throw Error(g(321));return e}var U={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,L,t=M(null,null,t,n)),P(t)},count:function(e){return N(e,function(){return null},null)},toArray:function(e){var t=[];return R(e,t,null,function(e){return e}),t},only:function(e){if(!C(e))throw Error(g(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=u,t.PureComponent=x,t.StrictMode=c,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)S.call(t,l)&&!T.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){u=Array(l);for(var f=0;f<l;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
/** @license React v16.13.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(0),i=n(733),o=n(1213);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=!1,c=null,u=!1,l=null,f={onError:function(e){s=!0,c=e}};function d(e,t,n,r,i,o,a,u,l){s=!1,c=null,function(e,t,n,r,i,o,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(f,arguments)}var h=null,p=null,m=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,o,f,h,p){if(d.apply(this,arguments),s){if(!s)throw Error(a(198));var m=c;s=!1,c=null,u||(u=!0,l=m)}}(r,t,void 0,e),e.currentTarget=null}var g=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;g.hasOwnProperty("ReactCurrentDispatcher")||(g.ReactCurrentDispatcher={current:null}),g.hasOwnProperty("ReactCurrentBatchConfig")||(g.ReactCurrentBatchConfig={suspense:null});var y=/^(.*)[\\\/]/,b="function"==typeof Symbol&&Symbol.for,_=b?Symbol.for("react.element"):60103,w=b?Symbol.for("react.portal"):60106,x=b?Symbol.for("react.fragment"):60107,k=b?Symbol.for("react.strict_mode"):60108,E=b?Symbol.for("react.profiler"):60114,S=b?Symbol.for("react.provider"):60109,T=b?Symbol.for("react.context"):60110,O=b?Symbol.for("react.concurrent_mode"):60111,C=b?Symbol.for("react.forward_ref"):60112,j=b?Symbol.for("react.suspense"):60113,A=b?Symbol.for("react.suspense_list"):60120,M=b?Symbol.for("react.memo"):60115,P=b?Symbol.for("react.lazy"):60116,N=b?Symbol.for("react.block"):60121,I="function"==typeof Symbol&&Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}function D(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case w:return"Portal";case E:return"Profiler";case k:return"StrictMode";case j:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return"Context.Consumer";case S:return"Context.Provider";case C:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case M:return D(e.type);case N:return D(e.render);case P:if(e=1===e._status?e._result:null)return D(e)}return null}function R(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=D(e.type);n=null,r&&(n=D(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(y,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var B=null,F={};function U(){if(B)for(var e in F){var t=F[e],n=B.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!z[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in z[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,c=r;if(H.hasOwnProperty(c))throw Error(a(99,c));H[c]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&q(u[i],s,c);i=!0}else o.registrationName?(q(o.registrationName,s,c),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function q(e,t,n){if(W[e])throw Error(a(100,e));W[e]=t,V[e]=t.eventTypes[n].dependencies}var z=[],H={},W={},V={};function Y(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!F.hasOwnProperty(t)||F[t]!==r){if(F[t])throw Error(a(102,t));F[t]=r,n=!0}}n&&U()}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),K=null,$=null,X=null;function Q(e){if(e=p(e)){if("function"!=typeof K)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),K(e.stateNode,e.type,t))}}function Z(e){$?X?X.push(e):X=[e]:$=e}function J(){if($){var e=$,t=X;if(X=$=null,Q(e),t)for(e=0;e<t.length;e++)Q(t[e])}}function ee(e,t){return e(t)}function te(e,t,n,r,i){return e(t,n,r,i)}function ne(){}var re=ee,ie=!1,oe=!1;function ae(){null===$&&null===X||(ne(),J())}function se(e,t,n){if(oe)return e(t,n);oe=!0;try{return re(e,t,n)}finally{oe=!1,ae()}}var ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ue=Object.prototype.hasOwnProperty,le={},fe={};function de(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new de(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new de(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new de(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new de(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){he[e]=new de(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){he[e]=new de(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){he[e]=new de(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){he[e]=new de(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){he[e]=new de(e,5,!1,e.toLowerCase(),null,!1)});var pe=/[\-:]([a-z])/g;function me(e){return e[1].toUpperCase()}function ve(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!ue.call(fe,e)||!ue.call(le,e)&&(ce.test(e)?fe[e]=!0:(le[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function be(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function we(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&ve(e,"checked",t,!1)}function Ee(e,t){ke(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Ce(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Me(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Pe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pe,me);he[t]=new de(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pe,me);he[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pe,me);he[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){he[e]=new de(e,1,!1,e.toLowerCase(),null,!1)}),he.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){he[e]=new de(e,1,!1,e.toLowerCase(),null,!0)});var Ne="http://www.w3.org/1999/xhtml",Ie="http://www.w3.org/2000/svg";function Le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function De(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Re,Be,Fe=(Be=function(e,t){if(e.namespaceURI!==Ie||"innerHTML"in e)e.innerHTML=t;else{for((Re=Re||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Re.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Be(e,t)})}:Be);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ze={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},He={},We={};function Ve(e){if(He[e])return He[e];if(!ze[e])return e;var t,n=ze[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return He[e]=n[t];return e}G&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),"TransitionEvent"in window||delete ze.transitionend.transition);var Ye=Ve("animationend"),Ge=Ve("animationiteration"),Ke=Ve("animationstart"),$e=Ve("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Je(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(u)throw e=l,u=!1,l=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var lt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&<.push(e)}function dt(e,t,n,r){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=jn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ct(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,c=0;c<z.length;c++){var u=z[c];u&&(u=u.extractEvents(r,t,o,i,a))&&(s=rt(s,u))}st(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var mt,vt,gt,yt=!1,bt=[],_t=null,wt=null,xt=null,kt=new Map,Et=new Map,St=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function jt(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(t.pointerId)}}function At(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ct(t,n,r,i,o),null!==t&&(null!==(t=An(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Mt(e){var t=jn(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,function(){gt(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=An(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){Pt(e)&&n.delete(t)}function It(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=An(e.blockedOn))&&mt(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==_t&&Pt(_t)&&(_t=null),null!==wt&&Pt(wt)&&(wt=null),null!==xt&&Pt(xt)&&(xt=null),kt.forEach(Nt),Et.forEach(Nt)}function Lt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,It)))}function Dt(e){function t(t){return Lt(t,e)}if(0<bt.length){Lt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Lt(_t,e),null!==wt&&Lt(wt,e),null!==xt&&Lt(xt,e),kt.forEach(t),Et.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Mt(n),null===n.blockedOn&&St.shift()}var Rt={},Bt=new Map,Ft=new Map,Ut=["abort","abort",Ye,"animationEnd",Ge,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),Bt.set(r,o),Rt[i]=o}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qt(Ut,2);for(var zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<zt.length;Ht++)Ft.set(zt[Ht],0);var Wt=o.unstable_UserBlockingPriority,Vt=o.unstable_runWithPriority,Yt=!0;function Gt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=function(e,t,n,r){ie||ne();var i=$t,o=ie;ie=!0;try{te(i,e,t,n,r)}finally{(ie=o)||ae()}}.bind(null,t,1,e);break;case 1:r=function(e,t,n,r){Vt(Wt,$t.bind(null,e,t,n,r))}.bind(null,t,1,e);break;default:r=$t.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function $t(e,t,n,r){if(Yt)if(0<bt.length&&-1<Tt.indexOf(e))e=Ct(null,e,t,n,r),bt.push(e);else{var i=Xt(e,t,n,r);if(null===i)jt(e,r);else if(-1<Tt.indexOf(e))e=Ct(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return _t=At(_t,e,t,n,r,i),!0;case"dragenter":return wt=At(wt,e,t,n,r,i),!0;case"mouseover":return xt=At(xt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,At(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Et.set(o,At(Et.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){jt(e,r),e=dt(e,r,null,t);try{se(ht,e)}finally{ft(e)}}}}function Xt(e,t,n,r){if(null!==(n=jn(n=ct(r)))){var i=Je(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=dt(e,r,n,t);try{se(ht,e)}finally{ft(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zt=["Webkit","ms","Moz","O"];function Jt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function en(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Jt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Qt).forEach(function(e){Zt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]})});var tn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nn(e,t){if(t){if(tn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function rn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=Ne;function an(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=V[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function sn(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ln(e,t){var n,r=un(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=un(r)}}function fn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hn="$",pn="/$",mn="$?",vn="$!",gn=null,yn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _n(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wn="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===hn||n===vn||n===mn){if(0===t)return e;t--}else n===pn&&t++}e=e.previousSibling}return null}var Sn=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+Sn,On="__reactEventHandlers$"+Sn,Cn="__reactContainere$"+Sn;function jn(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[Tn])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function An(e){return!(e=e[Tn]||e[Cn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Pn(e){return e[On]||null}function Nn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function In(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Ln(e,t,n){(t=In(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Nn(t);for(t=n.length;0<t--;)Ln(n[t],"captured",e);for(t=0;t<n.length;t++)Ln(n[t],"bubbled",e)}}function Rn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=In(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&Rn(e._targetInst,null,e)}function Fn(e){it(e,Dn)}var Un=null,qn=null,zn=null;function Hn(){if(zn)return zn;var e,t,n=qn,r=n.length,i="value"in Un?Un.value:Un.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return zn=i.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function Vn(){return!1}function Yn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:Vn,this.isPropagationStopped=Vn,this}function Gn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function $n(e){e.eventPool=[],e.getPooled=Gn,e.release=Kn}i(Yn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),Yn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Yn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,$n(n),n},$n(Yn);var Xn=Yn.extend({data:null}),Qn=Yn.extend({data:null}),Zn=[9,13,27,32],Jn=G&&"CompositionEvent"in window,er=null;G&&"documentMode"in document&&(er=document.documentMode);var tr=G&&"TextEvent"in window&&!er,nr=G&&(!Jn||er&&8<er&&11>=er),rr=String.fromCharCode(32),ir={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},or=!1;function ar(e,t){switch(e){case"keyup":return-1!==Zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1;var ur={eventTypes:ir,extractEvents:function(e,t,n,r){var i;if(Jn)e:{switch(e){case"compositionstart":var o=ir.compositionStart;break e;case"compositionend":o=ir.compositionEnd;break e;case"compositionupdate":o=ir.compositionUpdate;break e}o=void 0}else cr?ar(e,n)&&(o=ir.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ir.compositionStart);return o?(nr&&"ko"!==n.locale&&(cr||o!==ir.compositionStart?o===ir.compositionEnd&&cr&&(i=Hn()):(qn="value"in(Un=r)?Un.value:Un.textContent,cr=!0)),o=Xn.getPooled(o,t,n,r),i?o.data=i:null!==(i=sr(n))&&(o.data=i),Fn(o),i=o):i=null,(e=tr?function(e,t){switch(e){case"compositionend":return sr(t);case"keypress":return 32!==t.which?null:(or=!0,rr);case"textInput":return(e=t.data)===rr&&or?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!Jn&&ar(e,t)?(e=Hn(),zn=qn=Un=null,cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(ir.beforeInput,t,n,r)).data=e,Fn(t)):t=null,null===i?t:null===t?i:[i,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var dr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function hr(e,t,n){return(e=Yn.getPooled(dr.change,e,t,n)).type="change",Z(n),Fn(e),e}var pr=null,mr=null;function vr(e){st(e)}function gr(e){if(_e(Mn(e)))return e}function yr(e,t){if("change"===e)return t}var br=!1;function _r(){pr&&(pr.detachEvent("onpropertychange",wr),mr=pr=null)}function wr(e){if("value"===e.propertyName&&gr(mr))if(e=hr(mr,e,ct(e)),ie)st(e);else{ie=!0;try{ee(vr,e)}finally{ie=!1,ae()}}}function xr(e,t,n){"focus"===e?(_r(),mr=n,(pr=t).attachEvent("onpropertychange",wr)):"blur"===e&&_r()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gr(mr)}function Er(e,t){if("click"===e)return gr(t)}function Sr(e,t){if("input"===e||"change"===e)return gr(t)}G&&(br=ut("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:dr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?Mn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yr;else if(fr(i))if(br)a=Sr;else{a=kr;var s=xr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Er);if(a&&(a=a(e,t)))return hr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Or=Yn.extend({view:null,detail:null}),Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Ar(){return jr}var Mr=0,Pr=0,Nr=!1,Ir=!1,Lr=Or.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ar,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,Nr?"mousemove"===e.type?e.screenX-t:0:(Nr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Pr;return Pr=e.screenY,Ir?"mousemove"===e.type?e.screenY-t:0:(Ir=!0,0)}}),Dr=Lr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Rr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?jn(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Lr,c=Rr.mouseLeave,u=Rr.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Dr,c=Rr.pointerLeave,u=Rr.pointerEnter,l="pointer");if(e=null==a?o:Mn(a),o=null==t?o:Mn(t),(c=s.getPooled(c,a,n,r)).type=l+"leave",c.target=e,c.relatedTarget=o,(n=s.getPooled(u,t,n,r)).type=l+"enter",n.target=o,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(u=l,a=0,e=s=r;e;e=Nn(e))a++;for(e=0,t=u;t;t=Nn(t))e++;for(;0<a-e;)s=Nn(s),a--;for(;0<e-a;)u=Nn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=Nn(s),u=Nn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=Nn(r);for(r=[];l&&l!==u&&(null===(a=l.alternate)||a!==u);)r.push(l),l=Nn(l);for(l=0;l<s.length;l++)Rn(s[l],"bubbled",c);for(l=r.length;0<l--;)Rn(r[l],"captured",n);return 0==(64&i)?[c]:[c,n]}};var Fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function qr(e,t){if(Fr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ur.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}var zr=G&&"documentMode"in document&&11>=document.documentMode,Hr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,Vr=null,Yr=null,Gr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Gr||null==Wr||Wr!==cn(n)?null:("selectionStart"in(n=Wr)&&dn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Yr&&qr(Yr,n)?null:(Yr=n,(e=Yn.getPooled(Hr.select,Vr,e,t)).type="select",e.target=Wr,Fn(e),e))}var $r={eventTypes:Hr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),o=V.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Mn(t):window,e){case"focus":(fr(i)||"true"===i.contentEditable)&&(Wr=i,Vr=t,Yr=null);break;case"blur":Yr=Vr=Wr=null;break;case"mousedown":Gr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Gr=!1,Kr(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Xr=Yn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Yn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zr=Or.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ei={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ti={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ni=Or.extend({key:function(e){if(e.key){var t=ei[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ti[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ar,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ri=Lr.extend({dataTransfer:null}),ii=Or.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ar}),oi=Yn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ai=Lr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),si={eventTypes:Rt,extractEvents:function(e,t,n,r){var i=Bt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=ni;break;case"blur":case"focus":e=Zr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ri;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ii;break;case Ye:case Ge:case Ke:e=Xr;break;case $e:e=oi;break;case"scroll":e=Or;break;case"wheel":e=ai;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Yn}return Fn(t=e.getPooled(i,t,n,r)),t}};if(B)throw Error(a(101));B=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),U(),h=Pn,p=An,m=Mn,Y({SimpleEventPlugin:si,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Tr,SelectEventPlugin:$r,BeforeInputEventPlugin:ur});var ci=[],ui=-1;function li(e){0>ui||(e.current=ci[ui],ci[ui]=null,ui--)}function fi(e,t){ci[++ui]=e.current,e.current=t}var di={},hi={current:di},pi={current:!1},mi=di;function vi(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!=(e=e.childContextTypes)}function yi(){li(pi),li(hi)}function bi(e,t,n){if(hi.current!==di)throw Error(a(168));fi(hi,t),fi(pi,n)}function _i(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,D(t)||"Unknown",o));return i({},n,{},r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,mi=hi.current,fi(hi,e),fi(pi,pi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=_i(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,li(pi),li(hi),fi(hi,e)):li(pi),fi(pi,n)}var ki=o.unstable_runWithPriority,Ei=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ti=o.unstable_requestPaint,Oi=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,Ii={},Li=o.unstable_shouldYield,Di=void 0!==Ti?Ti:function(){},Ri=null,Bi=null,Fi=!1,Ui=Oi(),qi=1e4>Ui?Oi:function(){return Oi()-Ui};function zi(){switch(Ci()){case ji:return 99;case Ai:return 98;case Mi:return 97;case Pi:return 96;case Ni:return 95;default:throw Error(a(332))}}function Hi(e){switch(e){case 99:return ji;case 98:return Ai;case 97:return Mi;case 96:return Pi;case 95:return Ni;default:throw Error(a(332))}}function Wi(e,t){return e=Hi(e),ki(e,t)}function Vi(e,t,n){return e=Hi(e),Ei(e,t,n)}function Yi(e){return null===Ri?(Ri=[e],Bi=Ei(ji,Ki)):Ri.push(e),Ii}function Gi(){if(null!==Bi){var e=Bi;Bi=null,Si(e)}Ki()}function Ki(){if(!Fi&&null!==Ri){Fi=!0;var e=0;try{var t=Ri;Wi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),Ei(ji,Gi),t}finally{Fi=!1}}}function $i(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Xi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qi={current:null},Zi=null,Ji=null,eo=null;function to(){eo=Ji=Zi=null}function no(e){var t=Qi.current;li(Qi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function io(e,t){Zi=e,eo=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Pa=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===Zi)throw Error(a(308));Ji=t,Zi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function uo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.alternate;null!==n&&co(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ho(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,o.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var u=o.baseState,l=0,f=null,d=null,h=null;if(null!==c)for(var p=c;;){if((s=p.expirationTime)<r){var m={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===h?(d=h=m,f=u):h=h.next=m,s>l&&(l=s)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),mc(s,p.suspenseConfig);e:{var v=e,g=p;switch(s=t,m=n,g.tag){case 1:if("function"==typeof(v=g.payload)){u=v.call(m,u,s);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(s="function"==typeof(v=g.payload)?v.call(m,u,s):v))break e;u=i({},u,s);break e;case 2:ao=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[p]:s.push(p))}if(null===(p=p.next)||p===c){if(null===(s=o.shared.pending))break;p=a.next=s.next,s.next=c,o.baseQueue=a=s,o.shared.pending=null}}null===h?f=u:h.next=d,o.baseState=f,o.baseQueue=h,vc(l),e.expirationTime=l,e.memoizedState=u}}function po(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var mo=g.ReactCurrentBatchConfig,vo=(new r.Component).refs;function go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=rc(),i=mo.suspense;(i=uo(r=ic(r,e,i),i)).payload=t,null!=n&&(i.callback=n),lo(e,i),oc(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=rc(),i=mo.suspense;(i=uo(r=ic(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),lo(e,i),oc(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=rc(),r=mo.suspense;(r=uo(n=ic(n,e,r),r)).tag=2,null!=t&&(r.callback=t),lo(e,r),oc(e,n)}};function bo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!qr(n,r)||!qr(i,o))}function _o(e,t,n){var r=!1,i=di,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=gi(t)?mi:hi.current,o=(r=null!=(r=t.contextTypes))?vi(e,i):di),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function xo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=vo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=gi(t)?mi:hi.current,i.context=vi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var ko=Array.isArray;function Eo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===vo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function To(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Rc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Eo(e,t,n),r.return=e,r):((r=Lc(n.type,n.key,n.props,null,e.mode,r)).ref=Eo(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Lc(t.type,t.key,t.props,null,e.mode,n)).ref=Eo(e,null,t),n.return=e,n;case w:return(t=Bc(t,e.mode,n)).return=e,t}if(ko(t)||L(t))return(t=Dc(t,e.mode,n,null)).return=e,t;So(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===x?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case w:return n.key===i?l(e,t,n,r):null}if(ko(n)||L(n))return null!==i?null:f(e,t,n,r,null);So(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case w:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ko(r)||L(r))return f(t,e=e.get(n)||null,r,i,null);So(t,r)}return null}function m(i,a,s,c){for(var u=null,l=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=h(i,f,s[m],c);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===l?u=g:l.sibling=g,l=g,f=v}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],c))&&(a=o(f,a,m),null===l?u=f:l.sibling=f,l=f);return u}for(f=r(i,f);m<s.length;m++)null!==(v=p(f,i,m,s[m],c))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===l?u=v:l.sibling=v,l=v);return e&&f.forEach(function(e){return t(i,e)}),u}function v(i,s,c,u){var l=L(c);if("function"!=typeof l)throw Error(a(150));if(null==(c=l.call(c)))throw Error(a(151));for(var f=l=null,m=s,v=s=0,g=null,y=c.next();null!==m&&!y.done;v++,y=c.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===f?l=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),l;if(null===m){for(;!y.done;v++,y=c.next())null!==(y=d(i,y.value,u))&&(s=o(y,s,v),null===f?l=y:f.sibling=y,f=y);return l}for(m=r(i,m);!y.done;v++,y=c.next())null!==(y=p(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?l=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(i,e)}),l}return function(e,r,o,c){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case _:e:{for(l=o.key,u=r;null!==u;){if(u.key===l){switch(u.tag){case 7:if(o.type===x){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=Eo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Dc(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=Lc(o.type,o.key,o.props,null,e.mode,c)).ref=Eo(e,r,o),c.return=e,e=c)}return s(e);case w:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Bc(o,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Rc(o,e.mode,c)).return=e,e=r),s(e);if(ko(o))return m(e,r,o,c);if(L(o))return v(e,r,o,c);if(l&&So(e,o),void 0===o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Oo=To(!0),Co=To(!1),jo={},Ao={current:jo},Mo={current:jo},Po={current:jo};function No(e){if(e===jo)throw Error(a(174));return e}function Io(e,t){switch(fi(Po,t),fi(Mo,e),fi(Ao,jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:De(null,"");break;default:t=De(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Ao),fi(Ao,t)}function Lo(){li(Ao),li(Mo),li(Po)}function Do(e){No(Po.current);var t=No(Ao.current),n=De(t,e.type);t!==n&&(fi(Mo,e),fi(Ao,n))}function Ro(e){Mo.current===e&&(li(Ao),li(Mo))}var Bo={current:0};function Fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===vn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Uo(e,t){return{responder:e,props:t}}var qo=g.ReactCurrentDispatcher,zo=g.ReactCurrentBatchConfig,Ho=0,Wo=null,Vo=null,Yo=null,Go=!1;function Ko(){throw Error(a(321))}function $o(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,o){if(Ho=o,Wo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,qo.current=null===e||null===e.memoizedState?ba:_a,e=n(r,i),t.expirationTime===Ho){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Yo=Vo=null,t.updateQueue=null,qo.current=wa,e=n(r,i)}while(t.expirationTime===Ho)}if(qo.current=ya,t=null!==Vo&&null!==Vo.next,Ho=0,Yo=Vo=Wo=null,Go=!1,t)throw Error(a(300));return e}function Qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yo?Wo.memoizedState=Yo=e:Yo=Yo.next=e,Yo}function Zo(){if(null===Vo){var e=Wo.alternate;e=null!==e?e.memoizedState:null}else e=Vo.next;var t=null===Yo?Wo.memoizedState:Yo.next;if(null!==t)Yo=t,Vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vo=e).memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},null===Yo?Wo.memoizedState=Yo=e:Yo=Yo.next=e}return Yo}function Jo(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Zo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Vo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=s=o=null,u=i;do{var l=u.expirationTime;if(l<Ho){var f={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===c?(s=c=f,o=r):c=c.next=f,l>Wo.expirationTime&&(Wo.expirationTime=l,vc(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),mc(l,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===c?o=r:c.next=s,Fr(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Zo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Fr(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function na(e){var t=Qo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e}).dispatch=ga.bind(null,Wo,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Wo.updateQueue)?(t={lastEffect:null},Wo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ia(){return Zo().memoizedState}function oa(e,t,n,r){var i=Qo();Wo.effectTag|=e,i.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var i=Zo();r=void 0===r?null:r;var o=void 0;if(null!==Vo){var a=Vo.memoizedState;if(o=a.destroy,null!==r&&$o(r,a.deps))return void ra(t,n,o,r)}Wo.effectTag|=e,i.memoizedState=ra(1|t,n,o,r)}function sa(e,t){return oa(516,4,e,t)}function ca(e,t){return aa(516,4,e,t)}function ua(e,t){return aa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fa(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,la.bind(null,t,e),n)}function da(){}function ha(e,t){return Qo().memoizedState=[e,void 0===t?null:t],e}function pa(e,t){var n=Zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function va(e,t,n){var r=zi();Wi(98>r?98:r,function(){e(!0)}),Wi(97<r?97:r,function(){var r=zo.suspense;zo.suspense=void 0===t?null:t;try{e(!1),n()}finally{zo.suspense=r}})}function ga(e,t,n){var r=rc(),i=mo.suspense;i={expirationTime:r=ic(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Wo||null!==o&&o===Wo)Go=!0,i.expirationTime=Ho,Wo.expirationTime=Ho;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Fr(s,a))return}catch(e){}oc(e,r)}}var ya={readContext:oo,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ba={readContext:oo,useCallback:ha,useContext:oo,useEffect:sa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Qo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,Wo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Qo().memoizedState=e},useState:na,useDebugValue:da,useResponder:Uo,useDeferredValue:function(e,t){var n=na(e),r=n[0],i=n[1];return sa(function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}},[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[ha(va.bind(null,t,e),[t,e]),n]}},_a={readContext:oo,useCallback:pa,useContext:oo,useEffect:ca,useImperativeHandle:fa,useLayoutEffect:ua,useMemo:ma,useReducer:ea,useRef:ia,useState:function(){return ea(Jo)},useDebugValue:da,useResponder:Uo,useDeferredValue:function(e,t){var n=ea(Jo),r=n[0],i=n[1];return ca(function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}},[e,t]),r},useTransition:function(e){var t=ea(Jo),n=t[0];return t=t[1],[pa(va.bind(null,t,e),[t,e]),n]}},wa={readContext:oo,useCallback:pa,useContext:oo,useEffect:ca,useImperativeHandle:fa,useLayoutEffect:ua,useMemo:ma,useReducer:ta,useRef:ia,useState:function(){return ta(Jo)},useDebugValue:da,useResponder:Uo,useDeferredValue:function(e,t){var n=ta(Jo),r=n[0],i=n[1];return ca(function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}},[e,t]),r},useTransition:function(e){var t=ta(Jo),n=t[0];return t=t[1],[pa(va.bind(null,t,e),[t,e]),n]}},xa=null,ka=null,Ea=!1;function Sa(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Oa(e){if(Ea){var t=ka;if(t){var n=t;if(!Ta(e,t)){if(!(t=kn(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(xa=e);Sa(xa,n)}xa=e,ka=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,xa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function ja(e){if(e!==xa)return!1;if(!Ea)return Ca(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!_n(t,e.memoizedProps))for(t=ka;t;)Sa(e,t),t=kn(t.nextSibling);if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===pn){if(0===t){ka=kn(e.nextSibling);break e}t--}else n!==hn&&n!==vn&&n!==mn||t++}e=e.nextSibling}ka=null}}else ka=xa?kn(e.stateNode.nextSibling):null;return!0}function Aa(){ka=xa=null,Ea=!1}var Ma=g.ReactCurrentOwner,Pa=!1;function Na(e,t,n,r){t.child=null===e?Co(t,null,n,r):Oo(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=Xo(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Na(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Qa(e,t,i))}function La(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Nc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:qr)(i,r)&&e.ref===t.ref)?Qa(e,t,o):(t.effectTag|=1,(e=Ic(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,i,o){return null!==e&&qr(e.memoizedProps,r)&&e.ref===t.ref&&(Pa=!1,i<o)?(t.expirationTime=e.expirationTime,Qa(e,t,o)):Ba(e,t,n,r,o)}function Ra(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,i){var o=gi(n)?mi:hi.current;return o=vi(t,o),io(t,i),n=Xo(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Na(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Qa(e,t,i))}function Fa(e,t,n,r,i){if(gi(n)){var o=!0;wi(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),_o(t,n,r),xo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=oo(u):u=vi(t,u=gi(n)?mi:hi.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==u)&&wo(t,a,r,u),ao=!1;var d=t.memoizedState;a.state=d,ho(t,r,a,i),c=t.memoizedState,s!==r||d!==c||pi.current||ao?("function"==typeof l&&(go(t,n,l,r),c=t.memoizedState),(s=ao||bo(t,n,s,r,d,c,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,co(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Xi(t.type,s),c=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=oo(u):u=vi(t,u=gi(n)?mi:hi.current),(f="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==u)&&wo(t,a,r,u),ao=!1,c=t.memoizedState,a.state=c,ho(t,r,a,i),d=t.memoizedState,s!==r||c!==d||pi.current||ao?("function"==typeof l&&(go(t,n,l,r),d=t.memoizedState),(l=ao||bo(t,n,s,r,c,d,u))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){Ra(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&xi(t,n,!1),Qa(e,t,o);r=t.stateNode,Ma.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Na(e,t,s,o),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Io(e,t.containerInfo)}var za,Ha,Wa,Va,Ya={dehydrated:null,retryTime:0};function Ga(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Bo.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),fi(Bo,1&a),null===e){if(void 0!==o.fallback&&Oa(t),s){if(s=o.fallback,(o=Dc(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Dc(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ya,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Co(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ic(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ic(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ya,t.child=n,i}return n=Oo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Dc(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Dc(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ya,t.child=o,n}return t.memoizedState=null,t.child=Oo(t,e,o.children,n)}function Ka(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ro(e.return,t)}function $a(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Xa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Na(e,t,r.children,n),0!=(2&(r=Bo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ka(e,n);else if(19===e.tag)Ka(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fi(Bo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$a(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$a(t,!0,n,null,o,t.lastEffect);break;case"together":$a(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&vc(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Za(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gi(t.type)&&yi(),null;case 3:return Lo(),li(pi),li(hi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!ja(t)||(t.effectTag|=4),Ha(t),null;case 5:Ro(t),n=No(Po.current);var o=t.type;if(null!==e&&null!=t.stateNode)Wa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=No(Ao.current),ja(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Tn]=t,r[On]=s,o){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Gt(Xe[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":xe(r,s),Gt("invalid",r),an(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),an(n,"onChange");break;case"textarea":Ae(r,s),Gt("invalid",r),an(n,"onChange")}for(var c in nn(o,s),e=null,s)if(s.hasOwnProperty(c)){var u=s[c];"children"===c?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):W.hasOwnProperty(c)&&null!=u&&an(n,c)}switch(o){case"input":be(r),Se(r,s,!0);break;case"textarea":be(r),Pe(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Le(o)),e===on?"script"===o?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(o,{is:r.is}):(e=c.createElement(o),"select"===o&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,o),e[Tn]=t,e[On]=r,za(e,t,!1,!1),t.stateNode=e,c=rn(o,r),o){case"iframe":case"object":case"embed":Gt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Xe.length;u++)Gt(Xe[u],e);u=r;break;case"source":Gt("error",e),u=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),u=r;break;case"form":Gt("reset",e),Gt("submit",e),u=r;break;case"details":Gt("toggle",e),u=r;break;case"input":xe(e,r),u=we(e,r),Gt("invalid",e),an(n,"onChange");break;case"option":u=Oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=i({},r,{value:void 0}),Gt("invalid",e),an(n,"onChange");break;case"textarea":Ae(e,r),u=je(e,r),Gt("invalid",e),an(n,"onChange");break;default:u=r}nn(o,u);var l=u;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?en(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Fe(e,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(W.hasOwnProperty(s)?null!=f&&an(n,s):null!=f&&ve(e,s,f,c))}switch(o){case"input":be(e),Se(e,r,!1);break;case"textarea":be(e),Pe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ce(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ce(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=sn)}bn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=No(Po.current),No(Ao.current),ja(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return li(Bo),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&ja(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Bo.current)?Rs===Os&&(Rs=As):(Rs!==Os&&Rs!==As||(Rs=Ms),0!==zs&&null!==Is&&(qc(Is,Ds),zc(Is,zs)))),(n||r)&&(t.effectTag|=4),null);case 4:return Lo(),Ha(t),null;case 10:return no(t),null;case 17:return gi(t.type)&&yi(),null;case 19:if(li(Bo),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Za(r,!1);else if(Rs!==Os||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Fo(s))){for(t.effectTag|=64,Za(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return fi(Bo,1&Bo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Fo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Za(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*qi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Za(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=qi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=qi(),n.sibling=null,t=Bo.current,fi(Bo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function es(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Lo(),li(pi),li(hi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ro(e),null;case 13:return li(Bo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return li(Bo),null;case 4:return Lo(),null;case 10:return no(e),null;default:return null}}function ts(e,t){return{value:e,source:t,stack:R(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(){},Wa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,c,u=t.stateNode;switch(No(Ao.current),e=null,n){case"input":a=we(u,a),r=we(u,r),e=[];break;case"option":a=Oe(u,a),r=Oe(u,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=je(u,a),r=je(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=sn)}for(s in nn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in u=a[s])u.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(W.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var l=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&l!==u&&(null!=l||null!=u))if("style"===s)if(u){for(c in u)!u.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in l)l.hasOwnProperty(c)&&u[c]!==l[c]&&(n||(n={}),n[c]=l[c])}else n||(e||(e=[]),e.push(s,n)),n=l;else"dangerouslySetInnerHTML"===s?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(e=e||[]).push(s,l)):"children"===s?u===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(s,""+l):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(W.hasOwnProperty(s)?(null!=l&&an(o,s),e||u===l||(e=[])):(e=e||[]).push(s,l))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Va=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ns="function"==typeof WeakSet?WeakSet:Set;function rs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=R(n)),null!==n&&D(n.type),t=t.value,null!==e&&1===e.tag&&D(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function is(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Oc(e,t)}else t.current=null}function os(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ss(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&po(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}po(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function us(e,t,n){switch("function"==typeof Ac&&Ac(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Wi(97<n?97:n,function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Oc(i,e)}}e=e.next}while(e!==r)})}break;case 1:is(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Oc(e,t)}}(t,n);break;case 5:is(t);break;case 4:hs(e,t,n)}}function ls(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ls(t)}function fs(e){return 5===e.tag||3===e.tag||4===e.tag}function ds(e){e:{for(var t=e.return;null!==t;){if(fs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||fs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode,n.insertBefore(t,r)):(n=r,n.appendChild(t)),r=r._reactRootContainer,null!=r||null!==n.onclick||(n.onclick=sn));else if(4!==i&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function hs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var c=e,u=o,l=n,f=u;;)if(us(c,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===u)break e;for(;null===f.sibling;){if(null===f.return||f.return===u)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,u=o.stateNode,8===c.nodeType?c.parentNode.removeChild(u):c.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(us(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ps(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void as(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[On]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),rn(e,i),t=rn(e,r),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?en(n,c):"dangerouslySetInnerHTML"===s?Fe(n,c):"children"===s?Ue(n,c):ve(n,s,c,t)}switch(e){case"input":Ee(n,r);break;case"textarea":Me(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ce(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ce(n,!!r.multiple,r.defaultValue,!0):Ce(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ws=qi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=Jt("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ms(t);case 19:return void ms(t);case 17:return}throw Error(a(163))}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ns),t.forEach(function(t){var r=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=ic(t=rc(),e,null)),null!==(e=ac(e,t))&&cc(e)}.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var vs="function"==typeof WeakMap?WeakMap:Map;function gs(e,t,n){(n=uo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Ks=r),rs(e,t)},n}function ys(e,t,n){(n=uo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return rs(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this),rs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var bs,_s=Math.ceil,ws=g.ReactCurrentDispatcher,xs=g.ReactCurrentOwner,ks=0,Es=8,Ss=16,Ts=32,Os=0,Cs=1,js=2,As=3,Ms=4,Ps=5,Ns=ks,Is=null,Ls=null,Ds=0,Rs=Os,Bs=null,Fs=1073741823,Us=1073741823,qs=null,zs=0,Hs=!1,Ws=0,Vs=500,Ys=null,Gs=!1,Ks=null,$s=null,Xs=!1,Qs=null,Zs=90,Js=null,ec=0,tc=null,nc=0;function rc(){return(Ns&(Ss|Ts))!==ks?1073741821-(qi()/10|0):0!==nc?nc:nc=1073741821-(qi()/10|0)}function ic(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=zi();if(0==(4&t))return 99===r?1073741823:1073741822;if((Ns&Ss)!==ks)return Ds;if(null!==n)e=$i(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=$i(e,150,100);break;case 97:case 96:e=$i(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Is&&e===Ds&&--e,e}function oc(e,t){if(50<ec)throw ec=0,tc=null,Error(a(185));if(null!==(e=ac(e,t))){var n=zi();1073741823===t?(Ns&Es)!==ks&&(Ns&(Ss|Ts))===ks?uc(e):(cc(e),Ns===ks&&Gi()):cc(e),(4&Ns)===ks||98!==n&&99!==n||(null===Js?Js=new Map([[e,t]]):(void 0===(n=Js.get(e))||n>t)&&Js.set(e,t))}}function ac(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Is===i&&(vc(t),Rs===Ms&&qc(i,Ds)),zc(i,t)),i}function sc(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Uc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function cc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yi(uc.bind(null,e));else{var t=sc(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=rc();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ii&&Si(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yi(uc.bind(null,e)):Vi(r,function e(t,n){nc=0;if(n)return n=rc(),Hc(t,n),cc(t),null;var r=sc(t);if(0!==r){if(n=t.callbackNode,(Ns&(Ss|Ts))!==ks)throw Error(a(327));if(Ec(),t===Is&&r===Ds||dc(t,r),null!==Ls){var i=Ns;Ns|=Ss;for(var o=pc();;)try{yc();break}catch(e){hc(t,e)}if(to(),Ns=i,ws.current=o,Rs===Cs)throw n=Bs,dc(t,r),qc(t,r),cc(t),n;if(null===Ls)switch(o=t.finishedWork=t.current.alternate,t.finishedExpirationTime=r,i=Rs,Is=null,i){case Os:case Cs:throw Error(a(345));case js:Hc(t,2<r?2:r);break;case As:if(qc(t,r),i=t.lastSuspendedTime,r===i&&(t.nextKnownPendingLevel=wc(o)),1073741823===Fs&&10<(o=Ws+Vs-qi())){if(Hs){var s=t.lastPingedTime;if(0===s||s>=r){t.lastPingedTime=r,dc(t,r);break}}if(0!==(s=sc(t))&&s!==r)break;if(0!==i&&i!==r){t.lastPingedTime=i;break}t.timeoutHandle=wn(xc.bind(null,t),o);break}xc(t);break;case Ms:if(qc(t,r),i=t.lastSuspendedTime,r===i&&(t.nextKnownPendingLevel=wc(o)),Hs&&(0===(o=t.lastPingedTime)||o>=r)){t.lastPingedTime=r,dc(t,r);break}if(0!==(o=sc(t))&&o!==r)break;if(0!==i&&i!==r){t.lastPingedTime=i;break}if(1073741823!==Us?i=10*(1073741821-Us)-qi():1073741823===Fs?i=0:(i=10*(1073741821-Fs)-5e3,o=qi(),r=10*(1073741821-r)-o,0>(i=o-i)&&(i=0),i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*_s(i/1960))-i,r<i&&(i=r)),10<i){t.timeoutHandle=wn(xc.bind(null,t),i);break}xc(t);break;case Ps:if(1073741823!==Fs&&null!==qs){s=Fs;var c=qs;if(0>=(i=0|c.busyMinDurationMs)?i=0:(o=0|c.busyDelayMs,s=qi()-(10*(1073741821-s)-(0|c.timeoutMs||5e3)),i=s<=o?0:o+i-s),10<i){qc(t,r),t.timeoutHandle=wn(xc.bind(null,t),i);break}}xc(t);break;default:throw Error(a(329))}if(cc(t),t.callbackNode===n)return e.bind(null,t)}}return null}.bind(null,e),{timeout:10*(1073741821-t)-qi()}),e.callbackNode=t}}}function uc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Ns&(Ss|Ts))!==ks)throw Error(a(327));if(Ec(),e===Is&&t===Ds||dc(e,t),null!==Ls){var n=Ns;Ns|=Ss;for(var r=pc();;)try{gc();break}catch(t){hc(e,t)}if(to(),Ns=n,ws.current=r,Rs===Cs)throw n=Bs,dc(e,t),qc(e,t),cc(e),n;if(null!==Ls)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Is=null,xc(e),cc(e)}return null}function lc(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{(Ns=n)===ks&&Gi()}}function fc(e,t){var n=Ns;Ns&=-2,Ns|=Es;try{return e(t)}finally{(Ns=n)===ks&&Gi()}}function dc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Ls)for(n=Ls.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&yi();break;case 3:Lo(),li(pi),li(hi);break;case 5:Ro(r);break;case 4:Lo();break;case 13:case 19:li(Bo);break;case 10:no(r)}n=n.return}Is=e,Ls=Ic(e.current,null),Ds=t,Rs=Os,Bs=null,Us=Fs=1073741823,qs=null,zs=0,Hs=!1}function hc(e,t){for(;;){try{if(to(),qo.current=ya,Go)for(var n=Wo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ho=0,Yo=Vo=Wo=null,Go=!1,null===Ls||null===Ls.return)return Rs=Cs,Bs=t,Ls=null;e:{var i=e,o=Ls.return,a=Ls,s=t;if(t=Ds,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):a.memoizedState=null}var l=0!=(1&Bo.current),f=o;do{var d;if(d=13===f.tag){var h=f.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var p=f.memoizedProps;d=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!l)}}if(d){var m=f.updateQueue;if(null===m){var v=new Set;v.add(c),f.updateQueue=v}else m.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=uo(1073741823,null);g.tag=2,lo(a,g)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new vs,s=new Set,y.set(c,s)):void 0===(s=y.get(c))&&(s=new Set,y.set(c,s)),!s.has(a)){s.add(a);var b=Cc.bind(null,i,c,a);c.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((D(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+R(a))}Rs!==Ps&&(Rs=js),s=ts(s,a),f=o;do{switch(f.tag){case 3:c=s,f.effectTag|=4096,f.expirationTime=t,fo(f,gs(f,c,t));break e;case 1:c=s;var _=f.type,w=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===$s||!$s.has(w)))){f.effectTag|=4096,f.expirationTime=t,fo(f,ys(f,c,t));break e}}f=f.return}while(null!==f)}Ls=_c(Ls)}catch(e){t=e;continue}break}}function pc(){var e=ws.current;return ws.current=ya,null===e?ya:e}function mc(e,t){e<Fs&&2<e&&(Fs=e),null!==t&&e<Us&&2<e&&(Us=e,qs=t)}function vc(e){e>zs&&(zs=e)}function gc(){for(;null!==Ls;)Ls=bc(Ls)}function yc(){for(;null!==Ls&&!Li();)Ls=bc(Ls)}function bc(e){var t=bs(e.alternate,e,Ds);return e.memoizedProps=e.pendingProps,null===t&&(t=_c(e)),xs.current=null,t}function _c(e){Ls=e;do{var t=Ls.alternate;if(e=Ls.return,0==(2048&Ls.effectTag)){if(t=Ja(t,Ls,Ds),1===Ds||1!==Ls.childExpirationTime){for(var n=0,r=Ls.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ls.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ls.firstEffect),null!==Ls.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ls.firstEffect),e.lastEffect=Ls.lastEffect),1<Ls.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ls:e.firstEffect=Ls,e.lastEffect=Ls))}else{if(null!==(t=es(Ls)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ls.sibling))return t;Ls=e}while(null!==Ls);return Rs===Os&&(Rs=Ps),null}function wc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function xc(e){var t=zi();return Wi(99,function(e,t){do{Ec()}while(null!==Qs);if((Ns&(Ss|Ts))!==ks)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=wc(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Is&&(Ls=Is=null,Ds=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Ns;Ns|=Ts,xs.current=null,gn=Yt;var s=fn();if(dn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(u&&0!==u.rangeCount){c=u.anchorNode;var l=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var d=0,h=-1,p=-1,m=0,v=0,g=s,y=null;t:for(;;){for(var b;g!==c||0!==l&&3!==g.nodeType||(h=d+l),g!==f||0!==u&&3!==g.nodeType||(p=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break t;if(y===c&&++m===l&&(h=d),y===f&&++v===u&&(p=d),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}c=-1===h||-1===p?null:{start:h,end:p}}else c=null}c=c||{start:0,end:0}}else c=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:c},Yt=!1,Ys=i;do{try{kc()}catch(e){if(null===Ys)throw Error(a(330));Oc(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=i;do{try{for(s=e,c=t;null!==Ys;){var _=Ys.effectTag;if(16&_&&Ue(Ys.stateNode,""),128&_){var w=Ys.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&_){case 2:ds(Ys),Ys.effectTag&=-3;break;case 6:ds(Ys),Ys.effectTag&=-3,ps(Ys.alternate,Ys);break;case 1024:Ys.effectTag&=-1025;break;case 1028:Ys.effectTag&=-1025,ps(Ys.alternate,Ys);break;case 4:ps(Ys.alternate,Ys);break;case 8:hs(s,l=Ys,c),ls(l)}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Oc(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);if(x=yn,w=fn(),_=x.focusedElem,c=x.selectionRange,w!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==c&&dn(_)&&(w=c.start,void 0===(x=c.end)&&(x=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(x,_.value.length)):(x=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=_.textContent.length,s=Math.min(c.start,l),c=void 0===c.end?s:Math.min(c.end,l),!x.extend&&s>c&&(l=c,c=s,s=l),l=ln(_,s),f=ln(_,c),l&&f&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),s>c?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(x=w[_]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Yt=!!gn,yn=gn=null,e.current=n,Ys=i;do{try{for(_=e;null!==Ys;){var k=Ys.effectTag;if(36&k&&cs(_,Ys.alternate,Ys),128&k){w=void 0;var E=Ys.ref;if(null!==E){var S=Ys.stateNode;switch(Ys.tag){case 5:w=S;break;default:w=S}"function"==typeof E?E(w):E.current=w}}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Oc(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,Di(),Ns=o}else e.current=n;if(Xs)Xs=!1,Qs=e,Zs=t;else for(Ys=i;null!==Ys;)t=Ys.nextEffect,Ys.nextEffect=null,Ys=t;if(0===(t=e.firstPendingTime)&&($s=null),1073741823===t?e===tc?ec++:(ec=0,tc=e):ec=0,"function"==typeof jc&&jc(n.stateNode,r),cc(e),Gs)throw Gs=!1,e=Ks,Ks=null,e;return(Ns&Es)!==ks?null:(Gi(),null)}.bind(null,e,t)),null}function kc(){for(;null!==Ys;){var e=Ys.effectTag;0!=(256&e)&&os(Ys.alternate,Ys),0==(512&e)||Xs||(Xs=!0,Vi(97,function(){return Ec(),null})),Ys=Ys.nextEffect}}function Ec(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Sc)}}function Sc(){if(null===Qs)return!1;var e=Qs;if(Qs=null,(Ns&(Ss|Ts))!==ks)throw Error(a(331));var t=Ns;for(Ns|=Ts,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:as(5,n),ss(5,n)}}catch(t){if(null===e)throw Error(a(330));Oc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Ns=t,Gi(),!0}function Tc(e,t,n){lo(e,t=gs(e,t=ts(n,t),1073741823)),null!==(e=ac(e,1073741823))&&cc(e)}function Oc(e,t){if(3===e.tag)Tc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Tc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){lo(n,e=ys(n,e=ts(t,e),1073741823)),null!==(n=ac(n,1073741823))&&cc(n);break}}n=n.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Is===e&&Ds===n?Rs===Ms||Rs===As&&1073741823===Fs&&qi()-Ws<Vs?dc(e,Ds):Hs=!0:Uc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,cc(e)))}bs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||pi.current)Pa=!0;else{if(r<n){switch(Pa=!1,t.tag){case 3:qa(t),Aa();break;case 5:if(Do(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:gi(t.type)&&wi(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,fi(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ga(e,t,n):(fi(Bo,1&Bo.current),null!==(t=Qa(e,t,n))?t.sibling:null);fi(Bo,1&Bo.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Xa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),fi(Bo,Bo.current),!r)return null}return Qa(e,t,n)}Pa=!1}}else Pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=vi(t,hi.current),io(t,n),i=Xo(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;wi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&go(t,r,s,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,xo(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,Na(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===C)return 11;if(e===M)return 14}return 2}(i),e=Xi(i,e),o){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=Fa(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=La(null,t,i,Xi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Aa(),t=Qa(e,t,n);else{if((i=t.stateNode.hydrate)&&(ka=kn(t.stateNode.containerInfo.firstChild),xa=t,i=Ea=!0),i)for(n=Co(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Na(e,t,r,n),Aa();t=t.child}return t;case 5:return Do(t),null===e&&Oa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,_n(r,i)?s=null:null!==o&&_n(r,o)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Na(e,t,s,n),t=t.child),t;case 6:return null===e&&Oa(t),null;case 13:return Ga(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var c=t.type._context;if(fi(Qi,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0===(o=Fr(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!pi.current){t=Qa(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var u=c.dependencies;if(null!==u){s=c.child;for(var l=u.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&o)){1===c.tag&&((l=uo(n,null)).tag=2,lo(c,l)),c.expirationTime<n&&(c.expirationTime=n),null!==(l=c.alternate)&&l.expirationTime<n&&(l.expirationTime=n),ro(c.return,n),u.expirationTime<n&&(u.expirationTime=n);break}l=l.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Na(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.effectTag|=1,Na(e,t,r,n),t.child;case 14:return o=Xi(i=t.type,t.pendingProps),La(e,t,i,o=Xi(i.type,o),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,gi(r)?(e=!0,wi(t)):e=!1,io(t,n),_o(t,r,i),xo(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return Xa(e,t,n)}throw Error(a(156,t.tag))};var jc=null,Ac=null;function Mc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Pc(e,t,n,r){return new Mc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Dc(n.children,i,o,t);case O:s=8,i|=7;break;case k:s=8,i|=1;break;case E:return(e=Pc(12,n,t,8|i)).elementType=E,e.type=E,e.expirationTime=o,e;case j:return(e=Pc(13,n,t,i)).type=j,e.elementType=j,e.expirationTime=o,e;case A:return(e=Pc(19,n,t,i)).elementType=A,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case T:s=9;break e;case C:s=11;break e;case M:s=14;break e;case P:s=16,r=null;break e;case N:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Dc(e,t,n,r){return(e=Pc(7,e,r,t)).expirationTime=n,e}function Rc(e,t,n){return(e=Pc(6,e,null,t)).expirationTime=n,e}function Bc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Uc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function qc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function zc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Wc(e,t,n,r){var i=t.current,o=rc(),s=mo.suspense;o=ic(o,i,s);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(gi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var u=n.type;if(gi(u)){n=_i(n,u,c);break e}}n=c}else n=di;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),lo(i,t),oc(i,o),o}function Vc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Gc(e,t){Yc(e,t),(e=e.alternate)&&Yc(e,t)}function Kc(e,t,n){var r=new Fc(e,t,n=null!=n&&!0===n.hydrate),i=Pc(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,so(i),e[Cn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Tt.forEach(function(e){pt(e,t,n)}),Ot.forEach(function(e){pt(e,t,n)})}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Vc(a);s.call(e)}}Wc(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Kc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Vc(a);c.call(e)}}fc(function(){Wc(t,a,e,i)})}return Vc(a)}function Qc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Kc.prototype.render=function(e){Wc(e,this._internalRoot,null,null)},Kc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Wc(null,e,null,function(){t[Cn]=null})},mt=function(e){if(13===e.tag){var t=$i(rc(),150,100);oc(e,t),Gc(e,t)}},vt=function(e){13===e.tag&&(oc(e,3),Gc(e,3))},gt=function(e){if(13===e.tag){var t=rc();oc(e,t=ic(t,e,null)),Gc(e,t)}},K=function(e,t,n){switch(t){case"input":if(Ee(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Pn(r);if(!i)throw Error(a(90));_e(r),Ee(r,i)}}}break;case"textarea":Me(e,n);break;case"select":null!=(t=n.value)&&Ce(e,!!n.multiple,t,!1)}},ee=lc,te=function(e,t,n,r,i){var o=Ns;Ns|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{(Ns=o)===ks&&Gi()}},ne=function(){(Ns&(1|Ss|Ts))===ks&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach(function(e,t){Hc(t,e),cc(t)}),Gi()}}(),Ec())},re=function(e,t){var n=Ns;Ns|=2;try{return e(t)}finally{(Ns=n)===ks&&Gi()}};var Zc={Events:[An,Mn,Pn,Y,H,Fn,function(e){it(e,Bn)},Z,J,$t,st,Ec,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);jc=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Ac=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:jn,bundleType:0,version:"16.13.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zc,t.createPortal=Qc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Ns&(Ss|Ts))!==ks)throw Error(a(187));var n=Ns;Ns|=1;try{return Wi(99,e.bind(null,t))}finally{Ns=n,Gi()}},t.hydrate=function(e,t,n){if(!$c(t))throw Error(a(200));return Xc(null,e,t,!0,n)},t.render=function(e,t,n){if(!$c(t))throw Error(a(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!$c(e))throw Error(a(40));return!!e._reactRootContainer&&(fc(function(){Xc(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0)},t.unstable_batchedUpdates=lc,t.unstable_createPortal=function(e,t){return Qc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$c(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Xc(e,t,n,!1,r)},t.version="16.13.0"},function(e,t,n){"use strict";e.exports=n(1214)},function(e,t,n){"use strict";
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,l=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(l,0))},i=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=h.now();t.unstable_now=function(){return h.now()-g}}var y=!1,b=null,_=-1,w=5,x=0;a=function(){return t.unstable_now()>=x},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+w;try{b(!0,e)?E.postMessage(null):(y=!1,b=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,E.postMessage(null))},i=function(e,n){_=p(function(){e(t.unstable_now())},n)},o=function(){m(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var j=[],A=[],M=1,P=null,N=3,I=!1,L=!1,D=!1;function R(e){for(var t=T(A);null!==t;){if(null===t.callback)O(A);else{if(!(t.startTime<=e))break;O(A),t.sortIndex=t.expirationTime,S(j,t)}t=T(A)}}function B(e){if(D=!1,R(e),!L)if(null!==T(j))L=!0,r(F);else{var t=T(A);null!==t&&i(B,t.startTime-e)}}function F(e,n){L=!1,D&&(D=!1,o()),I=!0;var r=N;try{for(R(n),P=T(j);null!==P&&(!(P.expirationTime>n)||e&&!a());){var s=P.callback;if(null!==s){P.callback=null,N=P.priorityLevel;var c=s(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?P.callback=c:P===T(j)&&O(j),R(n)}else O(j);P=T(j)}if(null!==P)var u=!0;else{var l=T(A);null!==l&&i(B,l.startTime-n),u=!1}return u}finally{P=null,N=r,I=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||I||(L=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return T(j)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),c=s;return e={id:M++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,S(A,e),null===T(j)&&e===T(A)&&(D?o():D=!0,i(B,c-s))):(e.sortIndex=a,S(j,e),L||I||(L=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=T(j);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){var r=n(1216);e.exports=r},function(e,t,n){var r=n(1217),i=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===i||e instanceof String&&t===i.startsWith?r:t}},function(e,t,n){n(1218);var r=n(132);e.exports=r("String").startsWith},function(e,t,n){"use strict";var r,i=n(36),o=n(272).f,a=n(200),s=n(582),c=n(247),u=n(586),l=n(105),f="".startsWith,d=Math.min,h=u("startsWith");i({target:"String",proto:!0,forced:!!(l||h||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!h},{startsWith:function(e){var t=String(c(this));s(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(147),i=n(380),o=n(125)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(122),i=n(203);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){"use strict";var r=n(1223);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case c:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case h:case g:case v:case u:return e;default:return t}}case o:return t}}}function k(e){return x(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===s||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},function(e,t,n){var r=n(1226);e.exports=r},function(e,t,n){n(1227);var r=n(93);e.exports=r.Reflect.construct},function(e,t,n){var r=n(36),i=n(177),o=n(140),a=n(96),s=n(147),c=n(299),u=n(741),l=n(118),f=i("Reflect","construct"),d=l(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),h=!l(function(){f(function(){})}),p=d||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var i=n.prototype,l=c(s(i)?i:Object.prototype),p=Function.apply.call(e,l,t);return s(p)?p:l}})},function(e,t,n){var r=n(1229);e.exports=r},function(e,t,n){n(1230);var r=n(93);e.exports=r.Object.assign},function(e,t,n){var r=n(36),i=n(742);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var r=n(1232);e.exports=r},function(e,t,n){n(1233);var r=n(93).Object,i=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var r=n(36),i=n(155);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(204).f})},function(e,t,n){var r=n(1235);e.exports=r},function(e,t,n){n(1236);var r=n(93).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(36)({target:"Object",stat:!0,sham:!n(155)},{create:n(299)})},function(e,t,n){var r=n(1238);e.exports=r},function(e,t,n){n(1239);var r=n(93);e.exports=r.Object.setPrototypeOf},function(e,t,n){n(36)({target:"Object",stat:!0},{setPrototypeOf:n(465)})},function(e,t,n){var r=n(147);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(1242);n(1262),n(1263),n(1264),n(1265),n(1266),n(1267),n(1268),e.exports=r},function(e,t,n){n(743),n(592),n(593),n(1246),n(1247),n(1248),n(1249),n(746),n(1250),n(1251),n(1252),n(1253),n(1254),n(1255),n(1256),n(1257),n(1258),n(1259),n(1260),n(1261);var r=n(93);e.exports=r.Symbol},function(e,t,n){var r=n(219),i=n(594).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(596),i=n(294);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(122),i=n(745),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){n(130)("asyncIterator")},function(e,t){},function(e,t,n){n(130)("hasInstance")},function(e,t,n){n(130)("isConcatSpreadable")},function(e,t,n){n(130)("match")},function(e,t,n){n(130)("matchAll")},function(e,t,n){n(130)("replace")},function(e,t,n){n(130)("search")},function(e,t,n){n(130)("species")},function(e,t,n){n(130)("split")},function(e,t,n){n(130)("toPrimitive")},function(e,t,n){n(130)("toStringTag")},function(e,t,n){n(130)("unscopables")},function(e,t,n){var r=n(122);n(274)(r.JSON,"JSON",!0)},function(e,t){},function(e,t){},function(e,t,n){n(130)("asyncDispose")},function(e,t,n){n(130)("dispose")},function(e,t,n){n(130)("matcher")},function(e,t,n){n(130)("metadata")},function(e,t,n){n(130)("observable")},function(e,t,n){n(130)("patternMatch")},function(e,t,n){n(130)("replaceAll")},function(e,t,n){var r=n(1270);e.exports=r},function(e,t,n){n(746),n(328),n(295);var r=n(595);e.exports=r.f("iterator")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(1273);e.exports=r},function(e,t,n){n(1274);var r=n(93);e.exports=r.Object.getPrototypeOf},function(e,t,n){var r=n(36),i=n(118),o=n(199),a=n(386),s=n(750);r({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){var r=n(1276);e.exports=r},function(e,t,n){var r=n(1277),i=Array.prototype;e.exports=function(e){var t=e.concat;return e===i||e instanceof Array&&t===i.concat?r:t}},function(e,t,n){n(743);var r=n(132);e.exports=r("Array").concat},function(e,t,n){var r=n(1279);e.exports=r},function(e,t,n){var r=n(1280),i=Function.prototype;e.exports=function(e){var t=e.bind;return e===i||e instanceof Function&&t===i.bind?r:t}},function(e,t,n){n(1281);var r=n(132);e.exports=r("Function").bind},function(e,t,n){n(36)({target:"Function",proto:!0},{bind:n(741)})},function(e,t,n){var r=n(1283);e.exports=r},function(e,t,n){var r=n(1284),i=n(1286),o=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===o||e instanceof Array&&t===o.includes?r:"string"==typeof e||e===a||e instanceof String&&t===a.includes?i:t}},function(e,t,n){n(1285);var r=n(132);e.exports=r("Array").includes},function(e,t,n){"use strict";var r=n(36),i=n(588).includes,o=n(564);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){n(1287);var r=n(132);e.exports=r("String").includes},function(e,t,n){"use strict";var r=n(36),i=n(582),o=n(247);r({target:"String",proto:!0,forced:!n(586)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1289);e.exports=r},function(e,t,n){n(1290);var r=n(93);e.exports=r.Object.keys},function(e,t,n){var r=n(36),i=n(199),o=n(383);r({target:"Object",stat:!0,forced:n(118)(function(){o(1)})},{keys:function(e){return o(i(e))}})},,,function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},r(function(t,n){return new e(t,n)})}()},function(e,t){e.exports=function(e){return[e]}},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(276),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=i(this.xf["@@transducer/step"](e,t))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r={"./en-au":752,"./en-au.js":752,"./en-ca":753,"./en-ca.js":753,"./en-gb":754,"./en-gb.js":754,"./en-ie":755,"./en-ie.js":755,"./en-nz":756,"./en-nz.js":756};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=1297},function(e,t,n){var r=n(301);e.exports=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function t(e,t,n){var i,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var a=e?1:0;return!!n._items[o][a]||(t&&(n._items[o][a]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?!!r(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!r(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}return e.prototype.add=function(e){return!t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}()},function(e,t,n){var r=n(1300),i=n(1301),o=n(178),a=n(759),s=n(84),c=n(602);e.exports=function e(t,n,u,l){if(a(t,n))return!0;if(c(t)!==c(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(c(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===i(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(r(t.entries()),r(n.entries()),u,l))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=s(t);if(f.length!==s(n).length)return!1;for(var d=u.length-1;d>=0;){if(u[d]===t)return l[d]===n;d-=1}for(u.push(t),l.push(n),d=f.length-1;d>=0;){var h=f[d];if(!o(h,n)||!e(n[h],t[h],u,l))return!1;d-=1}return u.pop(),l.pop(),!0}},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t,n){var r=n(1303);e.exports=r},function(e,t,n){n(1304);var r=n(93);e.exports=r.Array.isArray},function(e,t,n){n(36)({target:"Array",stat:!0},{isArray:n(385)})},function(e,t,n){n(295),n(328);var r=n(387);e.exports=r},function(e,t,n){var r=n(1307);e.exports=r},function(e,t,n){n(328),n(1308);var r=n(93);e.exports=r.Array.from},function(e,t,n){var r=n(36),i=n(760);r({target:"Array",stat:!0,forced:!n(763)(function(e){Array.from(e)})},{from:i})},function(e,t,n){var r=n(96),i=n(761);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},function(e,t,n){var r=n(1311);e.exports=r},function(e,t,n){var r=n(1312),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){n(1313);var r=n(132);e.exports=r("Array").slice},function(e,t,n){"use strict";var r=n(36),i=n(147),o=n(385),a=n(589),s=n(200),c=n(219),u=n(466),l=n(125),f=n(467)("slice"),d=l("species"),h=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,l,f=c(this),m=s(f.length),v=a(e,m),g=a(void 0===t?m:t,m);if(o(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(f,v,g);for(r=new(void 0===n?Array:n)(p(g-v,0)),l=0;v<g;v++,l++)v in f&&u(r,l,f[v]);return r.length=l,r}})},function(e,t,n){var r=n(603);e.exports=function(e,t){return r(e<t.length?t.length-e:0,t)}},function(e,t,n){var r=n(18),i=n(276),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?i(n):n},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},r(function(t,n){return new e(t,n)})}()},function(e,t){e.exports=function(e,t){return function(){var n=this;return e.apply(n,arguments).then(function(e){return t.call(n,e)})}}},function(e,t,n){"use strict";var r=n(262),i=n.n(r),o=n(95),a=new i.a(window.location.hash.substr(1)),s=a.get("_course_token");s&&(a.delete("_course_token"),window.history.replaceState(null,null,"#".concat(a.toString())));navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(e){var t=e.data,n=t.method,r=t.id;if("2.0"===t.jsonrpc&&"getBearerToken"===n){var i=s||Object(o.d)();navigator.serviceWorker.ready.then(function(e){e.active.postMessage({id:r,jsonrpc:"2.0",method:n,result:{token:i}})})}})},function(e,t,n){var r=n(1320);e.exports=r},function(e,t,n){var r=n(1321);e.exports=r},function(e,t,n){n(604);var r=n(93);e.exports=r.URLSearchParams},function(e,t,n){"use strict";
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(o),c=i.decode||r,u=0;u<a.length;u++){var l=a[u],f=l.indexOf("=");if(!(f<0)){var d=l.substr(0,f).trim(),h=l.substr(++f,l.length).trim();'"'==h[0]&&(h=h.slice(1,-1)),null==n[d]&&(n[d]=s(h,c))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var s=o(t);if(s&&!a.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=r.maxAge){var u=r.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");c+="; Max-Age="+Math.floor(u)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(c+="; HttpOnly");r.secure&&(c+="; Secure");if(r.sameSite){var l="string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return c};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){var r=n(1324);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,a=0,s=0,c="";o=t.charAt(s++);~o&&(i=a%4?64*i+o:o,a++%4)?c+=String.fromCharCode(255&i>>(-2*a&6)):0)o=n.indexOf(o);return c}},function(e,t,n){var r=n(191),i=n(607),o=n(767),a=r(function(e){return!!i(e)||!!e&&("object"==typeof e&&(!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=a},function(e,t,n){var r=n(390),i=n(470);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,c=t,u=0;u<n.length||s<arguments.length;){var l;u<n.length&&(!i(n[u])||s>=arguments.length)?l=n[u]:(l=arguments[s],s+=1),a[u]=l,i(l)||(c-=1),u+=1}return c<=0?o.apply(this,a):r(c,e(t,a,o))}}},function(e,t,n){var r=n(1328);e.exports=r},function(e,t,n){var r=n(1329),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||e instanceof Array&&t===i.map?r:t}},function(e,t,n){n(1330);var r=n(132);e.exports=r("Array").map},function(e,t,n){"use strict";var r=n(36),i=n(324).map;r({target:"Array",proto:!0,forced:!n(467)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},,function(e,t){e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(301),i=n(468),o=n(1334),a=n(1335),s=n(84),c=n(136);e.exports=function e(t,n){var u=function(i){var o=n.concat([t]);return r(i,o)?"<Circular>":e(i,o)},l=function(e,t){return i(function(t){return o(t)+": "+u(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+i(u,t).join(", ")+"))";case"[object Array]":return"["+i(u,t).concat(l(t,c(function(e){return/^\d+$/.test(e)},s(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+u(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?u(NaN):o(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+u(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+u(t.valueOf())+")":o(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var f=t.toString();if("[object Object]"!==f)return f}return"{"+l(t,s(t)).join(", ")+"}"}}},function(e,t){e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(e,t){var n;e.exports=(n=function(e){return(e<10?"0":"")+e},"function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"})},function(e,t,n){var r=n(607),i=n(1337);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(i(a))return t.apply(null,o)(a)}return n.apply(this,arguments)}}},function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},function(e,t,n){var r=n(179),i=n(1339),o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),a=r(function(e,t){return new o(e,t)});e.exports=a},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){var r=n(776),i=Object.prototype.toString;e.exports=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return r("callee",e)}}},function(e,t,n){var r=n(777),i=n(1342),o=n(1343),a=n(330),s=n(1344),c=n(471),u=n(1346),l=n(1347),f=n(1348),d=o(function(e,t){return typeof t===e}),h=function(e){return l(c(p),Math.max,0,f(e))},p=i([[d("object"),h],[d("function"),s],[u,r(0)]]);e.exports=o(function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=h(t),o=a(i+1,e);return 0===n.length?0===i?function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return o.apply(void 0,[t].concat(e))}:o(t):o.apply(void 0,[t].concat(n))})},function(e,t,n){var r=n(390),i=n(191),o=n(471),a=n(778),s=n(565),c=i(function(e){var t=s(a,0,o(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})});e.exports=c},function(e,t,n){var r=n(191),i=n(330),o=r(function(e){return i(e.length,e)});e.exports=o},function(e,t,n){var r=n(191),i=n(1345),o=r(function(e){return null!=e&&i(e.length)?e.length:NaN});e.exports=o},function(e,t){e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(777)(!0);e.exports=r},function(e,t,n){var r=n(606),i=n(768),o=n(330)(4,function(e,t,n,o){return r(e("function"==typeof t?i(t):t),n,o)});e.exports=o},function(e,t,n){var r=n(191),i=n(775),o=r(function(e){for(var t=i(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r});e.exports=o},function(e,t,n){var r=n(1350);e.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,n){var r=n(393),i=/\s+/g,o=n(781),a=n(1355);function s(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=c),this._callback=e,this._options=t||c,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var n in t="tag"===e.type?Object.create(a):Object.create(o),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var n={type:"script"===e?r.Script:"style"===e?r.Style:r.Tag,name:e,attribs:t,children:[]},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)},s.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===r.Text)n?t.data=(t.data+e).replace(i," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===r.Text)n?t.data=(t.data+e).replace(i," "):t.data+=e;else{n&&(e=e.replace(i," "));var o=this._createDomElement({data:e,type:r.Text});this._addDomElement(o)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)t.data+=e;else{var n={data:e,type:r.Comment},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:r.Text}],type:r.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var n=this._createDomElement({name:e,data:t,type:r.Directive});this._addDomElement(n)},e.exports=s},function(e,t,n){var r=n(781),i=e.exports=Object.create(r),o={tagName:"name"};Object.keys(o).forEach(function(e){var t=o[e];Object.defineProperty(i,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){var r=n(392),i=r.DomHandler,o=r.DomUtils;function a(e,t){this.init(e,t)}function s(e,t){return o.getElementsByTagName(e,t,!0)}function c(e,t){return o.getElementsByTagName(e,t,!0,1)[0]}function u(e,t,n){return o.getText(o.getElementsByTagName(e,t,n,1)).trim()}function l(e,t,n,r,i){var o=u(n,r,i);o&&(e[t]=o)}n(221)(a,i),a.prototype.init=i;var f=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};a.prototype.onend=function(){var e,t,n={},r=c(f,this.dom);r&&("feed"===r.name?(t=r.children,n.type="atom",l(n,"id","id",t),l(n,"title","title",t),(e=c("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),l(n,"description","subtitle",t),(e=u("updated",t))&&(n.updated=new Date(e)),l(n,"author","email",t,!0),n.items=s("entry",t).map(function(e){var t,n={};return l(n,"id","id",e=e.children),l(n,"title","title",e),(t=c("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=u("summary",e)||u("content",e))&&(n.description=t),(t=u("updated",e))&&(n.pubDate=new Date(t)),n})):(t=c("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",l(n,"title","title",t),l(n,"link","link",t),l(n,"description","description",t),(e=u("lastBuildDate",t))&&(n.updated=new Date(e)),l(n,"author","managingEditor",t,!0),n.items=s("item",r.children).map(function(e){var t,n={};return l(n,"id","guid",e=e.children),l(n,"title","title",e),l(n,"link","link",e),l(n,"description","description",e),(t=u("pubDate",e))&&(n.pubDate=new Date(t)),n}))),this.dom=n,i.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},e.exports=a},function(e,t,n){e.exports=i;var r=n(782);function i(e){r.call(this,new o(this),e)}function o(e){this.scope=e}n(221)(i,r),i.prototype.readable=!0;var a=n(392).EVENTS;Object.keys(a).forEach(function(e){if(0===a[e])o.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===a[e])o.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==a[e])throw Error("wrong number of arguments!");o.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}})},function(e,t,n){e.exports=i;var r=n(339).EventEmitter;function i(){r.call(this)}n(221)(i,r),i.Readable=n(608),i.Writable=n(1367),i.Duplex=n(1368),i.Transform=n(1369),i.PassThrough=n(1370),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-u(e)},t.toByteArray=function(e){var t,n,r,a,s,c=e.length;a=u(e),s=new o(3*c/4-a),n=a>0?c-4:c;var l=0;for(t=0;t<n;t+=4)r=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],s[l++]=r>>16&255,s[l++]=r>>8&255,s[l++]=255&r;2===a?(r=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[l++]=255&r):1===a&&(r=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[l++]=r>>8&255,s[l++]=255&r);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o="",a=[],s=0,c=n-i;s<c;s+=16383)a.push(l(e,s,s+16383>c?c:s+16383));1===i?(t=e[n-1],o+=r[t>>2],o+=r[t<<4&63],o+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],o+=r[t>>10],o+=r[t>>4&63],o+=r[t<<2&63],o+="=");return a.push(o),a.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16)+(e[s+1]<<8)+e[s+2],a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(473).Buffer;e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}()},function(e,t,n){var r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(1364),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[c]=i,r(c),c++},d.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(99),n(277))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(99))},function(e,t,n){"use strict";e.exports=o;var r=n(787),i=n(394);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(221),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(609)},function(e,t,n){e.exports=n(302)},function(e,t,n){e.exports=n(608).Transform},function(e,t,n){e.exports=n(608).PassThrough},function(e,t){},function(e,t,n){function r(e){this._cbs=e||{}}e.exports=r;var i=n(392).EVENTS;Object.keys(i).forEach(function(e){if(0===i[e])e="on"+e,r.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,r.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else{if(2!==i[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this._cbs[e]&&this._cbs[e](t,n)}}})},function(e,t,n){var r=e.exports;[n(1374),n(1382),n(1383),n(1384),n(1385),n(1386)].forEach(function(e){Object.keys(e).forEach(function(t){r[t]=e[t].bind(r)})})},function(e,t,n){var r=n(393),i=n(1375),o=r.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map(function(e){return i(e,t)}).join(""):""},getOuterHTML:i,getText:function e(t){if(Array.isArray(t))return t.map(e).join("");if(o(t))return"br"===t.name?"\n":e(t.children);if(t.type===r.CDATA)return e(t.children);if(t.type===r.Text)return t.data;return""}}},function(e,t,n){var r=n(1376),i=n(1377),o=n(1381);o.elementNames.__proto__=null,o.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},c=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",i=0;i<e.length;i++){var o=e[i];"root"===o.type?n+=c(o.children,t):r.isTag(o)?n+=l(o,t):o.type===r.Directive?n+=f(o):o.type===r.Comment?n+=p(o):o.type===r.CDATA?n+=h(o):n+=d(o,t)}return n},u=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function l(e,t){"foreign"===t.xmlMode&&(e.name=o.elementNames[e.name]||e.name,e.parent&&u.indexOf(e.parent.name)>=0&&(t=Object.assign({},t,{xmlMode:!1}))),!t.xmlMode&&["svg","math"].indexOf(e.name)>=0&&(t=Object.assign({},t,{xmlMode:"foreign"}));var n="<"+e.name,r=function(e,t){if(e){var n,r="";for(var a in e)n=e[a],r&&(r+=" "),"foreign"===t.xmlMode&&(a=o.attributeNames[a]||a),r+=a,(null!==n&&""!==n||t.xmlMode)&&(r+='="'+(t.decodeEntities?i.encodeXML(n):n.replace(/\"/g,"""))+'"');return r}}(e.attribs,t);return r&&(n+=" "+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=c(e.children,t)),s[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function f(e){return"<"+e.data+">"}function d(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in a||(n=i.encodeXML(n)),n}function h(e){return"<![CDATA["+e.children[0].data+"]]>"}function p(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(788),i=n(791);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=n(791);t.encodeXML=o.encodeXML,t.encodeHTML=o.encodeHTML,t.escape=o.escape,t.encodeHTML4=o.encodeHTML,t.encodeHTML5=o.encodeHTML;var a=n(788);t.decodeXML=a.decodeXML,t.decodeHTML=a.decodeHTML,t.decodeHTMLStrict=a.decodeHTMLStrict,t.decodeHTML4=a.decodeHTML,t.decodeHTML5=a.decodeHTML,t.decodeHTML4Strict=a.decodeHTMLStrict,t.decodeHTML5Strict=a.decodeHTMLStrict,t.decodeXMLStrict=a.decodeXML},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(1380));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e){e.exports={elementNames:{altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},attributeNames:{definitionurl:"definitionURL",attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"}}},function(e,t){var n=t.getChildren=function(e){return e.children},r=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=r(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){var r=n(393).isTag;function i(e,t,n,r){for(var o,a=[],s=0,c=t.length;s<c&&!(e(t[s])&&(a.push(t[s]),--r<=0))&&(o=t[s].children,!(n&&o&&o.length>0&&(o=i(e,o,n,r),a=a.concat(o),(r-=o.length)<=0)));s++);return a}e.exports={filter:function(e,t,n,r){Array.isArray(t)||(t=[t]);"number"==typeof r&&isFinite(r)||(r=1/0);return i(e,t,!1!==n,r)},find:i,findOneChild:function(e,t){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){var i=null;for(var o=0,a=n.length;o<a&&!i;o++)r(n[o])&&(t(n[o])?i=n[o]:n[o].children.length>0&&(i=e(t,n[o].children)));return i},existsOne:function e(t,n){for(var i=0,o=n.length;i<o;i++)if(r(n[i])&&(t(n[i])||n[i].children.length>0&&e(t,n[i].children)))return!0;return!1},findAll:function(e,t){var n=[],i=t.slice();for(;i.length;){var o=i.shift();r(o)&&(o.children&&o.children.length>0&&i.unshift.apply(i,o.children),e(o)&&n.push(o))}return n}}},function(e,t,n){var r=n(393),i=t.isTag=r.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!i(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(i(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var o={tag_name:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.name)}:"*"===e?i:function(t){return i(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!i(t)&&e(t.data)}:function(t){return!i(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,r){var i=Object.keys(e).map(function(t){var n=e[t];return t in o?o[t](n):a(t,n)});return 0===i.length?[]:this.filter(i.reduce(s),t,n,r)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,r){return this.filter(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return this.filter(o.tag_type(e),t,n,r)}},function(e,t){t.removeSubsets=function(e){for(var t,n,r,i=e.length;--i>-1;){for(t=n=e[i],e[i]=null,r=!0;n;){if(e.indexOf(n)>-1){r=!1,e.splice(i,1);break}n=n.parent}r&&(e[i]=t)}return e};var n=1,r=2,i=4,o=8,a=16,s=t.compareDocumentPosition=function(e,t){var s,c,u,l,f,d,h=[],p=[];if(e===t)return 0;for(s=e;s;)h.unshift(s),s=s.parent;for(s=t;s;)p.unshift(s),s=s.parent;for(d=0;h[d]===p[d];)d++;return 0===d?n:(u=(c=h[d-1]).children,l=h[d],f=p[d],u.indexOf(l)>u.indexOf(f)?c===t?i|a:i:c===e?r|o:r)};t.uniqueSort=function(e){var t,n,o=e.length;for(e=e.slice();--o>-1;)t=e[o],(n=e.indexOf(t))>-1&&n<o&&e.splice(o,1);return e.sort(function(e,t){var n=s(e,t);return n&r?-1:n&i?1:0}),e}},function(e,t,n){function r(e){this._cbs=e||{},this.events=[]}e.exports=r;var i=n(392).EVENTS;Object.keys(i).forEach(function(e){if(0===i[e])e="on"+e,r.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,r.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==i[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}}),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var n=this.events[e].length;1===n?this._cbs[this.events[e][0]]():2===n?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){(function(t){var n=1/0,r="[object Symbol]",i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source),a="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")(),u=Object.prototype.toString,l=c.Symbol,f=l?l.prototype:void 0,d=f?f.toString:void 0;function h(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&u.call(e)==r}(e))return d?d.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}e.exports=function(e){var t;return(e=null==(t=e)?"":h(t))&&o.test(e)?e.replace(i,"\\$&"):e}}).call(this,n(99))},function(e,t,n){(function(e,n){var r=200,i="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",s="[object Boolean]",c="[object Date]",u="[object Function]",l="[object GeneratorFunction]",f="[object Map]",d="[object Number]",h="[object Object]",p="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",O="[object Uint16Array]",C="[object Uint32Array]",j=/\w*$/,A=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,P={};P[a]=P["[object Array]"]=P[y]=P[b]=P[s]=P[c]=P[_]=P[w]=P[x]=P[k]=P[E]=P[f]=P[d]=P[h]=P[p]=P[m]=P[v]=P[g]=P[S]=P[T]=P[O]=P[C]=!0,P["[object Error]"]=P[u]=P["[object WeakMap]"]=!1;var N="object"==typeof e&&e&&e.Object===Object&&e,I="object"==typeof self&&self&&self.Object===Object&&self,L=N||I||Function("return this")(),D=t&&!t.nodeType&&t,R=D&&"object"==typeof n&&n&&!n.nodeType&&n,B=R&&R.exports===D;function F(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function q(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Y,G=Array.prototype,K=Function.prototype,$=Object.prototype,X=L["__core-js_shared__"],Q=(Y=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Z=K.toString,J=$.hasOwnProperty,ee=$.toString,te=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=B?L.Buffer:void 0,re=L.Symbol,ie=L.Uint8Array,oe=W(Object.getPrototypeOf,Object),ae=Object.create,se=$.propertyIsEnumerable,ce=G.splice,ue=Object.getOwnPropertySymbols,le=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Re(L,"DataView"),he=Re(L,"Map"),pe=Re(L,"Promise"),me=Re(L,"Set"),ve=Re(L,"WeakMap"),ge=Re(Object,"create"),ye=ze(de),be=ze(he),_e=ze(pe),we=ze(me),xe=ze(ve),ke=re?re.prototype:void 0,Ee=ke?ke.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){this.__data__=new Te(e)}function je(e,t){var n=We(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&J.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==a)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!J.call(e,o)||i&&("length"==o||Ue(o,r))||n.push(o);return n}function Ae(e,t,n){var r=e[t];J.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Me(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Pe(e,t,n,r,i,o,A){var M;if(r&&(M=o?r(e,i,o,A):r(e)),void 0!==M)return M;if(!Ke(e))return e;var N=We(e);if(N){if(M=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&J.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,M)}else{var I=Fe(e),L=I==u||I==l;if(Ye(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(I==h||I==a||L&&!o){if(z(e))return o?e:{};if(M=function(e){return"function"!=typeof e.constructor||qe(e)?{}:(t=oe(e),Ke(t)?ae(t):{});var t}(L?{}:e),!t)return function(e,t){return Le(e,Be(e),t)}(e,function(e,t){return e&&Le(t,$e(t),e)}(M,e))}else{if(!P[I])return o?e:{};M=function(e,t,n,r){var i=e.constructor;switch(t){case y:return Ie(e);case s:case c:return new i(+e);case b:return function(e,t){var n=t?Ie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case _:case w:case x:case k:case E:case S:case T:case O:case C:return function(e,t){var n=t?Ie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case f:return function(e,t,n){return q(t?n(H(e),!0):H(e),F,new e.constructor)}(e,r,n);case d:case v:return new i(e);case p:return(u=new(a=e).constructor(a.source,j.exec(a))).lastIndex=a.lastIndex,u;case m:return function(e,t,n){return q(t?n(V(e),!0):V(e),U,new e.constructor)}(e,r,n);case g:return o=e,Ee?Object(Ee.call(o)):{}}var o;var a,u}(e,I,Pe,t)}}A||(A=new Ce);var D=A.get(e);if(D)return D;if(A.set(e,M),!N)var R=n?function(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,$e,Be)}(e):$e(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,function(i,o){R&&(i=e[o=i]),Ae(M,o,Pe(i,t,n,r,o,e,A))}),M}function Ne(e){return!(!Ke(e)||(t=e,Q&&Q in t))&&(Ge(e)||z(e)?te:A).test(ze(e));var t}function Ie(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;Ae(n,a,void 0===s?e[a]:s)}return n}function De(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(n)?n:void 0}Se.prototype.clear=function(){this.__data__=ge?ge(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===i?void 0:n}return J.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:J.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?i:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0||(n==t.length-1?t.pop():ce.call(t,n,1),0))},Te.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Me(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Se,map:new(he||Te),string:new Se}},Oe.prototype.delete=function(e){return De(this,e).delete(e)},Oe.prototype.get=function(e){return De(this,e).get(e)},Oe.prototype.has=function(e){return De(this,e).has(e)},Oe.prototype.set=function(e,t){return De(this,e).set(e,t),this},Ce.prototype.clear=function(){this.__data__=new Te},Ce.prototype.delete=function(e){return this.__data__.delete(e)},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var i=n.__data__;if(!he||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Oe(i)}return n.set(e,t),this};var Be=ue?W(ue,Object):function(){return[]},Fe=function(e){return ee.call(e)};function Ue(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$)}function ze(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(de&&Fe(new de(new ArrayBuffer(1)))!=b||he&&Fe(new he)!=f||pe&&"[object Promise]"!=Fe(pe.resolve())||me&&Fe(new me)!=m||ve&&"[object WeakMap]"!=Fe(new ve))&&(Fe=function(e){var t=ee.call(e),n=t==h?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case ye:return b;case be:return f;case _e:return"[object Promise]";case we:return m;case xe:return"[object WeakMap]"}return t});var We=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Ge(e)}var Ye=le||function(){return!1};function Ge(e){var t=Ke(e)?ee.call(e):"";return t==u||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $e(e){return Ve(e)?je(e):function(e){if(!qe(e))return fe(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return Pe(e,!0,!0)}}).call(this,n(99),n(248)(e))},function(e,t,n){(function(e,n){var r=200,i="__lodash_hash_undefined__",o=800,a=16,s=9007199254740991,c="[object Arguments]",u="[object AsyncFunction]",l="[object Function]",f="[object GeneratorFunction]",d="[object Null]",h="[object Object]",p="[object Proxy]",m="[object Undefined]",v=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[c]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[l]=y["[object Map]"]=y["[object Number]"]=y[h]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var b="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,w=b||_||Function("return this")(),x=t&&!t.nodeType&&t,k=x&&"object"==typeof n&&n&&!n.nodeType&&n,E=k&&k.exports===x,S=E&&b.process,T=function(){try{var e=k&&k.require&&k.require("util").types;return e||S&&S.binding&&S.binding("util")}catch(e){}}(),O=T&&T.isTypedArray;var C,j,A,M=Array.prototype,P=Function.prototype,N=Object.prototype,I=w["__core-js_shared__"],L=P.toString,D=N.hasOwnProperty,R=(C=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",B=N.toString,F=L.call(Object),U=RegExp("^"+L.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=E?w.Buffer:void 0,z=w.Symbol,H=w.Uint8Array,W=q?q.allocUnsafe:void 0,V=(j=Object.getPrototypeOf,A=Object,function(e){return j(A(e))}),Y=Object.create,G=N.propertyIsEnumerable,K=M.splice,$=z?z.toStringTag:void 0,X=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=q?q.isBuffer:void 0,Z=Math.max,J=Date.now,ee=we(w,"Map"),te=we(Object,"create"),ne=function(){function e(){}return function(t){if(!Ne(t))return{};if(Y)return Y(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function re(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])}}function ie(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])}}function oe(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])}}function ae(e){var t=this.__data__=new ie(e);this.size=t.size}function se(e,t){var n=Ce(e),r=!n&&Oe(e),i=!n&&!r&&Ae(e),o=!n&&!r&&!i&&Le(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var u in e)!t&&!D.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||xe(u,c))||s.push(u);return s}function ce(e,t,n){(void 0===n||Te(e[t],n))&&(void 0!==n||t in e)||fe(e,t,n)}function ue(e,t,n){var r=e[t];D.call(e,t)&&Te(r,n)&&(void 0!==n||t in e)||fe(e,t,n)}function le(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function fe(e,t,n){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}re.prototype.clear=function(){this.__data__=te?te(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(te){var n=t[e];return n===i?void 0:n}return D.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return te?void 0!==t[e]:D.call(t,e)},re.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=te&&void 0===t?i:t,this},ie.prototype.clear=function(){this.__data__=[],this.size=0},ie.prototype.delete=function(e){var t=this.__data__,n=le(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},ie.prototype.get=function(e){var t=this.__data__,n=le(t,e);return n<0?void 0:t[n][1]},ie.prototype.has=function(e){return le(this.__data__,e)>-1},ie.prototype.set=function(e,t){var n=this.__data__,r=le(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(ee||ie),string:new re}},oe.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return _e(this,e).get(e)},oe.prototype.has=function(e){return _e(this,e).has(e)},oe.prototype.set=function(e,t){var n=_e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ae.prototype.clear=function(){this.__data__=new ie,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ie){var i=n.__data__;if(!ee||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(i)}return n.set(e,t),this.size=n.size,this};var de,he=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[de?a:++r];if(!1===t(i[s],s,i))break}return e};function pe(e){return null==e?void 0===e?m:d:$&&$ in Object(e)?function(e){var t=D.call(e,$),n=e[$];try{e[$]=void 0;var r=!0}catch(e){}var i=B.call(e);r&&(t?e[$]=n:delete e[$]);return i}(e):function(e){return B.call(e)}(e)}function me(e){return Ie(e)&&pe(e)==c}function ve(e){return!(!Ne(e)||(t=e,R&&R in t))&&(Me(e)?U:v).test(function(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function ge(e){if(!Ne(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ke(e),n=[];for(var r in e)("constructor"!=r||!t&&D.call(e,r))&&n.push(r);return n}function ye(e,t,n,r,i){e!==t&&he(t,function(o,a){if(i||(i=new ae),Ne(o))!function(e,t,n,r,i,o,a){var s=Ee(e,n),c=Ee(t,n),u=a.get(c);if(u)return void ce(e,n,u);var l=o?o(s,c,n+"",e,t,a):void 0,f=void 0===l;if(f){var d=Ce(c),p=!d&&Ae(c),m=!d&&!p&&Le(c);l=c,d||p||m?Ce(s)?l=s:Ie(_=s)&&je(_)?l=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):p?(f=!1,l=function(e,t){if(t)return e.slice();var n=e.length,r=W?W(n):new e.constructor(n);return e.copy(r),r}(c,!0)):m?(f=!1,v=c,g=!0?(y=v.buffer,b=new y.constructor(y.byteLength),new H(b).set(new H(y)),b):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Ie(e)||pe(e)!=h)return!1;var t=V(e);if(null===t)return!0;var n=D.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&L.call(n)==F}(c)||Oe(c)?(l=s,Oe(s)?l=function(e){return function(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?fe(n,s,c):ue(n,s,c)}return n}(e,De(e))}(s):Ne(s)&&!Me(s)||(l=function(e){return"function"!=typeof e.constructor||ke(e)?{}:ne(V(e))}(c))):f=!1}var v,g,y,b;var _;f&&(a.set(c,l),i(l,c,r,o,a),a.delete(c));ce(e,n,l)}(e,t,a,n,ye,r,i);else{var s=r?r(Ee(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ce(e,a,s)}},De)}function be(e,t){return Se(function(e,t,n){return t=Z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Z(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Fe),e+"")}function _e(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function we(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ve(n)?n:void 0}function xe(e,t){var n=typeof e;return!!(t=null==t?s:t)&&("number"==n||"symbol"!=n&&g.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||N)}function Ee(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Se=function(e){var t=0,n=0;return function(){var r=J(),i=a-(r-n);if(n=r,i>0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Fe);function Te(e,t){return e===t||e!=e&&t!=t}var Oe=me(function(){return arguments}())?me:function(e){return Ie(e)&&D.call(e,"callee")&&!G.call(e,"callee")},Ce=Array.isArray;function je(e){return null!=e&&Pe(e.length)&&!Me(e)}var Ae=Q||function(){return!1};function Me(e){if(!Ne(e))return!1;var t=pe(e);return t==l||t==f||t==u||t==p}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var Le=O?function(e){return function(t){return e(t)}}(O):function(e){return Ie(e)&&Pe(e.length)&&!!y[pe(e)]};function De(e){return je(e)?se(e,!0):ge(e)}var Re,Be=(Re=function(e,t,n,r){ye(e,t,n,r)},be(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Re.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!Ne(n))return!1;var r=typeof t;return!!("number"==r?je(n)&&xe(t,n.length):"string"==r&&t in n)&&Te(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&Re(e,a,n,i)}return e}));function Fe(e){return e}n.exports=Be}).call(this,n(99),n(248)(e))},function(e,t,n){"use strict";var r=n(1393),i=n(1394),o=/^\d+$/;t.parse=function(e){return(t=e.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){if(0===n)return t.url=e;var i=e.substring(0,e.length-1),a=e[e.length-1],s=parseInt(i,10),c=parseFloat(i);if("w"===a&&o.test(i))t.width=s;else if("h"===a&&o.test(i))t.height=s;else{if("x"!==a||r(c))throw new Error("Invalid srcset descriptor: "+e+".");t.density=c}}),t})).sort().filter(function(e,n){return JSON.stringify(e)!==JSON.stringify(t[n-1])});var t},t.stringify=function(e){return i(e.map(function(e){if(!e.url)throw new Error("URL is required.");var t=[e.url];return e.width&&t.push(e.width+"w"),e.height&&t.push(e.height+"h"),e.density&&t.push(e.density+"x"),t.join(" ")})).join(", ")}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";(function(t){var n;"Set"in t?"function"==typeof Set.prototype.forEach&&(n=!1,new Set([!0]).forEach(function(e){n=e}),!0===n)?e.exports=function(e){var t=[];return new Set(e).forEach(function(e){t.push(e)}),t}:e.exports=function(e){var t=new Set;return e.filter(function(e){return!t.has(e)&&(t.add(e),!0)})}:e.exports=function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}}).call(this,n(99))},function(e,t,n){"use strict";t.__esModule=!0;var r=h(n(611)),i=h(n(802)),o=h(n(614)),a=h(n(616)),s=h(n(474)),c=h(n(1410)),u=h(n(615)),l=h(n(804)),f=h(n(475)),d=h(n(618));function h(e){return e&&e.__esModule?e:{default:e}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new i.default(t)}p.plugin=function(e,t){var n=function(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new i.default).version,n},r=void 0;return Object.defineProperty(n,"postcss",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return p([n(r)]).process(e,t)},n},p.stringify=o.default,p.parse=u.default,p.vendor=c.default,p.list=l.default,p.comment=function(e){return new a.default(e)},p.atRule=function(e){return new s.default(e)},p.decl=function(e){return new r.default(e)},p.rule=function(e){return new f.default(e)},p.root=function(e){return new d.default(e)},t.default=p,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(793)),i=a(n(794)),o=a(n(795));function a(e){return e&&e.__esModule?e:{default:e}}var s={brackets:r.default.cyan,"at-word":r.default.cyan,call:r.default.cyan,comment:r.default.gray,string:r.default.green,class:r.default.yellow,hash:r.default.magenta,"(":r.default.cyan,")":r.default.cyan,"{":r.default.yellow,"}":r.default.yellow,"[":r.default.yellow,"]":r.default.yellow,":":r.default.yellow,";":r.default.yellow};t.default=function(e){for(var t=(0,i.default)(new o.default(e),{ignoreErrors:!0}),n="",r=function(){var e=t.nextToken(),r=s[function(e,t){var n=e[0],r=e[1];if("word"===n){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!t.endOfFile()){var i=t.nextToken();if(t.back(i),"brackets"===i[0]||"("===i[0])return"call"}return n}(e,t)];n+=r?e[1].split(/\r?\n/).map(function(e){return r(e)}).join("\n"):e[1]};!t.endOfFile();)r();return n},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=c(n(796)),a=c(n(613)),s=c(n(1405));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=n.map?n.map.prev:void 0,i=this.loadMap(n.from,r);i&&(this.text=i)}return e.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},e.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json,";if(this.startWith(e,t))return decodeURIComponent(e.substr(t.length));if(/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),r?r.from&&r.from!==Uint8Array.from?r.from(n,"base64").toString():new r(n,"base64").toString():window.atob(n);var n,i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=a.default.join(a.default.dirname(e),r)),this.root=a.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":i(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();t.default=u,e.exports=t.default}).call(this,n(331).Buffer)},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(395);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,o,a,s;t=this._last,n=e,i=t.generatedLine,o=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,o>i||o==i&&s>=a||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t,n){var r=n(395),i=n(1402),o=n(799).ArraySet,a=n(798),s=n(1403).quickSort;function c(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new f(n,t):new u(n,t)}function u(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var i=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),c=r.getArg(n,"sourceRoot",null),u=r.getArg(n,"sourcesContent",null),l=r.getArg(n,"mappings"),f=r.getArg(n,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=r.normalize(c)),a=a.map(String).map(r.normalize).map(function(e){return c&&r.isAbsolute(c)&&r.isAbsolute(e)?r.relative(c,e):e}),this._names=o.fromArray(s.map(String),!0),this._sources=o.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return r.computeSourceURL(c,e,t)}),this.sourceRoot=c,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=t,this.file=f}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function f(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var i=r.getArg(n,"version"),a=r.getArg(n,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new o,this._names=new o;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),i=r.getArg(n,"line"),o=r.getArg(n,"column");if(i<s.line||i===s.line&&o<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new c(r.getArg(e,"map"),t)}})}c.fromSourceMap=function(e,t){return u.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,n){var i,o=t||null;switch(n||c.GENERATED_ORDER){case c.GENERATED_ORDER:i=this._generatedMappings;break;case c.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;i.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,o)},c.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var o=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)o.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var u=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==u;)o.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return o},t.SourceMapConsumer=c,u.prototype=Object.create(c.prototype),u.prototype.consumer=c,u.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},u.fromSourceMap=function(e,t){var n=Object.create(u.prototype),i=n._names=o.fromArray(e._names.toArray(),!0),a=n._sources=o.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(e){return r.computeSourceURL(n.sourceRoot,e,t)});for(var c=e._mappings.toArray().slice(),f=n.__generatedMappings=[],d=n.__originalMappings=[],h=0,p=c.length;h<p;h++){var m=c[h],v=new l;v.generatedLine=m.generatedLine,v.generatedColumn=m.generatedColumn,m.source&&(v.source=a.indexOf(m.source),v.originalLine=m.originalLine,v.originalColumn=m.originalColumn,m.name&&(v.name=i.indexOf(m.name)),d.push(v)),f.push(v)}return s(n.__originalMappings,r.compareByOriginalPositions),n},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),u.prototype._parseMappings=function(e,t){for(var n,i,o,c,u,f=1,d=0,h=0,p=0,m=0,v=0,g=e.length,y=0,b={},_={},w=[],x=[];y<g;)if(";"===e.charAt(y))f++,y++,d=0;else if(","===e.charAt(y))y++;else{for((n=new l).generatedLine=f,c=y;c<g&&!this._charIsMappingSeparator(e,c);c++);if(o=b[i=e.slice(y,c)])y+=i.length;else{for(o=[];y<c;)a.decode(e,y,_),u=_.value,y=_.rest,o.push(u);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");b[i]=o}n.generatedColumn=d+o[0],d=n.generatedColumn,o.length>1&&(n.source=m+o[1],m+=o[1],n.originalLine=h+o[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=p+o[3],p=n.originalColumn,o.length>4&&(n.name=v+o[4],v+=o[4])),x.push(n),"number"==typeof n.originalLine&&w.push(n)}s(x,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,s(w,r.compareByOriginalPositions),this.__originalMappings=w},u.prototype._findMapping=function(e,t,n,r,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o,a)},u.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=r.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),o=r.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=r.getArg(i,"name",null);return null!==a&&(a=this._names.at(a)),{source:o,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i,o=e;if(null!=this.sourceRoot&&(o=r.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=r.urlParse(this.sourceRoot))){var a=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(t)return null;throw new Error('"'+o+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:r.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,f.prototype=Object.create(c.prototype),f.prototype.constructor=c,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),f.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),o=this._sections[n];return o?o.consumer.originalPositionFor({line:t.generatedLine-(o.generatedOffset.generatedLine-1),column:t.generatedColumn-(o.generatedOffset.generatedLine===t.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},f.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},f.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},f.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},f.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[a],u=i.consumer._sources.at(c.source);u=r.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),"number"==typeof f.originalLine&&this.__originalMappings.push(f)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=f},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var o=function e(n,r,i,o,a,s){var c=Math.floor((r-n)/2)+n,u=a(i,o[c],!0);return 0===u?c:u>0?r-c>1?e(c,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r<o.length?r:-1:c:c-n>1?e(n,c,i,o,a,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===r(n[o],n[o-1],!0);)--o;return o}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,i,o){if(i<o){var a=i-1;n(e,(l=i,f=o,Math.round(l+Math.random()*(f-l))),o);for(var s=e[o],c=i;c<o;c++)t(e[c],s)<=0&&n(e,a+=1,c);n(e,a+1,c);var u=a+1;r(e,t,i,u-1),r(e,t,u+1,o)}var l,f}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(797).SourceMapGenerator,i=n(395),o=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,a=e.split(o),c=0,u=function(){return e()+(e()||"");function e(){return c<a.length?a[c++]:void 0}},l=1,f=0,d=null;return t.eachMapping(function(e){if(null!==d){if(!(l<e.generatedLine)){var t=(n=a[c]||"").substr(0,e.generatedColumn-f);return a[c]=n.substr(e.generatedColumn-f),f=e.generatedColumn,h(d,t),void(d=e)}h(d,u()),l++,f=0}for(;l<e.generatedLine;)r.add(u()),l++;if(f<e.generatedColumn){var n=a[c]||"";r.add(n.substr(0,e.generatedColumn)),a[c]=n.substr(e.generatedColumn),f=e.generatedColumn}d=e},this),c<a.length&&(d&&h(d,u()),r.add(a.splice(c).join(""))),t.sources.forEach(function(e){var o=t.sourceContentFor(e);null!=o&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,o))}),r;function h(e,t){if(null===e||void 0===e.source)r.add(t);else{var o=n?i.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,o,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),i=!1,o=null,a=null,s=null,c=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(o===r.source&&a===r.line&&s===r.column&&c===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),o=r.source,a=r.line,s=r.column,c=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),o=null,i=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(o=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=s},function(e,t){},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i=a(n(796)),o=a(n(613));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}})),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.relative(r);e.map.setSourceContent(i,n.source.input.css)}}})},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var a=r,s=this.relative(a.file),c=a.root||o.default.dirname(a.file),u=void 0;!1===this.mapOpts.sourcesContent?(u=new i.default.SourceMapConsumer(a.text)).sourcesContent&&(u.sourcesContent=u.sourcesContent.map(function(){return null})):u=a.consumer(),this.map.applySourceMap(u,s,this.relative(c))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},e.prototype.toBase64=function(e){return r?r.from&&r.from!==Uint8Array.from?r.from(e).toString("base64"):new r(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},e.prototype.addAnnotation=function(){var e=void 0;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?o.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o.default.dirname(o.default.resolve(t,this.mapOpts.annotation))),e=o.default.relative(t,e),"\\"===o.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new i.default.SourceMapGenerator({file:this.outputFile()});var t=1,n=1,r=void 0,o=void 0;this.stringify(this.root,function(i,a,s){e.css+=i,a&&"end"!==s&&(a.source&&a.source.start?e.map.addMapping({source:e.sourcePath(a),generated:{line:t,column:n-1},original:{line:a.source.start.line,column:a.source.start.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}})),(r=i.match(/\n/g))?(t+=r.length,o=i.lastIndexOf("\n"),n=i.length-o):n+=i.length,a&&"start"!==s&&(a.source&&a.source.end?e.map.addMapping({source:e.sourcePath(a),generated:{line:t,column:n-1},original:{line:a.source.end.line,column:a.source.end.column}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}}))})},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},e}();t.default=s,e.exports=t.default}).call(this,n(331).Buffer)},function(e,t,n){"use strict";t.__esModule=!0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1408),a=(r=o)&&r.__esModule?r:{default:r};var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}return e.prototype.toString=function(){return this.css},e.prototype.warn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new a.default(e,t);return this.messages.push(n),n},e.prototype.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},i(e,[{key:"content",get:function(){return this.css}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="warning",this.text=t,n.node&&n.node.source){var r=n.node.positionBy(n);this.line=r.line,this.column=r.column}for(var i in n)this[i]=n[i]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(611)),i=u(n(794)),o=u(n(616)),a=u(n(474)),s=u(n(618)),c=u(n(475));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.root=new s.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{line:1,column:1}}}return e.prototype.createTokenizer=function(){this.tokenizer=(0,i.default)(this.input)},e.prototype.parse=function(){for(var e=void 0;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},e.prototype.comment=function(e){var t=new o.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},e.prototype.emptyRule=function(e){var t=new c.default;this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t},e.prototype.other=function(e){for(var t=!1,n=null,r=!1,i=null,o=[],a=[],s=e;s;){if(n=s[0],a.push(s),"("===n||"["===n)i||(i=s),o.push("("===n?")":"]");else if(0===o.length){if(";"===n){if(r)return void this.decl(a);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){for(;a.length&&("space"===(s=a[a.length-1][0])||"comment"===s);)this.tokenizer.back(a.pop());this.decl(a)}else this.unknownWord(a)},e.prototype.rule=function(e){e.pop();var t=new c.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new r.default;this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;t.prop+=e.shift()[1]}t.raws.between="";for(var o=void 0;e.length;){if(":"===(o=e.shift())[0]){t.raws.between+=o[1];break}t.raws.between+=o[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var a=e.length-1;a>0;a--){if("!important"===(o=e[a])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,a);" !important"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if("important"===o[1].toLowerCase()){for(var c=e.slice(0),u="",l=a;l>0;l--){var f=c[l][0];if(0===u.trim().indexOf("!")&&"space"!==f)break;u=c.pop()[1]+u}0===u.trim().indexOf("!")&&(t.important=!0,t.raws.important=u,e=c)}if("space"!==o[0]&&"comment"!==o[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new a.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);for(var n=void 0,r=void 0,i=!1,o=!1,s=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){o=!0;break}if("}"===e[0]){if(s.length>0){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(t.source.end={line:n[4],column:n[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,"params",s),i&&(e=s[s.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)},e.prototype.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},e.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},e.prototype.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},e.prototype.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},e.prototype.raw=function(e,t,n){for(var r=void 0,i=void 0,o=n.length,a="",s=!0,c=0;c<o;c+=1)"comment"===(i=(r=n[c])[0])||"space"===i&&c===o-1?s=!1:a+=r[1];if(!s){var u=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={value:a,raw:u}}e[t]=a},e.prototype.spacesAndCommentsFromEnd=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},e.prototype.spacesAndCommentsFromStart=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},e.prototype.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},e.prototype.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},e.prototype.colon=function(e){for(var t=0,n=void 0,r=void 0,i=void 0,o=0;o<e.length;o++){if("("===(r=(n=e[o])[0]))t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return o}this.doubleColon(n)}i=n}return!1},e.prototype.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",e[2],e[3])},e.prototype.unknownWord=function(e){throw this.input.error("Unknown word",e[0][2],e[0][3])},e.prototype.unexpectedClose=function(e){throw this.input.error("Unexpected }",e[2],e[3])},e.prototype.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},e.prototype.doubleColon=function(e){throw this.input.error("Double colon",e[2],e[3])},e.prototype.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",t[2],t[3])},e.prototype.precheckMissedSemicolon=function(e){},e.prototype.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n=0,r=void 0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon",r[2],r[3])}},e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;t.default={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}},e.exports=t.default},function(e,t,n){var r=n(1412);e.exports=r},function(e,t,n){var r=n(1413);e.exports=r},function(e,t,n){n(1414),n(1416),n(604);var r=n(93);e.exports=r.URL},function(e,t,n){"use strict";n(328);var r,i=n(36),o=n(155),a=n(764),s=n(122),c=n(587),u=n(300),l=n(388),f=n(176),d=n(742),h=n(760),p=n(747).codeAt,m=n(1415),v=n(274),g=n(604),y=n(275),b=s.URL,_=g.URLSearchParams,w=g.getState,x=y.set,k=y.getterFor("URL"),E=Math.floor,S=Math.pow,T=/[A-Za-z]/,O=/[\d+-.A-Za-z]/,C=/\d/,j=/^0x/i,A=/^[0-7]+$/,M=/^\d+$/,P=/^[\dA-Fa-f]+$/,N=/[\0\t\n\r #%/:<>?@[\\\]^|]/,I=/[\0\t\n\r #/:<>?@[\\\]^|]/,L=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\t\n\r]/g,R=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=F(t.slice(1,-1))))return"Invalid host";e.host=n}else if(G(e)){if(t=m(t),N.test(t))return"Invalid host";if(null===(n=B(t)))return"Invalid host";e.host=n}else{if(I.test(t))return"Invalid host";for(n="",r=h(t),i=0;i<r.length;i++)n+=V(r[i],q);e.host=n}},B=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=j.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?M:8==o?A:P).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*S(256,3-r);return s},F=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=n=0;n<4&&P.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,u>6)return;for(r=0;d();){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!C.test(d()))return;for(;C.test(d());){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},U=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=E(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},z=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),H=d({},z,{"#":1,"?":1,"{":1,"}":1}),W=d({},H,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(e,t){var n=p(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(e){return f(Y,e.scheme)},K=function(e){return""!=e.username||""!=e.password},$=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},X=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Q=function(e){var t;return e.length>1&&X(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Z=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&X(t[0],!0)||t.pop()},J=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},ie={},oe={},ae={},se={},ce={},ue={},le={},fe={},de={},he={},pe={},me={},ve={},ge={},ye={},be={},_e={},we=function(e,t,n,i){var o,a,s,c,u,l=n||ee,d=0,p="",m=!1,v=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(L,"")),t=t.replace(D,""),o=h(t);d<=o.length;){switch(a=o[d],l){case ee:if(!a||!T.test(a)){if(n)return"Invalid scheme";l=ne;continue}p+=a.toLowerCase(),l=te;break;case te:if(a&&(O.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";p="",l=ne,d=0;continue}if(n&&(G(e)!=f(Y,p)||"file"==p&&(K(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(G(e)&&Y[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?l=he:G(e)&&i&&i.scheme==e.scheme?l=re:G(e)?l=se:"/"==o[d+1]?(l=ie,d++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=_e;break}l="file"==i.scheme?he:oe;continue;case re:if("/"!=a||"/"!=o[d+1]){l=oe;continue}l=ce,d++;break;case ie:if("/"==a){l=ue;break}l=ge;continue;case oe:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&G(e))l=ae;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=ge;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}break;case ae:if(!G(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=ge;continue}l=ue}else l=ce;break;case se:if(l=ce,"/"!=a||"/"!=p.charAt(d+1))continue;d++;break;case ce:if("/"!=a&&"\\"!=a){l=ue;continue}break;case ue:if("@"==a){m&&(p="%40"+p),m=!0,s=h(p);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var _=V(b,W);g?e.password+=_:e.username+=_}else g=!0}p=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)){if(m&&""==p)return"Invalid authority";d-=h(p).length+1,p="",l=le}else p+=a;break;case le:case fe:if(n&&"file"==e.scheme){l=me;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)){if(G(e)&&""==p)return"Invalid host";if(n&&""==p&&(K(e)||null!==e.port))return;if(c=R(e,p))return c;if(p="",l=ve,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),p+=a}else{if(""==p)return"Invalid host";if(c=R(e,p))return c;if(p="",l=de,n==fe)return}break;case de:if(!C.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(e)||n){if(""!=p){var w=parseInt(p,10);if(w>65535)return"Invalid port";e.port=G(e)&&w===Y[e.scheme]?null:w,p=""}if(n)return;l=ve;continue}return"Invalid port"}p+=a;break;case he:if(e.scheme="file","/"==a||"\\"==a)l=pe;else{if(!i||"file"!=i.scheme){l=ge;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=a){Q(o.slice(d).join(""))||(e.host=i.host,e.path=i.path.slice(),Z(e)),l=ge;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}}break;case pe:if("/"==a||"\\"==a){l=me;break}i&&"file"==i.scheme&&!Q(o.slice(d).join(""))&&(X(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=ge;continue;case me:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&X(p))l=ge;else if(""==p){if(e.host="",n)return;l=ve}else{if(c=R(e,p))return c;if("localhost"==e.host&&(e.host=""),n)return;p="",l=ve}continue}p+=a;break;case ve:if(G(e)){if(l=ge,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=ge,"/"!=a))continue}else e.fragment="",l=_e;else e.query="",l=be;break;case ge:if(a==r||"/"==a||"\\"==a&&G(e)||!n&&("?"==a||"#"==a)){if(".."===(u=(u=p).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(Z(e),"/"==a||"\\"==a&&G(e)||e.path.push("")):J(p)?"/"==a||"\\"==a&&G(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&X(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=be):"#"==a&&(e.fragment="",l=_e)}else p+=V(a,H);break;case ye:"?"==a?(e.query="",l=be):"#"==a?(e.fragment="",l=_e):a!=r&&(e.path[0]+=V(a,q));break;case be:n||"#"!=a?a!=r&&("'"==a&&G(e)?e.query+="%27":e.query+="#"==a?"%23":V(a,q)):(e.fragment="",l=_e);break;case _e:a!=r&&(e.fragment+=V(a,z))}d++}},xe=function(e){var t,n,r=l(this,xe,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=x(r,{type:"URL"});if(void 0!==i)if(i instanceof xe)t=k(i);else if(n=we(t={},String(i)))throw TypeError(n);if(n=we(s,a,null,t))throw TypeError(n);var c=s.searchParams=new _,u=w(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},o||(r.href=Ee.call(r),r.origin=Se.call(r),r.protocol=Te.call(r),r.username=Oe.call(r),r.password=Ce.call(r),r.host=je.call(r),r.hostname=Ae.call(r),r.port=Me.call(r),r.pathname=Pe.call(r),r.search=Ne.call(r),r.searchParams=Ie.call(r),r.hash=Le.call(r))},ke=xe.prototype,Ee=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",K(e)&&(u+=n+(r?":"+r:"")+"@"),u+=U(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Se=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new xe(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&G(e)?t+"://"+U(e.host)+(null!==n?":"+n:""):"null"},Te=function(){return k(this).scheme+":"},Oe=function(){return k(this).username},Ce=function(){return k(this).password},je=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?U(t):U(t)+":"+n},Ae=function(){var e=k(this).host;return null===e?"":U(e)},Me=function(){var e=k(this).port;return null===e?"":String(e)},Pe=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ne=function(){var e=k(this).query;return e?"?"+e:""},Ie=function(){return k(this).searchParams},Le=function(){var e=k(this).fragment;return e?"#"+e:""},De=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&c(ke,{href:De(Ee,function(e){var t=k(this),n=String(e),r=we(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)}),origin:De(Se),protocol:De(Te,function(e){var t=k(this);we(t,String(e)+":",ee)}),username:De(Oe,function(e){var t=k(this),n=h(String(e));if(!$(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=V(n[r],W)}}),password:De(Ce,function(e){var t=k(this),n=h(String(e));if(!$(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=V(n[r],W)}}),host:De(je,function(e){var t=k(this);t.cannotBeABaseURL||we(t,String(e),le)}),hostname:De(Ae,function(e){var t=k(this);t.cannotBeABaseURL||we(t,String(e),fe)}),port:De(Me,function(e){var t=k(this);$(t)||(""==(e=String(e))?t.port=null:we(t,e,de))}),pathname:De(Pe,function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],we(t,e+"",ve))}),search:De(Ne,function(e){var t=k(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",we(t,e,be)),w(t.searchParams).updateSearchParams(t.query)}),searchParams:De(Ie),hash:De(Le,function(e){var t=k(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",we(t,e,_e)):t.fragment=null})}),u(ke,"toJSON",function(){return Ee.call(this)},{enumerable:!0}),u(ke,"toString",function(){return Ee.call(this)},{enumerable:!0}),b){var Re=b.createObjectURL,Be=b.revokeObjectURL;Re&&u(xe,"createObjectURL",function(e){return Re.apply(b,arguments)}),Be&&u(xe,"revokeObjectURL",function(e){return Be.apply(b,arguments)})}v(xe,"URL"),i({global:!0,forced:!a,sham:!o},{URL:xe})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,l=128,f=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var h=r.length,p=h;for(h&&r.push("-");p<i;){var m=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<m&&(m=n);var v=p+1;if(m-l>a((2147483647-f)/v))throw RangeError(o);for(f+=(m-l)*v,l=m,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(o);if(n==l){for(var g=f,y=36;;y+=36){var b=y<=d?1:y>=d+26?26:y-d;if(g<b)break;var _=g-b,w=36-b;r.push(s(c(b+_%w))),g=a(_/w)}r.push(s(c(g))),d=u(f,v,p==h),f=0,++p}}++f,++l}return r.join("")};e.exports=function(e){var t,n,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)n=a[t],o.push(r.test(n)?"xn--"+l(n):n);return o.join(".")}},function(e,t){},function(e,t,n){var r=n(1418);e.exports=r},function(e,t,n){n(1419);var r=n(93);e.exports=r.setTimeout},function(e,t,n){var r=n(36),i=n(122),o=n(323),a=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,i=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(e,t,n){var r=n(1421);e.exports=r},function(e,t,n){n(295);var r=n(1422),i=n(294),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===o||e instanceof Array&&t===o.forEach||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(1423);e.exports=r},function(e,t,n){n(1424);var r=n(132);e.exports=r("Array").forEach},function(e,t,n){"use strict";var r=n(36),i=n(1425);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){"use strict";var r=n(324).forEach,i=n(369)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(1427);e.exports=r},function(e,t,n){n(295);var r=n(1428),i=n(294),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.keys;return e===o||e instanceof Array&&t===o.keys||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(1429);e.exports=r},function(e,t,n){n(441);var r=n(132);e.exports=r("Array").keys},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e={KEY_CANCEL:3,KEY_HELP:6,KEY_BACK_SPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_RETURN:13,KEY_ENTER:14,KEY_SHIFT:16,KEY_CONTROL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_PRINTSCREEN:44,KEY_INSERT:45,KEY_DELETE:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_SEMICOLON:59,KEY_EQUALS:61,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,KEY_CONTEXT_MENU:93,KEY_NUMPAD0:96,KEY_NUMPAD1:97,KEY_NUMPAD2:98,KEY_NUMPAD3:99,KEY_NUMPAD4:100,KEY_NUMPAD5:101,KEY_NUMPAD6:102,KEY_NUMPAD7:103,KEY_NUMPAD8:104,KEY_NUMPAD9:105,KEY_MULTIPLY:106,KEY_ADD:107,KEY_SEPARATOR:108,KEY_SUBTRACT:109,KEY_DECIMAL:110,KEY_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_F16:127,KEY_F17:128,KEY_F18:129,KEY_F19:130,KEY_F20:131,KEY_F21:132,KEY_F22:133,KEY_F23:134,KEY_F24:135,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145,KEY_COMMA:188,KEY_PERIOD:190,KEY_SLASH:191,KEY_BACK_QUOTE:192,KEY_OPEN_BRACKET:219,KEY_BACK_SLASH:220,KEY_CLOSE_BRACKET:221,KEY_QUOTE:222,KEY_META:224};function t(){}return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}()},function(e,t,n){var r=n(1432),i=n(808),o=n(1433),a="[object Object]";var s=Object.prototype,c=s.hasOwnProperty,u=s.toString;e.exports=function(e){var t,n;return!(!function(e){return!!e&&"object"==typeof e}(e)||u.call(e)!=a||i(e)||!(c.call(e,"constructor")||"function"!=typeof(t=e.constructor)||t instanceof t))&&(r(e,function(e,t){n=t},o),void 0===n||c.call(e,n))}},function(e,t){var n,r=function(e,t,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[n?s:++i];if(!1===t(o[c],c,o))break}return e};e.exports=r},function(e,t,n){var r=n(808),i=n(1434),o=/^\d+$/,a=Object.prototype.hasOwnProperty,s=9007199254740991;function c(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e<t}e.exports=function(e){if(null==e)return[];var t,n;n=typeof(t=e),(!t||"object"!=n&&"function"!=n)&&(e=Object(e));var o=e.length;o=o&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}(o)&&(i(e)||r(e))&&o||0;for(var u=e.constructor,l=-1,f="function"==typeof u&&u.prototype===e,d=Array(o),h=o>0;++l<o;)d[l]=l+"";for(var p in e)h&&c(p,o)||"constructor"==p&&(f||!a.call(e,p))||d.push(p);return d}},function(e,t){var n="[object Function]",r=/^\[object .+?Constructor\]$/;function i(e){return!!e&&"object"==typeof e}var o,a,s,c=Object.prototype,u=Function.prototype.toString,l=c.hasOwnProperty,f=c.toString,d=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),h=(o=Array,a="isArray",function(e){return null!=e&&(function(e){return function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)&&f.call(e)==n}(e)?d.test(u.call(e)):i(e)&&r.test(e))}(s=null==o?void 0:o[a])?s:void 0),p=9007199254740991;var m=h||function(e){return i(e)&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}(e.length)&&"[object Array]"==f.call(e)};e.exports=m},function(e,t,n){var r=n(1436);n(1443),n(1444),n(1445),n(1446),e.exports=r},function(e,t,n){n(809),n(592),n(1437),n(815),n(816),n(1442),n(328),n(295);var r=n(93);e.exports=r.Promise},function(e,t,n){"use strict";var r,i,o,a,s=n(36),c=n(105),u=n(122),l=n(177),f=n(810),d=n(300),h=n(605),p=n(465),m=n(274),v=n(811),g=n(147),y=n(140),b=n(388),_=n(745),w=n(135),x=n(763),k=n(396),E=n(812).set,S=n(1438),T=n(814),O=n(1440),C=n(398),j=n(478),A=n(275),M=n(735),P=n(125),N=n(1441),I=n(397),L=n(322),D=P("species"),R="Promise",B=A.get,F=A.set,U=A.getterFor(R),q=f&&f.prototype,z=f,H=q,W=u.TypeError,V=u.document,Y=u.process,G=C.f,K=G,$=!!(V&&V.createEvent&&u.dispatchEvent),X="function"==typeof PromiseRejectionEvent,Q=!1,Z=M(R,function(){var e=_(z)!==String(z);if(!e&&66===L)return!0;if(c&&!H.finally)return!0;if(L>=51&&/native code/.test(z))return!1;var t=new z(function(e){e(1)}),n=function(e){e(function(){},function(){})};return(t.constructor={})[D]=n,!(Q=t.then(function(){})instanceof n)||!e&&N&&!X}),J=Z||!x(function(e){z.all(e).catch(function(){})}),ee=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;S(function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,u=n[o++],l=i?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{l?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),c=!0)),a===u.promise?d(W("Promise-chain cycle")):(s=ee(a))?s.call(a,f,d):f(a)):d(r)}catch(e){h&&!c&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)})}},ne=function(e,t,n){var r,i;$?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!X&&(i=u["on"+e])?i(r):"unhandledrejection"===e&&O("Unhandled promise rejection",n)},re=function(e){E.call(u,function(){var t,n=e.facade,r=e.value;if(ie(e)&&(t=j(function(){I?Y.emit("unhandledRejection",r,n):ne("unhandledrejection",n,r)}),e.rejection=I||ie(e)?2:1,t.error))throw t.value})},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){E.call(u,function(){var t=e.facade;I?Y.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)})},ae=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,te(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw W("Promise can't be resolved itself");var r=ee(t);r?S(function(){var n={done:!1};try{r.call(t,ae(ce,n,e),ae(se,n,e))}catch(t){se(n,t,e)}}):(e.value=t,e.state=1,te(e,!1))}catch(t){se({done:!1},t,e)}}};if(Z&&(H=(z=function(e){b(this,z,R),y(e),r.call(this);var t=B(this);try{e(ae(ce,t),ae(se,t))}catch(e){se(t,e)}}).prototype,(r=function(e){F(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(H,{then:function(e,t){var n=U(this),r=G(k(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=I?Y.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=B(e);this.promise=e,this.resolve=ae(ce,t),this.reject=ae(se,t)},C.f=G=function(e){return e===z||e===o?new i(e):K(e)},!c&&"function"==typeof f&&q!==Object.prototype)){a=q.then,Q||(d(q,"then",function(e,t){var n=this;return new z(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),d(q,"catch",H.catch,{unsafe:!0}));try{delete q.constructor}catch(e){}p&&p(q,H)}s({global:!0,wrap:!0,forced:Z},{Promise:z}),m(z,R,!1,!0),v(R),o=l(R),s({target:R,stat:!0,forced:Z},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:R,stat:!0,forced:c||Z},{resolve:function(e){return T(c&&this===o?z:this,e)}}),s({target:R,stat:!0,forced:J},{all:function(e){var t=this,n=G(t),r=n.resolve,i=n.reject,o=j(function(){var n=y(t.resolve),o=[],a=0,s=1;w(e,function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then(function(e){u||(u=!0,o[c]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,i=j(function(){var i=y(t.resolve);w(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r,i,o,a,s,c,u,l,f=n(122),d=n(272).f,h=n(812).set,p=n(813),m=n(1439),v=n(397),g=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,_=f.Promise,w=d(f,"queueMicrotask"),x=w&&w.value;x||(r=function(){var e,t;for(v&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},p||v||m||!g||!y?_&&_.resolve?((u=_.resolve(void 0)).constructor=_,l=u.then,a=function(){l.call(u,r)}):a=v?function(){b.nextTick(r)}:function(){h.call(f,r)}:(s=!0,c=y.createTextNode(""),new g(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(323);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(122);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(810),a=n(118),s=n(177),c=n(396),u=n(814),l=n(300);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}}),!i&&"function"==typeof o){var f=s("Promise").prototype.finally;o.prototype.finally!==f&&l(o.prototype,"finally",f,{unsafe:!0})}},function(e,t,n){n(809)},function(e,t,n){n(815)},function(e,t,n){"use strict";var r=n(36),i=n(398),o=n(478);r({target:"Promise",stat:!0},{try:function(e){var t=i.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},function(e,t,n){n(816)},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"symbol"==typeof e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"[object Date]"===Object.prototype.toString.apply(e)&&!isNaN(e.valueOf())}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(90);e.exports=function(e,t){return r(t)&&(e===t||e.name===t.name)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(90);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t,n){var r=n(1455);e.exports=r},function(e,t,n){n(593);var r=n(93);e.exports=r.Object.getOwnPropertySymbols},function(e,t,n){var r=n(1457);e.exports=r},function(e,t,n){var r=n(1458),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?r:t}},function(e,t,n){n(1459);var r=n(132);e.exports=r("Array").filter},function(e,t,n){"use strict";var r=n(36),i=n(324).filter;r({target:"Array",proto:!0,forced:!n(467)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1461);e.exports=r},function(e,t,n){n(1462);var r=n(93).Object,i=e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)};r.getOwnPropertyDescriptor.sham&&(i.sham=!0)},function(e,t,n){var r=n(36),i=n(118),o=n(219),a=n(272).f,s=n(155),c=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(1464);e.exports=r},function(e,t,n){n(1465);var r=n(93);e.exports=r.Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(36),i=n(155),o=n(1466),a=n(219),s=n(272),c=n(466);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,u=o(r),l={},f=0;u.length>f;)void 0!==(n=i(r,t=u[f++]))&&c(l,t,n);return l}})},function(e,t,n){var r=n(177),i=n(594),o=n(591),a=n(96);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(1468);e.exports=r},function(e,t,n){n(1469);var r=n(93).Object,i=e.exports=function(e,t){return r.defineProperties(e,t)};r.defineProperties.sham&&(i.sham=!0)},function(e,t,n){var r=n(36),i=n(155);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:n(587)})},function(e,t,n){var r=n(1471);e.exports=r},function(e,t,n){var r=n(1472),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||e instanceof Array&&t===i.indexOf?r:t}},function(e,t,n){n(1473);var r=n(132);e.exports=r("Array").indexOf},function(e,t,n){"use strict";var r=n(36),i=n(588).indexOf,o=n(369),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:s||!c},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1475);e.exports=r},function(e,t,n){var r=n(1476),i=Array.prototype;e.exports=function(e){var t=e.reduce;return e===i||e instanceof Array&&t===i.reduce?r:t}},function(e,t,n){n(1477);var r=n(132);e.exports=r("Array").reduce},function(e,t,n){"use strict";var r=n(36),i=n(823).left,o=n(369),a=n(322),s=n(397);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1479);e.exports=r},function(e,t,n){n(1480);var r=n(93);e.exports=r.Object.values},function(e,t,n){var r=n(36),i=n(1481).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(155),i=n(383),o=n(219),a=n(456).f,s=function(e){return function(t){for(var n,s=o(t),c=i(s),u=c.length,l=0,f=[];u>l;)n=c[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var r=n(1483);e.exports=r},function(e,t,n){var r=n(1484),i=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===i||e instanceof String&&t===i.trim?r:t}},function(e,t,n){n(1485);var r=n(132);e.exports=r("String").trim},function(e,t,n){"use strict";var r=n(36),i=n(621).trim;r({target:"String",proto:!0,forced:n(1486)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var r=n(118),i=n(481);e.exports=function(e){return r(function(){return!!i[e]()||"
"!="
"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(1488);e.exports=r},function(e,t,n){n(1489);var r=n(93);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return r.JSON.stringify.apply(null,arguments)}},function(e,t,n){var r=n(36),i=n(177),o=n(118),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,c=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,l=function(e,t,n){var r=n.charAt(t-1),i=n.charAt(t+1);return c.test(e)&&!u.test(i)||u.test(e)&&!c.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},f=o(function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")});a&&r({target:"JSON",stat:!0,forced:f},{stringify:function(e,t,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,l):r}})},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(119),i=n(243),o=n(820),a=n(278),s=n(372),c=n(479),u=n(622);function l(e){return r(function(t,n,r){if(a(r)){if(s(t))return u.set(t,n,r);throw new TypeError(e+": String required for first argument when third argument is an Object")}if(i(r)){if(o(t)&&t>=0)return c.set(t,n,r);throw new TypeError(e+": Positive Integer required for first argument when third argument is an Array")}throw new TypeError(e+": Object or Array required for third argument")})}var f=l("setProp");f.origFn=l,e.exports=f},function(e,t,n){var r=n(178);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,i=arguments.length;n<i;){var o=arguments[n];if(null!=o)for(var a in o)r(a,o)&&(t[a]=o[a]);n+=1}return t}},function(e,t,n){var r=n(18),i=n(276),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=i(this.xf["@@transducer/step"](e,!1))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(276),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=i(this.xf["@@transducer/step"](e,this.idx))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(e,t,n){var r=l;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?h:f,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={};function m(){}function v(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(C([])));_&&_!==n&&r.call(_,o)&&(y=_);var w=g.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e,t){var n;this._invoke=function(i,o){function a(){return new t(function(n,a){!function n(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(f).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}s(c.arg)}(i,o,n,a)})}return n=n?n.then(a,a):a()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=w.constructor=g,g.constructor=v,g[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){e.exports=function(){var e=["navigation","request","process","log","user","state","error","manual"],t=function(e,t,n){for(var r=n,i=0,o=e.length;i<o;i++)r=t(r,e[i],i,e);return r},n=function(e,n){return t(e,function(e,t,r,i){return n(t,r,i)?e.concat(t):e},[])},r=function(e,n){return t(e,function(e,t,r,i){return!0===e||t===n},!1)},i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!o)return n;for(var r=0,i=a.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,a[r])&&n.push(a[r]);return n},c=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=1/0),function(n){return"number"==typeof n&&parseInt(""+n,10)===n&&n>=e&&n<=t}},u=function(e){return"function"==typeof e||i(e)&&n(e,function(e){return"function"==typeof e}).length===e.length},l=function(e){return"string"==typeof e&&!!e.length},f={};f.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:l},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||l(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||l(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return{unhandledExceptions:!0,unhandledRejections:!0}},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!=typeof e||!e)return!1;var t=s(e),i=s({unhandledExceptions:!0,unhandledRejections:!0});return!(n(t,function(e){return r(i,e)}).length<t.length||n(s(e),function(t){return"boolean"!=typeof e[t]}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:u},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:u},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:u},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"==typeof e&&l(e.notify)&&l(e.sessions)&&0===n(s(e),function(e){return!r(["notify","sessions"],e)}).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||i(e)&&n(e,function(e){return"string"==typeof e}).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"==typeof e&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number ≤100",validate:function(e){return c(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(n){return null===n||i(n)&&t(n,function(t,n){return!1===t?t:r(e,n)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"==typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return null===e||e&&t(s(e),function(e,t){return e&&r(["id","email","name"],t)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"==typeof e&&null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&t(["debug","info","warn","error"],function(t,n){return t&&"function"==typeof e[n]},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(e){return i(e)&&e.length===n(e,function(e){return"string"==typeof e||e&&"function"==typeof e.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return i(e)&&e.length===n(e,function(e){return e&&"object"==typeof e&&"function"==typeof e.load}).length}}};var d=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,n){return t(e,function(e,t,r,i){return e.concat(n(t,r,i))},[])},p=f.schema,m={releaseStage:d({},p.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),logger:d({},p.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?v():void 0}})},v=function(){var e={},t=console.log;return h(["debug","info","warn","error"],function(n){var r=console[n];e[n]="function"==typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")}),e},g=function(){function e(e,t,n,r){void 0===r&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}var t=e.prototype;return t.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),y={};!function(e,t){"use strict";"object"==typeof y?y=t():e.StackFrame=t()}(this,function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],o=["fileName","functionName","source"],a=r.concat(i,o,["args"]);function s(e){if(e instanceof Object)for(var n=0;n<a.length;n++)e.hasOwnProperty(a[n])&&void 0!==e[a[n]]&&this["set"+t(a[n])](e[a[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){var t=this.getFunctionName()||"{anonymous}",n="("+(this.getArgs()||[]).join(",")+")",r=this.getFileName()?"@"+this.getFileName():"",i=e(this.getLineNumber())?":"+this.getLineNumber():"",o=e(this.getColumnNumber())?":"+this.getColumnNumber():"";return t+n+r+i+o}};for(var c=0;c<r.length;c++)s.prototype["get"+t(r[c])]=n(r[c]),s.prototype["set"+t(r[c])]=function(e){return function(t){this[e]=Boolean(t)}}(r[c]);for(var u=0;u<i.length;u++)s.prototype["get"+t(i[u])]=n(i[u]),s.prototype["set"+t(i[u])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(i[u]);for(var l=0;l<o.length;l++)s.prototype["get"+t(o[l])]=n(o[l]),s.prototype["set"+t(o[l])]=function(e){return function(t){this[e]=String(t)}}(o[l]);return s});var b={};!function(e,t){"use strict";"object"==typeof b?b=t(y):e.ErrorStackParser=t(e.StackFrame)}(this,function(e){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){var r=t.stack.split("\n").filter(function(e){return!!e.match(n)},this);return r.map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:i.pop()),a=i.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new e({functionName:a,fileName:s,lineNumber:o[1],columnNumber:o[2],source:t})},this)},parseFFOrSafari:function(t){var n=t.stack.split("\n").filter(function(e){return!e.match(r)},this);return n.map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,o=this.extractLocation(t.replace(n,""));return new e({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],o=2,a=r.length;o<a;o+=2){var s=n.exec(r[o]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[o]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],o=0,a=r.length;o<a;o+=2){var s=n.exec(r[o]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[o]}))}return i},parseOpera11:function(n){var r=n.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this);return r.map(function(t){var n,r=t.split("@"),i=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;o.match(/\(([^\)]*)\)/)&&(n=o.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)}}});var _=b,w=function(e){return!(!e||!e.stack&&!e.stacktrace&&!e["opera#sourceloc"]||"string"!=typeof(e.stack||e.stacktrace||e["opera#sourceloc"])||e.stack===e.name+": "+e.message)},x=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},k="browserjs",E=function(e,t,n){"string"==typeof t&&(n?e[t]&&delete e[t][n]:delete e[t])},S={add:function(e,t,n,r){var i,o;if(t){if(null===n)return E(e,t);"object"==typeof n&&(o=n),"string"==typeof n&&((i={})[n]=r,o=i),o&&(e[t]||(e[t]={}),e[t]=d({},e[t],o))}},get:function(e,t,n){if("string"==typeof t)return n?e[t]?e[t][n]:void 0:e[t]},clear:E},T={};!function(e,t){"use strict";"object"==typeof T?T=t(y):e.StackGenerator=t(e.StackFrame)}(this,function(e){return{backtrace:function(t){var n=[],r=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var o=new Array(i.arguments.length),a=0;a<o.length;++a)o[a]=i.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:o})):n.push(new e({args:o}));try{i=i.caller}catch(e){break}}return n}}});var O=function(){function e(e,n,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=A()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=o,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this._metadata={},this._user={},this._session=void 0,this.errors=[{errorClass:M(e),errorMessage:M(n),type:k,stacktrace:t(r,function(e,t){var n=C(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(t){return e}},[])}]}var n=e.prototype;return n.addMetadata=function(e,t,n){return S.add(this._metadata,e,t,n)},n.getMetadata=function(e,t){return S.get(this._metadata,e,t)},n.clearMetadata=function(e,t){return S.clear(this._metadata,e,t)},n.getUser=function(){return this._user},n.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},n.toJSON=function(){return{payloadVersion:"4",exceptions:h(this.errors,function(e){return d({},e,{message:e.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session}},e}(),C=function(e){var t={file:e.fileName,method:j(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file="global code"),t},j=function(e){return/^global code$/i.test(e)?"global code":e},A=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},M=function(e){return"string"==typeof e?e:""};O.getStacktrace=function(e,t,r){if(w(e))return _.parse(e).slice(t);try{return n(T.backtrace(),function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+r)}catch(e){return[]}},O.create=function(e,t,n,r,i,o){void 0===i&&(i=0);var a,s=N(e,t,r,o),c=s[0],u=s[1];try{var l=O.getStacktrace(c,u>0?1+u+i:0,1+i);a=new O(c.name,c.message,l,n,e)}catch(t){a=new O(c.name,c.message,[],n,e)}return"InvalidError"===c.name&&a.addMetadata(""+r,"non-error parameter",P(e)),a};var P=function(e){return null===e?"null":void 0===e?"undefined":e},N=function(e,t,n,r){var i,o=0,a=function(e){r&&r.warn(n+' received a non-error: "'+e+'"');var t=new Error(n+' received a non-error. See "'+n+'" tab for more detail.');return t.name="InvalidError",t};if(t)switch(typeof e){case"string":case"number":case"boolean":i=new Error(String(e)),o+=1;break;case"function":i=a("function"),o+=2;break;case"object":null!==e&&x(e)?i=e:null!==e&&I(e)?((i=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,o+=1):(i=a(null===e?"null":"unsupported object"),o+=2);break;default:i=a("nothing"),o+=2}else x(e)?i=e:(i=a(typeof e),o+=2);if(!w(i))try{throw i}catch(e){w(e)&&(i=e,o=1)}return[i,o]},I=function(e){return!("string"!=typeof e.name&&"string"!=typeof e.errorClass||"string"!=typeof e.message&&"string"!=typeof e.errorMessage)},L=O,D=function(e,t,n,r){for(var i=!1,o=e.slice();!i&&o.length;)try{i=!1===o.pop()(t)}catch(e){r.error("Error occurred in "+n+" callback, continuing anyway…"),r.error(e)}return i},R=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},B="object"==typeof window?window:self,F=0;for(var U in B)Object.hasOwnProperty.call(B,U)&&F++;var q=navigator.mimeTypes?navigator.mimeTypes.length:0,z=R((q+navigator.userAgent.length).toString(36)+F.toString(36),4),H=function(){return z},W=0,V=4,Y=36,G=Math.pow(Y,V);function K(){return R((Math.random()*G<<0).toString(Y),V)}function $(){var e=(new Date).getTime().toString(Y),t=R((W=W<G?W:0,++W-1).toString(Y),V),n=H(),r=K()+K();return"c"+e+t+n+r}$.fingerprint=H;var X=$,Q=function(){function e(){this.id=X(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),Z=function(){},J=function(){function i(e,t,n,r){var o=this;void 0===t&&(t=f.schema),void 0===n&&(n=[]),this._notifier=r,this._config={},this._schema=t,this._delivery={sendSession:Z,sendEvent:Z},this._logger={debug:Z,info:Z,warn:Z,error:Z},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=i,this.Event=L,this.Breadcrumb=g,this.Session=Q,this._config=this._configure(e,n),h(n.concat(this._config.plugins),function(e){e&&o._loadPlugin(e)}),this._depth=1;var a=this,s=this.notify;this.notify=function(){return s.apply(a,arguments)}}var o=i.prototype;return o.addMetadata=function(e,t,n){return S.add(this._metadata,e,t,n)},o.getMetadata=function(e,t){return S.get(this._metadata,e,t)},o.clearMetadata=function(e,t){return S.clear(this._metadata,e,t)},o.getContext=function(){return this._context},o.setContext=function(e){this._context=e},o._configure=function(e,n){var r=t(n,function(e,t){return t&&t.configSchema?d({},e,t.configSchema):e},this._schema),i=t(s(r),function(t,n){var i=r[n].defaultValue(e[n]);if(void 0!==e[n]){var o=r[n].validate(e[n]);o?r[n].allowPartialObject?t.config[n]=d(i,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=i)}else t.config[n]=i;return t},{errors:{},config:{}}),o=i.errors,a=i.config;if(r.apiKey){if(!a.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(a.apiKey)||(o.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=d({},a.metadata),this._user=d({},a.user),this._context=a.context,a.logger&&(this._logger=a.logger),a.onError&&a.onError.length&&(this._cbs.e=this._cbs.e.concat(a.onError)),a.onBreadcrumb&&a.onBreadcrumb.length&&(this._cbs.b=this._cbs.b.concat(a.onBreadcrumb)),a.onSession&&a.onSession.length&&(this._cbs.s=this._cbs.s.concat(a.onSession)),s(o).length&&this._logger.warn(ee(o,e)),a},o.getUser=function(){return this._user},o.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},o._loadPlugin=function(e){var t=e.load(this);return e.name&&(this._plugins["~"+e.name+"~"]=t),this},o.getPlugin=function(e){return this._plugins["~"+e+"~"]},o._setDelivery=function(e){this._delivery=e(this)},o.startSession=function(){var e=new Q;e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=d({},this._user);var t=D(this._cbs.s,e,"onSession",this._logger);return t?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},o.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},o.removeOnError=function(e){this._cbs.e=n(this._cbs.e,function(t){return t!==e})},o._addOnSessionPayload=function(e){this._cbs.sp.push(e)},o.addOnSession=function(e){this._cbs.s.push(e)},o.removeOnSession=function(e){this._cbs.s=n(this._cbs.s,function(t){return t!==e})},o.addOnBreadcrumb=function(e){this._cbs.b.push(e)},o.removeOnBreadcrumb=function(e){this._cbs.b=n(this._cbs.b,function(t){return t!==e})},o.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},o.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},o.leaveBreadcrumb=function(t,n,i){if(t="string"==typeof t?t:"",i="string"==typeof i&&r(e,i)?i:"manual",n="object"==typeof n&&null!==n?n:{},t){var o=new g(t,n,i),a=D(this._cbs.b,o,"onBreadcrumb",this._logger);a?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(o),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},o.notify=function(e,t,n){void 0===n&&(n=Z);var r=L.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,t,n)},o._notify=function(e,t,n){var o=this;if(void 0===n&&(n=Z),e.app=d({},e.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),e.context=e.context||this._context,e._metadata=d({},e._metadata,this._metadata),e._user=d({},e._user,this._user),e.breadcrumbs=this._breadcrumbs.slice(),this._session&&(this._session._track(e),e._session=this._session),null!==this._config.enabledReleaseStages&&!r(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),n(null,e);var a=e.severity,s=function(e){o._logger.error("Error occurred in onError callback, continuing anyway…"),o._logger.error(e)},c=[].concat(this._cbs.e).concat(t);!function(e,t,n,r){!function(e,t,n){var r=0,i=function(){if(r>=e.length)return n(null,!0);t(e[r],function(e,t){return e?n(e):!1===t?n(null,!1):(r++,void i())})};i()}(e,function(e,r){if("function"!=typeof e)return r(null);try{if(2!==e.length){var i=e(t);return i&&"function"==typeof i.then?i.then(function(e){return setTimeout(function(){return r(null,e)})},function(e){setTimeout(function(){return n(e),r(null,!0)})}):r(null,i)}e(t,function(e,t){if(e)return n(e),r(null);r(null,t)})}catch(e){n(e),r(null)}},r)}(c,e,s,function(t,c){if(t&&s(t),!c)return o._logger.debug("Event not sent due to onError callback"),n(null,e);r(o._config.enabledBreadcrumbTypes,"error")&&i.prototype.leaveBreadcrumb.call(o,e.errors[0].errorClass,{errorClass:e.errors[0].errorClass,errorMessage:e.errors[0].errorMessage,severity:e.severity},"error"),a!==e.severity&&(e._handledState.severityReason={type:"userCallbackSetSeverity"}),o._delivery.sendEvent({apiKey:e.apiKey||o._config.apiKey,notifier:o._notifier,events:[e]},function(t){return n(t,e)})})},i}(),ee=function(e,t){var n=new Error("Invalid configuration\n"+h(s(e),function(n){return" - "+n+" "+e[n]+", got "+te(t[n])}).join("\n\n"));return n},te=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},ne=J,re=function(e,t,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],o=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(function(e,t,n){var r=[],i=0;return function e(o,a){function s(){return a.length>ae&&i>oe}if(i++,a.length>ie)return se;if(s())return se;if(null===o||"object"!=typeof o)return o;if(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}(r,o))return"[Circular]";if(r.push(o),"function"==typeof o.toJSON)try{i--;var c=e(o.toJSON(),a);return r.pop(),c}catch(e){return ce(e)}var u,l=(u=o)instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(u));if(l){i--;var f=e({name:o.name,message:o.message},a);return r.pop(),f}if(function(e){return"[object Array]"===Object.prototype.toString.call(e)}(o)){for(var d=[],h=0,p=o.length;h<p;h++){if(s()){d.push(se);break}d.push(e(o[h],a.concat("[]")))}return r.pop(),d}var m={};try{for(var v in o)if(Object.prototype.hasOwnProperty.call(o,v))if(ue(n,a.join("."))&&le(t,v))m[v]="[REDACTED]";else{if(s()){m[v]=se;break}m[v]=e(fe(o,v),a.concat(v))}}catch(e){}return r.pop(),m}(e,[])}(e,i,o),t,n)},ie=20,oe=25e3,ae=8,se="...";function ce(e){return"[Throws: "+(e?e.message:"?")+"]"}function ue(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function le(e,t){for(var n=0,r=e.length;n<r;n++){if("string"==typeof e[n]&&e[n]===t)return!0;if(e[n]&&"function"==typeof e[n].test&&e[n].test(t))return!0}return!1}function fe(e,t){try{return e[t]}catch(e){return ce(e)}}var de={},he=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];de.event=function(e,t){var n=re(e,null,null,{redactedPaths:he,redactedKeys:t});if(n.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},(n=re(e,null,null,{redactedPaths:he,redactedKeys:t})).length>1e6))throw new Error("payload exceeded 1MB limit");return n},de.session=function(e,t){var n=re(e,null,null);if(n.length>1e6)throw new Error("payload exceeded 1MB limit");return n};var pe={};pe=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});var i=me(e._config,"notify","4",t),o=new t.XDomainRequest;o.onload=function(){r(null)},o.open("POST",i),setTimeout(function(){try{o.send(de.event(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}},0)},sendSession:function(n,r){void 0===r&&(r=function(){});var i=me(e._config,"sessions","1",t),o=new t.XDomainRequest;o.onload=function(){r(null)},o.open("POST",i),setTimeout(function(){try{o.send(de.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}},0)}}};var me=function(e,t,n,r){var i=JSON.parse(JSON.stringify(new Date)),o=ve(e.endpoints[t],r.location.protocol);return o+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(i)},ve=pe._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},ge=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});try{var i=e._config.endpoints.notify,o=new t.XMLHttpRequest;o.onreadystatechange=function(){o.readyState===t.XMLHttpRequest.DONE&&r(null)},o.open("POST",i),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),o.setRequestHeader("Bugsnag-Payload-Version","4"),o.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),o.send(de.event(n,e._config.redactedKeys))}catch(t){e._logger.error(t)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var i=e._config.endpoints.sessions,o=new t.XMLHttpRequest;o.onreadystatechange=function(){o.readyState===t.XMLHttpRequest.DONE&&r(null)},o.open("POST",i),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),o.setRequestHeader("Bugsnag-Payload-Version","1"),o.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),o.send(de.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t)}}}},ye=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError(function(t){t.request&&t.request.url||(t.request=d({},t.request,{url:e.location.href}))},!0)}}},be={load:function(e){e._sessionDelegate=_e}},_e={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,null===n._config.enabledReleaseStages||r(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(e){return e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},we={load:function(e){e._config.collectUserIp||e.addOnError(function(e){e._user&&void 0===e._user.id&&delete e._user.id,e._user=d({id:"[REDACTED]"},e._user),e.request=d({clientIp:"[REDACTED]"},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},xe={load:function(e){var n=/^dev(elopment)?$/.test(e._config.releaseStage);e._config.enabledBreadcrumbTypes&&r(e._config.enabledBreadcrumbTypes,"log")&&!n&&h(ke,function(n){var r=console[n];console[n]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.leaveBreadcrumb("Console output",t(o,function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(e){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(e){}return e["["+n+"]"]=r,e},{severity:0===n.indexOf("group")?"log":n}),"log"),r.apply(console,o)},console[n]._restore=function(){console[n]=r}})}},ke=n(["log","debug","info","warn","error"],function(e){return"undefined"!=typeof console&&"function"==typeof console[e]}),Ee=function(e,r){return void 0===e&&(e=document),void 0===r&&(r=window),{load:function(i){if(i._config.trackInlineScripts){var o=r.location.href,a="",s=!1,c=function(){return e.documentElement.outerHTML};a=c();var u=e.onreadystatechange;e.onreadystatechange=function(){"interactive"===e.readyState&&(a=c(),s=!0);try{u.apply(this,arguments)}catch(e){}};var l=null,f=function(e){l=e},d=function(){var t=e.currentScript||l;if(!t&&!s){var n=e.scripts||e.getElementsByTagName("script");t=n[n.length-1]}return t};i.addOnError(function(e){e.errors[0].stacktrace=n(e.errors[0].stacktrace,function(e){return!/__trace__$/.test(e.method)});var r=e.errors[0].stacktrace[0];if(!r||!r.file||r.file.replace(/#.*$/,"")===o.replace(/#.*$/,"")){var i=d();if(i){var u=i.innerHTML;e.addMetadata("script","content",u.length<=5e5?u:u.substr(0,5e5))}r&&r.lineNumber&&(r.code=function(e){s&&a||(a=c());var n=["\x3c!-- DOC START --\x3e"].concat(a.split("\n")),r=e-1,i=Math.max(r-3,0),o=Math.min(r+3,n.length);return t(n.slice(i,o),function(e,t,n){return e[i+1+n]=t.length<=200?t:t.substr(0,200),e},{})}(r.lineNumber))}},!0);var p=h(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(e){return Se(r,e,function(e){return v(e,function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}})})}),m=p[0];h(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],function(e){r[e]&&r[e].prototype&&Object.prototype.hasOwnProperty.call(r[e].prototype,"addEventListener")&&(Se(r[e].prototype,"addEventListener",function(e){return v(e,Te)}),Se(r[e].prototype,"removeEventListener",function(e){return v(e,Te,!0)}))})}function v(e,t,n){return void 0===n&&(n=!1),function(){var r=[].slice.call(arguments);try{var i=t(r),o=i.get();if(n&&e.apply(this,r),"function"!=typeof o)return e.apply(this,r);if(o.__trace__)i.replace(o.__trace__);else{var a=d();o.__trace__=function(){f(a),m(function(){f(null)},0);var e=o.apply(this,arguments);return f(null),e},o.__trace__.__trace__=o.__trace__,i.replace(o.__trace__)}}catch(e){}if(e.apply)return e.apply(this,r);switch(r.length){case 1:return e(r[0]);case 2:return e(r[0],r[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}};function Se(e,t,n){var r=e[t];if(!r)return r;var i=n(r);return e[t]=i,r}function Te(e){var t=!!e[1]&&"function"==typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var Oe=function(e){return void 0===e&&(e=window),{load:function(t){"addEventListener"in e&&t._config.enabledBreadcrumbTypes&&r(t._config.enabledBreadcrumbTypes,"user")&&e.addEventListener("click",function(n){var r,i;try{r=Ce(n.target),i=function e(t,n){var r=[t.tagName];if(t.id&&r.push("#"+t.id),t.className&&t.className.length&&r.push("."+t.className.split(" ").join(".")),!n.document.querySelectorAll||!Array.prototype.indexOf)return r.join("");try{if(1===n.document.querySelectorAll(r.join("")).length)return r.join("")}catch(e){return r.join("")}if(t.parentNode.childNodes.length>1){var i=Array.prototype.indexOf.call(t.parentNode.childNodes,t)+1;r.push(":nth-child("+i+")")}return 1===n.document.querySelectorAll(r.join("")).length?r.join(""):t.parentNode?e(t.parentNode,n)+" > "+r.join(""):r.join("")}(n.target,e)}catch(e){r="[hidden]",i="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:r,targetSelector:i},"user")},!0)}}},Ce=function(e){var t,n,r=e.textContent||e.innerText||"";return r||"submit"!==e.type&&"button"!==e.type||(r=e.value),r=r.replace(/^\s+|\s+$/g,""),n=140,(t=r)&&t.length<=n?t:t.slice(0,n-"(...)".length)+"(...)"},je={};je=function(e){return void 0===e&&(e=window),{load:function(t){if("addEventListener"in e&&t._config.enabledBreadcrumbTypes&&r(t._config.enabledBreadcrumbTypes,"navigation")){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",n("Page hidden"),!0),e.addEventListener("pageshow",n("Page shown"),!0),e.addEventListener("load",n("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),e.addEventListener("load",function(){return e.addEventListener("popstate",n("Navigated back"),!0)}),e.addEventListener("hashchange",function(n){var r=n.oldURL?{from:Ae(n.oldURL,e),to:Ae(n.newURL,e),state:Pe(e)}:{to:Ae(e.location.href,e)};t.leaveBreadcrumb("Hash changed",r,"navigation")},!0),e.history.replaceState&&Me(t,e.history,"replaceState",e),e.history.pushState&&Me(t,e.history,"pushState",e),t.leaveBreadcrumb("Bugsnag loaded",{},"navigation")}}}};var Ae=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},Me=function(e,t,n,r){var i=t[n];t[n]=function(o,a,s){e.leaveBreadcrumb("History "+n,function(e,t,n,r){var i=Ae(e.location.href,e);return{title:n,state:t,prevState:Pe(e),to:r||i,from:i}}(r,o,a,s),"navigation"),"function"==typeof e.resetEventCount&&e.resetEventCount(),e._config.autoTrackSessions&&e.startSession(),i.apply(t,[o,a].concat(void 0!==s?s:[]))}},Pe=function(e){try{return e.history.state}catch(e){}},Ne="request",Ie="BS~~S",Le="BS~~U",De="BS~~M",Re=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=window);var n={load:function(n){if(n._config.enabledBreadcrumbTypes&&r(n._config.enabledBreadcrumbTypes,"request")){var i=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(e);!function(){if("addEventListener"in t.XMLHttpRequest.prototype){var e=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(t,n){this[Le]=n,this[De]=t,this[Ie]&&(this.removeEventListener("load",s),this.removeEventListener("error",c)),this.addEventListener("load",s),this.addEventListener("error",c),this[Ie]=!0,e.apply(this,arguments)}}}(),function(){if("fetch"in t&&!t.fetch.polyfill){var e=t.fetch;t.fetch=function(){var t,n=arguments,r=arguments[0],i=arguments[1],s=null;return r&&"object"==typeof r?(s=r.url,i&&"method"in i?t=i.method:r&&"method"in r&&(t=r.method)):(s=r,i&&"method"in i&&(t=i.method)),void 0===t&&(t="GET"),new Promise(function(r,i){e.apply(void 0,n).then(function(e){o(e,t,s),r(e)}).catch(function(e){a(t,s),i(e)})})}}}();var o=function(e,t,r){var i={status:e.status,request:t+" "+r};e.status>=400?n.leaveBreadcrumb("fetch() failed",i,Ne):n.leaveBreadcrumb("fetch() succeeded",i,Ne)},a=function(e,t){n.leaveBreadcrumb("fetch() error",{request:e+" "+t},Ne)}}function s(){if(!r(i,this[Le])){var e={status:this.status,request:this[De]+" "+this[Le]};this.status>=400?n.leaveBreadcrumb("XMLHttpRequest failed",e,Ne):n.leaveBreadcrumb("XMLHttpRequest succeeded",e,Ne)}}function c(){r(i,this[Le])||n.leaveBreadcrumb("XMLHttpRequest error",{request:this[De]+" "+this[Le]},Ne)}}};return n},Be={load:function(e){var t=0;e.addOnError(function(n){if(t>=e._config.maxEvents)return!1;t++}),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(e){return c(1,100)(e)}}}},Fe={},Ue=(Fe={load:function(e){e.addOnError(function(e){var n=t(e.errors,function(e,t){return e.concat(t.stacktrace)},[]);h(n,function(e){e.file=Ue(e.file)})})}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},qe=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledExceptions){var n=e.onerror;e.onerror=function(e,r,i,o,a){if(0===i&&/Script error\.?/.test(e))t._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var s,c={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(a)s=t.Event.create(a,!0,c,"window onerror",1),ze(s.errors[0].stacktrace,r,i,o);else if("object"!=typeof e||null===e||r&&"string"==typeof r||i||o||a)s=t.Event.create(e,!0,c,"window onerror",1),ze(s.errors[0].stacktrace,r,i,o);else{var u=e.type?"Event: "+e.type:"Error",l=e.message||e.detail||"";(s=t.Event.create({name:u,message:l},!0,c,"window onerror",1)).originalError=e,s.addMetadata("window onerror",{event:e,extraParameters:r})}t._notify(s)}"function"==typeof n&&n.apply(this,arguments)}}}}},ze=function(e,t,n,r){e[0]||e.push({});var i=e[0];i.file||"string"!=typeof t||(i.file=t),!i.lineNumber&&He(n)&&(i.lineNumber=n),i.columnNumber||(He(r)?i.columnNumber=r:window.event&&He(window.event.errorCharacter)&&(i.columnNumber=window.event.errorCharacter))},He=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},We=function(e){void 0===e&&(e=window);var t={load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledRejections){var n=function(e){var n=e.reason,r=!1;try{e.detail&&e.detail.reason&&(n=e.detail.reason,r=!0)}catch(e){}var i=t.Event.create(n,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,t._logger);r&&h(i.errors[0].stacktrace,Ve(n)),t._notify(i,function(e){var t;x(e.originalError)&&!e.originalError.stack&&e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))})};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}};return t},Ve=function(e){return function(t){t.file!==e.toString()&&t.method&&(t.method=t.method.replace(/^\s+/,""))}},Ye={},Ge=d({},f.schema,m),Ke={_client:null,createClient:function(e){"string"==typeof e&&(e={apiKey:e}),e||(e={});var t,n,r=[(void 0===n&&(n=navigator),{load:function(e){var t={locale:n.browserLanguage||n.systemLanguage||n.userLanguage||n.language,userAgent:n.userAgent};e.addOnSession(function(e){e.device=d({},e.device,t)}),e.addOnError(function(e){e.device=d({},e.device,t,{time:new Date})},!0)}}),(void 0===t&&(t=window),{load:function(e){e.addOnError(function(e){void 0===e.context&&(e.context=t.location.pathname)},!0)}}),ye(),Be,be,we,Fe,qe(),We(),je(),Oe(),Re(),xe,Ee()],i=new ne(e,Ge,r,{name:"Bugsnag JavaScript",version:"7.0.1",url:"https://github.com/bugsnag/bugsnag-js"});return i._setDelivery(window.XDomainRequest?pe:ge),i._logger.debug("Loaded!"),i._config.autoTrackSessions?i.startSession():i},start:function(e){return Ke._client?(Ke._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),Ke._client):(Ke._client=Ke.createClient(e),Ke._client)}};return h(["resetEventCount"].concat(s(ne.prototype)),function(e){/^_/.test(e)||(Ke[e]=function(){if(!Ke._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");Ke._client._depth+=1;var t=Ke._client[e].apply(Ke._client,arguments);return Ke._client._depth-=1,t})}),(Ye=Ke).Client=ne,Ye.Event=L,Ye.Session=Q,Ye.Breadcrumb=g,Ye.default=Ke,Ye}()},function(e,t,n){"use strict";var r=n(828),i=n(829),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:i.formatters[i.default],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,i,o,a,c,l,d,h,p,m,v,g){var y=t;if("function"==typeof l?y=l(n,y):y instanceof Date?y=p(y):"comma"===i&&s(y)&&(y=y.join(",")),null===y){if(o)return c&&!v?c(n,f.encoder,g):n;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||r.isBuffer(y))return c?[m(v?n:c(n,f.encoder,g))+"="+m(c(y,f.encoder,g))]:[m(n)+"="+m(String(y))];var b,_=[];if(void 0===y)return _;if(s(l))b=l;else{var w=Object.keys(y);b=d?w.sort(d):w}for(var x=0;x<b.length;++x){var k=b[x];a&&null===y[k]||(s(y)?u(_,e(y[k],"function"==typeof i?i(n,k):n,i,o,a,c,l,d,h,p,m,v,g)):u(_,e(y[k],n+(h?"."+k:"["+k+"]"),i,o,a,c,l,d,h,p,m,v,g)))}return _};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=f.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):s(c.filter)&&(n=c.filter);var l,h=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[l];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var m=0;m<n.length;++m){var v=n[m];c.skipNulls&&null===r[v]||u(h,d(r[v],v,p,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var g=h.join(c.delimiter),y=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""}},function(e,t,n){"use strict";var r=n(828),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,c=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;null!==(a=o.exec(r))&&u<n.depth;){if(u+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=r:o[s]=r:o={0:r}}r=o}return r}(c,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth?e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,u),f=-1,d=t.charset;if(t.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?d="utf-8":"utf8=%26%2310003%3B"===l[n]&&(d="iso-8859-1"),f=n,n=l.length);for(n=0;n<l.length;++n)if(n!==f){var h,p,m=l[n],v=m.indexOf("]="),g=-1===v?m.indexOf("="):v+1;-1===g?(h=t.decoder(m,o.decoder,d),p=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,g),o.decoder,d),p=t.decoder(m.slice(g+1),o.decoder,d)),p&&t.interpretNumericEntities&&"iso-8859-1"===d&&(p=a(p)),p&&t.comma&&p.indexOf(",")>-1&&(p=p.split(",")),i.call(s,h)?s[h]=r.combine(s[h],p):s[h]=p}return s}(e,n):e,u=n.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f<l.length;++f){var d=l[f],h=s(d,c[d],n);u=r.merge(u,h,n)}return r.compact(u)}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){var r=n(1501);e.exports=r},function(e,t,n){n(1502);var r=n(93);e.exports=r.Reflect.get},function(e,t,n){var r=n(36),i=n(147),o=n(96),a=n(176),s=n(272),c=n(386);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,u,l=arguments.length<3?t:arguments[2];return o(t)===l?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(l):i(u=c(t))?e(u,n,l):void 0}})},function(e,t,n){var r=n(1504);e.exports=r},function(e,t,n){n(1505);var r=n(93);e.exports=r.parseInt},function(e,t,n){var r=n(36),i=n(1506);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){var r=n(122),i=n(621).trim,o=n(481),a=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(o+"08")||22!==a(o+"0x16");e.exports=c?function(e,t){var n=i(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){var r=n(17);e.exports=r(!1)},function(e,t,n){var r=n(1509),i=n(18),o=n(134),a=n(1510);e.exports=i(o([],a,r))},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length-(e-1),i=new Array(r>=0?r:0);n<r;)i[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return i}},function(e,t,n){var r=n(205),i=n(18),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return r(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},i(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(51),i=n(521),o=n(57),a=n(30),s=n(283),c=n(183),u=n(109),l=n(76);e.exports=r(function e(t){return t=a(function(t){return"function"==typeof t?t:e(t)},t),o(u(s,0,c("length",l(t))),function(){var e=arguments;return a(function(t){return i(t,e)},t)})})},function(e,t,n){var r=n(51),i=n(483);e.exports=r(function(e){return i(2,e)})},function(e,t,n){var r=n(79);e.exports=r(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})},function(e,t,n){var r=n(18),i=n(1515),o=n(30);e.exports=r(function(e,t){return o(e,i(t))})},function(e,t,n){var r=n(1516),i=n(462),o=n(193),a=n(148);e.exports=function(e){var t=function(e){return{"@@transducer/init":a.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var i=e["@@transducer/step"](t,n);return i["@@transducer/reduced"]?r(i):i}}}(e);return{"@@transducer/init":a.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return i(n)?o(t,e,n):o(t,e,[n])}}}},function(e,t){e.exports=function(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n})},function(e,t,n){var r=n(830),i=n(51);e.exports=i(function(e){return null!=e&&"function"==typeof e.clone?e.clone():r(e,[],[],!0)})},function(e,t,n){var r=n(51);e.exports=r(function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})},function(e,t,n){var r=n(51),i=n(832);e.exports=r(function(e){return i(e.length,e)})},function(e,t,n){var r=n(484);e.exports=r(function(e,t){return e+1},0)},function(e,t,n){var r=n(469),i=n(178),o=n(148);e.exports=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(i(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},r(4,[],function(t,n,r,i){return new e(t,n,r,i)})}()},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r<i?1:0})},function(e,t,n){var r=n(18),i=n(624),o=n(26),a=n(226),s=n(522),c=n(411);e.exports=r(function e(t,n){switch(t.length){case 0:return n;case 1:return i(t[0])?s(t[0],1,n):a(t[0],n);default:var r=t[0],u=Array.prototype.slice.call(t,1);return null==n[r]?n:i(t[0])?c(r,e(u,n[r]),n):o(r,e(u,n[r]),n)}})},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(134),o=n(1527),a=n(1528);e.exports=r(i([],a,o))},function(e,t){e.exports=function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,0,n+1)}},function(e,t,n){var r=n(18),i=n(193),o=n(148);e.exports=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=i(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(51),i=n(134),o=n(834),a=n(835),s=n(38);e.exports=r(i([],o(s),a(s)))},function(e,t,n){var r=n(18),i=n(134),o=n(1531);e.exports=r(i(["dropWhile"],o,function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Array.prototype.slice.call(t,n)}))},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(38),o=n(836);e.exports=r(function(e,t){return i(o(e.length,t),e)})},function(e,t,n){var r=n(61),i=n(38);e.exports=r(function(e,t,n){return i(e(t),e(n))})},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(134),o=n(1536);e.exports=r(i([],o,function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))},function(e,t,n){var r=n(18),i=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(18),i=n(84);e.exports=r(function(e,t){for(var n=i(t),r=0;r<n.length;){var o=n[r];e(t[o],o,t),r+=1}return t})},function(e,t,n){var r=n(382),i=n(18),o=n(484);e.exports=i(r("groupBy",o(function(e,t){return null==e&&(e=[]),e.push(t),e},null)))},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=[],r=0,i=t.length;r<i;){for(var o=r+1;o<i&&e(t[o-1],t[o]);)o+=1;n.push(t.slice(r,o)),r=o}return n})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e in t})},function(e,t,n){var r=n(484);e.exports=r(function(e,t){return t},null)},function(e,t,n){var r=n(182);e.exports=r(0,-1)},function(e,t,n){var r=n(485),i=n(61),o=n(599);e.exports=i(function(e,t,n){return o(function(t){return r(e,t,n)},t)})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})},function(e,t,n){var r=n(301),i=n(18),o=n(599),a=n(48),s=n(341);e.exports=i(function(e,t){var n,i;return e.length>t.length?(n=e,i=t):(n=t,i=e),s(o(a(r)(n),i))})},function(e,t,n){var r=n(485),i=n(61),o=n(626);e.exports=i(function(e,t,n){var i,a;t.length>n.length?(i=t,a=n):(i=n,a=t);for(var s=[],c=0;c<a.length;)r(e,a[c],i)&&(s[s.length]=a[c]),c+=1;return o(e,s)})},function(e,t,n){var r=n(382),i=n(18);e.exports=i(r("intersperse",function(e,t){for(var n=[],r=0,i=t.length;r<i;)r===i-1?n.push(t[r]):n.push(t[r],e),r+=1;return n}))},function(e,t,n){var r=n(830),i=n(61),o=n(598),a=n(193),s=n(1549);e.exports=i(function(e,t,n){return o(e)?a(t(e),e["@@transducer/init"](),n):a(t(s(e)),r(e,[],[],!1),n)})},function(e,t,n){var r,i,o,a=n(623),s=n(601),c=n(462),u=n(598),l=n(157);e.exports=(r={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":s},i={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":s},o={"@@transducer/init":Object,"@@transducer/step":function(e,t){return a(e,c(t)?l(t[0],t[1]):t)},"@@transducer/result":s},function(e){if(u(e))return e;if(c(e))return r;if("string"==typeof e)return i;if("object"==typeof e)return o;throw new Error("Cannot create transformer for "+e)})},function(e,t,n){var r=n(51),i=n(178),o=n(84);e.exports=r(function(e){for(var t=o(e),n=t.length,r=0,a={};r<n;){var s=t[r],c=e[s],u=i(c,a)?a[c]:a[c]=[];u[u.length]=s,r+=1}return a})},function(e,t,n){var r=n(51),i=n(84);e.exports=r(function(e){for(var t=i(e),n=t.length,r=0,o={};r<n;){var a=t[r];o[e[a]]=a,r+=1}return o})},function(e,t,n){var r=n(51);e.exports=r(function(e){var t,n=[];for(t in e)n[n.length]=t;return n})},function(e,t,n){var r=n(18),i=n(273),o=n(38);e.exports=r(function(e,t){if("function"!=typeof t.lastIndexOf||i(t)){for(var n=t.length-1;n>=0;){if(o(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)})},function(e,t,n){var r=n(51),i=n(482),o=n(225),a=n(411);e.exports=r(function(e){return i(o(e),a(e))})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){for(var r=0,i=n.length,o=[],a=[t];r<i;)a=e(a[0],n[r]),o[r]=a[1],r+=1;return[a[0],o]})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){for(var r=n.length-1,i=[],o=[t];r>=0;)o=e(n[r],o[0]),i[r]=o[1],r-=1;return[i,o[0]]})},function(e,t,n){var r=n(18),i=n(624);e.exports=r(function(e,t){return i(e)?!i(t)||t<1?NaN:(e%t+t)%t:NaN})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e(n)>e(t)?n:t})},function(e,t,n){var r=n(51),i=n(837);e.exports=r(function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return i(Array.prototype.slice.call(e,0).sort(function(e,t){return e<t?-1:e>t?1:0}).slice(r,r+n))})},function(e,t,n){var r=n(342),i=n(391);e.exports=r(function(){return i(arguments)})},function(e,t,n){var r=n(18),i=n(486);e.exports=r(function(e,t){return i(function(e,t,n){return t},e,t)})},function(e,t,n){var r=n(61),i=n(486);e.exports=r(function(e,t,n){return i(function(t,n,r){return e(n,r)},t,n)})},function(e,t,n){var r=n(61),i=n(627);e.exports=r(function(e,t,n){return i(function(t,n,r){return e(n,r)},t,n)})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return t<e?t:e})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e(n)<e(t)?n:t})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return e%t})},function(e,t,n){var r=n(771),i=n(18),o=n(134),a=n(826),s=n(520);e.exports=i(r(o(["any"],a,s)))},function(e,t,n){var r=n(51),i=n(57),o=n(225);e.exports=r(function(e){return i(e<0?1:e+1,function(){return o(e,arguments)})})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){return e(t(n))})},function(e,t,n){var r=n(220),i=n(51);e.exports=i(function(e){var t,n=!1;return r(e.length,function(){return n?t:(n=!0,t=e.apply(this,arguments))})})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return[e,t]})},function(e,t,n){var r=n(205),i=n(825),o=n(48);e.exports=i(o(r))},function(e,t,n){var r=n(55),i=n(412),o=n(136);e.exports=i([r,o])},function(e,t,n){var r=n(18);e.exports=r(function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n})},function(e,t,n){var r=n(831),i=n(463);e.exports=function(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){var r=n(227),i=n(109);e.exports=i(r,1)},function(e,t,n){var r=n(468),i=n(46),o=n(838),a=n(839);e.exports=a(r,[o,i])},function(e,t,n){var r=n(61),i=n(310);e.exports=r(function(e,t,n){return i(e,n[t])})},function(e,t,n){var r=n(469),i=n(193),o=n(276);e.exports=r(4,[],function(e,t,n,r){return i(function(n,r){return e(n,r)?t(n,r):o(n)},n,r)})},function(e,t,n){var r=n(51),i=n(276);e.exports=r(i)},function(e,t,n){var r=n(18),i=n(17),o=n(841);e.exports=r(function(e,t){return o(i(e),t)})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){for(var r=0,i=n.length,o=[t];r<i;)t=e(t,n[r]),o[r+1]=t,r+=1;return o})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var r=0,i=0;0===r&&i<e.length;)r=e[i](t,n),i+=1;return r})})},function(e,t,n){var r=n(18),i=n(182);e.exports=r(function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(i(r,r+=e,t));return n})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=0,r=t.length,i=[];n<r&&!e(t[n]);)i.push(t[n]),n+=1;return[i,Array.prototype.slice.call(t,n)]})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){return Number(e)-Number(t)})},function(e,t,n){var r=n(61),i=n(54),o=n(833);e.exports=r(function(e,t,n){return i(o(e,t,n),o(e,n,t))})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,n+1)})},function(e,t,n){var r=n(18),i=n(134),o=n(1590);e.exports=r(i(["takeWhile"],o,function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Array.prototype.slice.call(t,0,n)}))},function(e,t,n){var r=n(18),i=n(276),o=n(148);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):i(e)},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(51);e.exports=r(function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t})},function(e,t,n){var r=n(51);e.exports=r(function(e){for(var t=0,n=[];t<e.length;){for(var r=e[t],i=0;i<r.length;)void 0===n[i]&&(n[i]=[]),n[i].push(r[i]),i+=1;t+=1}return n})},function(e,t,n){var r=n(61),i=n(30),o=n(842);e.exports=r(function(e,t,n){return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](t,e):o(e,i(t,n))})},function(e,t,n){var r=n(220),i=n(205),o=n(18);e.exports=o(function(e,t){return r(e.length,function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,i([e],arguments))}})})},function(e,t,n){var r=n(51);e.exports=r(function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=e(t),r=[];n&&n.length;)r[r.length]=n[0],n=e(n[1]);return r})},function(e,t,n){var r=n(205),i=n(18),o=n(8),a=n(341);e.exports=i(o(a,r))},function(e,t,n){var r=n(205),i=n(61),o=n(626);e.exports=i(function(e,t,n){return o(e,r(t,n))})},function(e,t,n){var r=n(601),i=n(625);e.exports=i(r)},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){for(var r=n;!e(r);)r=t(r);return r})},function(e,t,n){var r=n(51);e.exports=r(function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n,r=0,i=e.length,o=t.length,a=[];r<i;){for(n=0;n<o;)a[a.length]=[e[r],t[n]],n+=1;r+=1}return a})},function(e,t,n){var r=n(18);e.exports=r(function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})},function(e,t,n){var r=n(61);e.exports=r(function(e,t,n){for(var r=[],i=0,o=Math.min(t.length,n.length);i<o;)r[i]=e(t[i],n[i]),i+=1;return r})},function(e,t,n){var r=n(1606);n(1611),n(1613),n(1615),n(1617),n(1619),n(1620),n(1621),n(1622),n(1623),n(1624),n(1626),n(1627),n(1628),n(1629),n(1630),n(1631),n(1632),n(1633),n(1634),n(1635),e.exports=r},function(e,t,n){n(1607),n(592),n(328),n(295);var r=n(93);e.exports=r.Map},function(e,t,n){"use strict";var r=n(1608),i=n(1610);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){"use strict";var r=n(36),i=n(122),o=n(844),a=n(118),s=n(203),c=n(135),u=n(388),l=n(147),f=n(274),d=n(204).f,h=n(324).forEach,p=n(155),m=n(275),v=m.set,g=m.getterFor;e.exports=function(e,t,n){var m,y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),_=y?"set":"add",w=i[e],x=w&&w.prototype,k={};if(p&&"function"==typeof w&&(b||x.forEach&&!a(function(){(new w).entries().next()}))){m=t(function(t,n){v(u(t,m,e),{type:e,collection:new w}),null!=n&&c(n,t[_],{that:t,AS_ENTRIES:y})});var E=g(e);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"==e||"set"==e;e in x&&(!b||"clear"!=e)&&s(m.prototype,e,function(n,r){var i=E(this).collection;if(!t&&b&&!l(n))return"get"==e&&void 0;var o=i[e](0===n?0:n,r);return t?this:o})}),b||d(m.prototype,"size",{configurable:!0,get:function(){return E(this).collection.size}})}else m=n.getConstructor(t,e,y,_),o.REQUIRED=!0;return f(m,e,!1,!0),k[e]=m,r({global:!0,forced:!0},k),b||n.setStrong(m,e,y),m}},function(e,t,n){var r=n(118);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){"use strict";var r=n(204).f,i=n(299),o=n(605),a=n(168),s=n(388),c=n(135),u=n(597),l=n(811),f=n(155),d=n(844).fastKey,h=n(275),p=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})}),h=m(t),v=function(e,t,n){var r,i,o=h(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=h(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=h(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);u(e,t,function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){n(36)({target:"Map",stat:!0},{from:n(1612)})},function(e,t,n){"use strict";var r=n(140),i=n(168),o=n(135);e.exports=function(e){var t,n,a,s,c=arguments.length,u=c>1?arguments[1]:void 0;return r(this),(t=void 0!==u)&&r(u),null==e?new this:(n=[],t?(a=0,s=i(u,c>2?arguments[2]:void 0,2),o(e,function(e){n.push(s(e,a++))})):o(e,n.push,{that:n}),new this(n))}},function(e,t,n){n(36)({target:"Map",stat:!0},{of:n(1614)})},function(e,t,n){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(1616);r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},function(e,t,n){"use strict";var r=n(96),i=n(140);e.exports=function(){for(var e,t=r(this),n=i(t.delete),o=!0,a=0,s=arguments.length;a<s;a++)e=n.call(t,arguments[a]),o=o&&e;return!!o}},function(e,t,n){"use strict";n(36)({target:"Map",proto:!0,real:!0,forced:n(105)},{emplace:n(1618)})},function(e,t,n){"use strict";var r=n(96);e.exports=function(e,t){var n=r(this),i=n.has(e)&&"update"in t?t.update(n.get(e),e,n):t.insert(e,n);return n.set(e,i),i}},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(168),s=n(222),c=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{every:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!c(n,function(e,n,i){if(!r(n,e,t))return i()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(177),a=n(96),s=n(140),c=n(168),u=n(396),l=n(222),f=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),n=l(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,o("Map"))),d=s(i.set);return f(n,function(e,n){r(n,e,t)&&d.call(i,e,n)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(168),s=n(222),c=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return c(n,function(e,n,i){if(r(n,e,t))return i(n)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(168),s=n(222),c=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return c(n,function(e,n,i){if(r(n,e,t))return i(e)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(36),i=n(135),o=n(140);r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;o(t);var r=o(n.has),a=o(n.get),s=o(n.set);return i(e,function(e){var i=t(e);r.call(n,i)?a.call(n,i).push(e):s.call(n,i,[e])}),n}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(222),s=n(1625),c=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return c(a(o(this)),function(t,n,r){if(s(n,e))return r()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(36),i=n(135),o=n(140);r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;o(t);var r=o(n.set);return i(e,function(e){r.call(n,t(e),e)}),n}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(222),s=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(a(o(this)),function(t,n,r){if(n===e)return r(t)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(177),a=n(96),s=n(140),c=n(168),u=n(396),l=n(222),f=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=a(this),n=l(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,o("Map"))),d=s(i.set);return f(n,function(e,n){d.call(i,r(n,e,t),n)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(177),a=n(96),s=n(140),c=n(168),u=n(396),l=n(222),f=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(e){var t=a(this),n=l(t),r=c(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,o("Map"))),d=s(i.set);return f(n,function(e,n){d.call(i,e,r(n,e,t))},{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(140),s=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){for(var t=o(this),n=a(t.set),r=0;r<arguments.length;)s(arguments[r++],n,{that:t,AS_ENTRIES:!0});return t}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(140),s=n(222),c=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=o(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(a(e),c(n,function(n,o){r?(r=!1,i=o):i=e(i,o,n,t)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty map with no initial value");return i}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(168),s=n(222),c=n(135);r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return c(n,function(e,n,i){if(r(n,e,t))return i()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(36),i=n(105),o=n(96),a=n(140);r({target:"Map",proto:!0,real:!0,forced:i},{update:function(e,t){var n=o(this),r=arguments.length;a(t);var i=n.has(e);if(!i&&r<3)throw TypeError("Updating absent value");var s=i?n.get(e):a(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},function(e,t,n){"use strict";n(36)({target:"Map",proto:!0,real:!0,forced:n(105)},{upsert:n(845)})},function(e,t,n){"use strict";n(36)({target:"Map",proto:!0,real:!0,forced:n(105)},{updateOrInsert:n(845)})},function(e,t,n){var r=n(1637);e.exports=r},function(e,t,n){n(295);var r=n(1638),i=n(294),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.values;return e===o||e instanceof Array&&t===o.values||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(1639);e.exports=r},function(e,t,n){n(441);var r=n(132);e.exports=r("Array").values},function(e,t,n){var r=n(195);
/** @license ISC License (c) copyright 2017 original and current authors */e.exports=function(e){return function(t){return-1!==r(e).call(e,t)}}},function(e,t,n){var r=n(128),i=n(16),o=n(60),a=n(5),s=n(628),c=n(249),u=n(846),l=n(847),f=n(1642),d=n(1643);function h(e){return e&&c(e.inspect)?" "+e.inspect():c(e)?" Function":s(e)?" ["+((t=e).length?r(n=i(t).call(t,h)).call(n,function(e,t){return e+","+t}):t)+" ]":u(e)?" { "+r(p=o(e)).call(p,function(t,n){return a(t).call(t,[n+":"+h(e[n])])},[]).join(", ")+" }":l(e)?' "'+e+'"':f(e)||d(e)?" "+e.toString():" "+e;var t,n,p}e.exports=h},function(e,t,n){var r=n(255);
/** @license ISC License (c) copyright 2018 original and current authors */e.exports=function(e){return"symbol"===r(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"[object Date]"===Object.prototype.toString.apply(e)&&!isNaN(e.valueOf())}},function(e,t,n){var r=n(5),i=n(16),o=n(128),a=n(1645),s=n(47),c=n(849),u=n(628),l=n(1651),f=n(249),d=n(629),h=n(850),p=n(1656),m=function(e){return e},v=function(e){return function(t){return r(e).call(e,t)}};function g(e,t){return function(n,r){var o=t(r);if(!c(n)&&!u(n)||!d(n,o))throw new TypeError("Array."+e+": Must wrap Applys of the same type");return u(o)?_(n,b(function(e){return v([e])},o)):i(o).call(o,function(e){return v([e])}).ap(n)}}var y=function(e){return o(e).call(e,function(e,t){return e&&f(t)},!0)},b=function(e,t){return i(t).call(t,function(t){return e(t)})};function _(e,t){if(!t.length||!y(t))throw new TypeError("Array.ap: Second Array must all be functions");return o(t).call(t,function(t,n){return r(t).call(t,b(n,e))},[])}e.exports={ap:_,chain:function(e,t){return o(t).call(t,function(t,n){var i=e(n);if(!u(i))throw new TypeError("Array.chain: Function must return an Array");return r(t).call(t,i)},[])},fold:function(e){if(l(e))throw new TypeError("Array.fold: Non-empty Array of Semigroups required");var t=e[0];if(!h(t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return o(e).call(e,function(e,t){if(!d(e,t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return r(e).call(e,t)})},foldMap:function(e,t){var n;if(l(t))throw new TypeError("Array.foldMap: Non-empty Array required");var i=e(t[0]);if(!h(i))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return 1===t.length?i:o(n=s(t).call(t,1)).call(n,function(t,n){var i=e(n);if(!d(t,i)||!h(i))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return r(t).call(t,i)},i)},map:b,sequence:function(e,t){var n=p(e);return a(t).call(t,g("sequence",m),n([]))},set:function(e,t,n){var r=s(n).call(n);return r[e]=t,r},traverse:function(e,t,n){var r=p(e);return a(n).call(n,g("traverse",t),r([]))},unset:function(e,t){var n;return r(n=s(t).call(t,0,e)).call(n,s(t).call(t,e+1))}}},function(e,t,n){e.exports=n(1646)},function(e,t,n){var r=n(1647);e.exports=r},function(e,t,n){var r=n(1648),i=Array.prototype;e.exports=function(e){var t=e.reduceRight;return e===i||e instanceof Array&&t===i.reduceRight?r:t}},function(e,t,n){n(1649);var r=n(132);e.exports=r("Array").reduceRight},function(e,t,n){"use strict";var r=n(36),i=n(823).right,o=n(369),a=n(322),s=n(397);r({target:"Array",proto:!0,forced:!o("reduceRight")||!s&&a>79&&a<83},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(303);e.exports=function(e){return!!e&&r("map",e)}},function(e,t,n){var r=n(60),i=n(846),o=n(1652),a=n(1653),s=n(487);
/** @license ISC License (c) copyright 2016 original and current authors */e.exports=function(e){if(o(e)){var t=e.constructor[s.empty]||e.constructor.empty||e.empty;return a(e,t())}return i(e)?!r(e).length:!e||void 0===e.length||!e.length}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(303),i=n(850);e.exports=function(e){return i(e)&&(r("empty",e)||r("empty",e.constructor))}},function(e,t,n){var r=n(60),i=n(629),o=n(1655),a=n(303),s=n(851),c=n(487),u=function(e,t){return e.valueOf()===t.valueOf()},l={Array:function(e,t){return e.length===t.length&&f(e,t)},Date:function(e,t){return o(e.valueOf(),t.valueOf())},Error:function(e,t){return e.name===t.name&&e.message===t.message},Object:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){return r(e).length===r(t).length&&f(e,t)}),RegExp:function(e,t){return e.source===t.source&&e.ignoreCase===t.ignoreCase&&e.global===t.global&&e.multiline===t.multiline&&e.unicode===t.unicode}};
/** @license ISC License (c) copyright 2017 original and current authors */function f(e,t){for(var n in e)if(!d(e[n],t[n]))return!1;return!0}function d(e,t){return!!o(e,t)||!!i(e,t)&&(a("equals",e)?(t[c.equals]||t.equals).call(t,e):(l[s(e)]||u)(e,t))}e.exports=d},function(e,t,n){var r=n(4),i=n(5),o=n(128),a=n(249);function s(e,t){return a(e)?e.length>1?r(e).call(e,null,t):e.call(null,t):e}e.exports=function e(t){return function(){for(var n=[],c=arguments.length;c--;)n[c]=arguments[c];var u,l=n.length?n:[void 0];if(l.length<t.length)return e(r(Function).apply(t,i(u=[null]).call(u,l)));var f=l.length===t.length?t.apply(null,l):o(l).call(l,s,t);return a(f)?e(f):f}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(1657),i=n(1658);e.exports=function(e){return function(t){return r(e)?e.of(t):i(Array,e)?[t]:e(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(303),i=n(849);e.exports=function(e){return i(e)&&(r("of",e)||r("of",e.constructor))}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(249);e.exports=function(e,t){return r(t)&&(e===t||e.name===t.name)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(303);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1664);e.exports=function(e){return r(e)&&isFinite(e)&&Math.floor(e)===e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(249);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t,n){"use strict";var r=n(189),i=n(852),o=n(1667),a=n(858);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(855));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(859),c.CancelToken=n(1680),c.isCancel=n(854),c.all=function(e){return Promise.all(e)},c.spread=n(1681),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(189),i=n(853),o=n(1668),a=n(1669),s=n(858);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=c},function(e,t,n){"use strict";var r=n(189);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(189),i=n(1670),o=n(854),a=n(855);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(189);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(189);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(857);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1675),i=n(1676);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(189),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(189);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(189);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(859);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var r=n(1683),i=n(1687);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){var r=n(390),i=n(1684),o=n(565),a=n(1685);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(860),i=n(191)(r("tail",n(1686)(1,1/0)));e.exports=i},function(e,t,n){var r=n(860),i=n(389)(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));e.exports=i},function(e,t,n){var r=n(191),i=n(767),o=r(function(e){return i(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});e.exports=o},function(e,t,n){var r=n(179)(function(e,t){return null!=t&&t.constructor===e||t instanceof e});e.exports=r},function(e,t,n){var r=n(389)(function(e,t,n){return e(n)?n:t(n)});e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1691),i=n(1692),o=n(863).type("Async"),a=n(863).typeFn(o(),5),s=n(488),c=n(1695),u=n(1705),l=n(1706),f=n(1707),d=n(630),h=n(1708),p=n(250),m=n(1709),v=n(1711),g=n(631),y=function(e){return e.reduce(function(e,t){return e&&g(_,t)},!0)},b=function(e){return _(function(t,n){return n(e)})};function _(e){var t;if(!p(e))throw new TypeError("Async: Function required");var n=b,r=function(){return"Async"+i(e)};function c(t,n,r){if(!p(t)||!p(n))throw new TypeError("Async.fork: Reject and resolve functions required");var i=!1,o=!1,a=p(r)?r:f,s=function(e,t){if(!o)return o=!0,i?f():e(t)},c=e(s.bind(null,t),s.bind(null,n)),u=p(c)?c:f;return l(function(){return a((u(),void(i=!0)))})}function d(e){return function(t){if(!p(t))throw new TypeError("Async."+e+": Function required");return _(function(e,n){return c(e,u(n,t))})}}function h(e){return function(t,n){if(!p(t)||!p(n))throw new TypeError("Async."+e+": Functions required for both arguments");return _(function(e,r){return c(u(e,t),u(r,n))})}}function m(e){return function(t){if(!g(_,t))throw new TypeError("Async."+e+": Async required");return _(function(e,n){var r=f,i=f;return r=c(function(){i=t.fork(e,n)},n),l(function(){return i(r())})})}}function v(e){return function(t){if(!p(t))throw new TypeError("Async."+e+": Async returning function required");return _(function(n,r){var i=f,o=f;return i=c(n,function(i){var a=t(i);if(!g(_,a))throw new TypeError("Async."+e+": Function must return another Async");o=a.fork(n,r)}),l(function(){return o(i())})})}}return(t={fork:c,toPromise:function(){return new Promise(function(e,t){c(t,e)})},inspect:r,toString:r,type:o,swap:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.swap: Functions required for both arguments");return _(function(n,r){return c(u(r,e),u(n,t))})},race:function(e){if(!g(_,e))throw new TypeError("Async.race: Async required");return _(function(t,n){var r=l(function(e,r){return e?n(r):t(r)}),i=r.bind(null,!0),o=r.bind(null,!1),a=c(o,i),s=e.fork(o,i);return function(){a(),s()}})},coalesce:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return _(function(n,r){return c(u(r,e),u(r,t))})},ap:function(e){if(!g(_,e))throw new TypeError("Async.ap: Async required");return _(function(t,n){var r=null,i=null,o=!1,a=!1,s=!1,f=l(t);function d(){!s&&o&&a&&u(n,r)(i)}var h=c(f,function(e){if(!p(e))throw new TypeError("Async.ap: Wrapped value must be a function");o=!0,r=e,d()}),m=e.fork(f,function(e){a=!0,i=e,d()});return function(){h(),m(),s=!0}})},of:n,alt:m("alt"),bimap:h("bimap"),map:d("map"),chain:v("chain"),bichain:function(e,t){var n="Async.bichain: Both arguments must be Async returning functions";if(!p(e)||!p(t))throw new TypeError(n);return _(function(r,i){var o=f,a=f;function s(e){return function(t){var o=e(t);if(!g(_,o))throw new TypeError(n);a=o.fork(r,i)}}return o=c(s(e),s(t)),l(function(){return a(o())})})}})[s.of]=n,t[s.alt]=m(s.alt),t[s.bimap]=h(s.bimap),t[s.map]=d(s.map),t[s.chain]=v(s.chain),t["@@type"]=a,t.constructor=_,t}_.of=b,_.type=o,_[s.of]=b,_["@@type"]=a,_.Rejected=function(e){return _(function(t){return t(e)})},_.Resolved=b,_.fromPromise=function(e){if(!p(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return _(function(n,r){var i=e.apply(null,t);if(!v(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r,n)})}},_.fromNode=function(e,t){if(!p(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return _(function(r,i){e.apply(t,n.concat(function(e,t){return e?r(e):i(t)}))})}},_.all=function(e){if(!h(e)||!y(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return d(e)?c.sequence(_.of,e):e.sequence(_.of)},_.rejectAfter=function(e,t){if(!(m(e)&&e>=0))throw new TypeError("Async.rejectAfter: Positive Integer required for first argument");return _(function(n){var r=setTimeout(function(){n(t)},e);return function(){clearTimeout(r)}})},_.resolveAfter=function(e,t){if(!(m(e)&&e>=0))throw new TypeError("Async.resolveAfter: Positive Integer required for first argument");return _(function(n,r){var i=setTimeout(function(){r(t)},e);return function(){clearTimeout(i)}})},_["@@implements"]=r(["alt","ap","bimap","chain","map","of"]),e.exports=_},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(630),i=n(250),o=n(861),a=n(862),s=n(1693),c=n(1694);function u(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(u).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" { "+Object.keys(e).reduce(function(t,n){return t.concat([n+":"+u(e[n])])},[]).join(", ")+" }":a(e)?' "'+e+'"':s(e)||c(e)?" "+e.toString():" "+e;var t}e.exports=u},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"symbol"==typeof e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"[object Date]"===Object.prototype.toString.apply(e)&&!isNaN(e.valueOf())}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(864),i=n(630),o=n(1697),a=n(250),s=n(631),c=n(865),u=n(1702),l=function(e){return e},f=function(e){return function(t){return e.concat(t)}};function d(e,t){return function(n,o){var a=t(o);if(!r(n)&&!i(n)||!s(n,a))throw new TypeError("Array."+e+": Must wrap Applys of the same type");return i(a)?m(n,p(function(e){return f([e])},a)):a.map(function(e){return f([e])}).ap(n)}}var h=function(e){return e.reduce(function(e,t){return e&&a(t)},!0)},p=function(e,t){return t.map(function(t){return e(t)})};function m(e,t){if(!t.length||!h(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(p(n,e))},[])}e.exports={ap:m,chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!i(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},fold:function(e){if(o(e))throw new TypeError("Array.fold: Non-empty Array of Semigroups required");var t=e[0];if(!c(t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return e.reduce(function(e,t){if(!s(e,t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return e.concat(t)})},foldMap:function(e,t){if(o(t))throw new TypeError("Array.foldMap: Non-empty Array required");var n=e(t[0]);if(!c(n))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return 1===t.length?n:t.slice(1).reduce(function(t,n){var r=e(n);if(!s(t,r)||!c(r))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return t.concat(r)},n)},map:p,sequence:function(e,t){var n=u(e);return t.reduceRight(d("sequence",l),n([]))},set:function(e,t,n){var r=n.slice();return r[e]=t,r},traverse:function(e,t,n){var r=u(e);return n.reduceRight(d("traverse",t),r([]))},unset:function(e,t){return t.slice(0,e).concat(t.slice(e+1))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(304);e.exports=function(e){return!!e&&r("map",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(861),i=n(1698),o=n(1699),a=n(488);e.exports=function(e){if(i(e)){var t=e.constructor[a.empty]||e.constructor.empty||e.empty;return o(e,t())}return r(e)?!Object.keys(e).length:!e||void 0===e.length||!e.length}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(304),i=n(865);e.exports=function(e){return i(e)&&(r("empty",e)||r("empty",e.constructor))}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(631),i=n(1701),o=n(304),a=n(866),s=n(488),c=function(e,t){return e.valueOf()===t.valueOf()},u={Array:function(e,t){return e.length===t.length&&l(e,t)},Date:function(e,t){return i(e.valueOf(),t.valueOf())},Error:function(e,t){return e.name===t.name&&e.message===t.message},Object:function(e,t){return Object.keys(e).length===Object.keys(t).length&&l(e,t)},RegExp:function(e,t){return e.source===t.source&&e.ignoreCase===t.ignoreCase&&e.global===t.global&&e.multiline===t.multiline&&e.unicode===t.unicode}};function l(e,t){for(var n in e)if(!f(e[n],t[n]))return!1;return!0}function f(e,t){return!!i(e,t)||!!r(e,t)&&(o("equals",e)?(t[s.equals]||t.equals).call(t,e):(u[a(e)]||c)(e,t))}e.exports=f},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(250);function i(e,t){return r(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];var a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(i,t);return r(s)?e(s):s}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(1703),i=n(1704);e.exports=function(e){return function(t){return r(e)?e.of(t):i(Array,e)?[t]:e(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(304),i=n(864);e.exports=function(e){return i(e)&&(r("of",e)||r("of",e.constructor))}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(250);e.exports=function(e,t){return r(t)&&(e===t||e.name===t.name)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(304);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1710);e.exports=function(e){return r(e)&&isFinite(e)&&Math.floor(e)===e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(250);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a=/^(?:0|[1-9]\d*)$/;var s,c,u=Object.prototype,l=u.hasOwnProperty,f=u.toString,d=u.propertyIsEnumerable,h=(s=Object.keys,c=Object,function(e){return s(c(e))}),p=Math.max,m=!d.call({valueOf:1},"valueOf");function v(e,t){var n=w(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&x(e)}(e)&&l.call(e,"callee")&&(!d.call(e,"callee")||f.call(e)==r)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=n.length,o=!!i;for(var a in e)!t&&!l.call(e,a)||o&&("length"==a||y(a,i))||n.push(a);return n}function g(e,t,n){var r=e[t];l.call(e,t)&&_(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function y(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function b(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||u)}function _(e,t){return e===t||e!=e&&t!=t}var w=Array.isArray;function x(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=k(e)?f.call(e):"";return t==i||t==o}(e)}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var E=function(e){return t=function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!k(n))return!1;var r=typeof t;return!!("number"==r?x(n)&&y(t,n.length):"string"==r&&t in n)&&_(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t},n=p(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,i=p(e.length-n,0),o=Array(i);++r<i;)o[r]=e[n+r];r=-1;for(var a=Array(n+1);++r<n;)a[r]=e[r];return a[n]=o,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(t,this,a)};var t,n}(function(e,t){if(m||b(t)||x(t))!function(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;g(n,a,void 0===s?e[a]:s)}}(t,function(e){return x(e)?v(e):function(e){if(!b(e))return h(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(t),e);else for(var n in t)l.call(t,n)&&g(e,n,t[n])});e.exports=E},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(216),i=n(442);e.exports=function(e){return i(e)&&r("chain",e)}},function(e,t,n){var r=n(489);e.exports=r(function(e,t){return{type:e,payload:t}})},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.prototype.slice.call(e)}},function(e,t,n){var r=n(489);e.exports=r(function(e,t){return[t,e]})},function(e,t,n){var r=n(489);e.exports=r(function(e,t){return{type:e,payload:t,error:!0}})},function(e,t,n){var r=n(489);e.exports=r(function(e,t){return function(n,r){void 0===n&&(n=e);var i=r.type,o=r.payload,a=r.error;return t[i]?t[i](n,o,a):n}})},function(e,t){e.exports=function(e,t,n){return n&&console.error(t),e}},function(e,t){e.exports=function(e){return function(t,n,r){return r?t:e(t,n)}}},function(e,t,n){var r=n(1723),i=n(1725);e.exports=function(e){return i(e).map(r({type:"SIDE_EFFECT"}))}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(632);e.exports=r(n(1724))},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1726),i=n(1727),o=n(1730).type("IO"),a=n(1731),s=n(400),c=n(1732),u=function(e){return l(function(){return e})};function l(e){if(!s(e))throw new TypeError("IO: Must wrap a function");function t(t){if(!s(t))throw new TypeError("IO.chain: Function required");return l(function(){var n=t(e());if(!c(l,n))throw new TypeError("IO.chain: Function must return an IO");return n.run()})}return{inspect:function(){return"IO"+i(e)},run:e,type:o,map:function(t){if(!s(t))throw new TypeError("IO.map: Function required");return l(a(t,e))},ap:function(e){if(!c(l,e))throw new TypeError("IO.ap: IO required");return t(function(t){return e.map(t)})},of:u,chain:t}}l.of=u,l.type=o,l["@@implements"]=r(["ap","chain","map","of"]),e.exports=l},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(867),i=n(400),o=n(1728),a=n(1729);function s(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(s).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" {}":a(e)?' "'+e+'"':" "+e;var t}e.exports=s},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return!!e&&e.toString&&"[object Object]"===e.toString()}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(){return"Const"},Either:function(){return"Either"},Endo:function(){return"Endo"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e){return{type:r(e)}},type:r}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(632),i=n(867),o=n(400),a=n(1733);function s(e){return!!e&&o(e.type)}function c(e){return i(e)?"array":typeof e}e.exports=r(function(e,t){return s(e)||s(t)?function(e,t){return s(e)&&s(t)&&e.type()===t.type()}(e,t):a(e)||a(t)?e===t:function(e,t){return e.name===t.constructor.name||t.name===e.constructor.name}(e,t)||c(e)===c(t)})},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){return null==e||Number.isNaN(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(216),i=n(619);e.exports=function(e){return i(e)&&r("bimap",e)}},function(e,t,n){},function(e,t,n){var r=n(868),i=n(882),o=n(495);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var c=r(n,3);t=o(t),n=function(e){return c(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[c?t[u]:u]:void 0}}},function(e,t,n){var r=n(1738),i=n(1798),o=n(884);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(869),i=n(874),o=1,a=2;e.exports=function(e,t,n,s){var c=n.length,u=c,l=!s;if(null==e)return!u;for(e=Object(e);c--;){var f=n[c];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++c<u;){var d=(f=n[c])[0],h=e[d],p=f[1];if(l&&f[2]){if(void 0===h&&!(d in e))return!1}else{var m=new r;if(s)var v=s(h,p,d,e,t,m);if(!(void 0===v?i(p,h,o|a,s,m):v))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(491),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(491);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(491);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(491);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(490);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(490),i=n(633),o=n(634),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(871),i=n(1752),o=n(305),a=n(873),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(492),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(1753),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(223)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(1756),i=n(490),o=n(633);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(1757),i=n(1758),o=n(1759),a=n(1760),s=n(1761);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(493);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(493),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(493),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(493),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t,n){var r=n(494);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(494);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(494);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(494);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(869),i=n(875),o=n(1773),a=n(1777),s=n(1793),c=n(251),u=n(877),l=n(879),f=1,d="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,y){var b=c(e),_=c(t),w=b?h:s(e),x=_?h:s(t),k=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(S&&!k)return y||(y=new r),b||l(e)?i(e,t,n,v,g,y):o(e,t,w,n,v,g,y);if(!(n&f)){var T=k&&m.call(e,"__wrapped__"),O=E&&m.call(t,"__wrapped__");if(T||O){var C=T?e.value():e,j=O?t.value():t;return y||(y=new r),g(C,j,n,v,y)}}return!!S&&(y||(y=new r),a(e,t,n,v,g,y))}},function(e,t,n){var r=n(634),i=n(1769),o=n(1770);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(492),i=n(1774),o=n(870),a=n(875),s=n(1775),c=n(1776),u=1,l=2,f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",x=r?r.prototype:void 0,k=x?x.valueOf:void 0;e.exports=function(e,t,n,r,x,E,S){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!E(new i(e),new i(t)));case f:case d:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case p:var T=s;case g:var O=r&u;if(T||(T=c),e.size!=t.size&&!O)return!1;var C=S.get(e);if(C)return C==t;r|=l,S.set(e,t);var j=a(T(e),T(t),r,x,E,S);return S.delete(e),j;case b:if(k)return k.call(e)==k.call(t)}return!1}},function(e,t,n){var r=n(223).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(1778),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,c){var u=n&i,l=r(e),f=l.length;if(f!=r(t).length&&!u)return!1;for(var d=f;d--;){var h=l[d];if(!(u?h in t:o.call(t,h)))return!1}var p=c.get(e);if(p&&c.get(t))return p==t;var m=!0;c.set(e,t),c.set(t,e);for(var v=u;++d<f;){var g=e[h=l[d]],y=t[h];if(a)var b=u?a(y,g,h,t,e,c):a(g,y,h,e,t,c);if(!(void 0===b?g===y||s(g,y,n,a,c):b)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(1779),i=n(1781),o=n(495);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(1780),i=n(251);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(1782),i=n(1783),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(1785),i=n(876),o=n(251),a=n(877),s=n(878),c=n(879),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&c(e),h=n||l||f||d,p=h?r(e.length,String):[],m=p.length;for(var v in e)!t&&!u.call(e,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||p.push(v);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(333),i=n(334),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(333),i=n(635),o=n(334),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(1790),i=n(1791),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},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(1792)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(1794),i=n(633),o=n(1795),a=n(1796),s=n(1797),c=n(333),u=n(873),l=u(r),f=u(i),d=u(o),h=u(a),p=u(s),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(332)(n(223),"DataView");e.exports=r},function(e,t,n){var r=n(332)(n(223),"Promise");e.exports=r},function(e,t,n){var r=n(332)(n(223),"Set");e.exports=r},function(e,t,n){var r=n(332)(n(223),"WeakMap");e.exports=r},function(e,t,n){var r=n(883),i=n(495);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(874),i=n(80),o=n(1803),a=n(636),s=n(883),c=n(884),u=n(497),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(1801),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(1802),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(634),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(1804),i=n(1805);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(886),i=n(876),o=n(251),a=n(878),s=n(635),c=n(497);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var d=c(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(889),i=n(1808),o=n(636),a=n(497);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t,n){var r=n(885);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(1810),i=n(868),o=n(890),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(891),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(1813);e.exports=r},function(e,t,n){var r=n(1814),i=String.prototype;e.exports=function(e){var t=e.endsWith;return"string"==typeof e||e===i||e instanceof String&&t===i.endsWith?r:t}},function(e,t,n){n(1815);var r=n(132);e.exports=r("String").endsWith},function(e,t,n){"use strict";var r,i=n(36),o=n(272).f,a=n(200),s=n(582),c=n(247),u=n(586),l=n(105),f="".endsWith,d=Math.min,h=u("endsWith");i({target:"String",proto:!0,forced:!!(l||h||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!h},{endsWith:function(e){var t=String(c(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:d(a(n),r),o=String(e);return f?f.call(t,o,i):t.slice(i-o.length,i)===o}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,u=36,l=1,f=26,d=38,h=700,p=72,m=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=u-l,x=Math.floor,k=String.fromCharCode;function E(e){throw new RangeError(_[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function C(e){return S(e,function(e){var t="";return e>65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?x(e/h):e>>1,e+=x(e/t);e>w*f>>1;r+=u)e=x(e/w);return x(r+(w+1)*e/(e+d))}function M(e){var t,n,r,i,o,a,s,d,h,g,y,b=[],_=e.length,w=0,k=m,S=p;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&E("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<_;){for(o=w,a=1,s=u;i>=_&&E("invalid-input"),((d=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:u)>=u||d>x((c-w)/a))&&E("overflow"),w+=d*a,!(d<(h=s<=S?l:s>=S+f?f:s-S));s+=u)a>x(c/(g=u-h))&&E("overflow"),a*=g;S=A(w-o,t=b.length+1,0==o),x(w/t)>c-k&&E("overflow"),k+=x(w/t),w%=t,b.splice(w++,0,k)}return C(b)}function P(e){var t,n,r,i,o,a,s,d,h,g,y,b,_,w,S,T=[];for(b=(e=O(e)).length,t=m,n=0,o=p,a=0;a<b;++a)(y=e[a])<128&&T.push(k(y));for(r=i=T.length,i&&T.push(v);r<b;){for(s=c,a=0;a<b;++a)(y=e[a])>=t&&y<s&&(s=y);for(s-t>x((c-n)/(_=r+1))&&E("overflow"),n+=(s-t)*_,t=s,a=0;a<b;++a)if((y=e[a])<t&&++n>c&&E("overflow"),y==t){for(d=n,h=u;!(d<(g=h<=o?l:h>=o+f?f:h-o));h+=u)S=d-g,w=u-g,T.push(k(j(g+S%w,0))),d=x(S/w);T.push(k(j(d,0))),o=A(n,_,r==i),n=0,++r}++n,++t}return T.join("")}s={version:"1.4.1",ucs2:{decode:O,encode:C},decode:M,encode:P,toASCII:function(e){return T(e,function(e){return y.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return T(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(248)(e),n(99))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(1823),t.encode=t.stringify=n(1824)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,d,h,p,m=e[l].replace(s,"%20"),v=m.indexOf(n);v>=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),r(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){},function(e,t,n){var r=n(179),i=n(471),o=n(892),a=r(function(e,t){return i(o(e),t)});e.exports=a},function(e,t,n){var r=n(179)(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n});e.exports=r},function(e,t,n){var r=n(179)(function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n});e.exports=r},function(e,t,n){var r=n(179)(function(e,t){return e in t});e.exports=r},function(e,t,n){var r=n(389)(function(e,t,n){return e(n)?t(n):n});e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(279),i=function(e){return function(t,n){return t.concat(e(n))}};e.exports=function(e,t,n){return n.reduce(i(r(e,t)),e.empty())}},function(e,t,n){},function(e,t){},function(e,t,n){var r=n(1080).default,i=n(72);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){var r=n(1838),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=i(null)}function c(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)t(a[0],a[1])}}function u(e,t,n){var r=e;function i(){var t=a(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=i(),u(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),u(),t.endTime=i(),u(),function(e,t){var r=new s;c(e,function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(e){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(e){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}o.prototype=i(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l=r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},h={v:"title",lang:"lang"},p={rt:"ruby"};function m(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e,t){return!p[t.localName]||p[t.localName]===e.localName}function i(t,n){var r=f[t];if(!r)return null;var i=e.document.createElement(r),o=h[t];return o&&n&&(i[o]=n.trim()),i}for(var o,s,c=e.document.createElement("div"),u=c,m=[];null!==(o=n());)if("<"!==o[0])u.appendChild(e.document.createTextNode((s=o,l.innerHTML=s,s=l.textContent,l.textContent="",s)));else{if("/"===o[1]){m.length&&m[m.length-1]===o.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var v,g=a(o.substr(1,o.length-2));if(g){v=e.document.createProcessingInstruction("timestamp",g),u.appendChild(v);continue}var y=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(v=i(y[1],y[3])))continue;if(!r(u,v))continue;if(y[2]){var b=y[2].split(".");b.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(d.hasOwnProperty(n)){var r=t?"background-color":"color",i=d[n];v.style[r]=i}}),v.className=b.join(" ")}m.push(y[1]),u.appendChild(v),u=v}return c}var v=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(e){for(var t=0;t<v.length;t++){var n=v[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(g(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function _(e,t,n){b.call(this),this.cue=t,this.cueDiv=m(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function w(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function x(e,t,n,r){var i=new w(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var c;switch(o.vertical){case"":s=["+y","-y"],c="height";break;case"rl":s=["+x","-x"],c="width";break;case"lr":s=["-x","+x"],c="width"}var u=i.lineHeight,l=u*Math.round(a),f=n[c]+u,d=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/u)*u),a<0&&(l+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(d,l)}else{var h=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=h/2;break;case"end":a-=h}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new w(t)}var p=function(e,t){for(var i,o=new w(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var c=e.intersectPercentage(n);a>c&&(i=new w(e),a=c),e=new w(o)}return i||o}(i,s);t.move(p.toCSSCompatValues(n))}function k(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=i(b.prototype),_.prototype.constructor=_,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},w.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},k.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},k.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};k.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=w.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,c=0;c<t.length;c++)s=t[c],n=new _(e,s,a),r.appendChild(n.div),x(0,n,o,i),s.displayState=n.div,i.push(w.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},k.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},k.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){e.match(/X-TIMESTAMP-MAP/)?c(e,function(e,n){switch(e){case"X-TIMESTAMP-MAP":r=n,i=new s,c(r,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",a(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}var r,i},/=/):c(e,function(e,n){switch(e){case"Region":!function(e){var n=new s;if(c(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new s;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{u(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var d=-1!==i.indexOf("--\x3e");if(!i||d&&(f=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new o(o.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=k},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(1839);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r}).call(this,n(99))},function(e,t){},function(e,t){var n="auto",r={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function o(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function a(e,t,i){this.hasBeenReset=!1;var a="",s=!1,c=e,u=t,l=i,f=null,d="",h=!0,p="auto",m="start",v="auto",g="auto",y=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");c=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return f},set:function(e){f=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var t=function(e){return"string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&e!==n)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=o(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");v=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=o(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=o(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=a},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):c=t}}})}},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r,i,o,a,s;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,i=/^([^\/?#]*)(.*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$"),o=0,a=1,s=2,c=3,u=4,l=5,f=6,d=7;function h(){}function p(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function m(e,t,n,r,i,h){for(var p,m=++t,v=o;;){var g=e.charAt(m);switch(g){case"=":if(v===a)p=e.slice(t,m),v=c;else{if(v!==s)throw new Error("attribute equal must after attrName");v=c}break;case"'":case'"':if(v===c||v===a){if(v===a&&(h.warning('attribute value must after "="'),p=e.slice(t,m)),t=m+1,!((m=e.indexOf(g,t))>0))throw new Error("attribute value no end '"+g+"' match");y=e.slice(t,m).replace(/&#?\w+;/g,i),n.add(p,y,t-1),v=l}else{if(v!=u)throw new Error('attribute value must after "="');y=e.slice(t,m).replace(/&#?\w+;/g,i),n.add(p,y,t),h.warning('attribute "'+p+'" missed start quot('+g+")!!"),t=m+1,v=l}break;case"/":switch(v){case o:n.setTagName(e.slice(t,m));case l:case f:case d:v=d,n.closed=!0;case u:case a:case s:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return h.error("unexpected end of input"),v==o&&n.setTagName(e.slice(t,m)),m;case">":switch(v){case o:n.setTagName(e.slice(t,m));case l:case f:case d:break;case u:case a:"/"===(y=e.slice(t,m)).slice(-1)&&(n.closed=!0,y=y.slice(0,-1));case s:v===s&&(y=p),v==u?(h.warning('attribute "'+y+'" missed quot(")!!'),n.add(p,y.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&y.match(/^(?:disabled|checked|selected)$/i)||h.warning('attribute "'+y+'" missed value!! "'+y+'" instead!!'),n.add(y,y,t));break;case c:throw new Error("attribute value missed!!")}return m;case"":g=" ";default:if(g<=" ")switch(v){case o:n.setTagName(e.slice(t,m)),v=f;break;case a:p=e.slice(t,m),v=s;break;case u:var y=e.slice(t,m).replace(/&#?\w+;/g,i);h.warning('attribute "'+y+'" missed quot(")!!'),n.add(p,y,t);case l:v=f}else switch(v){case s:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&p.match(/^(?:disabled|checked|selected)$/i)||h.warning('attribute "'+p+'" missed value!! "'+p+'" instead2!!'),n.add(p,p,t),t=m,v=a;break;case l:h.warning('attribute space is required"'+p+'"!!');case f:v=a,t=m;break;case c:v=u,t=m;break;case d:throw new Error("elements closed character '/' and '>' must be connected to")}}m++}}function v(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((d=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,d),l=s.slice(d+1),f="xmlns"===u&&l;else l=s,u=null,f="xmlns"===s&&"";a.localName=l,!1!==f&&(null==i&&(i={},b(n,n={})),n[f]=i[f]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(f,c))}for(o=e.length;o--;){(u=(a=e[o]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var d;(d=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,d),l=e.localName=r.slice(d+1)):(u=null,l=e.localName=r);var h=e.uri=n[u||""];if(t.startElement(h,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(h,l,r),i)for(u in i)t.endPrefixMapping(u)}function g(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function y(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function b(e,t){for(var n in e)t[n]=e[n]}function _(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],u=a>4&&o[4][0],l=o[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function w(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function x(e){}function k(e,t){return e.__proto__=t,e}h.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),b(t,t={}),function(e,t,n,r,i){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function a(t){if(t>b){var n=e.substring(b,t).replace(/&#?\w+;/g,o);f&&s(b),r.characters(n,0,t-b),b=t}}function s(t,n){for(;t>=u&&(n=l.exec(e));)c=n.index,u=c+n[0].length,f.lineNumber++;f.columnNumber=t-c+1}var c=0,u=0,l=/.*(?:\r\n?|\n)|.*$/g,f=r.locator,d=[{currentNSMap:t}],h={},b=0;for(;;){try{var k=e.indexOf("<",b);if(k<0){if(!e.substr(b).match(/^\s*$/)){var E=r.doc,S=E.createTextNode(e.substr(b));E.appendChild(S),r.currentElement=S}return}switch(k>b&&a(k),e.charAt(k+1)){case"/":var T=e.indexOf(">",k+3),O=e.substring(k+2,T),C=d.pop();T<0?(O=e.substring(k+2).replace(/[\s<].*/,""),i.error("end tag name: "+O+" is not complete:"+C.tagName),T=k+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),i.error("end tag name: "+O+" maybe not complete"),T=k+1+O.length);var j=C.localNSMap,A=C.tagName==O,M=A||C.tagName&&C.tagName.toLowerCase()==O.toLowerCase();if(M){if(r.endElement(C.uri,C.localName,O),j)for(var P in j)r.endPrefixMapping(P);A||i.fatalError("end tag name: "+O+" is not match the current start tagName:"+C.tagName)}else d.push(C);T++;break;case"?":f&&s(k),T=w(e,k,r);break;case"!":f&&s(k),T=_(e,k,r,i);break;default:f&&s(k);var N=new x,I=d[d.length-1].currentNSMap,T=m(e,k,N,I,o,i),L=N.length;if(!N.closed&&y(e,T,N.tagName,h)&&(N.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),f&&L){for(var D=p(f,{}),R=0;R<L;R++){var B=N[R];s(B.offset),B.locator=p(f,{})}r.locator=D,v(N,r,I)&&d.push(N),r.locator=f}else v(N,r,I)&&d.push(N);"http://www.w3.org/1999/xhtml"!==N.uri||N.closed?T++:T=g(e,T,N.tagName,o,r)}}catch(e){i.error("element parse error: "+e),T=-1}T>b?b=T:a(Math.max(k,b)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},x.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},k({},k.prototype)instanceof k||(k=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=h},function(e,t,n){"use strict";var r=n(896),i=n(895),o=function(){o.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new l(0,0),new l(0,1),new l(1,0),new l(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this)};o.prototype=new r,o.prototype.push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=i.parseSei(e.escapedRBSP)).payloadType===i.USER_DATA_REGISTERED_ITU_T_T35&&(n=i.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=i.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},o.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},o.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},o.prototype.flush=function(){return this.flushStream("flush")},o.prototype.partialFlush=function(){return this.flushStream("partialFlush")},o.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},o.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},o.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},o.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},o.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};var a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(e){return null===e?"":(e=a[e]||e,String.fromCharCode(e))},c=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],u=function(){for(var e=[],t=15;t--;)e.push("");return e},l=function(e,t){l.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=u();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=u();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=u()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=c.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=s(r),o+=s(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};l.prototype=new r,l.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},l.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=u(),this.nonDisplayed_=u(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},l.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},l.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},l.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},l.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},l.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},l.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},l.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},l.prototype.isNormalChar=function(e){return e>=32&&e<=127},l.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=u(),this.displayed_=u()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},l.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},l.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},l.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},l.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},l.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},l.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},e.exports={CaptionStream:o,Cea608Stream:l}},function(e,t,n){"use strict";var r=n(896),i=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=i(e.dts,n),e.pts=i(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};o.prototype=new r,e.exports={TimestampRolloverStream:o,handleRollover:i}},function(e,t,n){"use strict";var r=n(897),i=function(e){var t=31&e[1];return t<<=8,t|=e[2]},o=function(e){return!!(64&e[1])},a=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},s=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};e.exports={parseType:function(e,t){var n=i(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=o(e),n=4+a(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=o(e),r=4+a(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var s=12+((15&e[r+10])<<8|e[r+11]);s<i;){var c=r+s;t[(31&e[c+1])<<8|e[c+2]]=e[c],s+=5+((15&e[c+3])<<8|e[c+4])}return t}},parsePayloadUnitStartIndicator:o,parsePesType:function(e,t){switch(t[i(e)]){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!o(e))return null;var t=4+a(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+a(e),n=e.subarray(t),r=0,i=0,o=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),o}}},function(e,t,n){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]};e.exports={isLikelyAacData:function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},parseId3TagSize:function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10},parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return r[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=i(e.subarray(10,14)));do{if((n=i(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var o=0;o<r.byteLength;o++)if(0===r[o]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(r,0,o))){var a=r.subarray(o+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}}},function(e,t){var n,r,i,o,a,s,c;n=function(e){return 9e4*e},r=function(e,t){return e*t},i=function(e){return e/9e4},o=function(e,t){return e/t},a=function(e,t){return n(o(e,t))},s=function(e,t){return r(i(e),t)},c=function(e,t,n){return i(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:i,audioTsToSeconds:o,audioTsToVideoTs:a,videoTsToAudioTs:s,metadataTsToSeconds:c}},function(e,t,n){},function(e,t,n){var r=n(305),i=n(1852),o=n(891),a="Expected a function",s=Math.max,c=Math.min;e.exports=function(e,t,n){var u,l,f,d,h,p,m=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=u,r=l;return u=l=void 0,m=t,d=e.apply(r,n)}function _(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-m>=f}function w(){var e=i();if(_(e))return x(e);h=setTimeout(w,function(e){var n=t-(e-p);return g?c(n,f-(e-m)):n}(e))}function x(e){return h=void 0,y&&u?b(e):(u=l=void 0,d)}function k(){var e=i(),n=_(e);if(u=arguments,l=this,p=e,n){if(void 0===h)return function(e){return m=e,h=setTimeout(w,t),v?b(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(w,t),b(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(v=!!n.leading,f=(g="maxWait"in n)?s(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==h&&clearTimeout(h),m=0,u=p=l=h=void 0},k.flush=function(){return void 0===h?d:x(i())},k}},function(e,t,n){var r=n(223);e.exports=function(){return r.Date.now()}},function(e,t,n){},function(e,t,n){n(255),n(129),n(1855);e.exports=n(1858)()},function(e,t,n){e.exports=n(1856)},function(e,t,n){var r=n(1857);e.exports=r},function(e,t,n){n(593);var r=n(93);e.exports=r.Symbol.for},function(e,t,n){"use strict";var r=n(402),i=n(403),o=n(1859);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n(0)),o=n(1864),a=u(n(1871)),s=u(n(1873)),c=n(499);function u(e){return e&&e.__esModule?e:{default:e}}var l=(0,c.canUseDOM)()&&n(1874),f=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.innerSliderRefHandler=function(e){return r.innerSlider=e},r.slickPrev=function(){return r.innerSlider.slickPrev()},r.slickNext=function(){return r.innerSlider.slickNext()},r.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)},r.slickPause=function(){return r.innerSlider.pause("paused")},r.slickPlay=function(){return r.innerSlider.autoPlay("play")},r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.media=function(e,t){l.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},t.prototype.componentWillMount=function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var i=void 0;i=0===r?(0,a.default)({minWidth:0,maxWidth:n}):(0,a.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,c.canUseDOM)()&&e.media(i,function(){e.setState({breakpoint:n})})});var n=(0,a.default)({minWidth:t.slice(-1)[0]});(0,c.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}},t.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(e){l.unregister(e.query,e.handler)})},t.prototype.render=function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":r({},s.default,this.props,t[0].settings):r({},s.default,this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=i.default.Children.toArray(this.props.children);a=a.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var c=[],u=null,l=0;l<a.length;l+=e.rows*e.slidesPerRow){for(var f=[],d=l;d<l+e.rows*e.slidesPerRow;d+=e.slidesPerRow){for(var h=[],p=d;p<d+e.slidesPerRow&&(e.variableWidth&&a[p].props.style&&(u=a[p].props.style.width),!(p>=a.length));p+=1)h.push(i.default.cloneElement(a[p],{key:100*l+10*d+p,tabIndex:-1,style:{width:100/e.slidesPerRow+"%",display:"inline-block"}}));f.push(i.default.createElement("div",{key:10*l+d},h))}e.variableWidth?c.push(i.default.createElement("div",{key:l,style:{width:u}},f)):c.push(i.default.createElement("div",{key:l},f))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return i.default.createElement("div",{className:m},c)}return c.length<=e.slidesToShow&&(e.unslick=!0),i.default.createElement(o.InnerSlider,r({ref:this.innerSliderRefHandler},e),c)},t}(i.default.Component);t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.InnerSlider=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=m(n(0)),a=m(n(91)),s=m(n(1865)),c=m(n(1866)),u=m(n(2)),l=n(499),f=n(1867),d=n(1868),h=n(1869),p=m(n(1870));function m(e){return e&&e.__esModule?e:{default:e}}t.InnerSlider=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return m.listRefHandler=function(e){return m.list=e},m.trackRefHandler=function(e){return m.track=e},m.adaptHeight=function(){if(m.props.adaptiveHeight&&m.list){var e=m.list.querySelector('[data-index="'+m.state.currentSlide+'"]');m.list.style.height=(0,l.getHeight)(e)+"px"}},m.componentWillMount=function(){if(m.ssrInit(),m.props.onInit&&m.props.onInit(),m.props.lazyLoad){var e=(0,l.getOnDemandLazySlides)(i({},m.props,m.state));e.length>0&&(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e))}},m.componentDidMount=function(){var e=i({listRef:m.list,trackRef:m.track},m.props);m.updateState(e,!0,function(){m.adaptHeight(),m.props.autoplay&&m.autoPlay("update")}),"progressive"===m.props.lazyLoad&&(m.lazyLoadTimer=setInterval(m.progressiveLazyLoad,1e3)),m.ro=new p.default(function(){m.state.animating?(m.onWindowResized(!1),m.callbackTimers.push(setTimeout(function(){return m.onWindowResized()},m.props.speed))):m.onWindowResized()}),m.ro.observe(m.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=m.props.pauseOnFocus?m.onSlideFocus:null,e.onblur=m.props.pauseOnFocus?m.onSlideBlur:null}),window&&(window.addEventListener?window.addEventListener("resize",m.onWindowResized):window.attachEvent("onresize",m.onWindowResized))},m.componentWillUnmount=function(){m.animationEndCallback&&clearTimeout(m.animationEndCallback),m.lazyLoadTimer&&clearInterval(m.lazyLoadTimer),m.callbackTimers.length&&(m.callbackTimers.forEach(function(e){return clearTimeout(e)}),m.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",m.onWindowResized):window.detachEvent("onresize",m.onWindowResized),m.autoplayTimer&&clearInterval(m.autoplayTimer)},m.componentWillReceiveProps=function(e){var t=i({listRef:m.list,trackRef:m.track},e,m.state),n=!1,a=Object.keys(m.props),s=Array.isArray(a),c=0;for(a=s?a:a[Symbol.iterator]();;){var u;if(s){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}var l=u;if(!e.hasOwnProperty(l)){n=!0;break}if("object"!==r(e[l])&&"function"!=typeof e[l]&&e[l]!==m.props[l]){n=!0;break}}m.updateState(t,n,function(){m.state.currentSlide>=o.default.Children.count(e.children)&&m.changeSlide({message:"index",index:o.default.Children.count(e.children)-e.slidesToShow,currentSlide:m.state.currentSlide}),e.autoplay?m.autoPlay("update"):m.pause("paused")})},m.componentDidUpdate=function(){if(m.checkImagesLoad(),m.props.onReInit&&m.props.onReInit(),m.props.lazyLoad){var e=(0,l.getOnDemandLazySlides)(i({},m.props,m.state));e.length>0&&(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e))}m.adaptHeight()},m.onWindowResized=function(e){m.debouncedResize&&m.debouncedResize.cancel(),m.debouncedResize=(0,c.default)(function(){return m.resizeWindow(e)},50),m.debouncedResize()},m.resizeWindow=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(a.default.findDOMNode(m.track)){var t=i({listRef:m.list,trackRef:m.track},m.props,m.state);m.updateState(t,e,function(){m.props.autoplay?m.autoPlay("update"):m.pause("paused")}),m.setState({animating:!1}),clearTimeout(m.animationEndCallback),delete m.animationEndCallback}},m.updateState=function(e,t,n){var r=(0,l.initializedState)(e);e=i({},e,r,{slideIndex:r.currentSlide});var a=(0,l.getTrackLeft)(e);e=i({},e,{left:a});var s=(0,l.getTrackCSS)(e);(t||o.default.Children.count(m.props.children)!==o.default.Children.count(e.children))&&(r.trackStyle=s),m.setState(r,n)},m.ssrInit=function(){if(m.props.variableWidth){var e=0,t=0,n=[],r=(0,l.getPreClones)(i({},m.props,m.state,{slideCount:m.props.children.length})),a=(0,l.getPostClones)(i({},m.props,m.state,{slideCount:m.props.children.length}));m.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var s=0;s<r;s++)t+=n[n.length-1-s],e+=n[n.length-1-s];for(var c=0;c<a;c++)e+=n[c];for(var u=0;u<m.state.currentSlide;u++)t+=n[u];var f={width:e+"px",left:-t+"px"};if(m.props.centerMode){var d=n[m.state.currentSlide]+"px";f.left="calc("+f.left+" + (100% - "+d+") / 2 ) "}m.setState({trackStyle:f})}else{var h=o.default.Children.count(m.props.children),p=i({},m.props,m.state,{slideCount:h}),v=(0,l.getPreClones)(p)+(0,l.getPostClones)(p)+h,g=100/m.props.slidesToShow*v,y=100/v,b=-y*((0,l.getPreClones)(p)+m.state.currentSlide)*g/100;m.props.centerMode&&(b+=(100-y*g/100)/2);var _={width:g+"%",left:b+"%"};m.setState({slideWidth:y+"%",trackStyle:_})}},m.checkImagesLoad=function(){var e=document.querySelectorAll(".slick-slide img"),t=e.length,n=0;Array.prototype.forEach.call(e,function(e){var r=function(){return++n&&n>=t&&m.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(){i(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(m.props.lazyLoad?e.onload=function(){m.adaptHeight(),m.callbackTimers.push(setTimeout(m.onWindowResized,m.props.speed))}:(e.onload=r,e.onerror=function(){r(),m.props.onLazyLoadError&&m.props.onLazyLoadError()}))})},m.progressiveLazyLoad=function(){for(var e=[],t=i({},m.props,m.state),n=m.state.currentSlide;n<m.state.slideCount+(0,l.getPostClones)(t);n++)if(m.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=m.state.currentSlide-1;r>=-(0,l.getPreClones)(t);r--)if(m.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e)):m.lazyLoadTimer&&(clearInterval(m.lazyLoadTimer),delete m.lazyLoadTimer)},m.slideHandler=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=m.props,r=n.asNavFor,o=n.beforeChange,a=n.onLazyLoad,s=n.speed,c=n.afterChange,u=m.state.currentSlide,f=(0,l.slideHandler)(i({index:e},m.props,m.state,{trackRef:m.track,useCSS:m.props.useCSS&&!t})),d=f.state,h=f.nextState;if(d){o&&o(u,d.currentSlide);var p=d.lazyLoadedList.filter(function(e){return m.state.lazyLoadedList.indexOf(e)<0});a&&p.length>0&&a(p),m.setState(d,function(){r&&r.innerSlider.state.currentSlide!==u&&r.innerSlider.slideHandler(e),h&&(m.animationEndCallback=setTimeout(function(){var e=h.animating,t=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(h,["animating"]);m.setState(t,function(){m.callbackTimers.push(setTimeout(function(){return m.setState({animating:e})},10)),c&&c(d.currentSlide),delete m.animationEndCallback})},s))})}},m.changeSlide=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i({},m.props,m.state),r=(0,l.changeSlide)(n,e);(0===r||r)&&(!0===t?m.slideHandler(r,t):m.slideHandler(r))},m.clickHandler=function(e){!1===m.clickable&&(e.stopPropagation(),e.preventDefault()),m.clickable=!0},m.keyHandler=function(e){var t=(0,l.keyHandler)(e,m.props.accessibility,m.props.rtl);""!==t&&m.changeSlide({message:t})},m.selectHandler=function(e){m.changeSlide(e)},m.disableBodyScroll=function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},m.enableBodyScroll=function(){window.ontouchmove=null},m.swipeStart=function(e){m.props.verticalSwiping&&m.disableBodyScroll();var t=(0,l.swipeStart)(e,m.props.swipe,m.props.draggable);""!==t&&m.setState(t)},m.swipeMove=function(e){var t=(0,l.swipeMove)(e,i({},m.props,m.state,{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));t&&(t.swiping&&(m.clickable=!1),m.setState(t))},m.swipeEnd=function(e){var t=(0,l.swipeEnd)(e,i({},m.props,m.state,{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,m.setState(t),void 0!==n&&(m.slideHandler(n),m.props.verticalSwiping&&m.enableBodyScroll())}},m.slickPrev=function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"previous"})},0))},m.slickNext=function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"next"})},0))},m.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"index",index:e,currentSlide:m.state.currentSlide},t)},0))},m.play=function(){var e;if(m.props.rtl)e=m.state.currentSlide-m.props.slidesToScroll;else{if(!(0,l.canGoNext)(i({},m.props,m.state)))return!1;e=m.state.currentSlide+m.props.slidesToScroll}m.slideHandler(e)},m.autoPlay=function(e){m.autoplayTimer&&clearInterval(m.autoplayTimer);var t=m.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;m.autoplayTimer=setInterval(m.play,m.props.autoplaySpeed+50),m.setState({autoplaying:"playing"})},m.pause=function(e){m.autoplayTimer&&(clearInterval(m.autoplayTimer),m.autoplayTimer=null);var t=m.state.autoplaying;"paused"===e?m.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||m.setState({autoplaying:"focused"}):"playing"===t&&m.setState({autoplaying:"hovered"})},m.onDotsOver=function(){return m.props.autoplay&&m.pause("hovered")},m.onDotsLeave=function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")},m.onTrackOver=function(){return m.props.autoplay&&m.pause("hovered")},m.onTrackLeave=function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")},m.onSlideFocus=function(){return m.props.autoplay&&m.pause("focused")},m.onSlideBlur=function(){return m.props.autoplay&&"focused"===m.state.autoplaying&&m.autoPlay("blur")},m.render=function(){var e,t,n,r=(0,u.default)("slick-slider",m.props.className,{"slick-vertical":m.props.vertical,"slick-initialized":!0}),a=i({},m.props,m.state),s=(0,l.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]),c=m.props.pauseOnHover;if(s=i({},s,{onMouseEnter:c?m.onTrackOver:null,onMouseLeave:c?m.onTrackLeave:null,onMouseOver:c?m.onTrackOver:null,focusOnSelect:m.props.focusOnSelect?m.selectHandler:null}),!0===m.props.dots&&m.state.slideCount>=m.props.slidesToShow){var p=(0,l.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),v=m.props.pauseOnDotsHover;p=i({},p,{clickHandler:m.changeSlide,onMouseEnter:v?m.onDotsLeave:null,onMouseOver:v?m.onDotsOver:null,onMouseLeave:v?m.onDotsLeave:null}),e=o.default.createElement(d.Dots,p)}var g=(0,l.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=m.changeSlide,m.props.arrows&&(t=o.default.createElement(h.PrevArrow,g),n=o.default.createElement(h.NextArrow,g));var y=null;m.props.vertical&&(y={height:m.state.listHeight});var b=null;!1===m.props.vertical?!0===m.props.centerMode&&(b={padding:"0px "+m.props.centerPadding}):!0===m.props.centerMode&&(b={padding:m.props.centerPadding+" 0px"});var _=i({},y,b),w=m.props.touchMove,x={className:"slick-list",style:_,onClick:m.clickHandler,onMouseDown:w?m.swipeStart:null,onMouseMove:m.state.dragging&&w?m.swipeMove:null,onMouseUp:w?m.swipeEnd:null,onMouseLeave:m.state.dragging&&w?m.swipeEnd:null,onTouchStart:w?m.swipeStart:null,onTouchMove:m.state.dragging&&w?m.swipeMove:null,onTouchEnd:w?m.swipeEnd:null,onTouchCancel:m.state.dragging&&w?m.swipeEnd:null,onKeyDown:m.props.accessibility?m.keyHandler:null},k={className:r,dir:"ltr"};return m.props.unslick&&(x={className:"slick-list"},k={className:r}),o.default.createElement("div",k,m.props.unslick?"":t,o.default.createElement("div",i({ref:m.listRefHandler},x),o.default.createElement(f.Track,i({ref:m.trackRefHandler},s),m.props.children)),m.props.unslick?"":n,m.props.unslick?"":e)},m.list=null,m.track=null,m.state=i({},s.default,{currentSlide:m.props.initialSlide,slideCount:o.default.Children.count(m.props.children)}),m.callbackTimers=[],m.clickable=!0,m.debouncedResize=null,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default.Component)},function(e,t,n){"use strict";t.__esModule=!0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0}},function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=l||f||Function("return this")(),h=Object.prototype.toString,p=Math.max,m=Math.min,v=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,c,u,l=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function _(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-l>=a}function w(){var e=v();if(_(e))return x(e);c=setTimeout(w,function(e){var n=t-(e-u);return d?m(n,a-(e-l)):n}(e))}function x(e){return c=void 0,h&&i?b(e):(i=o=void 0,s)}function k(){var e=v(),n=_(e);if(i=arguments,o=this,u=e,n){if(void 0===c)return function(e){return l=e,c=setTimeout(w,t),f?b(e):s}(u);if(d)return c=setTimeout(w,t),b(u)}return void 0===c&&(c=setTimeout(w,t)),s}return t=y(t)||0,g(r)&&(f=!!r.leading,a=(d="maxWait"in r)?p(y(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),k.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=u=o=c=void 0},k.flush=function(){return void 0===c?s:x(v())},k}}).call(this,n(99))},function(e,t,n){"use strict";t.__esModule=!0,t.Track=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(0)),o=s(n(2)),a=n(499);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===e.currentSlide}},u=function(e,t){return e.key||t},l=function(e){var t,n=[],s=[],l=[],f=i.default.Children.count(e.children),d=(0,a.lazyStartIndex)(e),h=(0,a.lazyEndIndex)(e);return i.default.Children.forEach(e.children,function(p,m){var v=void 0,g={message:"children",index:m,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};v=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(m)>=0?p:i.default.createElement("div",null);var y=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t}(r({},e,{index:m})),b=v.props.className||"",_=c(r({},e,{index:m}));if(n.push(i.default.cloneElement(v,{key:"original"+u(v,m),"data-index":m,className:(0,o.default)(_,b),tabIndex:"-1","aria-hidden":!_["slick-active"],style:r({outline:"none"},v.props.style||{},y),onClick:function(t){v.props&&v.props.onClick&&v.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(g)}})),e.infinite&&!1===e.fade){var w=f-m;w<=(0,a.getPreClones)(e)&&f!==e.slidesToShow&&((t=-w)>=d&&(v=p),_=c(r({},e,{index:t})),s.push(i.default.cloneElement(v,{key:"precloned"+u(v,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(_,b),"aria-hidden":!_["slick-active"],style:r({},v.props.style||{},y),onClick:function(t){v.props&&v.props.onClick&&v.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(g)}}))),f!==e.slidesToShow&&((t=f+m)<h&&(v=p),_=c(r({},e,{index:t})),l.push(i.default.cloneElement(v,{key:"postcloned"+u(v,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(_,b),"aria-hidden":!_["slick-active"],style:r({},v.props.style||{},y),onClick:function(t){v.props&&v.props.onClick&&v.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(g)}})))}}),e.rtl?s.concat(n,l).reverse():s.concat(n,l)};t.Track=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=l(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return i.default.createElement("div",r({className:"slick-track",style:this.props.trackStyle},n),e)},t}(i.default.PureComponent)},function(e,t,n){"use strict";t.__esModule=!0,t.Dots=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=a(n(0)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}t.Dots=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.clickHandler=function(e,t){t.preventDefault(),this.props.clickHandler(e)},t.prototype.render=function(){var e,t=this,n=(e={slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,a=this.props,s={onMouseEnter:a.onMouseEnter,onMouseOver:a.onMouseOver,onMouseLeave:a.onMouseLeave},c=Array.apply(null,Array(n+1).join("0").split("")).map(function(e,n){var r=n*t.props.slidesToScroll,a=n*t.props.slidesToScroll+(t.props.slidesToScroll-1),s=(0,o.default)({"slick-active":t.props.currentSlide>=r&&t.props.currentSlide<=a}),c={message:"dots",index:n,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide},u=t.clickHandler.bind(t,c);return i.default.createElement("li",{key:n,className:s},i.default.cloneElement(t.props.customPaging(n),{onClick:u}))});return i.default.cloneElement(this.props.appendDots(c),r({className:this.props.dotsClass},s))},t}(i.default.PureComponent)},function(e,t,n){"use strict";t.__esModule=!0,t.NextArrow=t.PrevArrow=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(0)),o=s(n(2)),a=n(499);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.PrevArrow=function(e){function t(){return c(this,t),u(this,e.apply(this,arguments))}return l(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?i.default.cloneElement(this.props.prevArrow,r({},n,a)):i.default.createElement("button",r({key:"0",type:"button"},n)," ","Previous")},t}(i.default.PureComponent),t.NextArrow=function(e){function t(){return c(this,t),u(this,e.apply(this,arguments))}return l(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?i.default.cloneElement(this.props.nextArrow,r({},n,s)):i.default.createElement("button",r({key:"1",type:"button"},n)," ","Next")},t}(i.default.PureComponent)},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var i=r[n];e.call(t,i[1],i[0])}},Object.defineProperties(t.prototype,n),t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2,s=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function c(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(c,t);i=e}return u}(this.refresh.bind(this),20)};u.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},u.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},u.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},u.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},u.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},u.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},u.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),s.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},u.getInstance=function(){return this.instance_||(this.instance_=new u),this.instance_},u.instance_=null;var l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n+=1){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var i=r[n],o=e["padding-"+i];t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=p(r,"left","right")+o),Math.round(c+a)!==n&&(c-=p(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(s+o)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return y(i.left,i.top,s,c)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e};b.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},b.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var _=function(e,t){var n,r,i,o,a,s,c,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),l(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);l(this,{target:e,contentRect:u})},w=function(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r};w.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},w.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},w.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},w.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},w.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new _(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},w.prototype.clearActive=function(){this.activeObservations_.splice(0)},w.prototype.hasActive=function(){return this.activeObservations_.length>0};var x="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(e){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=u.getInstance(),n=new w(e,t,this);x.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){return(t=x.get(this))[e].apply(t,arguments);var t}});var E=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=E}.call(this,n(99))},function(e,t,n){var r=n(1872),i=function(e){var t="",n=Object.keys(e);return n.forEach(function(i,o){var a=e[i];(function(e){return/[height|width]$/.test(e)})(i=r(i))&&"number"==typeof a&&(a+="px"),t+=!0===a?i:!1===a?"not "+i:"("+i+": "+a+")",o<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=i(n),r<e.length-1&&(t+=", ")}),t):i(e)}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};var a={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=a},function(e,t,n){var r=n(1875);e.exports=new r},function(e,t,n){var r=n(1876),i=n(1012),o=i.each,a=i.isFunction,s=i.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(e,t,n){var i=this.queries,c=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,c)),a(t)&&(t={match:t}),s(t)||(t=[t]),o(t,function(t){a(t)&&(t={match:t}),i[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=c},function(e,t,n){var r=n(1877),i=n(1012).each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,function(t){t[e]()})}},e.exports=o},function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(1881);e.exports=r},function(e,t,n){n(1882);var r=n(93);e.exports=r.Number.isNaN},function(e,t,n){n(36)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(1884);e.exports=r},function(e,t,n){var r=n(1885),i=String.prototype;e.exports=function(e){var t=e.padStart;return"string"==typeof e||e===i||e instanceof String&&t===i.padStart?r:t}},function(e,t,n){n(1886);var r=n(132);e.exports=r("String").padStart},function(e,t,n){"use strict";var r=n(36),i=n(1887).start;r({target:"String",proto:!0,forced:n(1889)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(200),i=n(1888),o=n(247),a=Math.ceil,s=function(e){return function(t,n,s){var c,u,l=String(o(t)),f=l.length,d=void 0===s?" ":String(s),h=r(n);return h<=f||""==d?l:(c=h-f,(u=i.call(d,a(c/d.length))).length>c&&(u=u.slice(0,c)),e?l+u:u+l)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){"use strict";var r=n(459),i=n(247);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){var r=n(323);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/^#/,""),t=e.length;return 3===t||4===t?function(e){return r(e).map(function(e){return e+e}).join("")}(e):e};t.default=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return!!e&&e.toString&&"[object Object]"===e.toString()}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1899),i=n(640),o=n(252),a=function(e){return e},s=function(e){return function(t){return t.concat(e)}};function c(e,t){return function(n,i){var o=t(i);if(!r(n)||!r(o))throw new TypeError("Array."+e+": Must wrap Applicatives");return o.map(function(e){return s([e])}).ap(n)}}var u=function(e){return e.reduce(function(e,t){return e&&o(t)},!0)},l=function(e,t){return t.map(function(t){return e(t)})};e.exports={ap:function(e,t){if(!t.length||!u(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(l(n,e))},[])},chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!i(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},map:l,sequence:function(e,t){return t.reduce(c("sequence",a),e([]))},traverse:function(e,t,n){return n.reduce(c("traverse",t),e([]))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(500),i=n(1900);e.exports=function(e){return i(e)&&r("of",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(500),i=n(1901);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(500);e.exports=function(e){return!!e&&r("map",e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(500);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(252);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(252);function i(e,t){return r(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];var a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(i,t);return r(s)?e(s):s}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(252);e.exports=function(e){return e&&r(e.type)?e.type():{}.toString.call(e).slice(8,-1)}},function(e,t,n){var r=n(1020),i=n(641),o=n(1021),a=n(1909),s=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){var r=n(1020),i=n(642);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,c=t,u=0;u<n.length||s<arguments.length;){var l;u<n.length&&(!i(n[u])||s>=arguments.length)?l=n[u]:(l=arguments[s],s+=1),a[u]=l,i(l)||(c-=1),u+=1}return c<=0?o.apply(this,a):r(c,e(t,a,o))}}},function(e,t,n){var r=n(1021)(function(e,t){return t>e?t:e});e.exports=r},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(1920),i=n(1023);e.exports=function(e){return i(r(e))}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){var n=Math.floor,r=Math.random;e.exports=function(e,t){return e+n(r()*(t-e+1))}},function(e,t,n){var r=n(1023),i=n(1923);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(1924),i=n(495);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(888);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(370),i=n(371),o=n(194).type("Pred"),a=n(194).typeFn(o(),2),s=n(173),c=n(279),u=n(90),l=n(206),f=function(){return d(function(){return!0})};function d(e){var t;if(!u(e))throw new TypeError("Pred: Predicate function required");var n=function(t){return!!e(t)},r=function(){return"Pred"+i(n)},h=f;function p(e){return function(t){if(!l(d,t))throw new TypeError("Pred."+e+": Pred required");return d(function(e){return!!n(e)&&!!t.runWith(e)})}}function m(e){return function(t){if(!u(t))throw new TypeError("Pred."+e+": Function required");return d(c(n,t))}}return(t={inspect:r,toString:r,runWith:n,type:o,valueOf:function(){return n},empty:h,concat:p("concat"),contramap:m("contramap")})[s.empty]=h,t[s.concat]=p(s.concat),t[s.contramap]=m(s.contramap),t["@@type"]=a,t.constructor=d,t}d.empty=f,d.type=o,d[s.empty]=f,d["@@type"]=a,d["@@implements"]=r(["concat","contramap","empty"]),e.exports=d},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1927),i=n(566),o=n(370),a=n(1928),s=n(371),c=n(194).type("Maybe"),u=n(194).typeFn(c(),4),l=n(173),f=n(819),d=n(279),h=n(717),p=n(442),m=n(243),v=n(90),g=n(206),y=function(e){return function(){return e}},b=function(e){return e},_=r({Nothing:[],Just:["a"]}),w=_.Nothing,x=_.Just;T.Nothing=d(T,w),T.Just=d(T,x);var k=d(T,x),E=d(T,w);function S(e){if(!p(e)&&!m(e))throw new TypeError("Maybe.sequence: Must wrap an Apply");return e.map(k)}function T(e){var t;if(!arguments.length)throw new TypeError("Maybe: Must wrap something, try using Nothing or Just constructors");var n=_.includes(e)?e:x(e),r=k,o=E,w=function(e){return j(y(e),b)},O=function(e){return g(T,e)&&j(y(e.either(y(!0),y(!1))),function(t){return e.either(y(!1),function(e){return i(e,t)})})},C=function(){return j(y("Nothing"),function(e){return"Just"+s(e)})};function j(e,t){if(!v(e)||!v(t))throw new TypeError("Maybe.either: Requires both left and right functions");return _.caseOf({Nothing:e,Just:t},n)}function A(e){return function(t){if(!g(T,t))throw new TypeError("Maybe."+e+": Maybe of Semigroup required");return j(T.Nothing,a("Maybe."+e,t))}}function M(e){return function(t){if(!v(t))throw new TypeError("Maybe."+e+": Function required");return j(T.Nothing,d(T.Just,t))}}function P(e){return function(t){if(!g(T,t))throw new TypeError("Maybe."+e+": Maybe required");return j(y(t),T.Just)}}function N(e){return function(t){if(!v(t))throw new TypeError("Maybe."+e+": Function required");var n=j(T.Nothing,t);if(!g(T,n))throw new TypeError("Maybe."+e+": Function must return a Maybe");return n}}return(t={inspect:C,toString:C,either:j,option:w,type:c,equals:O,bichain:function(e,t){var n="Maybe.bichain: Both arguments must be Maybe returning functions";if(!v(e)||!v(t))throw new TypeError(n);var r=j(e,t);if(!g(T,r))throw new TypeError(n);return r},coalesce:function(e,t){if(!v(e)||!v(t))throw new TypeError("Maybe.coalesce: Requires both left and right functions");return T.Just(j(e,t))},zero:o,ap:function(e){var t=w(y(void 0));if(!v(t))throw new TypeError("Maybe.ap: Wrapped value must be a function");if(!g(T,e))throw new TypeError("Maybe.ap: Maybe required");return j(T.Nothing,e.map)},of:r,sequence:function(e){if(!h(e)&&!v(e))throw new TypeError("Maybe.sequence: Applicative TypeRep or Apply returning function required");var t=f(e);return j(d(t,T.Nothing),S)},traverse:function(e,t){if(!h(e)&&!v(e))throw new TypeError("Maybe.traverse: Applicative TypeRep or Apply returning function required for first argument");if(!v(t))throw new TypeError("Maybe.traverse: Apply returning function required for second argument");var n=f(e),r=j(d(n,T.Nothing),t);if(!p(r)&&!m(r))throw new TypeError("Maybe.traverse: Both functions must return an Apply of the same type");return j(y(r),y(r.map(k)))},alt:P("alt"),chain:N("chain"),concat:A("concat"),map:M("map")})[l.zero]=o,t[l.of]=r,t[l.equals]=O,t[l.alt]=P(l.alt),t[l.concat]=A(l.concat),t[l.map]=M(l.map),t[l.chain]=N(l.chain),t["@@type"]=u,t.constructor=T,t}T.of=k,T.zero=E,T.type=c,T[l.of]=k,T[l.zero]=E,T["@@type"]=u,T["@@implements"]=o(["alt","ap","chain","concat","equals","map","of","traverse","zero"]),e.exports=T},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(119),i=n(243),o=n(620),a=n(90),s=n(278),c=n(372),u=function(e){return function(){return e}},l=function(e){return c(e)&&e.length};function f(e){return function(t,n){var r=n.tag,i=e[r()].reduce(function(e,t){return e.concat([n[t].value()])},[]);return t[r()].apply(null,i)}}var d=function(e){return function(t){return!!t&&a(t.tag)&&-1!==Object.keys(e).indexOf(t.tag())}};e.exports=function(e){if(!s(e)||o(e))throw new TypeError("defineUnion: Argument must be an Object containing definition lists");return Object.keys(e).reduce(function(t,n){var r=e[n];if(!i(r)||!r.reduce(function(e,t){return e&&l(t)},!0))throw new TypeError("defineUnion: Definitions must be a list of non-empty string identifiers");return t[n]=function(e,t){return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return e.reduce(function(e,t,r){return e[t]={value:u(n[r])},e},{tag:u(t)})}}(r,n),t},{caseOf:r(f(e)),includes:r(d(e))})}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(206),i=n(443);e.exports=function(e,t){return function(n){if(!i(n))throw new TypeError(e+": Both containers must contain Semigroups of the same type");return t.map(function(t){if(!r(n,t))throw new TypeError(e+": Both containers must contain Semigroups of the same type");return n.concat(t)})}}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(1932);e.exports=r},function(e,t,n){var r=n(1933),i=Array.prototype;e.exports=function(e){var t=e.some;return e===i||e instanceof Array&&t===i.some?r:t}},function(e,t,n){n(1934);var r=n(132);e.exports=r("Array").some},function(e,t,n){"use strict";var r=n(36),i=n(324).some;r({target:"Array",proto:!0,forced:!n(369)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(402),i=n(403),o=n(1944);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,i,o,a){var s=i||"<<anonymous>>",c=a||r;if(null==n[r])return t?new Error("Required "+o+" `"+c+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,l=Array(u>6?u-6:0),f=6;f<u;f++)l[f-6]=arguments[f];return e.apply(void 0,[n,r,s,o,c].concat(l))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(1032)),i=u(n(1033)),o=u(n(0)),a=u(n(91)),s=u(n(1034)),c=u(n(1035));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,u=Array(i),f=0;f<i;f++)u[f]=arguments[f];return n=r=l(this,e.call.apply(e,[this].concat(u))),r._mountOverlayTarget=function(){r._overlayTarget||(r._overlayTarget=document.createElement("div"),r._portalContainerNode=(0,s.default)(r.props.container,(0,c.default)(r).body),r._portalContainerNode.appendChild(r._overlayTarget))},r._unmountOverlayTarget=function(){r._overlayTarget&&(r._portalContainerNode.removeChild(r._overlayTarget),r._overlayTarget=null),r._portalContainerNode=null},r._renderOverlay=function(){var e=r.props.children?o.default.Children.only(r.props.children):null;if(null!==e){r._mountOverlayTarget();var t=!r._overlayInstance;r._overlayInstance=a.default.unstable_renderSubtreeIntoContainer(r,e,r._overlayTarget,function(){t&&r.props.onRendered&&r.props.onRendered()})}else r._unrenderOverlay(),r._unmountOverlayTarget()},r._unrenderOverlay=function(){r._overlayTarget&&(a.default.unmountComponentAtNode(r._overlayTarget),r._overlayInstance=null)},r.getMountNode=function(){return r._overlayTarget},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,s.default)(e.container,(0,c.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(o.default.Component);f.displayName="Portal",f.propTypes={container:r.default.oneOfType([i.default,r.default.func]),onRendered:r.default.func},t.default=f,e.exports=t.default},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(402),i=n(403),o=n(1967);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t,n){var r=n(1971),i=n(280),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},function(e,t,n){var r=n(1972)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(1974),i=n(1975),o=n(280),a=n(1976);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+s+")",d="(?:"+l+"|"+s+")",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",p="[\\ufe0e\\ufe0f]?"+h+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",c,u].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*"),m="(?:"+[o,c,u].join("|")+")"+p,v=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,m].join("|"),"g");e.exports=function(e){return e.match(v)||[]}},function(e,t,n){var r=n(280),i=n(1978);e.exports=function(e){return i(r(e).toLowerCase())}},function(e,t,n){var r=n(1979)("toUpperCase");e.exports=r},function(e,t,n){var r=n(1037),i=n(501),o=n(1038),a=n(280);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return s[e]()+c}}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+u,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0));function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=function(e){var t=function(t,n){return r.default.createElement(e,i({},t,{forwardedRef:n}))},n=e.displayName||e.name;return t.displayName="withForwardedRef(".concat(n,")"),(0,r.forwardRef)(t)};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Responsive";return function(l){var f=function(n){function f(){var e,t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return n=this,(t=!(r=(e=s(f)).call.apply(e,[this].concat(a)))||"object"!==i(r)&&"function"!=typeof r?c(n):r).handleChange=t.handleChange.bind(c(t)),t.state={isMatch:!1},t}var d,h,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,r.Component),d=f,(h=[{key:"componentDidMount",value:function(){this.mql=window.matchMedia(e),this.mql.addListener(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.mql.removeListener(this.handleChange)}},{key:"handleChange",value:function(){this.setState({isMatch:this.mql.matches})}},{key:"render",value:function(){var e,n,i,a=this.props,s=this.state.isMatch;return r.default.createElement(l,o({},a,(i=s,(n=t)in(e={})?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e)))}}])&&a(d.prototype,h),p&&a(d,p),f}(),d=l.displayName||l.name;return f.displayName="".concat(n,"(").concat(d,")"),f}};t.default=l},function(e,t,n){"use strict";var r=n(402),i=n(403),o=n(1987);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n(106)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){"use strict";var r=n(502),i={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-i.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*i.easeInBounce(2*e):.5*i.easeOutBounce(2*e-1)+.5}};e.exports={effects:i},r.easingEffects=i},function(e,t,n){"use strict";var r=n(502);t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,o){if(o){var a=Math.min(o,i/2-1e-7,r/2-1e-7);e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.arcTo(t+r,n,t+r,n+a,a),e.lineTo(t+r,n+i-a),e.arcTo(t+r,n+i,t+r-a,n+i,a),e.lineTo(t+a,n+i),e.arcTo(t,n+i,t,n+i-a,a),e.lineTo(t,n+a),e.arcTo(t,n,t+a,n,a),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)},drawPoint:function(e,t,n,r,i,o){var a,s,c,u,l,f;if(o=o||0,!t||"object"!=typeof t||"[object HTMLImageElement]"!==(a=t.toString())&&"[object HTMLCanvasElement]"!==a){if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(r,i),e.rotate(o*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case"triangle":l=(s=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(-s/2,l/3),e.lineTo(s/2,l/3),e.lineTo(0,-2*l/3),e.closePath();break;case"rect":f=1/Math.SQRT2*n,e.rect(-f,-f,2*f,2*f);break;case"rectRounded":var d=n/Math.SQRT2,h=-d,p=-d,m=Math.SQRT2*n;this.roundedRect(e,h,p,m,m,.425*n);break;case"rectRot":f=1/Math.SQRT2*n,e.moveTo(-f,0),e.lineTo(0,f),e.lineTo(f,0),e.lineTo(0,-f),e.closePath();break;case"cross":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case"crossRot":c=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-c,-u),e.lineTo(c,u),e.moveTo(-c,u),e.lineTo(c,-u);break;case"star":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),c=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-c,-u),e.lineTo(c,u),e.moveTo(-c,u),e.lineTo(c,-u);break;case"line":e.moveTo(-n,0),e.lineTo(n,0);break;case"dash":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}}else e.drawImage(t,r-t.width/2,i-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){if(n.steppedLine)return"after"===n.steppedLine&&!r||"after"!==n.steppedLine&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y);n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}};r.clear=t.clear,r.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){"use strict";var r=n(502);e.exports={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,o;return r.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,o=+e.left||0):t=n=i=o=+e||0,{top:t,right:n,bottom:i,left:o,height:t+i,width:o+n}},resolve:function(e,t,n){var i,o,a;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t)),void 0!==n&&r.isArray(a)&&(a=a[n]),void 0!==a))return a}}},function(e,t,n){"use strict";var r=n(1039),i=n(106),o=n(83),a=n(281);e.exports=function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,i){var a=document.defaultView,s=o._getParentNode(n),c=a.getComputedStyle(n)[r],u=a.getComputedStyle(s)[r],l=t(c),f=t(u),d=Number.POSITIVE_INFINITY;return l||f?Math.min(l?e(c,n,i):d,f?e(u,s,i):d):"none"}o.configMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){var i=t[e]||{},s=n[e];"scales"===e?t[e]=o.scaleMerge(i,s):"scale"===e?t[e]=o.merge(i,[a.getScaleDefaults(s.type),s]):o._merger(e,t,n,r)}})},o.scaleMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,s,c,u=n[e].length;for(t[e]||(t[e]=[]),i=0;i<u;++i)c=n[e][i],s=o.valueOrDefault(c.type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),!t[e][i].type||c.type&&c.type!==t[e][i].type?o.merge(t[e][i],[a.getScaleDefaults(s),c]):o.merge(t[e][i],c)}else o._merger(e,t,n,r)}})},o.where=function(e,t){if(o.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return o.each(e,function(e){t(e)&&n.push(e)}),n},o.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,i=e.length;r<i;++r)if(t.call(n,e[r],r,e))return r;return-1},o.findNextWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var i=e[r];if(t(i))return i}},o.findPreviousWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var i=e[r];if(t(i))return i}},o.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},o.almostEquals=function(e,t,n){return Math.abs(e-t)<n},o.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},o.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},o.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},o.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},o.toRadians=function(e){return e*(Math.PI/180)},o.toDegrees=function(e){return e*(180/Math.PI)},o.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},o.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o.aliasPixel=function(e){return e%2==0?0:.5},o.splineCurve=function(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),c=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+c),l=c/(s+c),f=r*(u=isNaN(u)?0:u),d=r*(l=isNaN(l)?0:l);return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(e){var t,n,r,i,a,s,c,u,l,f=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=f.length;for(t=0;t<d;++t)if(!(r=f[t]).model.skip){if(n=t>0?f[t-1]:null,(i=t<d-1?f[t+1]:null)&&!i.model.skip){var h=i.model.x-r.model.x;r.deltaK=0!==h?(i.model.y-r.model.y)/h:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=f[t],i=f[t+1],r.model.skip||i.model.skip||(o.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(a=r.mK/r.deltaK,s=i.mK/r.deltaK,(u=Math.pow(a,2)+Math.pow(s,2))<=9||(c=3/Math.sqrt(u),r.mK=a*c*r.deltaK,i.mK=s*c*r.deltaK)));for(t=0;t<d;++t)(r=f[t]).model.skip||(n=t>0?f[t-1]:null,i=t<d-1?f[t+1]:null,n&&!n.model.skip&&(l=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-l,r.model.controlPointPreviousY=r.model.y-l*r.mK),i&&!i.model.skip&&(l=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+l,r.model.controlPointNextY=r.model.y+l*r.mK))},o.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},o.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},o.niceNum=function(e,t){var n=Math.floor(o.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},o.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,a=e.target||e.srcElement,s=a.getBoundingClientRect(),c=i.touches;c&&c.length>0?(n=c[0].clientX,r=c[0].clientY):(n=i.clientX,r=i.clientY);var u=parseFloat(o.getStyle(a,"padding-left")),l=parseFloat(o.getStyle(a,"padding-top")),f=parseFloat(o.getStyle(a,"padding-right")),d=parseFloat(o.getStyle(a,"padding-bottom")),h=s.right-s.left-u-f,p=s.bottom-s.top-l-d;return{x:n=Math.round((n-s.left-u)/h*a.width/t.currentDevicePixelRatio),y:r=Math.round((r-s.top-l)/p*a.height/t.currentDevicePixelRatio)}},o.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},o.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},o._calculatePadding=function(e,t,n){return(t=o.getStyle(e,t)).indexOf("%")>-1?n/parseInt(t,10):parseInt(t,10)},o._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},o.getMaximumWidth=function(e){var t=o._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-o._calculatePadding(t,"padding-left",n)-o._calculatePadding(t,"padding-right",n),i=o.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},o.getMaximumHeight=function(e){var t=o._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-o._calculatePadding(t,"padding-top",n)-o._calculatePadding(t,"padding-bottom",n),i=o.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},o.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},o.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,o=e.width;r.height=i*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},o.fontString=function(e,t,n){return t+" "+e+"px "+n},o.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.font=t;var s=0;o.each(n,function(t){null!=t&&!0!==o.isArray(t)?s=o.measureText(e,i,a,s,t):o.isArray(t)&&o.each(t,function(t){null==t||o.isArray(t)||(s=o.measureText(e,i,a,s,t))})});var c=a.length/2;if(c>n.length){for(var u=0;u<c;u++)delete i[a[u]];a.splice(0,c)}return s},o.measureText=function(e,t,n,r,i){var o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r},o.numberOfLabelLines=function(e){var t=1;return o.each(e,function(e){o.isArray(e)&&e.length>t&&(t=e.length)}),t},o.color=r?function(e){return e instanceof CanvasGradient&&(e=i.global.defaultColor),r(e)}:function(e){return console.error("Color.js not found!"),e},o.getHoverColor=function(e){return e instanceof CanvasPattern?e:o.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){var r=n(1994),i=function(){return new u};for(var o in r){i[o+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(o);var a=/(\w+)2(\w+)/.exec(o),s=a[1],c=a[2];(i[s]=i[s]||{})[c]=i[o]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var i=0;i<n.length;i++)n[i]=Math.round(n[i]);return n}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},u.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},u.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=i[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){u.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=i},function(e,t){function n(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),c=s-a;return s==a?t=0:r==s?t=(i-o)/c:i==s?t=2+(o-r)/c:o==s&&(t=4+(r-i)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s==a?0:n<=.5?c/(s+a):c/(2-s-a)),100*n]}function i(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),s=Math.max(r,i,o),c=s-a;return n=0==s?0:c/s*1e3/10,s==a?t=0:r==s?t=(i-o)/c:i==s?t=2+(o-r)/c:o==s&&(t=4+(r-i)/c),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],r=e[1],i=e[2];return[n(e)[0],100*(1/255*Math.min(t,Math.min(r,i))),100*(i=1-1/255*Math.max(t,Math.max(r,i)))]}function a(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]}function s(e){return E[JSON.stringify(e)]}function c(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function u(e){var t=c(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function l(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,c=e[2]/100;if(0==s)return[o=255*c,o,o];t=2*c-(n=c<.5?c*(1+s):c+s-c*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i}function f(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),c=255*r*(1-n*(1-o));r*=255;switch(i){case 0:return[r,c,a];case 1:return[s,r,a];case 2:return[a,r,c];case 3:return[a,s,r];case 4:return[c,a,r];case 5:return[r,a,s]}}function d(e){var t,n,i,o,a=e[0]/360,s=e[1]/100,c=e[2]/100,u=s+c;switch(u>1&&(s/=u,c/=u),i=6*a-(t=Math.floor(6*a)),0!=(1&t)&&(i=1-i),o=s+i*((n=1-c)-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function h(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]}function p(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function v(e){var t,n,r,i,o=e[0],a=e[1],s=e[2];return o<=8?i=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),i=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(a/500+i-16/116)/7.787:95.047*Math.pow(a/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3)]}function y(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]}function _(e){return p(v(e))}function w(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function x(e){return k[e]}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:c,rgb2lab:u,rgb2lch:function(e){return y(u(e))},hsl2rgb:l,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return o(l(e))},hsl2cmyk:function(e){return a(l(e))},hsl2keyword:function(e){return s(l(e))},hsv2rgb:f,hsv2hsl:function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100;return t=i*o,[r,100*(t=(t/=(n=(2-i)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(f(e))},hsv2cmyk:function(e){return a(f(e))},hsv2keyword:function(e){return s(f(e))},hwb2rgb:d,hwb2hsl:function(e){return n(d(e))},hwb2hsv:function(e){return i(d(e))},hwb2cmyk:function(e){return a(d(e))},hwb2keyword:function(e){return s(d(e))},cmyk2rgb:h,cmyk2hsl:function(e){return n(h(e))},cmyk2hsv:function(e){return i(h(e))},cmyk2hwb:function(e){return o(h(e))},cmyk2keyword:function(e){return s(h(e))},keyword2rgb:x,keyword2hsl:function(e){return n(x(e))},keyword2hsv:function(e){return i(x(e))},keyword2hwb:function(e){return o(x(e))},keyword2cmyk:function(e){return a(x(e))},keyword2lab:function(e){return u(x(e))},keyword2xyz:function(e){return c(x(e))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:v,lab2rgb:_,lab2lch:y,lch2lab:w,lch2xyz:function(e){return v(w(e))},lch2rgb:function(e){return _(w(e))}};var k={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},E={};for(var S in k)E[JSON.stringify(k[S])]=S},function(e,t,n){var r=n(1996);function i(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3})$/i);if(i){i=i[1];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16)}else if(i=e.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=r[i[1]]))return}for(o=0;o<t.length;o++)t[o]=l(t[o],0,255);return n=n||0==n?l(n,0,1):1,t[3]=n,t}}function o(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[l(parseInt(t[1]),0,360),l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[l(parseInt(t[1]),0,360),l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function c(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function u(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function l(e,t,n){return Math.min(Math.max(t,e),n)}function f(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:o,getRgb:function(e){var t=i(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=i(e);if(t)return t[3];if(t=o(e))return t[3];if(t=a(e))return t[3]},hexString:function(e){return"#"+f(e[0])+f(e[1])+f(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return c(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:c,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return u(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:u,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return d[e.slice(0,3)]}};var d={};for(var h in r)d[r[h]]=h},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83);r._set("global",{elements:{arc:{backgroundColor:r.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=i.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=o.getAngleFromPoint(n,{x:e,y:t}),i=r.angle,a=r.distance,s=n.startAngle,c=n.endAngle;c<s;)c+=2*Math.PI;for(;i>c;)i-=2*Math.PI;for(;i<s;)i+=2*Math.PI;var u=i>=s&&i<=c,l=a>=n.innerRadius&&a<=n.outerRadius;return u&&l}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,r=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,r),e.arc(t.x,t.y,t.innerRadius,r,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83),a=r.global;r._set("global",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=i.extend({draw:function(){var e,t,n,r,i=this._view,s=this._chart.ctx,c=i.spanGaps,u=this._children.slice(),l=a.elements.line,f=-1;for(this._loop&&u.length&&u.push(u[0]),s.save(),s.lineCap=i.borderCapStyle||l.borderCapStyle,s.setLineDash&&s.setLineDash(i.borderDash||l.borderDash),s.lineDashOffset=i.borderDashOffset||l.borderDashOffset,s.lineJoin=i.borderJoinStyle||l.borderJoinStyle,s.lineWidth=i.borderWidth||l.borderWidth,s.strokeStyle=i.borderColor||a.defaultColor,s.beginPath(),f=-1,e=0;e<u.length;++e)t=u[e],n=o.previousItem(u,e),r=t._view,0===e?r.skip||(s.moveTo(r.x,r.y),f=e):(n=-1===f?n:u[f],r.skip||(f!==e-1&&!c||-1===f?s.moveTo(r.x,r.y):o.canvas.lineTo(s,n._view,t._view),f=e));s.stroke(),s.restore()}})},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83),a=r.global.defaultColor;function s(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}r._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:a,borderColor:a,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._model,i=this._chart.ctx,s=t.pointStyle,c=t.rotation,u=t.radius,l=t.x,f=t.y;t.skip||(void 0===e||n.x>=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(i.strokeStyle=t.borderColor||a,i.lineWidth=o.valueOrDefault(t.borderWidth,r.global.elements.point.borderWidth),i.fillStyle=t.backgroundColor||a,o.canvas.drawPoint(i,s,u,l,f,c))}})},function(e,t,n){"use strict";var r=n(106),i=n(224);function o(e){return void 0!==e._view.width}function a(e){var t,n,r,i,a=e._view;if(o(e)){var s=a.width/2;t=a.x-s,n=a.x+s,r=Math.min(a.y,a.base),i=Math.max(a.y,a.base)}else{var c=a.height/2;t=Math.min(a.x,a.base),n=Math.max(a.x,a.base),r=a.y-c,i=a.y+c}return{left:t,top:r,right:n,bottom:i}}r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=i.extend({draw:function(){var e,t,n,r,i,o,a,s=this._chart.ctx,c=this._view,u=c.borderWidth;if(c.horizontal?(e=c.base,t=c.x,n=c.y-c.height/2,r=c.y+c.height/2,i=t>e?1:-1,o=1,a=c.borderSkipped||"left"):(e=c.x-c.width/2,t=c.x+c.width/2,n=c.y,i=1,o=(r=c.base)>n?1:-1,a=c.borderSkipped||"bottom"),u){var l=Math.min(Math.abs(e-t),Math.abs(n-r)),f=(u=u>l?l:u)/2,d=e+("left"!==a?f*i:0),h=t+("right"!==a?-f*i:0),p=n+("top"!==a?f*o:0),m=r+("bottom"!==a?-f*o:0);d!==h&&(n=p,r=m),p!==m&&(e=d,t=h)}s.beginPath(),s.fillStyle=c.backgroundColor,s.strokeStyle=c.borderColor,s.lineWidth=u;var v=[[e,r],[e,n],[t,n],[t,r]],g=["bottom","left","top","right"].indexOf(a,0);function y(e){return v[(g+e)%4]}-1===g&&(g=0);var b=y(0);s.moveTo(b[0],b[1]);for(var _=1;_<4;_++)b=y(_),s.lineTo(b[0],b[1]);s.fill(),u&&s.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var r=a(this);n=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}return n},inLabelRange:function(e,t){if(!this._view)return!1;var n=a(this);return o(this)?e>=n.left&&e<=n.right:t>=n.top&&t<=n.bottom},inXRange:function(e){var t=a(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=a(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return o(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},function(e,t,n){"use strict";var r=n(83),i="$chartjs",o="chartjs-",a=o+"render-monitor",s=o+"render-animation",c=["animationstart","webkitAnimationStart"],u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function l(e,t){var n=r.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var f=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function d(e,t,n){e.addEventListener(t,n,f)}function h(e,t,n){e.removeEventListener(t,n,f)}function p(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function m(e,t,n){var u,l,f,h,m=e[i]||(e[i]={}),v=m.resizer=function(e){var t=document.createElement("div"),n=o+"size-monitor",r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=r,t.className=n,t.innerHTML='<div class="'+n+'-expand" style="'+r+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var i=t.childNodes[0],a=t.childNodes[1];t._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){t._reset(),e()};return d(i,"scroll",s.bind(i,"expand")),d(a,"scroll",s.bind(a,"shrink")),t}((u=function(){if(m.resizer)return t(p("resize",n))},f=!1,h=[],function(){h=Array.prototype.slice.call(arguments),l=l||this,f||(f=!0,r.requestAnimFrame.call(window,function(){f=!1,u.apply(l,h)}))}));!function(e,t){var n=e[i]||(e[i]={}),o=n.renderProxy=function(e){e.animationName===s&&t()};r.each(c,function(t){d(e,t,o)}),n.reflow=!!e.offsetParent,e.classList.add(a)}(e,function(){if(m.resizer){var t=e.parentNode;t&&t!==v.parentNode&&t.insertBefore(v,t.firstChild),v._reset()}})}function v(e){var t=e[i]||{},n=t.resizer;delete t.resizer,function(e){var t=e[i]||{},n=t.renderProxy;n&&(r.each(c,function(t){h(e,t,n)}),delete t.renderProxy),e.classList.remove(a)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,n,r="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+s+"{"+r+"}@keyframes "+s+"{"+r+"}."+a+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(e=this)._style||document.createElement("style"),e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[i]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var a=l(e,"width");void 0!==a&&(e.width=a)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=l(e,"height");void 0!==a&&(e.height=s)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[i]){var n=t[i].initial;["height","width"].forEach(function(e){var i=n[e];r.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),r.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[i]}},addEventListener:function(e,t,n){var o=e.canvas;if("resize"!==t){var a=n[i]||(n[i]={});d(o,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=u[e.type]||e.type,i=r.getRelativePosition(e,t);return p(n,t,i.x,i.y,e)}(t,e))})}else m(o,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var o=((n[i]||{}).proxies||{})[e.id+"_"+t];o&&h(r,t,o)}else v(r)}},r.addEvent=d,r.removeEvent=h},function(e,t,n){"use strict";var r=n(1040),i=n(1041),o=n(106),a=n(83),s=n(1042),c=n(404),u=n(1043),l=n(1044),f=n(281),d=n(1045);e.exports=function(e){function t(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},a.extend(e.prototype,{construct:function(t,n){var r=this;n=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=a.configMerge(o.global,o[e.type],e.options||{}),e}(n);var i=u.acquireContext(t,n),s=i&&i.canvas,c=s&&s.height,l=s&&s.width;r.id=a.uid(),r.ctx=i,r.canvas=s,r.config=n,r.width=l,r.height=c,r.aspectRatio=c?l/c:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),i&&s?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return l.notify(e,"beforeInit"),a.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),l.notify(e,"afterInit"),e},clear:function(){return a.canvas.clear(this),this},stop:function(){return i.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(a.getMaximumWidth(r))),s=Math.max(0,Math.floor(i?o/i:a.getMaximumHeight(r)));if((t.width!==o||t.height!==s)&&(r.width=t.width=o,r.height=t.height=s,r.style.width=o+"px",r.style.height=s+"px",a.retinaScale(t,n.devicePixelRatio),!e)){var c={width:o,height:s};l.notify(t,"resize",[c]),t.options.onResize&&t.options.onResize(t,c),t.stop(),t.update({duration:t.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;a.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),a.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,n=e.options,r=e.scales||{},i=[],o=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});n.scales&&(i=i.concat((n.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),n.scale&&i.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(i,function(n){var i=n.options,s=i.id,c=a.valueOrDefault(i.type,n.dtype);t(i.position)!==t(n.dposition)&&(i.position=n.dposition),o[s]=!0;var u=null;if(s in r&&r[s].type===c)(u=r[s]).options=i,u.ctx=e.ctx,u.chart=e;else{var l=f.getScaleConstructor(c);if(!l)return;u=new l({id:s,type:c,options:i,ctx:e.ctx,chart:e}),r[u.id]=u}u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}),a.each(o,function(e,t){e||delete r[t]}),e.scales=r,f.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,n=[],r=[];return a.each(t.data.datasets,function(i,o){var a=t.getDatasetMeta(o),s=i.type||t.config.type;if(a.type&&a.type!==s&&(t.destroyDatasetMeta(o),a=t.getDatasetMeta(o)),a.type=s,n.push(a.type),a.controller)a.controller.updateIndex(o),a.controller.linkScales();else{var c=e.controllers[a.type];if(void 0===c)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new c(t,o),r.push(a.controller)}},t),r},resetElements:function(){var e=this;a.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var n,r,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),r=(n=i).options,a.each(n.scales,function(e){c.removeBox(n,e)}),r=a.configMerge(e.defaults.global,e.defaults[n.config.type],r),n.options=n.config.options=r,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=r.tooltips,n.tooltip.initialize(),l._invalidate(i),!1!==l.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var o=i.buildOrUpdateControllers();a.each(i.data.datasets,function(e,t){i.getDatasetMeta(t).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&a.each(o,function(e){e.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(c.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==l.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),l.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=e.duration,o=e.lazy;if(!1!==l.notify(t,"beforeRender")){var s=t.options.animation,c=function(e){l.notify(t,"afterRender"),a.callback(s&&s.onComplete,[e],t)};if(s&&(void 0!==n&&0!==n||void 0===n&&0!==s.duration)){var u=new r({numSteps:(n||s.duration)/16.66,easing:e.easing||s.easing,render:function(e,t){var n=a.easing.effects[t.easing],r=t.currentStep,i=r/t.numSteps;e.draw(n(i),i,r)},onAnimationProgress:s.onProgress,onAnimationComplete:c});i.addAnimation(t,u,n,o)}else t.draw(),c(new r({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),a.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==l.notify(t,"beforeDraw",[e])&&(a.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),l.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==l.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);l.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==l.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),l.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==l.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),l.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=s.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var t,n,r=this,i=r.canvas;for(r.stop(),t=0,n=r.data.datasets.length;t<n;++t)r.destroyDatasetMeta(t);i&&(r.unbindEvents(),a.canvas.clear(r),u.releaseContext(r.ctx),r.canvas=null,r.ctx=null),l.notify(r,"destroy"),delete e.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new d({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};a.each(e.options.events,function(r){u.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},u.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,a.each(t,function(t,n){u.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,i,o,a=n?"setHoverStyle":"removeHoverStyle";for(i=0,o=e.length;i<o;++i)(r=e[i])&&this.getDatasetMeta(r._datasetIndex).controller[a](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==l.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),l.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},i=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,i.mode,i),a.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,i.mode,!1),n.active.length&&i.mode&&n.updateHoverStyle(n.active,i.mode,!0),t=!a.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),e.Controller=e}},function(e,t,n){"use strict";var r=n(83);e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function n(e,n){var r=e._chartjs;if(r){var i=r.listeners,o=i.indexOf(n);-1!==o&&i.splice(o,1),i.length>0||(t.forEach(function(t){delete e[t]}),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},r.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(e=0,t=r.length;e<t;++e)i[e]=i[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,i,o=this,a=o.getDataset(),s=a.data||(a.data=[]);o._data!==s&&(o._data&&n(o._data,o),i=o,(e=s)._chartjs?e._chartjs.listeners.push(i):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),t.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),o=i.apply(this,t);return r.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),o}})})),o._data=s),o.resyncElements()},update:r.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,i=0;i<r;++i)n[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){r.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},o=r.valueAtIndexOrDefault,a=r.getHoverColor,s=e._model;e.$previousStyle={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth},s.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:o(t.hoverBackgroundColor,n,a(s.backgroundColor)),s.borderColor=i.hoverBorderColor?i.hoverBorderColor:o(t.hoverBorderColor,n,a(s.borderColor)),s.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:o(t.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=r.inherits}},function(e,t,n){"use strict";var r=n(83),i=n(405);e.exports=function(e){var t=r.noop;e.LinearScaleBase=i.extend({getRightValue:function(e){return"string"==typeof e?+e:i.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=r.sign(e.min),i=r.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var o=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),o!==a&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:r.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=function(e,t){var n,i,o,a=[];if(e.stepSize&&e.stepSize>0)o=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);o=r.niceNum(s/(e.maxTicks-1),!0),void 0!==(i=e.precision)&&(n=Math.pow(10,i),o=Math.ceil(o*n)/n)}var c=Math.floor(t.min/o)*o,u=Math.ceil(t.max/o)*o;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,o/1e3)&&(c=e.min,u=e.max);var l=(u-c)/o;l=r.almostEquals(l,Math.round(l),o/1e3)?Math.round(l):Math.ceil(l),i=1,o<1&&(i=Math.pow(10,1-Math.floor(r.log10(o))),c=Math.round(c*i)/i,u=Math.round(u*i)/i),a.push(void 0!==e.min?e.min:c);for(var f=1;f<l;++f)a.push(Math.round((c+f*o)*i)/i);return a.push(void 0!==e.max?e.max:u),a}(i,e);e.handleDirectionalChanges(),e.max=r.max(o),e.min=r.min(o),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),i.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){"use strict";var r=n(405),i=n(281);e.exports=function(){var e=r.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart.data,i=n.isHorizontal();return r.yLabels&&!i?n.getRightValue(r.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,i=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(i?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var a=r.getLabels().indexOf(e);t=-1!==a?a:t}if(r.isHorizontal()){var s=r.width/o,c=s*(t-r.minIndex);return i&&(c+=s/2),r.left+Math.round(c)}var u=r.height/o,l=u*(t-r.minIndex);return i&&(l+=u/2),r.top+Math.round(l)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),i=t.isHorizontal(),o=(i?t.width:t.height)/r;return e-=i?t.left:t.top,n&&(e-=o/2),(e<=0?0:Math.round(e/o))+t.minIndex},getBasePixel:function(){return this.bottom}});i.registerScaleType("category",e,{position:"bottom"})}},function(e,t,n){"use strict";var r=n(106),i=n(83),o=n(281),a=n(406);e.exports=function(e){var t={position:"left",ticks:{callback:a.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,o=e.isHorizontal();function a(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var s=t.stacked;if(void 0===s&&i.each(r,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var c={};i.each(r,function(r,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===c[u]&&(c[u]={positiveValues:[],negativeValues:[]});var l=c[u].positiveValues,f=c[u].negativeValues;n.isDatasetVisible(o)&&a(s)&&i.each(r.data,function(n,r){var i=+e.getRightValue(n);isNaN(i)||s.data[r].hidden||(l[r]=l[r]||0,f[r]=f[r]||0,t.relativePoints?l[r]=100:i<0?f[r]+=i:l[r]+=i)})}),i.each(c,function(t){var n=t.positiveValues.concat(t.negativeValues),r=i.min(n),o=i.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?o:Math.max(e.max,o)})}else i.each(r,function(t,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&a(o)&&i.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=i.valueOrDefault(t.fontSize,r.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),i=t.end-n;return t.isHorizontal()?t.left+t.width/i*(r-n):t.bottom-t.height/i*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,i=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*i},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});o.registerScaleType("linear",n,t)}},function(e,t,n){"use strict";var r=n(83),i=n(405),o=n(281),a=n(406);e.exports=function(e){var t={position:"left",ticks:{callback:a.formatters.logarithmic}},n=i.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,o=e.isHorizontal();function a(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var s=t.stacked;if(void 0===s&&r.each(i,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var c={};r.each(i,function(i,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");n.isDatasetVisible(o)&&a(s)&&(void 0===c[u]&&(c[u]=[]),r.each(i.data,function(t,n){var r=c[u],i=+e.getRightValue(t);isNaN(i)||s.data[n].hidden||i<0||(r[n]=r[n]||0,r[n]+=i)}))}),r.each(c,function(t){if(t.length>0){var n=r.min(t),i=r.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?i:Math.max(e.max,i)}})}else r.each(i,function(t,i){var o=n.getDatasetMeta(i);n.isDatasetVisible(i)&&a(o)&&r.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=r.valueOrDefault;e.min=n(t.min,e.min),e.max=n(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(r.log10(e.min))-1),e.max=Math.pow(10,Math.floor(r.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(r.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(r.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:t.min,max:t.max},o=e.ticks=function(e,t){var n,i,o=[],a=r.valueOrDefault,s=a(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),c=Math.floor(r.log10(t.max)),u=Math.ceil(t.max/Math.pow(10,c));0===s?(n=Math.floor(r.log10(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(s),s=i*Math.pow(10,n)):(n=Math.floor(r.log10(s)),i=Math.floor(s/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(s),10==++i&&(i=1,l=++n>=0?1:l),s=Math.round(i*Math.pow(10,n)*l)/l}while(n<c||n===c&&i<u);var f=a(e.max,s);return o.push(f),o}(i,e);e.max=r.max(o),e.min=r.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),i.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,i,o,a,s,c=this,u=c.options.ticks.reverse,l=r.log10,f=c._getFirstTickValue(c.minNotZero),d=0;return t=+c.getRightValue(t),u?(o=c.end,a=c.start,s=-1):(o=c.start,a=c.end,s=1),c.isHorizontal()?(n=c.width,i=u?c.right:c.left):(n=c.height,s*=-1,i=u?c.top:c.bottom),t!==o&&(0===o&&(n-=d=r.getValueOrDefault(c.options.ticks.fontSize,e.defaults.global.defaultFontSize),o=f),0!==t&&(d+=n/(l(a)-l(o))*(l(t)-l(o))),i+=s*d),i},getValueForPixel:function(t){var n,i,o,a,s=this,c=s.options.ticks.reverse,u=r.log10,l=s._getFirstTickValue(s.minNotZero);if(c?(i=s.end,o=s.start):(i=s.start,o=s.end),s.isHorizontal()?(n=s.width,a=c?s.right-t:t-s.left):(n=s.height,a=c?t-s.top:s.bottom-t),a!==i){if(0===i){var f=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);a-=f,n-=f,i=l}a*=u(o)-u(i),a/=n,a=Math.pow(10,u(i)+a)}return a}});o.registerScaleType("logarithmic",n,t)}},function(e,t,n){"use strict";var r=n(106),i=n(83),o=n(281),a=n(406);e.exports=function(e){var t=r.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:a.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function s(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function c(e){var n=e.options.pointLabels,r=i.valueOrDefault(n.fontSize,t.defaultFontSize),o=i.valueOrDefault(n.fontStyle,t.defaultFontStyle),a=i.valueOrDefault(n.fontFamily,t.defaultFontFamily);return{size:r,style:o,family:a,font:i.fontString(r,o,a)}}function u(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function l(e){return 0===e||180===e?"center":e<180?"left":"right"}function f(e,t,n,r){if(i.isArray(t))for(var o=n.y,a=1.5*r,s=0;s<t.length;++s)e.fillText(t[s],n.x,o),o+=a;else e.fillText(t,n.x,n.y)}function d(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function h(e){return i.isNumber(e)?e:0}var p=e.LinearScaleBase.extend({setDimensions:function(){var e=this,n=e.options,r=n.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var o=i.min([e.height,e.width]),a=i.valueOrDefault(r.fontSize,t.defaultFontSize);e.drawingArea=n.display?o/2-(a/2+r.backdropPaddingY):o/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;i.each(t.data.datasets,function(o,a){if(t.isDatasetVisible(a)){var s=t.getDatasetMeta(a);i.each(o.data,function(t,i){var o=+e.getRightValue(t);isNaN(o)||s.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,n=i.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,t;this.options.pointLabels.display?function(e){var t,n,r,o=c(e),a=Math.min(e.height/2,e.width/2),l={r:e.width,l:0,t:e.height,b:0},f={};e.ctx.font=o.font,e._pointLabelSizes=[];var d,h,p,m=s(e);for(t=0;t<m;t++){r=e.getPointPosition(t,a),d=e.ctx,h=o.size,p=e.pointLabels[t]||"",n=i.isArray(p)?{w:i.longestText(d,d.font,p),h:p.length*h+1.5*(p.length-1)*h}:{w:d.measureText(p).width,h:h},e._pointLabelSizes[t]=n;var v=e.getIndexAngle(t),g=i.toDegrees(v)%360,y=u(g,r.x,n.w,0,180),b=u(g,r.y,n.h,90,270);y.start<l.l&&(l.l=y.start,f.l=v),y.end>l.r&&(l.r=y.end,f.r=v),b.start<l.t&&(l.t=b.start,f.t=v),b.end>l.b&&(l.b=b.end,f.b=v)}e.setReductions(a,l,f)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,n){var r=t.l/Math.sin(n.l),i=Math.max(t.r-this.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),a=-Math.max(t.b-this.height,0)/Math.cos(n.b);r=h(r),i=h(i),o=h(o),a=h(a),this.drawingArea=Math.min(Math.round(e-(r+i)/2),Math.round(e-(o+a)/2)),this.setCenterPoint(r,i,o,a)},setCenterPoint:function(e,t,n,r){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,c=i.height-r-i.drawingArea;i.xCenter=Math.round((a+o)/2+i.left),i.yCenter=Math.round((s+c)/2+i.top)},getIndexAngle:function(e){return e*(2*Math.PI/s(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+this.xCenter,y:Math.round(Math.sin(n)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,n=e.options,r=n.gridLines,o=n.ticks,a=i.valueOrDefault;if(n.display){var u=e.ctx,h=this.getIndexAngle(0),p=a(o.fontSize,t.defaultFontSize),m=a(o.fontStyle,t.defaultFontStyle),v=a(o.fontFamily,t.defaultFontFamily),g=i.fontString(p,m,v);i.each(e.ticks,function(n,c){if(c>0||o.reverse){var l=e.getDistanceFromCenterForValue(e.ticksAsNumbers[c]);if(r.display&&0!==c&&function(e,t,n,r){var o=e.ctx;if(o.strokeStyle=i.valueAtIndexOrDefault(t.color,r-1),o.lineWidth=i.valueAtIndexOrDefault(t.lineWidth,r-1),e.options.gridLines.circular)o.beginPath(),o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{var a=s(e);if(0===a)return;o.beginPath();var c=e.getPointPosition(0,n);o.moveTo(c.x,c.y);for(var u=1;u<a;u++)c=e.getPointPosition(u,n),o.lineTo(c.x,c.y);o.closePath(),o.stroke()}}(e,r,l,c),o.display){var f=a(o.fontColor,t.defaultFontColor);if(u.font=g,u.save(),u.translate(e.xCenter,e.yCenter),u.rotate(h),o.showLabelBackdrop){var d=u.measureText(n).width;u.fillStyle=o.backdropColor,u.fillRect(-d/2-o.backdropPaddingX,-l-p/2-o.backdropPaddingY,d+2*o.backdropPaddingX,p+2*o.backdropPaddingY)}u.textAlign="center",u.textBaseline="middle",u.fillStyle=f,u.fillText(n,0,-l),u.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(e){var n=e.ctx,r=e.options,o=r.angleLines,a=r.pointLabels;n.lineWidth=o.lineWidth,n.strokeStyle=o.color;var u=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),h=c(e);n.textBaseline="top";for(var p=s(e)-1;p>=0;p--){if(o.display){var m=e.getPointPosition(p,u);n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(m.x,m.y),n.stroke(),n.closePath()}if(a.display){var v=e.getPointPosition(p,u+5),g=i.valueAtIndexOrDefault(a.fontColor,p,t.defaultFontColor);n.font=h.font,n.fillStyle=g;var y=e.getIndexAngle(p),b=i.toDegrees(y);n.textAlign=l(b),d(b,e._pointLabelSizes[p],v),f(n,e.pointLabels[p]||"",v,h.size)}}}(e)}}});o.registerScaleType("radialLinear",p,n)}},function(e,t,n){"use strict";var r=n(306);r="function"==typeof r?r:window.moment;var i=n(106),o=n(83),a=n(405),s=n(281),c=Number.MIN_SAFE_INTEGER||-9007199254740991,u=Number.MAX_SAFE_INTEGER||9007199254740991,l={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},f=Object.keys(l);function d(e,t){return e-t}function h(e){var t,n,r,i={},o=[];for(t=0,n=e.length;t<n;++t)i[r=e[t]]||(i[r]=!0,o.push(r));return o}function p(e,t,n,r){var i=function(e,t,n){for(var r,i,o,a=0,s=e.length-1;a>=0&&a<=s;){if(i=e[(r=a+s>>1)-1]||null,o=e[r],!i)return{lo:null,hi:o};if(o[t]<n)a=r+1;else{if(!(i[t]>n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],c=s?(n-o[t])/s:0,u=(a[r]-o[r])*c;return o[r]+u}function m(e,t){var n=t.parser,i=t.parser||t.format;return"function"==typeof n?n(e):"string"==typeof e&&"string"==typeof i?r(e,i):(e instanceof r||(e=r(e)),e.isValid()?e:"function"==typeof i?i(e):e)}function v(e,t){if(o.isNullOrUndef(e))return null;var n=t.options.time,r=m(t.getRightValue(e),n);return r.isValid()?(n.round&&r.startOf(n.round),r.valueOf()):null}function g(e){for(var t=f.indexOf(e)+1,n=f.length;t<n;++t)if(l[f[t]].common)return f[t]}function y(e,t,n,i){var a,s=i.time,c=s.unit||function(e,t,n,r){var i,o,a,s=f.length;for(i=f.indexOf(e);i<s-1;++i)if(a=(o=l[f[i]]).steps?o.steps[o.steps.length-1]:u,o.common&&Math.ceil((n-t)/(a*o.size))<=r)return f[i];return f[s-1]}(s.minUnit,e,t,n),d=g(c),h=o.valueOrDefault(s.stepSize,s.unitStepSize),p="week"===c&&s.isoWeekday,m=i.ticks.major.enabled,v=l[c],y=r(e),b=r(t),_=[];for(h||(h=function(e,t,n,r){var i,o,a,s=t-e,c=l[n],u=c.size,f=c.steps;if(!f)return Math.ceil(s/(r*u));for(i=0,o=f.length;i<o&&(a=f[i],!(Math.ceil(s/(u*a))<=r));++i);return a}(e,t,c,n)),p&&(y=y.isoWeekday(p),b=b.isoWeekday(p)),y=y.startOf(p?"day":c),(b=b.startOf(p?"day":c))<t&&b.add(1,c),a=r(y),m&&d&&!p&&!s.round&&(a.startOf(d),a.add(~~((y-a)/(v.size*h))*h,c));a<b;a.add(h,c))_.push(+a);return _.push(+a),_}e.exports=function(){var e=a.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),a.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),a.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),a.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,a,s,l=this,f=l.chart,p=l.options.time,m=p.unit||"day",g=u,y=c,b=[],_=[],w=[];for(e=0,n=f.data.labels.length;e<n;++e)w.push(v(f.data.labels[e],l));for(e=0,n=(f.data.datasets||[]).length;e<n;++e)if(f.isDatasetVisible(e))if(a=f.data.datasets[e].data,o.isObject(a[0]))for(_[e]=[],t=0,i=a.length;t<i;++t)s=v(a[t],l),b.push(s),_[e][t]=s;else b.push.apply(b,w),_[e]=w.slice(0);else _[e]=[];w.length&&(w=h(w).sort(d),g=Math.min(g,w[0]),y=Math.max(y,w[w.length-1])),b.length&&(b=h(b).sort(d),g=Math.min(g,b[0]),y=Math.max(y,b[b.length-1])),g=v(p.min,l)||g,y=v(p.max,l)||y,g=g===u?+r().startOf(m):g,y=y===c?+r().endOf(m)+1:y,l.min=Math.min(g,y),l.max=Math.max(g+1,y),l._horizontal=l.isHorizontal(),l._table=[],l._timestamps={data:b,datasets:_,labels:w}},buildTicks:function(){var e,t,n,i=this,o=i.min,a=i.max,s=i.options,c=s.time,u=[],d=[];switch(s.ticks.source){case"data":u=i._timestamps.data;break;case"labels":u=i._timestamps.labels;break;case"auto":default:u=y(o,a,i.getLabelCapacity(o),s)}for("ticks"===s.bounds&&u.length&&(o=u[0],a=u[u.length-1]),o=v(c.min,i)||o,a=v(c.max,i)||a,e=0,t=u.length;e<t;++e)(n=u[e])>=o&&n<=a&&d.push(n);return i.min=o,i.max=a,i._unit=c.unit||function(e,t,n,i){var o,a,s=r.duration(r(i).diff(r(n)));for(o=f.length-1;o>=f.indexOf(t);o--)if(a=f[o],l[a].common&&s.as(a)>=e.length)return a;return f[t?f.indexOf(t):0]}(d,c.minUnit,i.min,i.max),i._majorUnit=g(i._unit),i._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var i,o,a,s,c,u=[],l=[t];for(i=0,o=e.length;i<o;++i)(s=e[i])>t&&s<n&&l.push(s);for(l.push(n),i=0,o=l.length;i<o;++i)c=l[i+1],a=l[i-1],s=l[i],void 0!==a&&void 0!==c&&Math.round((c+a)/2)===s||u.push({time:s,pos:i/(o-1)});return u}(i._timestamps.data,o,a,s.distribution),i._offsets=function(e,t,n,r,i){var o,a,s=0,c=0;return i.offset&&t.length&&(i.time.min||(o=t.length>1?t[1]:r,a=t[0],s=(p(e,"time",o,"pos")-p(e,"time",a,"pos"))/2),i.time.max||(o=t[t.length-1],a=t.length>1?t[t.length-2]:n,c=(p(e,"time",o,"pos")-p(e,"time",a,"pos"))/2)),{left:s,right:c}}(i._table,d,o,a,s),i._labelFormat=function(e,t){var n,r,i,o=e.length;for(n=0;n<o;n++){if(0!==(r=m(e[n],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===r.second()&&0===r.minute()&&0===r.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(i._timestamps.data,c),function(e,t){var n,i,o,a,s=[];for(n=0,i=e.length;n<i;++n)o=e[n],a=!!t&&o===+r(o).startOf(t),s.push({value:o,major:a});return s}(d,i._majorUnit)},getLabelForIndex:function(e,t){var n=this.chart.data,r=this.options.time,i=n.labels&&e<n.labels.length?n.labels[e]:"",a=n.datasets[t].data[e];return o.isObject(a)&&(i=this.getRightValue(a)),r.tooltipFormat?m(i,r).format(r.tooltipFormat):"string"==typeof i?i:m(i,r).format(this._labelFormat)},tickFormatFunction:function(e,t,n,r){var i=this.options,a=e.valueOf(),s=i.time.displayFormats,c=s[this._unit],u=this._majorUnit,l=s[u],f=e.clone().startOf(u).valueOf(),d=i.ticks.major,h=d.enabled&&u&&l&&a===f,p=e.format(r||(h?l:c)),m=h?d:i.ticks.minor,v=o.valueOrDefault(m.callback,m.userCallback);return v?v(p,t,n):p},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(r(e[t].value),t,e));return i},getPixelForOffset:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,i=p(t._table,"time",e,"pos");return r+n*(t._offsets.left+i)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=v(e,this)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,i=t._horizontal?t.left:t.top,o=(n?(e-i)/n:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,a=p(t._table,"pos",o,"time");return r(a)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=o.toRadians(t.maxRotation),a=Math.cos(r),s=Math.sin(r);return n*a+o.valueOrDefault(t.fontSize,i.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,i=t.tickFormatFunction(r(e),0,[],n),o=t.getLabelWidth(i),a=t.isHorizontal()?t.width:t.height,s=Math.floor(a/o);return s>0?s:1}});s.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},function(e,t,n){var r={"./en-au":1046,"./en-au.js":1046,"./en-ca":1047,"./en-ca.js":1047,"./en-gb":1048,"./en-gb.js":1048,"./en-ie":1049,"./en-ie.js":1049,"./en-il":1050,"./en-il.js":1050,"./en-nz":1051,"./en-nz.js":1051};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=2011},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:i.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,i=r.chart,a=r.getMeta(),s=r.getDataset(),c=e.custom||{},u=i.options.elements.rectangle;e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={datasetLabel:s.label,label:i.data.labels[t],borderSkipped:c.borderSkipped?c.borderSkipped:u.borderSkipped,backgroundColor:c.backgroundColor?c.backgroundColor:o.valueAtIndexOrDefault(s.backgroundColor,t,u.backgroundColor),borderColor:c.borderColor?c.borderColor:o.valueAtIndexOrDefault(s.borderColor,t,u.borderColor),borderWidth:c.borderWidth?c.borderWidth:o.valueAtIndexOrDefault(s.borderWidth,t,u.borderWidth)},r.updateElementGeometry(e,t,n),e.pivot()},updateElementGeometry:function(e,t,n){var r=this,i=e._model,o=r.getValueScale(),a=o.getBasePixel(),s=o.isHorizontal(),c=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t),l=r.calculateBarIndexPixels(r.index,t,c);i.horizontal=s,i.base=n?a:u.base,i.x=s?n?a:u.head:l.center,i.y=s?l.center:n?a:u.head,i.height=s?l.size:void 0,i.width=s?void 0:l.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,n,r=this.chart,i=this.getIndexScale().options.stacked,o=void 0===e?r.data.datasets.length:e+1,a=[];for(t=0;t<o;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===i||!0===i&&-1===a.indexOf(n.stack)||void 0===i&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this.getIndexScale(),r=this.getStackCount(),i=this.index,a=n.isHorizontal(),s=a?n.left:n.top,c=s+(a?n.width:n.height),u=[];for(e=0,t=this.getMeta().data.length;e<t;++e)u.push(n.getPixelForValue(null,e,i));return{min:o.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,i,o,a=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(i=1,o=t.length;i<o;++i)a=Math.min(a,t[i]-t[i-1]);for(i=0,o=s.length;i<o;++i)r=e.getPixelForTick(i),a=i>0?Math.min(a,r-n):a,n=r;return a}(n,u):-1,pixels:u,start:s,end:c,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,i,o,a,s,c=this.chart,u=this.getMeta(),l=this.getValueScale(),f=c.data.datasets,d=l.getRightValue(f[e].data[t]),h=l.options.stacked,p=u.stack,m=0;if(h||void 0===h&&void 0!==p)for(n=0;n<e;++n)(r=c.getDatasetMeta(n)).bar&&r.stack===p&&r.controller.getValueScaleId()===l.id&&c.isDatasetVisible(n)&&(i=l.getRightValue(f[n].data[t]),(d<0&&i<0||d>=0&&i>0)&&(m+=i));return o=l.getPixelForValue(m),{size:s=((a=l.getPixelForValue(m+d))-o)/2,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,i="flex"===r.barThickness?function(e,t,n){var r,i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,c=n.categoryPercentage;return null===a&&(a=o-(null===s?t.end-o:s-o)),null===s&&(s=o+o-a),r=o-(o-a)/2*c,{chunk:(s-a)/2*c/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,i,a=n.barThickness,s=t.stackCount,c=t.pixels[e];return o.isNullOrUndef(a)?(r=t.min*n.categoryPercentage,i=n.barPercentage):(r=a*s,i=1),{chunk:r/s,ratio:i,start:c-r/2}}(t,n,r),a=this.getStackIndex(e,this.getMeta().stack),s=i.start+i.chunk*a+i.chunk/2,c=Math.min(o.valueOrDefault(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:s-c/2,head:s+c/2,center:s,size:c}},draw:function(){var e=this.chart,t=this.getValueScale(),n=this.getMeta().data,r=this.getDataset(),i=n.length,a=0;for(o.canvas.clipArea(e.ctx,e.chartArea);a<i;++a)isNaN(t.getRightValue(r.data[a]))||n[a].draw();o.canvas.unclipArea(e.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:i.Point,update:function(e){var t=this,n=t.getMeta().data;o.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,i=r.getMeta(),o=e.custom||{},a=r.getScaleForId(i.xAxisID),s=r.getScaleForId(i.yAxisID),c=r._resolveElementOptions(e,t),u=r.getDataset().data[t],l=r.index,f=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof u?u:NaN,t,l),d=n?s.getBasePixel():s.getPixelForValue(u,t,l);e._xScale=a,e._yScale=s,e._options=c,e._datasetIndex=l,e._index=t,e._model={backgroundColor:c.backgroundColor,borderColor:c.borderColor,borderWidth:c.borderWidth,hitRadius:c.hitRadius,pointStyle:c.pointStyle,rotation:c.rotation,radius:n?0:c.radius,skip:o.skip||isNaN(f)||isNaN(d),x:f,y:d},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=o.valueOrDefault(n.hoverBackgroundColor,o.getHoverColor(n.backgroundColor)),t.borderColor=o.valueOrDefault(n.hoverBorderColor,o.getHoverColor(n.borderColor)),t.borderWidth=o.valueOrDefault(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,i,a=this.chart,s=a.data.datasets[this.index],c=e.custom||{},u=a.options.elements.point,l=o.options.resolve,f=s.data[t],d={},h={chart:a,dataIndex:t,dataset:s,datasetIndex:this.index},p=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=p.length;n<r;++n)d[i=p[n]]=l([c[i],s[i],u[i]],h,t);return d.radius=l([c.radius,f?f.r:void 0,s.radius,u.radius],h,t),d}})}},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),i[o]&&t.push(i[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var i=e.getDatasetMeta(0),a=t.datasets[0],s=i.data[r],c=s&&s.custom||{},u=o.valueAtIndexOrDefault,l=e.options.elements.arc;return{text:n,fillStyle:c.backgroundColor?c.backgroundColor:u(a.backgroundColor,r,l.backgroundColor),strokeStyle:c.borderColor?c.borderColor:u(a.borderColor,r,l.borderColor),lineWidth:c.borderWidth?c.borderWidth:u(a.borderWidth,r,l.borderWidth),hidden:isNaN(a.data[r])||i.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return o.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}}),r._set("pie",o.clone(r.doughnut)),r._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:i.Arc,linkScales:o.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t=this,n=t.chart,r=n.chartArea,i=n.options,a=i.elements.arc,s=r.right-r.left-a.borderWidth,c=r.bottom-r.top-a.borderWidth,u=Math.min(s,c),l={x:0,y:0},f=t.getMeta(),d=i.cutoutPercentage,h=i.circumference;if(h<2*Math.PI){var p=i.rotation%(2*Math.PI),m=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+h,v={x:Math.cos(p),y:Math.sin(p)},g={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,_=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,w=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,x=d/100,k={x:_?-1:Math.min(v.x*(v.x<0?1:x),g.x*(g.x<0?1:x)),y:w?-1:Math.min(v.y*(v.y<0?1:x),g.y*(g.y<0?1:x))},E={x:y?1:Math.max(v.x*(v.x>0?1:x),g.x*(g.x>0?1:x)),y:b?1:Math.max(v.y*(v.y>0?1:x),g.y*(g.y>0?1:x))},S={width:.5*(E.x-k.x),height:.5*(E.y-k.y)};u=Math.min(s/S.width,c/S.height),l={x:-.5*(E.x+k.x),y:-.5*(E.y+k.y)}}n.borderWidth=t.getMaxBorderWidth(f.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=l.x*n.outerRadius,n.offsetY=l.y*n.outerRadius,f.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),o.each(f.data,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,i=r.chart,a=i.chartArea,s=i.options,c=s.animation,u=(a.left+a.right)/2,l=(a.top+a.bottom)/2,f=s.rotation,d=s.rotation,h=r.getDataset(),p=n&&c.animateRotate?0:e.hidden?0:r.calculateCircumference(h.data[t])*(s.circumference/(2*Math.PI)),m=n&&c.animateScale?0:r.innerRadius,v=n&&c.animateScale?0:r.outerRadius,g=o.valueAtIndexOrDefault;o.extend(e,{_datasetIndex:r.index,_index:t,_model:{x:u+i.offsetX,y:l+i.offsetY,startAngle:f,endAngle:d,circumference:p,outerRadius:v,innerRadius:m,label:g(h.label,t,i.data.labels[t])}});var y=e._model,b=e.custom||{},_=o.valueAtIndexOrDefault,w=this.chart.options.elements.arc;y.backgroundColor=b.backgroundColor?b.backgroundColor:_(h.backgroundColor,t,w.backgroundColor),y.borderColor=b.borderColor?b.borderColor:_(h.borderColor,t,w.borderColor),y.borderWidth=b.borderWidth?b.borderWidth:_(h.borderWidth,t,w.borderWidth),n&&c.animateRotate||(y.startAngle=0===t?s.rotation:r.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return o.each(n.data,function(n,i){e=t.data[i],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,r=0,i=this.index,o=e.length,a=0;a<o;a++)t=e[a]._model?e[a]._model.borderWidth:0,r=(n=e[a]._chart?e[a]._chart.config.data.datasets[i].hoverBorderWidth:0)>(r=t>r?t:r)?n:r;return r}})}},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return o.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:i.Line,dataElementType:i.Point,update:function(e){var n,r,i,a=this,s=a.getMeta(),c=s.dataset,u=s.data||[],l=a.chart.options,f=l.elements.line,d=a.getScaleForId(s.yAxisID),h=a.getDataset(),p=t(h,l);for(p&&(i=c.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),c._scale=d,c._datasetIndex=a.index,c._children=u,c._model={spanGaps:h.spanGaps?h.spanGaps:l.spanGaps,tension:i.tension?i.tension:o.valueOrDefault(h.lineTension,f.tension),backgroundColor:i.backgroundColor?i.backgroundColor:h.backgroundColor||f.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:h.borderWidth||f.borderWidth,borderColor:i.borderColor?i.borderColor:h.borderColor||f.borderColor,borderCapStyle:i.borderCapStyle?i.borderCapStyle:h.borderCapStyle||f.borderCapStyle,borderDash:i.borderDash?i.borderDash:h.borderDash||f.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:h.borderDashOffset||f.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:h.borderJoinStyle||f.borderJoinStyle,fill:i.fill?i.fill:void 0!==h.fill?h.fill:f.fill,steppedLine:i.steppedLine?i.steppedLine:o.valueOrDefault(h.steppedLine,f.stepped),cubicInterpolationMode:i.cubicInterpolationMode?i.cubicInterpolationMode:o.valueOrDefault(h.cubicInterpolationMode,f.cubicInterpolationMode)},c.pivot()),n=0,r=u.length;n<r;++n)a.updateElement(u[n],n,e);for(p&&0!==c._model.tension&&a.updateBezierControlPoints(),n=0,r=u.length;n<r;++n)u[n].pivot()},getPointBackgroundColor:function(e,t){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),i=e.custom||{};return i.backgroundColor?n=i.backgroundColor:r.pointBackgroundColor?n=o.valueAtIndexOrDefault(r.pointBackgroundColor,t,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(e,t){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),i=e.custom||{};return i.borderColor?n=i.borderColor:r.pointBorderColor?n=o.valueAtIndexOrDefault(r.pointBorderColor,t,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(e,t){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),i=e.custom||{};return isNaN(i.borderWidth)?!isNaN(r.pointBorderWidth)||o.isArray(r.pointBorderWidth)?n=o.valueAtIndexOrDefault(r.pointBorderWidth,t,n):isNaN(r.borderWidth)||(n=r.borderWidth):n=i.borderWidth,n},getPointRotation:function(e,t){var n=this.chart.options.elements.point.rotation,r=this.getDataset(),i=e.custom||{};return isNaN(i.rotation)?isNaN(r.pointRotation)&&!o.isArray(r.pointRotation)||(n=o.valueAtIndexOrDefault(r.pointRotation,t,n)):n=i.rotation,n},updateElement:function(e,t,n){var r,i,a=this,s=a.getMeta(),c=e.custom||{},u=a.getDataset(),l=a.index,f=u.data[t],d=a.getScaleForId(s.yAxisID),h=a.getScaleForId(s.xAxisID),p=a.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),r=h.getPixelForValue("object"==typeof f?f:NaN,t,l),i=n?d.getBasePixel():a.calculatePointY(f,t,l),e._xScale=h,e._yScale=d,e._datasetIndex=l,e._index=t,e._model={x:r,y:i,skip:c.skip||isNaN(r)||isNaN(i),radius:c.radius||o.valueAtIndexOrDefault(u.pointRadius,t,p.radius),pointStyle:c.pointStyle||o.valueAtIndexOrDefault(u.pointStyle,t,p.pointStyle),rotation:a.getPointRotation(e,t),backgroundColor:a.getPointBackgroundColor(e,t),borderColor:a.getPointBorderColor(e,t),borderWidth:a.getPointBorderWidth(e,t),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:c.hitRadius||o.valueAtIndexOrDefault(u.pointHitRadius,t,p.hitRadius)}},calculatePointY:function(e,t,n){var r,i,o,a=this.chart,s=this.getMeta(),c=this.getScaleForId(s.yAxisID),u=0,l=0;if(c.options.stacked){for(r=0;r<n;r++)if(i=a.data.datasets[r],"line"===(o=a.getDatasetMeta(r)).type&&o.yAxisID===c.id&&a.isDatasetVisible(r)){var f=Number(c.getRightValue(i.data[t]));f<0?l+=f||0:u+=f||0}var d=Number(c.getRightValue(e));return d<0?c.getPixelForValue(l+d):c.getPixelForValue(u+d)}return c.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,i=this.getMeta(),a=this.chart.chartArea,s=i.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(i.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),"monotone"===i.dataset._model.cubicInterpolationMode)o.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,r=o.splineCurve(o.previousItem(s,e)._model,n,o.nextItem(s,e)._model,i.dataset._model.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)(n=s[e]._model).controlPointPreviousX=c(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=c(n.controlPointPreviousY,a.top,a.bottom),n.controlPointNextX=c(n.controlPointNextX,a.left,a.right),n.controlPointNextY=c(n.controlPointNextY,a.top,a.bottom)},draw:function(){var e,n=this.chart,r=this.getMeta(),i=r.data||[],a=n.chartArea,s=i.length,c=0;for(t(this.getDataset(),n.options)&&(e=(r.dataset._model.borderWidth||0)/2,o.canvas.clipArea(n.ctx,{left:a.left,right:a.right,top:a.top-e,bottom:a.bottom+e}),r.dataset.draw(),o.canvas.unclipArea(n.ctx));c<s;++c)i[c].draw(a)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},i=e._model;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius},i.backgroundColor=r.hoverBackgroundColor||o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,o.getHoverColor(i.backgroundColor)),i.borderColor=r.hoverBorderColor||o.valueAtIndexOrDefault(t.pointHoverBorderColor,n,o.getHoverColor(i.borderColor)),i.borderWidth=r.hoverBorderWidth||o.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,i.borderWidth),i.radius=r.hoverRadius||o.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius)}})}},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),i[o]&&t.push(i[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var i=e.getDatasetMeta(0),a=t.datasets[0],s=i.data[r].custom||{},c=o.valueAtIndexOrDefault,u=e.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:c(a.backgroundColor,r,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:c(a.borderColor,r,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:c(a.borderWidth,r,u.borderWidth),hidden:isNaN(a.data[r])||i.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o].hidden=!i.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:i.Arc,linkScales:o.noop,update:function(e){var t,n,r,i=this,a=i.getDataset(),s=i.getMeta(),c=i.chart.options.startAngle||0,u=i._starts=[],l=i._angles=[];for(i._updateRadius(),s.count=i.countVisibleElements(),t=0,n=a.data.length;t<n;t++)u[t]=c,r=i._computeAngle(t),l[t]=r,c+=r;o.each(s.data,function(t,n){i.updateElement(t,n,e)})},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,i=r.elements.arc,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max((o-i.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,i=r.chart,a=r.getDataset(),s=i.options,c=s.animation,u=i.scale,l=i.data.labels,f=u.xCenter,d=u.yCenter,h=s.startAngle,p=e.hidden?0:u.getDistanceFromCenterForValue(a.data[t]),m=r._starts[t],v=m+(e.hidden?0:r._angles[t]),g=c.animateScale?0:u.getDistanceFromCenterForValue(a.data[t]);o.extend(e,{_datasetIndex:r.index,_index:t,_scale:u,_model:{x:f,y:d,innerRadius:0,outerRadius:n?g:p,startAngle:n&&c.animateRotate?h:m,endAngle:n&&c.animateRotate?h:v,label:o.valueAtIndexOrDefault(l,t,l[t])}});var y=this.chart.options.elements.arc,b=e.custom||{},_=o.valueAtIndexOrDefault,w=e._model;w.backgroundColor=b.backgroundColor?b.backgroundColor:_(a.backgroundColor,t,y.backgroundColor),w.borderColor=b.borderColor?b.borderColor:_(a.borderColor,t,y.borderColor),w.borderWidth=b.borderWidth?b.borderWidth:_(a.borderWidth,t,y.borderWidth),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return o.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),i=t.getMeta();if(isNaN(r.data[e])||i.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return o.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/n],a,e)}})}},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:i.Line,dataElementType:i.Point,linkScales:o.noop,update:function(e){var t=this,n=t.getMeta(),r=n.dataset,i=n.data,a=r.custom||{},s=t.getDataset(),c=t.chart.options.elements.line,u=t.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),o.extend(n.dataset,{_datasetIndex:t.index,_scale:u,_children:i,_loop:!0,_model:{tension:a.tension?a.tension:o.valueOrDefault(s.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:s.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:s.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:s.borderColor||c.borderColor,fill:a.fill?a.fill:void 0!==s.fill?s.fill:c.fill,borderCapStyle:a.borderCapStyle?a.borderCapStyle:s.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:s.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:s.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:s.borderJoinStyle||c.borderJoinStyle}}),n.dataset.pivot(),o.each(i,function(n,r){t.updateElement(n,r,e)},t),t.updateBezierControlPoints()},updateElement:function(e,t,n){var r=this,i=e.custom||{},a=r.getDataset(),s=r.chart.scale,c=r.chart.options.elements.point,u=s.getPointPositionForValue(t,a.data[t]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),o.extend(e,{_datasetIndex:r.index,_index:t,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:i.tension?i.tension:o.valueOrDefault(a.lineTension,r.chart.options.elements.line.tension),radius:i.radius?i.radius:o.valueAtIndexOrDefault(a.pointRadius,t,c.radius),backgroundColor:i.backgroundColor?i.backgroundColor:o.valueAtIndexOrDefault(a.pointBackgroundColor,t,c.backgroundColor),borderColor:i.borderColor?i.borderColor:o.valueAtIndexOrDefault(a.pointBorderColor,t,c.borderColor),borderWidth:i.borderWidth?i.borderWidth:o.valueAtIndexOrDefault(a.pointBorderWidth,t,c.borderWidth),pointStyle:i.pointStyle?i.pointStyle:o.valueAtIndexOrDefault(a.pointStyle,t,c.pointStyle),rotation:i.rotation?i.rotation:o.valueAtIndexOrDefault(a.pointRotation,t,c.rotation),hitRadius:i.hitRadius?i.hitRadius:o.valueAtIndexOrDefault(a.pointHitRadius,t,c.hitRadius)}}),e._model.skip=i.skip?i.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();o.each(t.data,function(n,r){var i=n._model,a=o.splineCurve(o.previousItem(t.data,r,!0)._model,i,o.nextItem(t.data,r,!0)._model,i.tension);i.controlPointPreviousX=Math.max(Math.min(a.previous.x,e.right),e.left),i.controlPointPreviousY=Math.max(Math.min(a.previous.y,e.bottom),e.top),i.controlPointNextX=Math.max(Math.min(a.next.x,e.right),e.left),i.controlPointNextY=Math.max(Math.min(a.next.y,e.bottom),e.top),n.pivot()})},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},r=e._index,i=e._model;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius},i.radius=n.hoverRadius?n.hoverRadius:o.valueAtIndexOrDefault(t.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),i.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,r,o.getHoverColor(i.backgroundColor)),i.borderColor=n.hoverBorderColor?n.hoverBorderColor:o.valueAtIndexOrDefault(t.pointHoverBorderColor,r,o.getHoverColor(i.borderColor)),i.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o.valueAtIndexOrDefault(t.pointHoverBorderWidth,r,i.borderWidth)}})}},function(e,t,n){"use strict";n(106)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},function(e,t,n){"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Radar=function(t,n){return n.type="radar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},function(e,t,n){"use strict";e.exports={},e.exports.filler=n(2027),e.exports.legend=n(2028),e.exports.title=n(2029)},function(e,t,n){"use strict";var r=n(106),i=n(282),o=n(83);r._set("global",{plugins:{filler:{propagate:!0}}});var a={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=i.length||0;return o?function(e,t){return t<o&&i[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function s(e,t,n){var r,i=e._model||{},o=i.fill;if(void 0===o&&(o=!!i.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function c(e){var t,n=e.el._model||{},r=e.el._scale||{},i=e.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if("number"==typeof o&&isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function u(e,t,n){var r,i=e[t].fill,o=[t];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function l(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),a[n](e))}function f(e){return e&&!e.skip}function d(e,t,n,r,i){var a;if(r&&i){for(e.moveTo(t[0].x,t[0].y),a=1;a<r;++a)o.canvas.lineTo(e,t[a-1],t[a]);for(e.lineTo(n[i-1].x,n[i-1].y),a=i-1;a>0;--a)o.canvas.lineTo(e,n[a],n[a-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,o,a,f=(e.data.datasets||[]).length,d=t.propagate,h=[];for(r=0;r<f;++r)a=null,(o=(n=e.getDatasetMeta(r)).dataset)&&o._model&&o instanceof i.Line&&(a={visible:e.isDatasetVisible(r),fill:s(o,r,f),chart:e,el:o}),n.$filler=a,h.push(a);for(r=0;r<f;++r)(a=h[r])&&(a.fill=u(h,r,d),a.boundary=c(a),a.mapper=l(a))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var i=e.ctx,a=n.el,s=a._view,c=a._children||[],u=n.mapper,l=s.backgroundColor||r.global.defaultColor;u&&l&&c.length&&(o.canvas.clipArea(i,e.chartArea),function(e,t,n,r,i,o){var a,s,c,u,l,h,p,m=t.length,v=r.spanGaps,g=[],y=[],b=0,_=0;for(e.beginPath(),a=0,s=m+!!o;a<s;++a)l=n(u=t[c=a%m]._view,c,r),h=f(u),p=f(l),h&&p?(b=g.push(u),_=y.push(l)):b&&_&&(v?(h&&g.push(u),p&&y.push(l)):(d(e,g,y,b,_),b=_=0,g=[],y=[]));d(e,g,y,b,_),e.closePath(),e.fillStyle=i,e.fill()}(i,c,u,s,l,a._loop),o.canvas.unclipArea(i))}}}},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83),a=n(404),s=o.noop;function c(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}r._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return o.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:o.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var u=i.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var e=this,t=e.options.labels||{},n=o.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,a=e.ctx,s=r.global,u=o.valueOrDefault,l=u(n.fontSize,s.defaultFontSize),f=u(n.fontStyle,s.defaultFontStyle),d=u(n.fontFamily,s.defaultFontFamily),h=o.fontString(l,f,d),p=e.legendHitBoxes=[],m=e.minSize,v=e.isHorizontal();if(v?(m.width=e.maxWidth,m.height=i?10:0):(m.width=i?10:0,m.height=e.maxHeight),i)if(a.font=h,v){var g=e.lineWidths=[0],y=e.legendItems.length?l+n.padding:0;a.textAlign="left",a.textBaseline="top",o.each(e.legendItems,function(t,r){var i=c(n,l)+l/2+a.measureText(t.text).width;g[g.length-1]+i+n.padding>=e.width&&(y+=l+n.padding,g[g.length]=e.left),p[r]={left:0,top:0,width:i,height:l},g[g.length-1]+=i+n.padding}),m.height+=y}else{var b=n.padding,_=e.columnWidths=[],w=n.padding,x=0,k=0,E=l+b;o.each(e.legendItems,function(e,t){var r=c(n,l)+l/2+a.measureText(e.text).width;k+E>m.height&&(w+=x+n.padding,_.push(x),x=0,k=0),x=Math.max(x,r),k+=E,p[t]={left:0,top:0,width:r,height:l}}),w+=x,_.push(x),m.width+=w}e.width=m.width,e.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=r.global,a=i.elements.line,s=e.width,u=e.lineWidths;if(t.display){var l,f=e.ctx,d=o.valueOrDefault,h=d(n.fontColor,i.defaultFontColor),p=d(n.fontSize,i.defaultFontSize),m=d(n.fontStyle,i.defaultFontStyle),v=d(n.fontFamily,i.defaultFontFamily),g=o.fontString(p,m,v);f.textAlign="left",f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=h,f.fillStyle=h,f.font=g;var y=c(n,p),b=e.legendHitBoxes,_=e.isHorizontal();l=_?{x:e.left+(s-u[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var w=p+n.padding;o.each(e.legendItems,function(r,c){var h=f.measureText(r.text).width,m=y+p/2+h,v=l.x,g=l.y;_?v+m>=s&&(g=l.y+=w,l.line++,v=l.x=e.left+(s-u[l.line])/2):g+w>e.bottom&&(v=l.x=v+e.columnWidths[l.line]+n.padding,g=l.y=e.top+n.padding,l.line++),function(e,n,r){if(!(isNaN(y)||y<=0)){f.save(),f.fillStyle=d(r.fillStyle,i.defaultColor),f.lineCap=d(r.lineCap,a.borderCapStyle),f.lineDashOffset=d(r.lineDashOffset,a.borderDashOffset),f.lineJoin=d(r.lineJoin,a.borderJoinStyle),f.lineWidth=d(r.lineWidth,a.borderWidth),f.strokeStyle=d(r.strokeStyle,i.defaultColor);var s=0===d(r.lineWidth,a.borderWidth);if(f.setLineDash&&f.setLineDash(d(r.lineDash,a.borderDash)),t.labels&&t.labels.usePointStyle){var c=p*Math.SQRT2/2,u=c/Math.SQRT2,l=e+u,h=n+u;o.canvas.drawPoint(f,r.pointStyle,c,l,h)}else s||f.strokeRect(e,n,y,p),f.fillRect(e,n,y,p);f.restore()}}(v,g,r),b[c].left=v,b[c].top=g,function(e,t,n,r){var i=p/2,o=y+i+e,a=t+i;f.fillText(n.text,o,a),n.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(o,a),f.lineTo(o+r,a),f.stroke())}(v,g,r,h),_?l.x+=m+n.padding:l.y+=w})}},handleEvent:function(e){var t=this,n=t.options,r="mouseup"===e.type?"click":e.type,i=!1;if("mousemove"===r){if(!n.onHover)return}else{if("click"!==r)return;if(!n.onClick)return}var o=e.x,a=e.y;if(o>=t.left&&o<=t.right&&a>=t.top&&a<=t.bottom)for(var s=t.legendHitBoxes,c=0;c<s.length;++c){var u=s[c];if(o>=u.left&&o<=u.left+u.width&&a>=u.top&&a<=u.top+u.height){if("click"===r){n.onClick.call(t,e.native,t.legendItems[c]),i=!0;break}if("mousemove"===r){n.onHover.call(t,e.native,t.legendItems[c]),i=!0;break}}}return i}});function l(e,t){var n=new u({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.legend=n}e.exports={id:"legend",_element:u,beforeInit:function(e){var t=e.options.legend;t&&l(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(o.mergeIf(t,r.global.legend),n?(a.configure(e,n,t),n.options=t):l(e,t)):n&&(a.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){"use strict";var r=n(106),i=n(224),o=n(83),a=n(404),s=o.noop;r._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var c=i.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=o.valueOrDefault,n=e.options,i=n.display,a=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,c=o.isArray(n.text)?n.text.length:1,u=o.options.toLineHeight(n.lineHeight,a),l=i?c*u+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=l):(s.width=l,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:s,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=o.valueOrDefault,i=e.options,a=r.global;if(i.display){var s,c,u,l=n(i.fontSize,a.defaultFontSize),f=n(i.fontStyle,a.defaultFontStyle),d=n(i.fontFamily,a.defaultFontFamily),h=o.fontString(l,f,d),p=o.options.toLineHeight(i.lineHeight,l),m=p/2+i.padding,v=0,g=e.top,y=e.left,b=e.bottom,_=e.right;t.fillStyle=n(i.fontColor,a.defaultFontColor),t.font=h,e.isHorizontal()?(c=y+(_-y)/2,u=g+m,s=_-y):(c="left"===i.position?y+m:_-m,u=g+(b-g)/2,s=b-g,v=Math.PI*("left"===i.position?-.5:.5)),t.save(),t.translate(c,u),t.rotate(v),t.textAlign="center",t.textBaseline="middle";var w=i.text;if(o.isArray(w))for(var x=0,k=0;k<w.length;++k)t.fillText(w[k],0,x,s),x+=p;else t.fillText(w,0,0,s);t.restore()}}});function u(e,t){var n=new c({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.titleBlock=n}e.exports={id:"title",_element:c,beforeInit:function(e){var t=e.options.title;t&&u(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(o.mergeIf(t,r.global.title),n?(a.configure(e,n,t),n.options=t):u(e,t)):n&&(a.removeBox(e,n),delete e.titleBlock)}}},function(e,t,n){var r=n(1052),i=n(1057),o=n(2064),a=n(2068),s=n(2086),c=n(254),u=n(1059),l=n(1061),f=1,d="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,y){var b=c(e),_=c(t),w=b?h:s(e),x=_?h:s(t),k=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(S&&!k)return y||(y=new r),b||l(e)?i(e,t,n,v,g,y):o(e,t,w,n,v,g,y);if(!(n&f)){var T=k&&m.call(e,"__wrapped__"),O=E&&m.call(t,"__wrapped__");if(T||O){var C=T?e.value():e,j=O?t.value():t;return y||(y=new r),g(C,j,n,v,y)}}return!!S&&(y||(y=new r),a(e,t,n,v,g,y))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(504),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(504);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(504);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(504);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(503);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(503),i=n(644),o=n(645),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(1054),i=n(2044),o=n(506),a=n(1056),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(505),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(2045),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(253)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(2048),i=n(503),o=n(644);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(2049),i=n(2050),o=n(2051),a=n(2052),s=n(2053);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(507);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(507),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(507),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(507),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t,n){var r=n(508);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(508);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(508);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(508);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(645),i=n(2060),o=n(2061);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(505),i=n(2065),o=n(1053),a=n(1057),s=n(2066),c=n(2067),u=1,l=2,f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",x=r?r.prototype:void 0,k=x?x.valueOf:void 0;e.exports=function(e,t,n,r,x,E,S){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!E(new i(e),new i(t)));case f:case d:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case p:var T=s;case g:var O=r&u;if(T||(T=c),e.size!=t.size&&!O)return!1;var C=S.get(e);if(C)return C==t;r|=l,S.set(e,t);var j=a(T(e),T(t),r,x,E,S);return S.delete(e),j;case b:if(k)return k.call(e)==k.call(t)}return!1}},function(e,t,n){var r=n(253).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(2069),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,c){var u=n&i,l=r(e),f=l.length;if(f!=r(t).length&&!u)return!1;for(var d=f;d--;){var h=l[d];if(!(u?h in t:o.call(t,h)))return!1}var p=c.get(e);if(p&&c.get(t))return p==t;var m=!0;c.set(e,t),c.set(t,e);for(var v=u;++d<f;){var g=e[h=l[d]],y=t[h];if(a)var b=u?a(y,g,h,t,e,c):a(g,y,h,e,t,c);if(!(void 0===b?g===y||s(g,y,n,a,c):b)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(2070),i=n(2072),o=n(509);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(2071),i=n(254);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(2073),i=n(2074),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(2076),i=n(1058),o=n(254),a=n(1059),s=n(1060),c=n(1061),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&c(e),h=n||l||f||d,p=h?r(e.length,String):[],m=p.length;for(var v in e)!t&&!u.call(e,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||p.push(v);return p}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(407),i=n(408),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(407),i=n(646),o=n(408),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(1055),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(248)(e))},function(e,t,n){var r=n(2083),i=n(2084),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},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(2085)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(2087),i=n(644),o=n(2088),a=n(2089),s=n(2090),c=n(407),u=n(1056),l=u(r),f=u(i),d=u(o),h=u(a),p=u(s),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(307)(n(253),"DataView");e.exports=r},function(e,t,n){var r=n(307)(n(253),"Promise");e.exports=r},function(e,t,n){var r=n(307)(n(253),"Set");e.exports=r},function(e,t,n){var r=n(307)(n(253),"WeakMap");e.exports=r},function(e,t,n){var r=n(2092)(n(2111));e.exports=r},function(e,t,n){var r=n(648),i=n(647),o=n(509);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var c=r(n,3);t=o(t),n=function(e){return c(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[c?t[u]:u]:void 0}}},function(e,t,n){var r=n(2094),i=n(2095),o=n(1063);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(1052),i=n(643),o=1,a=2;e.exports=function(e,t,n,s){var c=n.length,u=c,l=!s;if(null==e)return!u;for(e=Object(e);c--;){var f=n[c];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++c<u;){var d=(f=n[c])[0],h=e[d],p=f[1];if(l&&f[2]){if(void 0===h&&!(d in e))return!1}else{var m=new r;if(s)var v=s(h,p,d,e,t,m);if(!(void 0===v?i(p,h,o|a,s,m):v))return!1}}return!0}},function(e,t,n){var r=n(1062),i=n(509);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(643),i=n(2097),o=n(2104),a=n(649),s=n(1062),c=n(1063),u=n(511),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(1064);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(2099),i=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return i.test(e)&&t.push(""),e.replace(o,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=s},function(e,t,n){var r=n(2100),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(645),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(2102);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(505),i=n(2103),o=n(254),a=n(510),s=1/0,c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(2105),i=n(2106);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(1065),i=n(1058),o=n(254),a=n(1060),s=n(646),c=n(511);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var d=c(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2109),i=n(2110),o=n(649),a=n(511);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1064);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(2112),i=n(648),o=n(2113),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(2114);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(2115),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(506),i=n(510),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(2117);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(307),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(2119),i=n(2120),o=n(648),a=n(254);e.exports=function(e,t){return function(n,s){var c=a(n)?r:i,u=t?t():{};return c(n,e,o(s,2),u)}}},function(e,t){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(2121);e.exports=function(e,t,n,i){return r(e,function(e,r,o){t(i,e,n(e),o)}),i}},function(e,t,n){var r=n(2122),i=n(2125)(r);e.exports=i},function(e,t,n){var r=n(2123),i=n(509);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(2124)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},function(e,t,n){var r=n(647);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.round(Math.sqrt((1-n)*Math.pow(e,2)+n*Math.pow(t,2)))};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Number(((1-n)*e+n*t).toFixed(2))};t.default=r},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){var e=r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],4),t=e[0],n=void 0===t?0:t,i=e[1],o=void 0===i?0:i,a=e[2],s=void 0===a?0:a,c=e[3],u=void 0===c?1:c,l=(1<<24|n<<16|o<<8|s).toString(16).slice(1),f=(255*u).toString(16).padStart(2,"0").slice(0,2);return"#".concat(l).concat(f)};t.default=i},function(e,t,n){var r=n(2132);e.exports=r},function(e,t,n){n(2133);var r=n(93);e.exports=r.parseFloat},function(e,t,n){var r=n(36),i=n(2134);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,n){var r=n(122),i=n(621).trim,o=n(481),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var r=n(2136),i=n(880),o=n(881),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(333),i=n(334),o="[object RegExp]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(2138),i=n(501),o=n(2139);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(889)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+u,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){
/*!
* @license
* chartjs-plugin-datalabels
* http://chartjs.org/
* Version: 0.5.0
*
* Copyright 2018 Chart.js Contributors
* Released under the MIT license
* https://github.com/chartjs/chartjs-plugin-datalabels/blob/master/LICENSE.md
*/
e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,n=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),r={toTextLines:function(e){var n,r=[];for(e=[].concat(e);e.length;)"string"==typeof(n=e.pop())?r.unshift.apply(r,n.split("\n")):Array.isArray(n)?e.push.apply(e,n):t.isNullOrUndef(e)||r.unshift(""+n);return r},toFontString:function(e){return!e||t.isNullOrUndef(e.size)||t.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family},textSize:function(e,t,n){var r,i=[].concat(t),o=i.length,a=e.font,s=0;for(e.font=n.string,r=0;r<o;++r)s=Math.max(e.measureText(i[r]).width,s);return e.font=a,{height:o*n.lineHeight,width:s}},parseFont:function(n){var i=e.defaults.global,o=t.valueOrDefault(n.size,i.defaultFontSize),a={family:t.valueOrDefault(n.family,i.defaultFontFamily),lineHeight:t.options.toLineHeight(n.lineHeight,o),size:o,style:t.valueOrDefault(n.style,i.defaultFontStyle),weight:t.valueOrDefault(n.weight,null),string:""};return a.string=r.toFontString(a),a},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n,r,i,o,a=e.slice(),s=[];for(n=0,i=t.length;n<i;++n)o=t[n],-1===(r=a.indexOf(o))?s.push([o,1]):a.splice(r,1);for(n=0,i=a.length;n<i;++n)s.push([a[n],-1]);return s},rasterize:function(e){return Math.round(e*n)/n}};function i(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var i=e.x-n,o=e.y-r,a=Math.sqrt(i*i+o*o);return{x:a?i/a:0,y:a?o/a:-1}}var o=0,a=1,s=2,c=4,u=8;function l(e,t,n){var r=o;return e<n.left?r|=a:e>n.right&&(r|=s),t<n.top?r|=u:t>n.bottom&&(r|=c),r}function f(e,t){var n,r,i=t.anchor,o=e;return t.clamp&&(o=function(e,t){for(var n,r,i,o=e.x0,f=e.y0,d=e.x1,h=e.y1,p=l(o,f,t),m=l(d,h,t);p|m&&!(p&m);)(n=p||m)&u?(r=o+(d-o)*(t.top-f)/(h-f),i=t.top):n&c?(r=o+(d-o)*(t.bottom-f)/(h-f),i=t.bottom):n&s?(i=f+(h-f)*(t.right-o)/(d-o),r=t.right):n&a&&(i=f+(h-f)*(t.left-o)/(d-o),r=t.left),n===p?p=l(o=r,f=i,t):m=l(d=r,h=i,t);return{x0:o,x1:d,y0:f,y1:h}}(o,t.area)),"start"===i?(n=o.x0,r=o.y0):"end"===i?(n=o.x1,r=o.y1):(n=(o.x0+o.x1)/2,r=(o.y0+o.y1)/2),function(e,t,n,r,i){switch(i){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var d={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),o=e.innerRadius,a=e.outerRadius;return f({x0:e.x+r*o,y0:e.y+i*o,x1:e.x+r*a,y1:e.y+i*a,vx:r,vy:i},t)},point:function(e,t){var n=i(e,t.origin),r=n.x*e.radius,o=n.y*e.radius;return f({x0:e.x-r,y0:e.y-o,x1:e.x+r,y1:e.y+o,vx:n.x,vy:n.y},t)},rect:function(e,t){var n=i(e,t.origin),r=e.x,o=e.y,a=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(o=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),f({x0:r,y0:o+s,x1:r+a,y1:o,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=i(e,t.origin);return f({x0:e.x,y0:e.y,x1:e.x,y1:e.y,vx:n.x,vy:n.y},t)}},h=e.helpers,p=r.rasterize;function m(e){var t=e._model.horizontal,n=e._scale||t&&e._xScale||e._yScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return t?{x:r,y:null}:{x:null,y:r}}function v(e,t,n){var r=e.shadowBlur,i=n.stroked,o=p(n.x),a=p(n.y),s=p(n.w);i&&e.strokeText(t,o,a,s),n.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(t,o,a,s),r&&i&&(e.shadowBlur=r))}var g=function(e,t,n,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=t,i._el=n};h.extend(g.prototype,{_modelize:function(t,n,i,o){var a,s=this._index,c=h.options.resolve,u=r.parseFont(c([i.font,{}],o,s)),l=c([i.color,e.defaults.global.defaultFontColor],o,s);return{align:c([i.align,"center"],o,s),anchor:c([i.anchor,"center"],o,s),area:o.chart.chartArea,backgroundColor:c([i.backgroundColor,null],o,s),borderColor:c([i.borderColor,null],o,s),borderRadius:c([i.borderRadius,0],o,s),borderWidth:c([i.borderWidth,0],o,s),clamp:c([i.clamp,!1],o,s),clip:c([i.clip,!1],o,s),color:l,display:t,font:u,lines:n,offset:c([i.offset,0],o,s),opacity:c([i.opacity,1],o,s),origin:m(this._el),padding:h.options.toPadding(c([i.padding,0],o,s)),positioner:(a=this._el,a instanceof e.elements.Arc?d.arc:a instanceof e.elements.Point?d.point:a instanceof e.elements.Rectangle?d.rect:d.fallback),rotation:c([i.rotation,0],o,s)*(Math.PI/180),size:r.textSize(this._ctx,n,u),textAlign:c([i.textAlign,"start"],o,s),textShadowBlur:c([i.textShadowBlur,0],o,s),textShadowColor:c([i.textShadowColor,l],o,s),textStrokeColor:c([i.textStrokeColor,l],o,s),textStrokeWidth:c([i.textStrokeWidth,0],o,s)}},update:function(e){var t,n,i,o=this,a=null,s=null,c=o._index,u=o._config,l=h.options.resolve([u.display,!0],e,c);l&&(t=e.dataset.data[c],n=h.valueOrDefault(h.callback(u.formatter,[t,e]),t),(i=h.isNullOrUndef(n)?[]:r.toTextLines(n)).length&&(a=o._modelize(l,i,u,e),s=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,o=-i/2,a=-r/2;return{frame:{x:o-n.left-t,y:a-n.top-t,w:i+n.width+2*t,h:r+n.height+2*t},text:{x:o,y:a,w:i,h:r}}}(a))),o._model=a,o._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,i=e.ctx,o=this._model,a=this._rects;this.visible()&&(i.save(),o.clip&&(n=o.area,i.beginPath(),i.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),i.clip()),i.globalAlpha=r.bound(0,o.opacity,1),i.translate(p(t.x),p(t.y)),i.rotate(o.rotation),function(e,t,n){var r=n.backgroundColor,i=n.borderColor,o=n.borderWidth;(r||i&&o)&&(e.beginPath(),h.canvas.roundedRect(e,p(t.x)+o/2,p(t.y)+o/2,p(t.w)-o,p(t.h)-o,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&o&&(e.strokeStyle=i,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}(i,a.frame,o),function(e,t,n,r){var i,o=r.textAlign,a=r.color,s=!!a,c=r.font,u=t.length,l=r.textStrokeColor,f=r.textStrokeWidth,d=l&&f;if(u&&(s||d))for(n=function(e,t,n){var r=n.lineHeight,i=e.w,o=e.x,a=e.y+r/2;return"center"===t?o+=i/2:"end"!==t&&"right"!==t||(o+=i),{h:r,w:i,x:o,y:a}}(n,o,c),e.font=c.string,e.textAlign=o,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=a),d&&(e.lineJoin="round",e.lineWidth=f,e.strokeStyle=l),i=0,u=t.length;i<u;++i)v(e,t[i],{stroked:d,filled:s,w:n.w,x:n.x,y:n.y+n.h*i})}(i,o.lines,a.text,o),i.restore())}});var y=e.helpers,b=Number.MIN_SAFE_INTEGER||-9007199254740991,_=Number.MAX_SAFE_INTEGER||9007199254740991;function w(e,t,n){var r=Math.cos(n),i=Math.sin(n),o=t.x,a=t.y;return{x:o+r*(e.x-o)-i*(e.y-a),y:a+i*(e.x-o)+r*(e.y-a)}}function x(e,t){var n,r,i,o,a,s=_,c=b,u=t.origin;for(n=0;n<e.length;++n)r=e[n],i=r.x-u.x,o=r.y-u.y,a=t.vx*i+t.vy*o,s=Math.min(s,a),c=Math.max(c,a);return{min:s,max:c}}function k(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var E=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function S(e,t,n){var r=t.positioner(e,t),i=r.vx,o=r.vy;if(!i&&!o)return{x:r.x,y:r.y};var a=n.w,s=n.h,c=t.rotation,u=Math.abs(a/2*Math.cos(c))+Math.abs(s/2*Math.sin(c)),l=Math.abs(a/2*Math.sin(c))+Math.abs(s/2*Math.cos(c)),f=1/Math.max(Math.abs(i),Math.abs(o));return u*=i*f,l*=o*f,u+=t.offset*i,l+=t.offset*o,{x:r.x+u,y:r.y+l}}y.extend(E.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this._rect;return!((e=w(e,this.center(),-this._rotation)).x<t.x-1||e.y<t.y-1||e.x>t.x+t.w+2||e.y>t.y+t.h+2)},intersects:function(e){var t,n,r,i=this._points(),o=e._points(),a=[k(i[0],i[1]),k(i[0],i[3])];for(this._rotation!==e._rotation&&a.push(k(o[0],o[1]),k(o[0],o[3])),t=0;t<a.length;++t)if(n=x(i,a[t]),r=x(o,a[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this._rect,t=this._rotation,n=this.center();return[w({x:e.x,y:e.y},n,t),w({x:e.x+e.w,y:e.y},n,t),w({x:e.x+e.w,y:e.y+e.h},n,t),w({x:e.x,y:e.y+e.h},n,t)]}});var T={prepare:function(e){var t,n,r,i,o,a=[];for(t=0,r=e.length;t<r;++t)for(n=0,i=e[t].length;n<i;++n)o=e[t][n],a.push(o),o.$layout={_box:new E,_hidable:!1,_visible:!0,_set:t,_idx:n};return a.sort(function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?n._set-r._set:r._idx-n._idx}),this.update(a),a},update:function(e){var t,n,r,i,o,a=!1;for(t=0,n=e.length;t<n;++t)r=e[t],i=r.model(),(o=r.$layout)._hidable=i&&"auto"===i.display,o._visible=r.visible(),a|=o._hidable;a&&function(e){var t,n,r,i,o,a;for(t=0,n=e.length;t<n;++t)r=e[t],(i=r.$layout)._visible&&(o=r.geometry(),a=S(r._el._model,r.model(),o),i._box.update(a,o,r.rotation()));!function(e,t){var n,r,i,o;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)(o=e[r].$layout)._visible&&i._box.intersects(o._box)&&t(i,o)}(e,function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)})}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return{dataset:r._set,label:e[n]};return null},draw:function(e,t){var n,r,i,o,a,s;for(n=0,r=t.length;n<r;++n)i=t[n],(o=i.$layout)._visible&&(a=i.geometry(),s=S(i._el._view,i.model(),a),o._box.update(s,a,i.rotation()),i.draw(e,s))}},O=e.helpers,C={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(O.isNullOrUndef(e))return null;var t,n,r,i=e;if(O.isObject(e))if(O.isNullOrUndef(e.label))if(O.isNullOrUndef(e.r))for(i="",t=Object.keys(e),r=0,n=t.length;r<n;++r)i+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else i=e.r;else i=e.label;return""+i},listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},j=e.helpers,A="$datalabels";function M(e,t,n){var r=t&&t[n.dataset];if(r){var i=n.label,o=i.$context;!0===j.callback(r,[o])&&(e[A]._dirty=!0,i.update(o))}}function P(e,t){var n,r,i=e[A],o=i._listeners;if(o.enter||o.leave){if("mousemove"===t.type)r=T.lookup(i._labels,t);else if("mouseout"!==t.type)return;n=i._hovered,i._hovered=r,function(e,t,n,r){var i,o;(n||r)&&(n?r?n.label!==r.label&&(o=i=!0):o=!0:i=!0,o&&M(e,t.leave,n),i&&M(e,t.enter,r))}(e,o,n,r)}}e.defaults.global.plugins.datalabels=C,e.defaults.global.plugins.datalabels=C;var N={id:"datalabels",beforeInit:function(e){e[A]={_actives:[]}},beforeUpdate:function(e){var t=e[A];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,i,o,a=t.index,s=e[A],c=s._datasets[a]=[],u=e.isDatasetVisible(a),l=e.data.datasets[a],f=function(e,t){var n=e.datalabels;return!1===n?null:(!0===n&&(n={}),j.merge({},[t,n]))}(l,n),d=t.meta.data||[],h=d.length,p=e.ctx;for(p.save(),r=0;r<h;++r)i=d[r],u&&i&&!i.hidden&&!i._model.skip?(c.push(o=new g(f,p,i,r)),o.update(o.$context={active:!1,chart:e,dataIndex:r,dataset:l,datasetIndex:a})):o=null,i[A]=o;p.restore(),j.merge(s._listeners,f.listeners||{},{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],s._listened=!0}})},afterUpdate:function(e,t){e[A]._labels=T.prepare(e[A]._datasets,t)},afterDatasetsDraw:function(e){T.draw(e,e[A]._labels)},beforeEvent:function(e,t){if(e[A]._listened)switch(t.type){case"mousemove":case"mouseout":P(e,t);break;case"click":!function(e,t){var n=e[A],r=n._listeners.click,i=r&&T.lookup(n._labels,t);i&&M(e,r,i)}(e,t)}},afterEvent:function(e){var t,n,i,o,a=e[A],s=a._actives,c=a._actives=e.lastActive||[],u=r.arrayDiff(s,c);for(t=0,n=u.length;t<n;++t)(i=u[t])[1]&&(o=i[0][A])&&(o.$context.active=1===i[1],o.update(o.$context));(a._dirty||u.length)&&(T.update(a._labels),e.animating||e.render()),delete a._dirty}};return e.plugins.register(N),N}(n(320))},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(2148);e.exports=r},function(e,t,n){var r=n(2149),i=Array.prototype;e.exports=function(e){var t=e.fill;return e===i||e instanceof Array&&t===i.fill?r:t}},function(e,t,n){n(2150);var r=n(132);e.exports=r("Array").fill},function(e,t,n){var r=n(36),i=n(2151),o=n(564);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(199),i=n(589),o=n(200);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);u>s;)t[s++]=e;return t}},function(e,t,n){},function(e,t,n){var r=n(162),i=n(127).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(127),i=n(308);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(652),i=n(1171),o=n(169),a=n(127).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){e.exports=n(127)},function(e,t,n){var r=n(180),i=n(201),o=n(169),a=n(718);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){"use strict";var r=n(217),i=n(567),o=n(187);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(1075),i=n(181)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(37),i=n(2211),o=n(445),a=n(719),s=n(444),c=n(308),u=n(326),l=n(650),f=n(181)("iterator"),d=n(1075),h=n(2212),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,v=function(){return this};e.exports=function(e,t,n,h,g,y,b){i(n,t,h);var _,w,x,k=function(e){if(e===g&&C)return C;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",S=!1,T=e.prototype,O=T[f]||T["@@iterator"]||g&&T[g],C=!m&&O||k(g),j="Array"==t&&T.entries||O;if(j&&(_=o(j.call(new e)),p!==Object.prototype&&_.next&&(l||o(_)===p||(a?a(_,p):"function"!=typeof _[f]&&c(_,f,v)),s(_,E,!0,!0),l&&(d[E]=v))),"values"==g&&O&&"values"!==O.name&&(S=!0,C=function(){return O.call(this)}),l&&!b||T[f]===C||c(T,f,C),d[t]=C,g)if(w={values:k("values"),keys:y?C:k("keys"),entries:k("entries")},b)for(x in w)!m&&!S&&x in T||u(T,x,w[x]);else r({target:t,proto:!0,forced:m||S},w);return w}},function(e,t,n){e.exports=!n(113)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(2157),i=n(127),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(162),i=n(719);e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r=n(375),i=n(373);e.exports="".repeat||function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){var r,i,o,a=n(127),s=n(409),c=n(570),u=n(2204),l=n(2153),f=a.setImmediate,d=a.clearImmediate,h=a.process,p=a.MessageChannel,m=a.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(v),v},d=function(e){delete g[e]},"process"==s(h)?r=function(e){h.nextTick(c(y,e,1))}:m&&m.now?r=function(e){m.now(c(y,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(e){a.postMessage(e+"","*")},a.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(c(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,n){var r=n(162),i=n(409),o=n(181)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(2168),i=n(373);e.exports=function(e,t,n){if(r(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(i(e))}},function(e,t,n){var r=n(181)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(1183);e.exports=function(e,t,n){return t+(n?r(e,t,!0).length:1)}},function(e,t,n){var r=n(113),i=n(1178);e.exports=function(e){return r(function(){return!!i[e]()||"
"!="
"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(127),i=n(113),o=n(1172),a=n(170).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!a||!i(function(){c(1)})||!i(function(){new c(-1)})||!o(function(e){new c,new c(null),new c(1.5),new c(e)},!0)||i(function(){return 1!==new c(new s(2),1,void 0).length})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),a=(l(n(91)),l(n(1079)),l(n(2175))),s=l(n(1186)),c=l(n(1187)),u=l(n(2240));function l(e){return e&&e.__esModule?e:{default:e}}var f={to:c.default.string.isRequired,containerId:c.default.string,container:c.default.object,activeClass:c.default.string,spy:c.default.bool,smooth:c.default.oneOfType([c.default.bool,c.default.string]),offset:c.default.number,delay:c.default.number,isDynamic:c.default.bool,onClick:c.default.func,duration:c.default.oneOfType([c.default.number,c.default.func]),absolute:c.default.bool,onSetActive:c.default.func,onSetInactive:c.default.func,ignoreCancelEvents:c.default.bool,hashSpy:c.default.bool};t.default=function(e,t){var n=t||s.default,c=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return l.call(t),t.state={active:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,o.default.PureComponent),i(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e),this.props.hashSpy&&(u.default.isMounted()||u.default.mount(n),u.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in f)n.hasOwnProperty(i)&&delete n[i];return n.className=t,n.onClick=this.handleClick,o.default.createElement(e,n)}}]),s}(),l=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!u.default.isMounted()||u.default.isInitialized()){var i=e.props.to,o=null,a=0,s=0,c=0;if(r.getBoundingClientRect)c=r.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(i)))return;var l=o.getBoundingClientRect();s=(a=l.top-c+t)+l.height}var f=t-e.props.offset,d=f>=Math.floor(a)&&f<Math.floor(s),h=f<Math.floor(a)||f>=Math.floor(s),p=n.getActiveLink();h&&(i===p&&n.setActiveLink(void 0),e.props.hashSpy&&u.default.getHash()===i&&u.default.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(i,o))),!d||p===i&&!1!==e.state.active||(n.setActiveLink(i),e.props.hashSpy&&u.default.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i,o)))}}};return c.propTypes=f,c.defaultProps={offset:0},c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1168),o=(r=i)&&r.__esModule?r:{default:r},a=n(2176);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e){if(e){var t=function(e){return(0,o.default)(e,66)}(function(t){s.scrollHandler(e)});s.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",t)}},isMounted:function(e){return-1!==s.scrollSpyContainers.indexOf(e)},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(s.currentPositionY(e))})},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var n=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach(function(e){return e()})},unmount:function(e,t){s.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach(function(e){return s.scrollHandler(e)})}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},function(e,t,n){var r=n(1189),i=n(514),o=n(309),a=n(2631),s=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){var r=n(514),i=n(309),o=n(1188);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){var r=n(129),i=n(723),o=n(128),a=n(2634),s=n(2636),c=n(2637);function u(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function l(e,t,n,r){return e["@@transducer/result"](n[r](c(e["@@transducer/step"],e),t))}var f=void 0!==r?i:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=s(e)),a(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return l(e,t,n,"fantasy-land/reduce");if(null!=n[f])return u(e,t,n[f]());if("function"==typeof n.next)return u(e,t,n);if("function"==typeof o(n))return l(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t,n){var r=n(133);e.exports=r||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(33),f=n.n(l),d=n(167),h=n.n(d),p=n(2277),m=n(423),v=n(1201),g=n(86);function y(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=Object(v.a)(p.a),_=function(t){Object(s.a)(r,t);var n=y(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"displayFlex",value:function(e){e.css({display:"flex"})}},{key:"componentDidMount",value:function(){var e=this;h()(".page__content").addClass("page__content--appear");var t=h()("[data-page]:first-child [data-previous-lesson]"),n=document.getElementsByClassName("page-wrap");t.length>0?f()(function(){var r=t.height();e.displayFlex(t),h()(n).scrollTop(r),h()("[data-lesson-header]").css({top:r})},50):h()(n).scrollTop(0)}},{key:"componentWillEnter",value:function(e){var t=document.querySelector("[data-overview-sidebar-content]"),n="overview-sidebar__content--will-enter",r="overview-sidebar__content--will-enter-active";t.classList.add(n),f()(function(){t.classList.add(r)},10),f()(function(){t.classList.remove(n,r),e()},2e3)}},{key:"render",value:function(){return e.createElement(g.d,{className:"transition-group"},e.createElement(m.a,null,e.createElement(b,this.props)))}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m}),n.d(t,"b",function(){return v});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(5),f=n.n(l),d=(n(2623),n(152)),h=n(43);function p(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(t){var n=t.courseHomeLabel;return e.createElement("div",{className:"previous-lesson brand--linkColorHover","data-previous-lesson":!0},e.createElement(d.b,{className:"previous-lesson__link",to:"/"},e.createElement("i",{className:"icon icon-chevron-up"}),e.createElement("div",{className:"previous-lesson__title brand--ui"},n)))},v=function(t){Object(s.a)(r,t);var n=p(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t,n=this.props,r=n.previous,i=n.previousNumber,o=n.previousTitle,a=n.onPreviousClick,s=n.isLesson,c=n.labels.lessonName,u=e.createElement(h.a,{className:"previous-lesson__title--inline",value:o});return e.createElement("div",{className:"previous-lesson brand--linkColorHover","data-previous-lesson":!0},e.createElement(d.b,{className:"previous-lesson__link",to:"/lessons/"+encodeURIComponent(r),onClick:a},e.createElement("i",{className:"icon icon-chevron-up"}),e.createElement("div",{className:"previous-lesson__title brand--ui"},s?f()(t="".concat(c," ")).call(t,i," - "):""," ",u)))}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(2),f=n.n(l),d=n(1),h=n.n(d),p=n(23),m=n(20);function v(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var g=function(t){Object(s.a)(r,t);var n=v(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={hide:!1},t}return Object(a.a)(r,[{key:"focus",value:function(){this.controlDiv.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.atStart,o=n.isTransitioning,a=n.labels.processNextStep,s=n.onClick,c=n.type,u=this.state.hide,l="next"===c,d=l&&!o&&!i,h=f()("process__"+c,"brand--min768--background",{"brand--max768--color":i,"process__controls--hide":u,"process__controls--animating":o,"process__controls--clip":d}),v=l?"icon-chevron-right":"icon-chevron-left";return e.createElement("div",{"aria-hidden":!r,className:h,onClick:s,onKeyDown:Object(p.a)(s),ref:function(e){t.controlDiv=e},role:"button",tabIndex:Object(m.m)(r)},e.createElement("div",{className:"process__control-content","data-next-step":a},e.createElement("div",{className:"process__control-animation"},e.createElement("i",{className:v}))))}}],[{key:"propTypes",get:function(){return{type:h.a.string.isRequired,onClick:h.a.func.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return s});var r=n(120),i=n(154),o=n(2291),a=["menuButtons","previousComponent"];t.a=function(t){var n=t.menuButtons,c=t.previousComponent,u=Object(r.a)(t,a);return e.createElement(i.c,{type:s.type},c,e.createElement(i.b,{type:s.type},n,e.createElement(i.a,{type:s.type},e.createElement(o.a,u))))};var s={type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c});var r=n(152),i=n(32),o=n.n(i),a=(n(2629),n(2292)),s=function(t){var n=t.percentComplete,r=t.trackingCompletionPercentage;return o()(r)?null:e.createElement("div",{className:"progress-summary__requirement"},e.createElement("div",{className:"progress-summary__requirement-stats-wrap"},e.createElement("h2",{className:"progress-summary__requirement-title"},"Completion Requirement"),e.createElement("div",{className:"progress-summary__requirement-stats"},e.createElement("div",null,r,"% Completion"),e.createElement("div",null,"You completed: ",e.createElement("strong",{className:"progress-summary__requirement-stats-percent-achieved"},n,"%")))),e.createElement(u,{requirementMet:r<=n}))},c=function(t){var n=t.outOfAttempts,i=t.quizPassed,a=t.quizPassingScore,s=t.quizScore,c=t.quizTitle,l=t.trackingQuizId;return l?e.createElement("div",{className:"progress-summary__requirement"},e.createElement("div",{className:"progress-summary__requirement-stats-wrap"},e.createElement("h2",{className:"progress-summary__requirement-title"},"Quiz Requirement"),e.createElement("div",{className:"progress-summary__requirement-stats"},e.createElement("div",null,"Score of ",a,"% on ",c),o()(s)?e.createElement("div",null,e.createElement(r.b,{className:"progress-summary__requirement-stats-link brand--color",to:"/lessons/".concat(l)},"View quiz")):e.createElement("div",null,"You scored ",e.createElement("strong",{className:"progress-summary__requirement-stats-percent-achieved"},s,"%"))),n&&e.createElement("span",{className:"progress-summary__requirement-no-attempts"},"No attempts remaining.")),e.createElement(u,{requirementMet:i})):null},u=function(t){return t.requirementMet?e.createElement(a.a,{"aria-label":"Requirement completed, check mark",className:"progress-summary__requirement-checkbox-checked"}):e.createElement("div",{"aria-label":"Requirement not completed, empty square",className:"progress-summary__requirement-checkbox-empty",role:"img"})}}).call(this,n(0))},function(e,t,n){var r=n(2643)(1,"join");e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(2675),i=n(119),o=n(1169),a=n(90),s=n(206),c=n(2676),u=function(e,t){return s(e,t)&&c(e)&&o(e)&&a(e.first)&&a(e.second)};e.exports=i(function(e,t){if(a(e)&&a(t))return function(n){return r(e(n),t(n))};if(u(e,t))return e.first().compose(t.second()).contramap(function(e){return r(e,e)});throw new TypeError("fanout: Arrows, Functions or Stars of the same type required for both arguments")})},function(e,t,n){"use strict";t.a={addEventListeners:function(e,t){e.addEventListener("animationend",t,!1)},removeEventListeners:function(e,t){e.removeEventListener("animationend",t,!1)}}},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=(n(2689),n(0)),v=n(152),g=n(123),y=n(2),b=n.n(y),_=n(1),w=n.n(_),x=n(316),k=n.n(x),E=n(40),S=n(23),T=n(22),O=n(165),C=n(549),j=n(20),A=n(267),M=n(1205);function P(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var N=function(e){return"/lessons/".concat(encodeURIComponent(e))},I=function(t){var n=t.allowTabNavigation,r=t.canComplete,i=t.isDisabled,o=t.onClick,a=t.passedQuiz,s=t.percentComplete,c=t.title,u=t.type,l=e.createElement("span",{"aria-hidden":"true"},e.createElement(M.a,{passedQuiz:a,percentComplete:s})),f=Object(j.m)(n);if(!r||"quiz"===u)return l;var d=T.e?"".concat(c," is complete"):"Mark ".concat(c," as incomplete"),h=100===s?d:"Mark ".concat(c," as complete"),p=T.e&&100===s;return e.createElement("button",{"aria-label":h,className:"lesson-link__button",disabled:i||p,onClick:o,tabIndex:f,type:"button"},l)},L=function(t){Object(c.a)(r,t);var n=P(r);function r(){var e,t,i,a,c,u,l,f;Object(o.a)(this,r);for(var h=arguments.length,m=new Array(h),v=0;v<h;v++)m[v]=arguments[v];return(f=n.call.apply(n,d()(e=[this]).call(e,m))).onClick=p()(t=f.onClick).call(t,Object(s.a)(f)),f.onKeyBlur=p()(i=f.handleKeyboardFocus).call(i,Object(s.a)(f),!1),f.onKeyFocus=p()(a=f.handleKeyboardFocus).call(a,Object(s.a)(f),!0),f.onMouseEnter=p()(c=f.handleMouseHover).call(c,Object(s.a)(f),!0),f.onMouseLeave=p()(u=f.handleMouseHover).call(u,Object(s.a)(f),!1),f.onSectionClick=p()(l=f.onSectionClick).call(l,Object(s.a)(f)),f}return Object(a.a)(r,[{key:"isActive",value:function(){return this.props.match.url==="/lessons/".concat(this.props.id)}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.allowTabNavigation,i=n.allowTooltip,o=n.id,a=n.isSectionActive,s=n.location,c=n.markComplete,u=n.percentComplete,l=n.restrictions,f=this.state,d=f.hasFocus,h=f.visited;return!!(r!==e.allowTabNavigation||o!==e.id||a!==e.isSectionActive||d!==t.hasFocus||s!==e.location||c!==e.markComplete||u!==e.percentComplete||l.isRestricted!==e.restrictions.isRestricted||l.currentLesson!==e.restrictions.currentLesson||h!==t.visited||d&&i!==e.allowTooltip)}},{key:"componentWillMount",value:function(){this.setState({visited:this.isActive()})}},{key:"handleKeyboardFocus",value:function(e){this.setState({hasFocus:e})}},{key:"handleMouseHover",value:function(e){this.props.onMouse(e)}},{key:"onClick",value:function(e){var t=this.props,n=t.focusLessonContent,r=t.id,i=t.lesson,o=t.onClick,a=t.onMobileActiveClick;if(this.isActive()){if(e.preventDefault(),!a)return n(),!1;a()}this.setState({visited:!0}),o({lesson:i,id:r})}},{key:"onSectionClick",value:function(){var e=this.props,t=e.id,n=e.lesson;(0,e.onClick)({id:t,lesson:n})}},{key:"renderLink",value:function(){var t,n=this.props,r=n.allowTabNavigation,i=n.allowTooltip,o=n.icon,a=n.id,s=n.labels,c=n.markComplete,u=n.onComplete,l=n.passedQuiz,f=n.percentComplete,h=n.restrictions,p=n.title,g=n.type,y=this.state,_=y.hasFocus,w=y.visited,x=h.isRestricted,E=x&&c,S=!h.isRestrictedCourse&&c,T=b()("lesson-link",{"lesson-link--visited":w,"lesson-link__restricted":x}),M=void 0===l||l?"".concat(f," Percent Complete"):"Quiz Failed",P=[e.createElement("div",{key:"icon-".concat(a),"aria-hidden":"true",className:"lesson-link__icon"},e.createElement(C.a,{icon:o})),e.createElement("div",{key:"name-".concat(a),className:"lesson-link__name brand--ui"},e.createElement("span",{"aria-hidden":"true"},k()(p,{length:60})),e.createElement("span",{className:"visually-hidden"},d()(t="".concat(p," ")).call(t,M)))],L=e.createElement("div",{key:"progress-".concat(a),className:"lesson-link__progress"},e.createElement(I,{allowTabNavigation:r,canComplete:S,isDisabled:E,onClick:u,passedQuiz:l,percentComplete:f,title:p,type:g})),D=Object(j.m)(r);if(x){var R,B=Object(O.a)({labels:s,restrictions:h}),F=b()("runtime-tooltip",{"runtime-tooltip--show":i&&_});return e.createElement(A.a,{className:F},e.createElement("span",{"aria-disabled":"true","aria-label":d()(R="The ".concat(p," lesson is currently unavailable: ")).call(R,B),className:T,onBlur:this.onKeyBlur,onFocus:this.onKeyFocus,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,role:"link",tabIndex:D},P),L,e.createElement(A.b,{"aria-hidden":"true",side:"top"},B))}return e.createElement(m.Fragment,null,e.createElement(v.c,{activeClassName:"lesson-link--active brand--beforeBackground",className:T,onClick:this.onClick,tabIndex:D,to:N(a)},P),L)}},{key:"renderSection",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.isSectionActive,o=n.sectionId,a=n.title,s=Object(j.m)(r),c=b()({"chevron__rotate-down":i});return e.createElement("div",{"aria-controls":o,"aria-expanded":i,"aria-label":"Toggle ".concat(a," Section"),className:"lesson-link--section brand--ui",onClick:this.onSectionClick,onKeyPress:function(e){Object(S.e)(e)&&t.onSectionClick()},role:"button",tabIndex:s},e.createElement("div",{className:"lesson-link--section-content"},e.createElement("div",{className:"lesson-link--section-icon"},e.createElement(E.u,{className:c})),e.createElement("div",{className:"lesson-link--section-title"},a)))}},{key:"render",value:function(){return"section"===this.props.type?this.renderSection():this.renderLink()}}],[{key:"propTypes",get:function(){return{id:w.a.any.isRequired,icon:w.a.string,isSectionActive:w.a.bool,type:w.a.string.isRequired,title:w.a.string.isRequired,onClick:w.a.func.isRequired,focusLessonContent:w.a.func.isRequired}}},{key:"defaultProps",get:function(){return{isSectionActive:!1,restrictions:{}}}}]),r}(m.Component);t.a=Object(g.f)(L)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ne});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(71),v=n.n(m),g=n(17),y=n.n(g),b=n(163),_=n.n(b),w=n(101),x=n.n(w),k=n(8),E=n.n(k),S=n(39),T=n.n(S),O=n(149),C=n.n(O),j=n(55),A=n.n(j),M=n(69),P=n.n(M),N=n(137),I=n.n(N),L=n(82),D=n.n(L),R=n(32),B=n.n(R),F=n(53),U=n.n(F),q=n(31),z=n.n(q),H=n(24),W=n.n(H),V=n(25),Y=n.n(V),G=n(15),K=n.n(G),$=n(19),X=n.n($),Q=n(52),Z=n.n(Q),J=n(208),ee=n.n(J),te=n(42),ne=n.n(te),re=n(0),ie=n(268),oe=n.n(ie),ae=n(448),se=n.n(ae),ce=n(2),ue=n.n(ce),le=(n(2695),n(74)),fe=n(165),de=n(576),he=n(66),pe=n(23),me=n(22),ve=n(81),ge=n(453),ye=n(360),be=n(263),_e=n(1161),we=n(714),xe=n(712),ke=n(536),Ee=n(449),Se=n(317),Te=n(40),Oe=n(1156),Ce=n(440);function je(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ae=Y()(C()([]),A()(x()(X()("type","section"))),U.a),Me=Object(Se.a)("modernOverview")||Object(ve.k)(),Pe=T()([[X()("hasNextLesson",!0),K()("nextLessonTitle")],[ee()(x()(B.a),"trackingQuizId"),K()("quizTitle")],[v.a,y()("Nothing here")]]),Ne=function(t){Object(c.a)(r,t);var n=je(r);function r(){var e,t,i,a,c;Object(o.a)(this,r);for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return(c=n.call.apply(n,d()(e=[this]).call(e,l))).addFavorite=p()(t=c.addFavorite).call(t,Object(s.a)(c)),c.removeFavorite=p()(i=c.removeFavorite).call(i,Object(s.a)(c)),c.handleStartButtonKeyDown=p()(a=c.handleStartButtonKeyDown).call(a,Object(s.a)(c)),c}return Object(a.a)(r,[{key:"componentDidMount",value:function(){oe.a.Events.scrollEvent.register("end",function(e,t){t&&t.focus()})}},{key:"componentWillUnmount",value:function(){oe.a.Events.scrollEvent.remove("end")}},{key:"componentWillEnter",value:function(e){this.courseOverview.animate(!0).then(e)}},{key:"componentWillExit",value:function(e){this.courseOverview.animate().then(e)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.course,o=r.courseProgress,a=r.lessons,s=r.labels,c=W()([],["partnerContent","content"],this.props),u=z()(["lmsOptions","enableExitCourse"],i),l=W()({},["media","image"],i),f=l.key,d=l.width,h=l.height,p=f?Object(he.a)(l):null,m=s.courseStart,v=s.courseResume,g=s.courseDetails,b=s.courseExit,w=s.overviewPageTitleSuffix,x=i.author,k=i.authors,S=i.categories,T=i.certificateDownload,O=i.completedAt,C=i.dueAt,j=i.enrolled,M=i.favoritedAt,N=i.riseComCurrentUser,L=i.riseComEnrollmentType,R=i.selectedAuthorId,F=i.showTimeToComplete,U=i.timeToComplete,q=i.trackingCompletionPercentage,H=i.trackingQuizId,V=Object(ge.b)(i),Y=Object(ge.c)(i),G=z()(["lessonsOnly",0,"id"],i),$=E()(Z()("","title"),D.a,A()(X()("id",H)),K()("lessons"))(i),Q=Object(ve.k)()?100===o.percentComplete:Object(ve.i)(),J=Me&&"preview"!==window.viewType&&o.percentComplete&&!Q?ne()(_()(B.a,y()(H)),y()(H))(Object(fe.c)(o.lessons,H)):G,ee=!B()(J),te=Me&&(Q||!ee&&B()(H)),ie=(t=v,te?"Start Again":t),oe=o.percentComplete?ie:m,ae=ee?I()(X()("id",J))(i.lessonsOnly):-1,ce=ee?W()("",["lessonsOnly",ae,"title"],i):"",le=Pe({hasNextLesson:ee,nextLessonTitle:ce,trackingQuizId:H,quizTitle:$}),pe=ue()("overview__continueMessage",{"overview__continueMessage-hide":!j&&!M}),ye=Object(ke.a)({authors:k,author:x,selectedAuthorId:R}),be=ye.avatar,Se=ye.authorName,je=ye.title,Ne=Object(de.a)({course:i,courseProgress:o}),Ie=Ae(a),Le=!H||W()(!1,["lessons",H,"passed"],o),De=P()(function(e){return e.id===R},c),Re=De&&De.data.authors,Be=Re?e.createElement(Oe.a,{partnerContentAuthors:Re,learn:!0}):e.createElement(Ce.a,{avatar:be,authorName:Se});return e.createElement(se.a,{title:Object(Ee.a)(i.title+" - "+w)},e.createElement(Ce.j,{ref:function(e){return n.courseOverview=e},sidebarEnabled:V,sidebarOpen:Y},e.createElement(_e.a,{enableExitCourse:u,className:"courseExit courseExit--overview",text:b}),e.createElement("header",null,e.createElement(Ce.e,{coverImage:i.coverImage},e.createElement(we.b,{courseTitle:i.title,coverImage:i.coverImage},e.createElement(xe.b,{lessonComplete:s.lessonComplete,value:o.percentComplete})),Be,e.createElement(Ce.i,null,i.title),Me&&0!==o.percentComplete&&e.createElement(re.Fragment,null,e.createElement("div",{className:"overview__progressBar"},e.createElement(xe.b,{lg:!0,rounded:!0,lessonComplete:s.lessonComplete,value:o.percentComplete})),!!o.percentComplete&&!te&&e.createElement("div",{className:pe},e.createElement(Te.b,{className:"overview__continueIcon",decorative:!0}),e.createElement("span",{"aria-hidden":"true",className:"overview__nextLessonText"},le),e.createElement("span",{className:"visually-hidden"},"Next lesson: ",le))),e.createElement("div",null,me.e&&Me||Object(ve.k)()?e.createElement(Ce.h,{certificateDownload:T,completedQuizRequirement:Le,courseBtnText:oe,courseProgress:o,coverImage:i.coverImage,currentUser:N,enrolled:j,enrollmentType:L,favoritedAt:M,handleAddFavoriteClick:this.addFavorite,handleRemoveFavoriteClick:this.removeFavorite,handleKeyDown:this.handleStartButtonKeyDown,nextLessonId:J,nextLessonText:le,percentComplete:o.percentComplete,startAgain:te}):e.createElement(Ce.b,{to:"/lessons/".concat(ee?J:G),coverImage:i.coverImage,onKeyDown:this.handleStartButtonKeyDown},oe),V&&!me.e&&!Me&&e.createElement(Ce.c,{text:g})))),e.createElement("main",{"aria-label":"Course Details"},e.createElement(Ce.d,null,e.createElement(Ce.f,{src:p,width:d,height:h}),e.createElement(Ce.g,{authorName:Se,authorTitle:je,avatar:be,categories:S,completedAt:O,course:i,courseProgress:o,dueAt:C,labels:s,lessons:a,numLessons:Ie,restrictingQuiz:Ne,showTimeToComplete:F,sidebarEnabled:V,timeToComplete:U,trackingCompletionPercentage:q,trackingQuizId:H})))))}},{key:"handleStartButtonKeyDown",value:function(e){Object(pe.e)(e)&&Object(le.a)(Object(be.c)(!0))}},{key:"addFavorite",value:function(){Object(le.a)(Object(ye.c)())}},{key:"removeFavorite",value:function(){Object(le.a)(Object(ye.f)())}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";var r=n(78),i=n(138),o=n(142);n(1);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),c=n.n(s),u=n(715),l=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r})},f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Object(o.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&l(e,r),i&&l(e,i),o&&l(e,o)},n.render=function(){var e=this.props,t=(e.classNames,Object(i.a)(e,["classNames"]));return c.a.createElement(u.a,Object(r.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.a.Component);f.defaultProps={classNames:""},f.propTypes={};t.a=f},function(e,t,n){"use strict";var r=n(138),i=n(78),o=n(327),a=n(142),s=(n(1),n(0)),c=n.n(s),u=n(356);function l(e,t){var n=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&Object(s.isValidElement)(e)?t(e):e}(e)}),n}function f(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=l(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(r=0;r<i[c].length;r++){var u=i[c][r];s[i[c][r]]=n(u)}s[c]=n(c)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(Object(s.isValidElement)(a)){var c=o in t,u=o in r,l=t[o],d=Object(s.isValidElement)(l)&&!l.props.in;!u||c&&!d?u||!c||d?u&&c&&Object(s.isValidElement)(l)&&(i[o]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:l.props.in,exit:f(a,"exit",e),enter:f(a,"enter",e)})):i[o]=Object(s.cloneElement)(a,{in:!1}):i[o]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:f(a,"exit",e),enter:f(a,"enter",e)})}}),i}var h=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},p=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Object(o.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,l(n.children,function(e){return Object(s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:f(e,"appear",n),enter:f(e,"enter",n),exit:f(e,"exit",n)})})):d(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Object(i.a)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=Object(r.a)(e,["component","childFactory"]),o=this.state.contextValue,a=h(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?c.a.createElement(u.a.Provider,{value:o},a):c.a.createElement(u.a.Provider,{value:o},c.a.createElement(t,i,a))},t}(c.a.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};t.a=p},function(e,t,n){e.exports=!n(180)&&!n(113)(function(){return 7!=Object.defineProperty(n(2153)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(1068)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(2198),i=n(127).WeakMap;e.exports="function"==typeof i&&/native code/.test(r.call(i))},function(e,t,n){var r=n(244),i=n(2155),o=n(325),a=n(201);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},function(e,t,n){var r=n(244),i=n(335),o=n(1071)(!1),a=n(1070);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){e.exports=!n(113)(function(){return!String(Symbol())})},function(e,t,n){t.f=n(181)},function(e,t,n){var r=n(127).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(335),i=n(652).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(217),i=n(567),o=n(187);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),c=i(t,a),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?a:i(u,a))-c,a-s),f=1;for(c<s&&s<c+l&&(f=-1,c+=l-1,s+=l-1);l-- >0;)c in n?n[s]=n[c]:delete n[s],s+=f,c+=f;return n}},function(e,t,n){"use strict";var r=n(653),i=n(187),o=n(570),a=function(e,t,n,s,c,u,l,f){for(var d,h=c,p=0,m=!!l&&o(l,f,3);p<s;){if(p in n){if(d=m?m(n[p],p,t):n[p],u>0&&r(d))h=a(e,t,d,i(d.length),h,u-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=d}h++}p++}return h};e.exports=a},function(e,t,n){"use strict";var r=[].forEach,i=n(296)(0),o=n(512)("forEach");e.exports=o?function(e){return i(this,e,arguments[1])}:r},function(e,t,n){"use strict";var r=n(570),i=n(217),o=n(2210),a=n(2160),s=n(187),c=n(654),u=n(1076);e.exports=function(e){var t,n,l,f,d=i(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(d);if(v&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||h==Array&&a(y))for(n=new h(t=s(d.length));t>g;g++)c(n,g,v?m(d[g],g):d[g]);else for(f=y.call(d),n=new h;!(l=f.next()).done;g++)c(n,g,v?o(f,m,[l.value,g],!0):l.value);return n.length=g,n}},function(e,t,n){var r=n(169);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(2212).IteratorPrototype,i=n(568),o=n(651),a=n(444),s=n(1075),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t,n){"use strict";var r,i,o,a=n(445),s=n(308),c=n(244),u=n(650),l=n(181)("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),u||c(r,l)||s(r,l,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(162),i=n(169);e.exports=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},function(e,t,n){"use strict";var r=n(335),i=n(375),o=n(187),a=[].lastIndexOf,s=!!a&&1/[1].lastIndexOf(1,-0)<0,c=n(512)("lastIndexOf");e.exports=s||c?function(e){if(s)return a.apply(this,arguments)||0;var t=r(this),n=o(t.length),c=n-1;for(arguments.length>1&&(c=Math.min(c,i(arguments[1]))),c<0&&(c=n+c);c>=0;c--)if(c in t&&t[c]===e)return c||0;return-1}:a},function(e,t,n){var r=n(376),i=n(217),o=n(1067),a=n(187);e.exports=function(e,t,n,s,c){r(t);var u=i(e),l=o(u),f=a(u.length),d=c?f-1:0,h=c?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=h;break}if(d+=h,c?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;c?d>=0:f>d;d+=h)d in l&&(s=t(s,l[d],d,u));return s}},function(e,t,n){var r=n(375),i=n(187);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(376),i=n(162),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){"use strict";var r=n(201).f,i=n(568),o=n(721),a=n(570),s=n(571),c=n(1078),u=n(2161),l=n(720),f=n(180),d=n(655).fastKey,h=n(374),p=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],e,n)}),h=m(t),v=function(e,t,n){var r,i,o=h(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=h(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=h(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);u(e,t,function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(t)}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(162),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(127).parseFloat,i=n(722),o=n(1178),a=1/r(o+"-0")!=-1/0;e.exports=a?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(127).parseInt,i=n(722),o=n(1178),a=/^[-+]?0[xX]/,s=8!==r(o+"08")||22!==r(o+"0x16");e.exports=s?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(409);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var r=n(718),i=n(1171),o=n(1066),a=n(217),s=n(1067),c=Object.assign;e.exports=!c||n(113)(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=r(c({},t)).join("")})?function(e,t){for(var n=a(e),c=arguments.length,u=1,l=i.f,f=o.f;c>u;)for(var d,h=s(arguments[u++]),p=l?r(h).concat(l(h)):r(h),m=p.length,v=0;m>v;)f.call(h,d=p[v++])&&(n[d]=h[d]);return n}:c},function(e,t,n){var r=n(718),i=n(335),o=n(1066).f;e.exports=function(e,t){for(var n,a=i(e),s=r(a),c=s.length,u=0,l=[];c>u;)o.call(a,n=s[u++])&&l.push(t?[n,a[n]]:a[n]);return l}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r,i,o,a,s,c,u,l=n(127),f=n(325).f,d=n(409),h=n(2167).set,p=n(1180),m=l.MutationObserver||l.WebKitMutationObserver,v=l.process,g=l.Promise,y="process"==d(v),b=f(l,"queueMicrotask"),_=b&&b.value;_||(r=function(){var e,t;for(y&&(e=v.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:m&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(p)?(s=!0,c=document.createTextNode(""),new m(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):g&&g.resolve?(u=g.resolve(void 0),a=function(){u.then(r)}):a=function(){h.call(l,r)}),e.exports=_||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(169),i=n(162),o=n(2229);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(376),i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var r=n(1183),i=n(374),o=n(2161),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i,!0),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(187),i=n(2166),o=n(373);e.exports=function(e,t,n,a){var s,c,u=String(o(e)),l=u.length,f=void 0===n?" ":String(n),d=r(t);return d<=l||""==f?u:(s=d-l,(c=i.call(f,Math.ceil(s/f.length))).length>s&&(c=c.slice(0,s)),a?c+u:u+c)}},function(e,t,n){var r=n(1180);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){var r=n(375);e.exports=function(e,t){var n=r(e);if(n<0||n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(217),i=n(187),o=n(1076),a=n(2160),s=n(570),c=n(170).aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,f,d=r(e),h=arguments.length,p=h>1?arguments[1]:void 0,m=void 0!==p,v=o(d);if(null!=v&&!a(v))for(f=v.call(d),d=[];!(l=f.next()).done;)d.push(l.value);for(m&&h>2&&(p=s(p,arguments[2],2)),n=i(d.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=m?p(d[t],t):d[t];return u}},function(e,t,n){"use strict";var r=n(721),i=n(655).getWeakData,o=n(169),a=n(162),s=n(571),c=n(1078),u=n(296),l=n(244),f=n(374),d=f.set,h=f.getterFor,p=u(5),m=u(6),v=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return p(e.entries,function(e){return e[0]===t})};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var f=e(function(e,r){s(e,f,t),d(e,{type:t,id:v++,frozen:void 0}),null!=r&&c(r,e[u],e,n)}),p=h(t),m=function(e,t,n){var r=p(e),a=i(o(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?g(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(650),i=n(181)("iterator");e.exports=!n(113)(function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",r&&!e.toJSON||!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(e,t,n){"use strict";n(1174);var r=n(2237),i=n(326),o=n(721),a=n(2211),s=n(374),c=n(571),u=n(244),l=n(570),f=n(169),d=n(162),h=n(2575),p=n(1076),m=n(181)("iterator"),v=s.set,g=s.getterFor("URLSearchParams"),y=s.getterFor("URLSearchParamsIterator"),b=/\+/g,_=Array(4),w=function(e){return _[e-1]||(_[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},x=function(e){try{return decodeURIComponent(e)}catch(t){return e}},k=function(e){for(var t=e.replace(b," "),n=4;n;)t=t.replace(w(n--),x);return t},E=/[!'()~]|%20/g,S={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(e){return S[e]},O=function(e){return encodeURIComponent(e).replace(E,T)},C=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:k(r.shift()),value:k(r.join("="))}));return e},j=function(e){this.entries.length=0,C(this.entries,e)},A=function(e,t){if(e<t)throw TypeError("Not enough arguments")},M=a(function(e,t){v(this,{type:"URLSearchParamsIterator",iterator:h(g(e).entries),kind:t})},"Iterator",function(){var e=y(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),P=function(){c(this,P,"URLSearchParams");var e,t,n,r,i,o,a,s=arguments.length>0?arguments[0]:void 0,l=[];if(v(this,{type:"URLSearchParams",entries:l,updateURL:null,updateSearchParams:j}),void 0!==s)if(d(s))if("function"==typeof(e=p(s)))for(t=e.call(s);!(n=t.next()).done;){if((i=(r=h(f(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");l.push({key:i.value+"",value:o.value+""})}else for(a in s)u(s,a)&&l.push({key:a,value:s[a]+""});else C(l,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},N=P.prototype;o(N,{append:function(e,t){A(arguments.length,2);var n=g(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){A(arguments.length,1);for(var t=g(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL&&t.updateURL()},get:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){A(arguments.length,1);for(var t=g(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){A(arguments.length,1);for(var n,r=g(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=g(this),i=r.entries,o=i.slice();for(i.length=0,t=0;t<o.length;t++){for(e=o[t],n=0;n<t;n++)if(i[n].key>e.key){i.splice(n,0,e);break}n===t&&i.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=g(this).entries,r=l(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new M(this,"keys")},values:function(){return new M(this,"values")},entries:function(){return new M(this,"entries")}},{enumerable:!0}),i(N,m,N.entries),i(N,"toString",function(){for(var e,t=g(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(O(e.key)+"="+O(e.value));return n.join("&")},{enumerable:!0}),n(444)(P,"URLSearchParams"),n(37)({global:!0,forced:!r},{URLSearchParams:P}),e.exports={URLSearchParams:P,getState:g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=(s(n(1079)),s(n(2600))),o=s(n(2601)),a=s(n(2177));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return i.default[e.smooth]||i.default.defaultEasing},u=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},l=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},f=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},d=function(e,t,n,r){if(t.data=t.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),o.default.subscribe(function(){t.data.cancel=!0}),f(t),t.data.start=null,t.data.cancel=!1,t.data.startPositionY=l(t),t.data.targetPositionY=t.absolute?e:e+t.data.startPositionY,t.data.startPositionY!==t.data.targetPositionY){var i;t.data.deltaTop=Math.round(t.data.targetPositionY-t.data.startPositionY),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.deltaTop),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var s=c(t),d=function e(t,n,r){var i=n.data;if(n.ignoreCancelEvents||!i.cancel)if(i.deltaTop=Math.round(i.targetPositionY-i.startPositionY),null===i.start&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPositionY=i.startPositionY+Math.ceil(i.deltaTop*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?i.containerElement.scrollTop=i.currentPositionY:window.scrollTo(0,i.currentPositionY),i.percent<1){var o=e.bind(null,t,n);u.call(window,o)}else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY);else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY)}.bind(null,s,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout(function(){u.call(window,d)},t.delay):u.call(window,d)}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPositionY)},h=function(e){return(e=r({},e)).data=e.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:d,getAnimationType:c,scrollToTop:function(e){d(0,h(e))},scrollToBottom:function(e){e=h(e),f(e),d(function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight);var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(e),e)},scrollTo:function(e,t){d(e,h(t))},scrollMore:function(e,t){t=h(t),f(t),d(l(t)+e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(2176);var r,i=n(1079),o=(r=i)&&r.__esModule?r:{default:r};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var r=this.containers[e]||document;n.scrollTo(e,{container:r})}},getHash:function(){return o.default.getHash()},changeHash:function(e){this.isInitialized()&&o.default.getHash()!==e&&o.default.pushHash(e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(0)),a=(c(n(91)),c(n(1186))),s=c(n(1187));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,o.default.Component),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:s.default.string,id:s.default.string},t}},function(e,t,n){var r=n(47),i=n(2181);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return i(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,r(Array.prototype).call(arguments,0,n-1))}}},function(e,t,n){var r=n(47),i=n(2181),o=n(2640);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var a=r(Array.prototype).call(arguments,0),s=a.pop();if(!i(s)){for(var c=0;c<e.length;){if("function"==typeof s[e[c]])return s[e[c]].apply(s,a);c+=1}if(o(s))return t.apply(null,a)(s)}return n.apply(this,arguments)}}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(t){
/*!
Copyright (C) 2015-2017 Andrea Giammarchi - @WebReflection
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
function n(e){var t,n,i,o,a,s,c=Object.create(null);if(this[u]=c,e)if("string"==typeof e)for("?"===e.charAt(0)&&(e=e.slice(1)),a=0,s=(o=e.split("&")).length;a<s;a++)-1<(t=(i=o[a]).indexOf("="))?f(c,d(i.slice(0,t)),d(i.slice(t+1))):i.length&&f(c,d(i),"");else if(r(e))for(a=0,s=e.length;a<s;a++)f(c,(i=e[a])[0],i[1]);else if(e.forEach)e.forEach(l,c);else for(n in e)f(c,n,e[n])}var r=Array.isArray,i=n.prototype,o=/[!'\(\)~]|%20|%00/g,a=/\+/g,s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"},c=function(e){return s[e]},u="__URLSearchParams__:"+Math.random();function l(e,t){f(this,t,e)}function f(e,t,n){var i=r(n)?n.join(","):n;t in e?e[t].push(i):e[t]=[i]}function d(e){return decodeURIComponent(e.replace(a," "))}function h(e){return encodeURIComponent(e).replace(o,c)}i.append=function(e,t){f(this[u],e,t)},i.delete=function(e){delete this[u][e]},i.get=function(e){var t=this[u];return e in t?t[e][0]:null},i.getAll=function(e){var t=this[u];return e in t?t[e].slice(0):[]},i.has=function(e){return e in this[u]},i.set=function(e,t){this[u][e]=[""+t]},i.forEach=function(e,t){var n=this[u];Object.getOwnPropertyNames(n).forEach(function(r){n[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},i.toJSON=function(){return{}},i.toString=function(){var e,t,n,r,i=this[u],o=[];for(t in i)for(n=h(t),e=0,r=i[t];e<r.length;e++)o.push(n+"="+h(r[e]));return o.join("&")},function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}();"forEach"in e||(e.forEach=function(e,t){var n=Object.create(null);this.toString().replace(/=[\s\S]*?(?:&|$)/g,"=").split("=").forEach(function(r){!r.length||r in n||(n[r]=this.getAll(r)).forEach(function(n){e.call(t,n,r,this)},this)},this)}),"keys"in e||(e.keys=function(){var e=[];this.forEach(function(t,n){e.push(n)});var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n}),"values"in e||(e.values=function(){var e=[];this.forEach(function(t){e.push(t)});var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n}),"entries"in e||(e.entries=function(){var e=[];this.forEach(function(t,n){e.push([n,t])});var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n}),!t||Symbol.iterator in e||(e[Symbol.iterator]=e.entries),"sort"in e||(e.sort=function(){for(var e,t,n,r=this.entries(),i=r.next(),o=i.done,a=[],s=Object.create(null);!o;)t=(n=i.value)[0],a.push(t),t in s||(s[t]=[]),s[t].push(n[1]),o=(i=r.next()).done;for(a.sort(),e=0;e<a.length;e++)this.delete(a[e]);for(e=0;e<a.length;e++)t=a[e],this.append(t,s[t].shift())})}((n=e.exports=t.URLSearchParams||n).prototype)}).call(this,n(99))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return a});var r=n(2333),i=n(728),o={};function a(t){var n,a=t.children,s=Object(r.a)(),c=null!==(n=null==s?void 0:s.features)&&void 0!==n?n:o;return e.createElement(i.a,{value:c},a)}}).call(this,n(0))},function(e,t,n){e.exports=n(2582)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(446)),i=o(n(2586));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var s=function(e,t){var n=a((0,r.default)(e),4),o=n[0],s=n[1],c=n[2],u=n[3],l=t||u;return(0,i.default)([o,s,c,l])};t.default=s},function(e,t,n){
/*! iNoBounce - v0.1.0
* https://github.com/lazd/iNoBounce/
* Copyright (c) 2013 Larry Davis <lazdnet@gmail.com>; Licensed BSD */
!function(t){var n=0,r=!1,i=function(e){for(var t=e.target;t!==document.body&&t!==document;){var r=window.getComputedStyle(t);if(!r)break;if("INPUT"===t.nodeName&&"range"===t.getAttribute("type"))return;var i=r.getPropertyValue("-webkit-overflow-scrolling"),o=r.getPropertyValue("overflow-y"),a=parseInt(r.getPropertyValue("height"),10),s="touch"===i&&("auto"===o||"scroll"===o),c=t.scrollHeight>t.offsetHeight;if(s&&c){var u=e.touches?e.touches[0].screenY:e.screenY,l=n<=u&&0===t.scrollTop,f=n>=u&&t.scrollHeight-t.scrollTop===a;return void((l||f)&&e.preventDefault())}t=t.parentNode}e.preventDefault()},o=function(e){n=e.touches?e.touches[0].screenY:e.screenY},a=function(){window.addEventListener("touchstart",o,!1),window.addEventListener("touchmove",i,!1),r=!0},s=document.createElement("div");document.documentElement.appendChild(s),s.style.WebkitOverflowScrolling="touch";var c="getComputedStyle"in window&&"touch"===window.getComputedStyle(s)["-webkit-overflow-scrolling"];document.documentElement.removeChild(s),c&&a();var u={enable:a,disable:function(){window.removeEventListener("touchstart",o,!1),window.removeEventListener("touchmove",i,!1),r=!1},isEnabled:function(){return r}};e.exports&&(e.exports=u),"function"==typeof t.define?(0,t.define)("iNoBounce",[],function(){return u}):t.iNoBounce=u}(this)},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(16),f=n.n(l),d=n(226),h=n.n(d),p=n(123);function m(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var v=function(t){Object(s.a)(r,t);var n=m(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"componentWillEnter",value:function(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}},{key:"componentDidEnter",value:function(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}},{key:"componentWillExit",value:function(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}},{key:"componentDidExit",value:function(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}},{key:"render",value:function(){var t,n=this,r=this.props.children,i=h()("children",this.props);return e.createElement(p.c,i,r&&f()(t=e.Children).call(t,r,function(t){return null!==t&&e.cloneElement(t,{ref:function(e){return n.child=e}})}))}}]),r}(e.Component);t.a=v}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(4),f=n.n(l);n(2593);function d(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var h={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},p=function(t){Object(s.a)(r,t);var n=d(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){return e=this.props.env,new RegExp(h[e],"i").test(window.navigator.userAgent)&&!window.sessionStorage.getItem("riseUnsupportedBrowser")?this.renderUnsupported():this.props.children;var e}},{key:"renderUnsupported",value:function(){var t;return e.createElement("div",null,this.props.children,e.createElement("div",{className:"browser-support"},e.createElement("div",{className:"browser-support__inner"},e.createElement("p",{className:"browser-support__text browser-support__text--full"},"You’re using an unsupported browser. For better results, use a modern browser. "),e.createElement("p",{className:"browser-support__text browser-support__text--mobile"},"Unsupported browser"),e.createElement("a",{href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",className:"browser-support__link"},e.createElement("span",null,"Learn more"),e.createElement("i",{className:"icon icon-chevron-right"})),e.createElement("div",{className:"browser-support__dismiss",onClick:f()(t=this.handleDismiss).call(t,this)},e.createElement("span",{className:"browser-support__dismiss-icon"},"×")))))}},{key:"handleDismiss",value:function(){window.sessionStorage.setItem("riseUnsupportedBrowser","true"),this.forceUpdate()}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var r=n(28),i=n(98),o=n.n(i),a=n(2),s=n.n(a),c=n(0),u=n(728);function l(t){function n(n,i){var o,a=(o=Object(u.b)("big-head-mode"),s()({bigHeadMode:o}));return e.createElement(t,Object(r.a)({},n,{ref:i,easterEggClassNames:a}))}return o()(Object(c.forwardRef)(n),{displayName:"withEasterEggClassNames(".concat(t.displayName||t.name,")")})}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(4),f=n.n(l),d=(n(2595),n(2596),n(1)),h=n.n(d),p=n(23),m=n(2),v=n.n(m);function g(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var y=function(t){Object(s.a)(r,t);var n=g(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"handleCloseClick",value:function(){this.props.onClose()}},{key:"handleKeyUp",value:function(e){var t=this.props,n=t.confirmDisabled,r=t.onConfirm;Object(p.f)(e)?this.handleCloseClick():Object(p.d)(e)&&!n&&r()}},{key:"componentDidMount",value:function(){var e;(document.addEventListener("keyup",this.keyupRef=f()(e=this.handleKeyUp).call(e,this)),this.props.disableBackgroundScroll)&&(document.scrollingElement||document.documentElement).classList.add("no-scroll")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.keyupRef),(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}},{key:"render",value:function(){var t,n,r=this.props,i=r.className,o=r.darkOverlay,a=r.footer,s=r.forceToTop,c=void 0!==s&&s,u=r.heading,l=r.hideCloseButton,d=void 0!==l&&l,h=r.hideHeader,p=void 0!==h&&h,m=r.subHeading,g=r.subText,y=r.children,b=r.width,_=r.scroll,w=void 0!==_&&_,x=v()("modal",i,{"modal--force_to_top":c}),k=v()("modal__content",{"modal__content--with-footer":Boolean(a),"modal__content--force-scroll":Boolean(w)}),E=v()("modal__overlay",{"modal__overlay--dark":Boolean(o)});return e.createElement("div",{className:x,"data-ba":this.props["data-ba"]},e.createElement("div",{className:E,onClick:f()(t=this.handleCloseClick).call(t,this)}),e.createElement("div",{className:"modal__dialog",style:b?{width:b}:{}},!d&&e.createElement("div",{className:"modal__close",onClick:f()(n=this.handleCloseClick).call(n,this)},e.createElement("i",{className:"icon icon-remove"})),!p&&e.createElement("div",{className:"modal__header"},e.createElement("h1",{className:"modal__heading"},u,e.createElement("span",{className:"modal__subheading"},m)),g?e.createElement("h2",{className:"modal__subtitle"},g):[]),e.createElement("div",{className:k},y),a&&e.createElement(e.Fragment,null,e.createElement("div",{className:"modal__footer-shadow"}),e.createElement("div",{className:"modal__footer"},a))))}}],[{key:"propTypes",get:function(){return{confirmDisabled:h.a.bool,darkOverlay:h.a.bool,onClose:h.a.func.isRequired,onConfirm:h.a.func.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ee});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(7),u=n(11),l=n(14),f=n(6),d=n(16),h=n.n(d),p=n(59),m=n.n(p),v=n(4),g=n.n(v),y=n(112),b=n.n(y),_=n(5),w=n.n(_),x=n(195),k=n.n(x),E=n(188),S=n.n(E),T=n(26),O=n.n(T),C=n(2),j=n.n(C),A=n(54),M=n.n(A),P=n(55),N=n.n(P),I=n(68),L=n.n(I),D=n(30),R=n.n(D),B=n(31),F=n.n(B),U=n(25),q=n.n(U),z=n(19),H=n.n(z),W=n(136),V=n.n(W),Y=n(150),G=n.n(Y),K=n(447),$=n(1161),X=n(2278),Q=n(2326),Z=n(2327),J=n(2193),ee=n(423),te=n(714),ne=n(712),re=n(1),ie=n.n(re),oe=n(2328),ae=n(542),se=n(22),ce=n(86),ue=n(263),le=n(70),fe=n(20),de=n(74),he=n(1204),pe=n(165),me=n(576),ve=n(1162),ge=n(453),ye=n(580),be=n(1209);function _e(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var o=Object(f.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var we=S()(R.a),xe=V()(H()("type","section")),ke=function(e){return function(){if(e){var t=document.querySelector(".page-wrap");Object(fe.c)(t)}else{document.getElementById("no-menu").focus()}}},Ee=function(t){Object(u.a)(r,t);var n=_e(r);function r(e){var t,i,o,s,u,l,f,d,p,v,y,b;Object(a.a)(this,r),b=n.call(this,e);var _=e.course,w=e.lessons,x=e.match.params;return b.state={activeSections:h()(t=m()(w).call(w,function(e){return"section"===e.type})).call(t,function(e){return e.id}),isMobile:!1,isProgressSummary:se.e&&"progress-summary"===x.id,isPreviewLesson:"preview-lesson"===x.mode,lastScreen:null,menuDisabled:!1,menuIsOpen:Object(ge.c)(_),mobileMenuIsOpen:!1,selectedIndex:Object(ye.b)(x.id)(w),sidebarEnabled:Object(ge.b)(_),xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null},b.forwardTransition=!0,b.root=window,b.closeMenu=g()(i=b.closeMenu).call(i,Object(c.a)(b)),b.handleLessonsListRowClick=g()(o=b.handleLessonsListRowClick).call(o,Object(c.a)(b)),b.handleMenuToggle=g()(s=b.handleMenuToggle).call(s,Object(c.a)(b)),b.handleNavigateDirection=g()(u=b.handleNavigateDirection).call(u,Object(c.a)(b)),b.handleNavigate=g()(l=b.handleNavigate).call(l,Object(c.a)(b)),b.handleNavHover=g()(f=b.handleNavHover).call(f,Object(c.a)(b)),b.handleStorylineFullscreen=g()(d=b.handleStorylineFullscreen).call(d,Object(c.a)(b)),b.renderLesson=g()(p=b.renderLesson).call(p,Object(c.a)(b)),b.renderSearchLesson=g()(v=b.renderSearchLesson).call(v,Object(c.a)(b)),b.setIsMobileState=g()(y=b.setIsMobileState).call(y,Object(c.a)(b)),b}return Object(s.a)(r,[{key:"componentDidMount",value:function(){this.setIsMobileState(),this.root.addEventListener("resize",this.resizeRef=G()(this.setIsMobileState,1e3)),this.swipeEvents=Object(ae.a)(this.node,this,this.handleMenuToggle,Function.prototype),this.setFocusIfNecessary()}},{key:"componentWillReceiveProps",value:function(e){if(e.match.params.id!==this.props.match.params.id){var t=M()(Object(ye.a)(e.lessons,e.match.params.id),this.state.activeSections),n=se.e&&"progress-summary"===e.match.params.id;this.setState({activeSections:t,isProgressSummary:n})}}},{key:"componentWillUnmount",value:function(){this.root.removeEventListener("resize",this.resizeRef),this.swipeEvents.removeListeners()}},{key:"setFocusIfNecessary",value:function(){var e=this.props.sessionPreferences.startedCourseWithLessonSelected,t=this.state.sidebarEnabled,n=ke(t);t?e?(n(),Object(de.a)(Object(ue.d)(!1))):this.sidebar.focus():n()}},{key:"handleLessonListRowComplete",value:function(e,t,n,r){var i=e.id,o=e.type,a=this.props,s=a.course,c=a.courseProgress,u=n.isRestricted;if(!Object(ge.a)(s)&&!u&&"quiz"!==o)return r.preventDefault(),r.stopPropagation(),F()(["lessons",i,"isComplete"],c)?Object(de.a)(Object(le.e)({id:i,type:o})):Object(de.a)(Object(le.b)({id:i,type:o}))}},{key:"handleNavigateDirection",value:function(){return this.forwardTransition?"page-transition":"page-transition-back"}},{key:"handleMenuToggle",value:function(){var e=this,t=this.state,n=t.menuIsOpen,r=t.mobileMenuIsOpen;this.setState({menuIsOpen:!n,mobileMenuIsOpen:Object(ve.c)()&&!r,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null},function(){e.resetSwipeListeners()})}},{key:"handleNavigate",value:function(e){var t=this,n=this.props.lessons,r=this.state,i=r.isProgressSummary,o=r.selectedIndex,a=Object(ye.b)(e)(n);this.forwardTransition=!i&&("progress-summary"===e||o<a),this.setState({mobileMenuIsOpen:!1,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null,selectedIndex:a},function(){t.resetSwipeListeners()})}},{key:"handleStorylineFullscreen",value:function(e){this.setState({menuDisabled:e,menuIsOpen:!e})}},{key:"handleToggleSection",value:function(e){var t=this.state.activeSections;b()(t).call(t,e.id)?this.setState({activeSections:m()(t).call(t,function(t){return t!==e.id})}):this.setState({activeSections:w()(t).call(t,e.id)})}},{key:"resetSwipeListeners",value:function(){this.state.mobileMenuIsOpen?this.swipeEvents.addListeners():this.swipeEvents.removeListeners()}},{key:"allowTabNavigation",value:function(){var e=this.state,t=e.isMobile,n=e.isPreviewLesson,r=e.menuIsOpen,i=e.mobileMenuIsOpen,o=e.sidebarEnabled;return!n&&o&&(t?i:r)}},{key:"allowTabNavigationForLesson",value:function(e){var t=this.state.activeSections;return this.allowTabNavigation()&&(!e||!e.sectionId||b()(t).call(t,e.sectionId))}},{key:"handleLessonsListRowClick",value:function(e){var t=e.lesson,n=e.id;"section"===t.type?this.handleToggleSection(t):this.handleNavigate(n)}},{key:"handleNavHover",value:function(e){this.setState({isRestrictedNavHovering:e})}},{key:"renderLesson",value:function(t,n,r,i){var o,a=this.props,s=a.course,c=a.courseProgress,u=a.labels,l=a.lessons,f=a.location,d=this.state,p=d.activeSections,m=d.isRestrictedNavHovering,v=d.sidebarEnabled,y=r.id,_=r.type,x=r.title,E=r.icon,S=Object(pe.b)({course:s,courseProgress:c,lesson:r,restrictingQuiz:n}),T=Object(he.a)(c,y),O=T.percentComplete,C=T.passedQuiz;if(r.children){var j,A,M,P,N=b()(p).call(p,r.id),I=g()(j=this.renderLesson).call(j,this,t,n),L="section-".concat(y),D=w()(A="Course Section for ".concat(x,", with ")).call(A,r.children.length," Lessons");return e.createElement("div",{key:"item-".concat(y)},e.createElement(J.a,{allowTabNavigation:t,allowTooltip:!m,focusLessonContent:ke(v),icon:E,id:y,isSectionActive:N,labels:u,lesson:r,lessonIndex:k()(l).call(l,r),location:f,markComplete:s.markComplete,onClick:this.handleLessonsListRowClick,onComplete:g()(M=this.handleLessonListRowComplete).call(M,this,r,i,S),onMobileActiveClick:this.closeMenu,onMouse:this.handleNavHover,passedQuiz:C,percentComplete:O,restrictions:S,sectionId:L,title:x,type:_}),e.createElement(oe.a,{isActive:N,sectionId:L,sectionLabel:D},h()(P=r.children).call(P,I)))}return e.createElement(J.a,{allowTabNavigation:this.allowTabNavigationForLesson(r),allowTooltip:!m,focusLessonContent:ke(v),icon:E,id:y,key:"item-".concat(y),labels:u,lesson:r,lessonIndex:k()(l).call(l,r),location:f,markComplete:s.markComplete,onClick:this.handleLessonsListRowClick,onComplete:g()(o=this.handleLessonListRowComplete).call(o,this,r,i,S),onMobileActiveClick:this.closeMenu,onMouse:this.handleNavHover,passedQuiz:C,percentComplete:O,restrictions:S,title:x,type:_})}},{key:"renderMenuButtons",value:function(){var t=this.props,n=t.course,r=t.labels,i=this.state.sidebarEnabled,o=n.lmsOptions,a=(void 0===o?{}:o).enableExitCourse,s=r.courseExit,c=this.allowTabNavigation(),u="Toggle ".concat("Course Overview");return e.createElement("div",{className:"page__menu"},i&&e.createElement(K.a,{ariaExpanded:c,ariaLabel:u,ariaControls:"courseOverviewSidebar",icon:"menu",menu:!0,onClick:this.handleMenuToggle,onlyIcon:!0,tabIndex:fe.a}),e.createElement($.a,{enableExitCourse:a,className:"courseExit courseExit--mobile",text:s}),e.createElement("div",{id:"no-menu",tabIndex:fe.i}))}},{key:"renderSidebar",value:function(t){var n,r=this,i=t.allowTabNavigation,o=t.restrictingQuiz,a=this.props,s=a.course,c=a.courseProgress,u=a.labels,l=a.lessons,f=a.search,d=a.sessionPreferences,h=this.state.sidebarEnabled,p=u.courseSkipToLesson,m=f.active,v=g()(n=this.renderLesson).call(n,this,i,o);return e.createElement(be.b,{hidden:!i,id:"courseOverviewSidebar",label:"Course Overview"},e.createElement(te.b,{allowSearch:!Object(ge.a)(s)&&s.allowSearch,courseTitle:s.title,coverImage:s.coverImage,allowTabNavigation:i,focusLessonContent:ke(h),labels:u,lessons:l,searchActive:m,sessionPreferences:d,ref:function(e){r.sidebar=e},skipLinkText:p},e.createElement(ne.b,{lessonComplete:u.lessonComplete,value:c.percentComplete}),e.createElement(Q.a,{labels:u,search:f},m?this.renderSearchResults(i):we(v,Object(ye.c)(l)))))}},{key:"render",value:function(){var t=this,n=this.props,r=n.applySafariLandscapeHack,i=n.course,a=n.courseProgress,s=n.labels,c=n.lessons,u=n.location,l=n.match,f=n.partnerContent,d=n.previewType,h=n.safariLandscapeHackOffset,p=n.search,m=n.sessionPreferences,v=this.state,g=v.isPreviewLesson,y=v.isProgressSummary,b=v.isRestrictedNavHovering,_=v.menuIsOpen,w=v.mobileMenuIsOpen,x=v.sidebarEnabled,k=i.lmsOptions,E=(void 0===k?{}:k).enableExitCourse,S=s.courseExit,T=function(e){var t=e.course,n=e.search;return q()(O()("lessons",n.lessons),O()("lessonsOnly",xe(n.lessons)))(t)}({course:i,search:p}),C=this.allowTabNavigation(),A=this.renderMenuButtons(),M=j()("lesson",{"lesson--preview":g,"lesson--open":_&&!g,"lesson--open-mobile":w&&!g}),P=Object(me.a)({course:i,courseProgress:a}),N=r?{paddingBottom:h}:{},I={allowRestrictedTooltip:!b,course:p.active&&!L()(p.lessons)?T:i,focusLessonContent:ke(x),handleStorylineFullscreen:this.handleStorylineFullscreen,isProgressSummary:y,key:u.pathname,labels:s,lessonProgress:a.lessons[l.params.id],match:l,menuButtons:A,menuOpen:!g&&_,mobileMenuOpen:w,navigateDirection:this.handleNavigateDirection,onNavigate:this.handleNavigate,onNavMouse:this.handleNavHover,partnerContent:f,previewType:d,courseProgress:a,sessionPreferences:m,sidebarEnabled:x},D=y?{courseProgress:a,lessons:c}:{};return e.createElement(be.c,{className:M,contentRef:function(e){return t.node=e}},x&&this.renderSidebar({allowTabNavigation:C,restrictingQuiz:P}),e.createElement("div",{className:"lesson__wrap",ref:function(e){return t.wrap=e}}),e.createElement(be.a,{onMobileMenuActiveClick:this.closeMenu},e.createElement("div",{className:"page-view page-view--visible"},e.createElement($.a,{enableExitCourse:E,className:"courseExit courseExit--standard",text:S}),e.createElement(ce.d,{component:"div",className:"page-wrap",id:"page-wrap",style:N},e.createElement(ee.a,{key:u.pathname},e.createElement(X.a,Object(o.a)({},I,D)))))))}},{key:"closeMenu",value:function(){return this.state.mobileMenuIsOpen?this.handleMenuToggle:Function.prototype}},{key:"renderSearchLesson",value:function(t,n,r){var i=this.props.labels,o=this.state.sidebarEnabled,a=n.icon,s=n.id,c=n.results,u=n.title,l=n.type;return e.createElement(Z.a,{allowTabNavigation:t,focusLessonContent:ke(o),icon:a,id:s,key:"item-".concat(s),labels:i,lessonIndex:r,onClick:this.handleNavigate,onMobileActiveClick:this.closeMenu,resultsCount:c,title:u,type:l})}},{key:"renderSearchResults",value:function(e){var t,n=this.props.search.activeLessons,r=g()(t=this.renderSearchLesson).call(t,this,e);return q()(N()(pe.g),we(r))(n)}},{key:"setIsMobileState",value:function(){var e=this.state.lastScreen,t=getComputedStyle(this.node,":after").content.replace(/"/g,"");if(t!==e){var n="mobile"===t;this.setState({isMobile:n,lastScreen:t})}}}],[{key:"propTypes",get:function(){return{children:ie.a.node,course:ie.a.object,courseProgress:ie.a.object,labels:ie.a.object,lessons:ie.a.array,location:ie.a.object.isRequired,match:ie.a.object.isRequired}}},{key:"defaultProps",get:function(){return{course:{},lessons:[]}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return se});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(167),v=n.n(m),g=n(69),y=n.n(g),b=n(68),_=n.n(b),w=n(143),x=n.n(w),k=n(24),E=n.n(k),S=n(19),T=n.n(S),O=n(52),C=n.n(O),j=n(1),A=n.n(j),M=n(91),P=n.n(M),N=n(448),I=n.n(N),L=n(70),D=n(74),R=n(165),B=n(576),F=n(580),U=n(314),q=n(2279),z=n(2282),H=n(2284),W=n(2285),V=n(1207),Y=n(2186),G=n(2287),K=n(577),$=n(2188),X=n(2307),Q=n(536),Z=n(2319),J=n(2321),ee=n(2192),te=n(2323),ne=n(22),re=n(449),ie=n(2325),oe=n(81);function ae(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var se=function(t){Object(c.a)(r,t);var n=ae(r);function r(e){var t;Object(a.a)(this,r),t=n.call(this,e);var i=e.course,o=e.isProgressSummary,s=e.lessonProgress,c=e.match.params,u=C()(null,"index",s),l=o?$.b:E()({},["lessons",u],i),f={course:i,lesson:l},d=o?x()(i.lessonsOnly):Object(R.j)(f),h=o?null:Object(R.i)(f);return t.state={color:i.color,hasTransitioned:!1,lessonNumber:o?0:Object(R.h)(f),mode:c.mode||"",model:l,next:h,nextNumber:Object(R.h)({course:i,lesson:h}),previous:d,previousNumber:Object(R.h)({course:i,lesson:d}),scrollPosition:0,totalLessons:Object(R.k)(i)},t}return Object(s.a)(r,[{key:"componentDidMount",value:function(){var e=this.props.match.params.id;this.setState({hasTransitioned:!0}),this.props.isProgressSummary||Object(oe.t)(e),this.props.isProgressSummary||Object(D.a)(Object(L.a)(e))}},{key:"componentWillReceiveProps",value:function(e){if(!this.props.isProgressSummary){var t=e.course,n=e.lessonProgress,r=C()(null,"index",n),i=E()(null,["lessons",r],t),o={course:t,lesson:i},a=Object(R.j)(o),s=Object(R.i)(o);i&&this.setState({model:i,next:s,previous:a})}}},{key:"displayFlex",value:function(e){e.css({display:"flex"})}},{key:"componentWillEnter",value:function(e){v()("[data-lesson-header]").css({top:""}),this.transition("enter",e)}},{key:"componentDidEnter",value:function(){var e=v()("[data-page]:first-child [data-previous-lesson]"),t=document.getElementsByClassName("page-wrap");if(this.setState({hasTransitioned:!0}),e.length>0){var n=e.height();e.hide(),this.displayFlex(e),v()(t).scrollTop(n),v()("[data-lesson-header]").css({top:n})}}},{key:"componentWillExit",value:function(e){var t=document.getElementsByClassName("page-wrap"),n=t[0].scrollTop;v()(t).scrollTop(0),this.lastScrollPosition=n,this.transition("leave",e),v()(P.a.findDOMNode(this)).scrollTop(this.lastScrollPosition)}},{key:"transitionComplete",value:function(){var e=P.a.findDOMNode(this);if(!e)return!1;var t=e.classList;return t&&(t.contains("page-transition-complete")||t.contains("page-transition-back-complete")||1===t.length&&t.contains("page"))}},{key:"transition",value:function(e,t){var n,r=this.props,i=r.focusLessonContent,o=(0,r.navigateDirection)(),a=P.a.findDOMNode(this);if(a){var s=d()(n="page ".concat(o,"-")).call(n,e);a.className=s,ee.a.addEventListeners(a,function n(){"enter"===e?(a.className="page ".concat(o,"-complete"),i()):a.className="page",ee.a.removeEventListeners(a,n),t()})}else t()}},{key:"handleFinishQuiz",value:function(){var e=this.props,t=e.course,n=e.courseProgress;Object(ie.a)(t,n)}},{key:"handleNextClick",value:function(e){var t=this.props.course.lessonsOnly;Object(F.b)(e)(t)>=t.length-1?ne.e&&(this.props.onNavigate("progress-summary"),this.handleFinishQuiz()):this.props.onNavigate(this.state.next.id)}},{key:"handlePreviousClick",value:function(e){var t=this.props.course.lessonsOnly;Object(F.b)(e)(t)<=0&&!this.props.isProgressSummary||this.props.onNavigate(this.state.previous.id)}},{key:"renderLessonType",value:function(t){var n=t.type,r=t.props,i=t.course,a=t.model;if(this.props.isProgressSummary)return e.createElement($.a,Object(o.a)({},this.props,r));switch(n){case"blocks":return e.createElement(q.a,Object(o.a)({},r,{animateBlockEntrance:i.animateBlockEntrance,isFirstLesson:Object(R.f)({course:i,lesson:a})}));case"map":return e.createElement(W.a,r);case"process":return e.createElement(G.a,r);case"timeline":return e.createElement(J.a,r);case"quiz":return e.createElement(X.a,r);case"sorting":return e.createElement(Z.a,r);case"screencast":case"slidecast":case"video":return e.createElement(te.a,r);case"embed":return e.createElement(z.a,r);default:return null}}},{key:"render",value:function(){var t,n,r=this,i=this.state,o=i.color,a=i.lessonNumber,s=i.mode,c=i.model,u=i.next,l=i.nextNumber,f=i.previous,d=i.previousNumber,h=i.scrollPosition,m=i.totalLessons,v=this.props,g=v.allowRestrictedTooltip,b=v.course,w=v.courseProgress,x=v.handleStorylineFullscreen,k=v.isProgressSummary,S=v.labels,O=v.lessonProgress,j=v.location,A=v.match,M=v.menuButtons,P=v.menuOpen,N=v.mobileMenuOpen,L=v.onNavMouse,D=v.onNavigate,F=v.previewType,q=v.sessionPreferences.prefersKeyboardNavigation,z=v.sidebarEnabled,W=c.author,G=c.selectedAuthorId,$=c.settings,X=void 0===$?{}:$,Z=c.type,J=b.authors,ee=b.enableVideoPlaybackSpeed,te=b.id,ie=b.publishedAt,ae=b.showLessonCount,se=b.showNavigationButtons,ce=b.tenantId,ue=S.courseFinish,le=void 0===ue?"Finish":ue,fe=S.courseHome,de=E()([],["partnerContent","content"],this.props),he=!_()(de),pe=he?y()(T()("id",G),de):{},me=he?E()(void 0,["data","authors"],pe):void 0,ve=Object(Q.a)({authors:J,author:W,selectedAuthorId:G}),ge=ve.avatar,ye=ve.authorName,be=c.items?c.items.length:0,_e=Object(B.a)({course:b,courseProgress:w}),we=k?{}:Object(R.b)({course:b,courseProgress:w,lesson:u,restrictingQuiz:_e}),xe="quiz"===Z&&"continue"===X.continueType,ke=p()(t=this.handleNextClick).call(t,this,c.id),Ee=f&&"preview-lesson"!==s?e.createElement(Y.b,{isLesson:Object(R.e)(f),key:"prev-".concat(c.id),labels:S,onPreviousClick:p()(n=this.handlePreviousClick).call(n,this,c.id),previous:f.id,previousNumber:d,previousTitle:f?f.title:"",ref:function(e){return r.previousLesson=e}}):"preview-lesson"!==s?e.createElement(Y.a,{courseHomeLabel:fe}):null,Se=u&&"preview-lesson"!==s&&!xe,Te=Se?e.createElement(V.b,{allowTooltip:g,id:c.id,isLesson:Object(R.e)(u),restrictions:we,key:"next-".concat(c.id),labels:S,next:u.id,nextNumber:l,nextTitle:u.title,onMouse:L,onNextClick:ke,ref:function(e){return r.nextLesson=e},type:Z}):!ne.e||"preview-lesson"===s||xe||Object(oe.j)()?null:e.createElement(V.a,{courseFinishLabel:le,onNextClick:ke}),Oe=Se&&!se&&!z?e.createElement(V.b,{id:c.id,isContinue:!0,isLesson:Object(R.e)(u),restrictions:we,key:"next-".concat(c.id),labels:S,next:u.id,nextNumber:l,onNextClick:ke,ref:function(e){return r.nextLesson=e},type:Z}):null,Ce=e.createElement(H.a,{authorName:ye,avatar:ge,description:c.description,labels:S,length:c.length||"",lessonNumber:a,partnerContentAuthors:me,ref:"header",showLessonCount:ae,steps:be,title:c.title,totalLessons:m,type:c.type},"audio"===c.mediaType&&c.mediaSrc&&e.createElement(U.b,{id:"audio-".concat(c.cid),key:"audio-".concat(c.cid),labels:S,mediaSrc:c.mediaSrc}),!k&&e.createElement(K.b,{id:c.id,items:c.items,lessonProgress:O,menuOpen:P,mobileMenuOpen:N,scrollPosition:h,type:c.type})),je={authorName:ye,avatar:ge,color:o,continueComponent:Oe,courseId:te,courseTitle:b.title,data:c,enableVideoPlaybackSpeed:ee,handleNavigate:D,handleStorylineFullscreen:x,isLesson:Object(R.e)(c),labels:S,lessonHeader:Ce,lessonNumber:a,lessonProgress:O,loadMedia:this.state.hasTransitioned,location:j,match:A,menuButtons:M,menuOpen:P,mobileMenuOpen:N,mode:s,nextComponent:se&&Te,nextLesson:C()(null,"id",u),nextLessonRestrictions:we,onNextClick:ke,partnerContent:de,publishedAt:ie,prefersKeyboardNavigation:q,previewType:F,previousComponent:se&&Ee,scrollPosition:h,showLessonCount:ae,showNavigationButtons:se,sidebarEnabled:z,tenantId:ce,totalLessons:m};return e.createElement(I.a,{title:Object(re.a)(b.title+" - "+c.title)},e.createElement("main",{"aria-label":"Lesson Content"},this.renderLessonType({type:Z,props:je,course:b,model:c})))}}],[{key:"propTypes",get:function(){return{focusLessonContent:A.a.func,match:A.a.object.isRequired,navigateDirection:A.a.func,onNavigate:A.a.func,partnerContent:A.a.object,previewType:A.a.string,sidebarEnabled:A.a.bool}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(24),i=n.n(r),o=n(15),a=n.n(o),s=n(114),c=n(2334),u=n(154);t.a=Object(s.b)(function(e){return{partnerContent:i()([],["partnerContent","content"],e)}})(function(t){var n=t.animateBlockEntrance,r=t.color,i=t.courseId,o=t.courseTitle,s=t.data,l=s.id,f=s.type,d=s.items,h=t.enableVideoPlaybackSpeed,p=t.handleNavigate,m=t.handleStorylineFullscreen,v=t.labels,g=t.lessonHeader,y=t.lessonProgress,b=t.loadMedia,_=t.match,w=t.menuButtons,x=t.menuOpen,k=t.nextComponent,E=t.nextLesson,S=t.partnerContent,T=t.prefersKeyboardNavigation,O=t.previewType,C=t.previousComponent,j=t.publishedAt,A=t.tenantId;return e.createElement(u.c,{type:f},C,e.createElement(u.b,{type:f},w,g,e.createElement(u.a,null,e.createElement(c.a,{animateBlockEntrance:n,blocks:d,color:r,courseId:i,courseTitle:o,enableVideoPlaybackSpeed:h,handleNavigate:p,handleStorylineFullscreen:m,isFirstLesson:!0,labels:v,lessonId:l,lessonProgress:y,loadMedia:b,match:_,menuOpen:x,nextLesson:E,partnerContent:S,previewType:O,prefersKeyboardNavigation:T,publishedAt:j,tenantId:A,type:f}))),a()("isComplete",y)?k:null)})}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(4),f=n.n(l),d=n(1),h=n.n(d),p=n(1198);function m(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var v=function(t){Object(s.a)(r,t);var n=m(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t;return e.createElement(p.a,{onViewed:f()(t=this.handleViewed).call(t,this,this.props.children.props),isFirstLesson:this.props.isFirstLesson},this.modifiedChildren())}},{key:"modifiedChildren",value:function(){var t;return e.cloneElement(e.Children.only(this.props.children),{onStep:f()(t=this.handleStep).call(t,this)})}},{key:"handleStep",value:function(e){var t=e.id;e.isDone||this.props.onStep(t)}},{key:"handleViewed",value:function(e){e.requiresInteraction?(/tabs|carousel/.test(e.variant)||/gallery/.test(e.family))&&this.handleStep(e.items[0]):this.props.onViewed()}}]),r}(e.Component);h.a.arrayOf,h.a.func,h.a.node,h.a.oneOfType}).call(this,n(0))},function(e,t,n){"use strict";var r=n(129),i=n(174),o=n(62),a=n(377),s=this&&this.__read||function(e,t){var n="function"==typeof r&&i(e);if(!n)return e;var o,a,s=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return c};o(t,"__esModule",{value:!0});var c=n(0);t.default=function(){var e=s(c.useState(a(null)),2)[1];return c.useCallback(function(){e(a(null))},[e])}},function(e,t,n){"use strict";(function(e){var r=n(2283),i=n(154);t.a=function(t){var n=t.data,o=n.id,a=n.items,s=n.type,c=t.labels,u=t.lessonHeader,l=t.lessonProgress,f=t.menuButtons,d=t.nextComponent,h=t.previousComponent;return e.createElement(i.c,{type:s},h,e.createElement(i.b,{type:s},f,u,e.createElement(i.a,null,e.createElement(r.a,{id:o,items:a,labels:c,lessonProgress:l}))),d)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return w});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(33),f=n.n(l),d=(n(2618),n(31)),h=n.n(d),p=n(1),m=n.n(p),v=n(74),g=n(239),y=n(554),b=n(351);function _(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var w=function(t){Object(s.a)(r,t);var n=_(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).type=Object(g.a)(e.items),t.state={isLoaded:"video"!==t.type},t}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props.id;"video"===this.type&&f()(function(){e.setState({isLoaded:!0})},800),Object(v.a)(Object(y.c)(t))}},{key:"render",value:function(){if(!this.state.isLoaded)return null;var t=this.props,n=t.id,r=t.items,i=t.labels,o=h()([0,"media","embed"],r),a=h()([0,"settings","showMetaData"],r);return e.createElement("section",{"aria-label":"URL/Embed Content",className:"embed-lesson"},e.createElement("div",{className:"embed-lesson__item",key:n},e.createElement("div",{className:"embed-lesson__row"},e.createElement("div",{className:"embed-lesson__main"},e.createElement(b.a,{data:o,isLesson:!0,labels:i,showMetaData:a})))))}}]),r}(e.Component);m.a.any,m.a.array,m.a.object}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return k});var r=n(9),i=n(10),o=n(11),a=n(14),s=n(6),c=n(5),u=n.n(c),l=n(16),f=n.n(l),d=n(3),h=n.n(d),p=(n(2619),n(1)),m=n.n(p),v=n(81),g=n(314),y=n(43),b=n(577),_=n(66);function w(e){var t=function(){if("undefined"==typeof Reflect||!h.a)return!1;if(h.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(h()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var i=Object(s.a)(this).constructor;n=h()(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var x=function(t){var n,r,i,o,a=t.authorName,s=t.avatar,c=t.children,l=t.description,d=t.labels,h=t.lessonNumber,p=t.partnerContentAuthors,m=t.showLessonCount,b=t.title,w=t.totalLessons,x=d.lessonName,k=d.lessonPreposition,E=function(e){return"url(".concat(Object(_.f)({width:"76",height:"76",imageKey:e.image}),")")},S=m&&e.createElement("div",{className:"lesson-header__count"},u()(n=u()(r=u()(i="".concat(x," ")).call(i,h," ")).call(r,k," ")).call(n,w));return e.createElement("div",{className:"lesson-header"},e.createElement("div",{className:"lesson-header__top-wrap brand--afterBackground"},e.createElement(y.a,{className:"lesson-header__title brand--lhead",tagName:"h1",value:b}),p&&e.createElement("div",{className:"lesson-header__partner-content"},f()(p).call(p,function(t){return e.createElement("div",{key:t.name,className:"lesson-header__partner-content-author"},e.createElement("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:E(t)}}),e.createElement("div",null,e.createElement("span",{className:"visually-hidden"},"by ",t.name),e.createElement("span",{"aria-hidden":"true"},t.name)))})),s&&a&&!p?e.createElement("div",{className:"lesson-header__author brand--ui"},e.createElement("img",{className:"lesson-header__author-img",src:Object(v.p)("".concat(s)),alt:""}),e.createElement("span",{className:"visually-hidden"},"by ",a),e.createElement("span",{"aria-hidden":"true"},a)):null,e.createElement("div",{className:"lesson-header__counter brand--body brand--linkColor"},S)),f()(o=e.Children).call(o,c,function(t){return t&&t.type===g.a?e.createElement("div",{className:"lesson-header__audio"},t):null}),e.createElement(y.a,{className:"lesson-header__description brand--lbody brand--linkColor",value:l}))},k=function(t){Object(o.a)(a,t);var n=w(a);function a(){return Object(r.a)(this,a),n.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){var t,n=this.props,r=n.children,i=n.labels.lessonHeaderLandmark;return e.createElement("section",{className:"page__header","aria-label":i},e.createElement("div",{className:"page__header-limit"},e.createElement("div",{className:"page__header-container"},e.createElement("div",{className:"lesson-header__row"},e.createElement("div",{className:"lesson-header__main"},e.createElement(x,this.props)))),f()(t=e.Children).call(t,r,function(e){return e&&e.type!==b.a?null:e})))}}],[{key:"propTypes",get:function(){return{authorName:m.a.string,avatar:m.a.string,description:m.a.string,showLessonCount:m.a.bool,steps:m.a.number,title:m.a.string.isRequired,type:m.a.string.isRequired}}}]),a}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2286),i=n(154);t.a=function(t){var n=t.labels,o=t.lessonHeader,a=t.lessonProgress,s=t.menuButtons,c=t.nextComponent,u=t.previousComponent,l=t.data,f=l.id,d=l.items,h=l.media,p=l.type;return e.createElement(i.c,{type:p},u,e.createElement(i.b,{type:p},s,o,e.createElement(i.a,null,e.createElement(r.a,{id:f,items:d,labels:n,lessonProgress:a,image:h.image}))),c)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return w});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=(n(2621),n(2)),p=n.n(h),m=n(74),v=n(1),g=n.n(v),y=n(683),b=n(555);function _(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var w=function(t){Object(c.a)(r,t);var n=_(r);function r(e){var t,i;return Object(o.a)(this,r),(i=n.call(this,e)).onItemSelected=d()(t=i.onItemSelected).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"render",value:function(){var t=this.props,n=t.accentColor,r=t.id,i=t.image,o=void 0===i?{}:i,a=t.items,s=t.isPreview,c=t.labels,u=t.lessonProgress,l=t.readOnly,f=p()("page__content-container","labeled-graphic-lesson-content-container"),d={accentColor:n,animateBlockEntrance:!1,editable:!1,items:a,isPreview:s,isLearner:!0,labels:c,media:{image:o},onItemSelected:l?void 0:this.onItemSelected,parentId:r,progress:u};return e.createElement("section",{"aria-label":"Labeled Graphic Content",className:"page__content"},e.createElement("div",{className:f},e.createElement(y.a,d)))}},{key:"onItemSelected",value:function(e){var t=this.props.id;Object(m.a)(Object(b.a)({id:t,itemId:e}))}}],[{key:"propTypes",get:function(){return{accentColor:g.a.string,id:g.a.any.isRequired,image:g.a.object,items:g.a.array.isRequired,labels:g.a.object,lessonProgress:g.a.object,readOnly:g.a.bool}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(154),i=n(2288),o=n(577),a=n(1201),s=Object(a.a)(i.a);t.a=function(t){var n=t.authorName,i=t.avatar,a=t.data,c=a.description,u=a.id,l=a.items,f=a.title,d=a.type,h=t.labels,p=t.lessonNumber,m=t.lessonProgress,v=t.loadMedia,g=t.menuButtons,y=t.menuOpen,b=t.mobileMenuOpen,_=t.nextComponent,w=t.prefersKeyboardNavigation,x=t.previousComponent,k=t.showLessonCount,E=t.totalLessons;return e.createElement(r.c,{type:d},x,e.createElement(r.b,{type:d},g,e.createElement(r.a,{type:d,items:l},e.createElement(o.b,{id:u,items:l,lessonProgress:m,menuOpen:y,mobileMenuOpen:b,type:"process"}),e.createElement(s,{authorName:n,avatar:i,description:c,id:u,items:l,labels:h,loadMedia:v,lessonNumber:p,lessonProgress:m,menuOpen:y,mobileMenuOpen:b,nextComponent:_,prefersKeyboardNavigation:w,previousComponent:x,showLessonCount:k,title:f,totalLessons:E,type:d}))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return se});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=n(16),p=n.n(h),m=n(33),v=n.n(m),g=(n(2624),n(2)),y=n.n(g),b=n(39),_=n.n(b),w=n(232),x=n.n(w),k=n(124),E=n.n(k),S=n(111),T=n.n(S),O=n(31),C=n.n(O),j=n(24),A=n.n(j),M=n(541),P=n.n(M),N=n(15),I=n.n(N),L=n(19),D=n.n(L),R=n(52),B=n.n(R),F=n(102),U=n.n(F),q=n(1),z=n.n(q),H=n(150),W=n.n(H),V=n(74),Y=n(202),G=n(23),K=n(20),$=n(85),X=n(2187),Q=n(41),Z=n(727),J=n(2289),ee=n(2290),te=n(542),ne=n(436);function re(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ie=Object(Y.a)(".next-lesson__link"),oe=Object(Y.a)(".restart-button"),ae=A()(0,["lessonProgress","activeIndex"]),se=function(t){Object(c.a)(r,t);var n=re(r);function r(e){var t,i,a,c,u,l,f,h,p,m;return Object(o.a)(this,r),(m=n.call(this,e)).state={xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null,resetContentFocus:!1,isTransitioning:!1},m.handleKeyDown=d()(t=m.handleKeyDown).call(t,Object(s.a)(m)),m.handleReplay=d()(i=m.handleReplay).call(i,Object(s.a)(m)),m.handleScroll=d()(a=m.handleScroll).call(a,Object(s.a)(m)),m.leftSwipe=d()(c=m.nextSlide).call(c,Object(s.a)(m)),m.nextSlide=d()(u=m.nextSlide).call(u,Object(s.a)(m)),m.previousSlide=d()(l=m.previousSlide).call(l,Object(s.a)(m)),m.renderItem=d()(f=m.renderItem).call(f,Object(s.a)(m)),m.rightSwipe=d()(h=m.previousSlide).call(h,Object(s.a)(m)),m.handleAnimationEnd=d()(p=m.handleAnimationEnd).call(p,Object(s.a)(m)),m}return Object(a.a)(r,[{key:"handleScroll",value:function(){var e=window.pageYOffset,t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(window.matchMedia("(min-width: 768px)").matches){var n=t/2+e-50;this.previousContainer.style.transform="translate3d(-50px, ".concat(n,"px, 0)"),this.nextContainer.style.transform="translate3d(50px, ".concat(n,"px, 0)")}else{this.previousContainer.style.transform="none",this.nextContainer.style.transform="none";var r=t+e-($.a.isIphoneSafari?94:50);this.controls.style.transform="translate3d(0, ".concat(r,"px, 0)")}}},{key:"componentDidMount",value:function(){var e=this.controlsContainer;this.swipeEvents=Object(te.a)(e,this,this.leftSwipe,this.rightSwipe),this.swipeEvents.addListeners(),document.addEventListener("keydown",this.handleKeyDown),$.a.isSafari9&&(this.scrollRef=W()(this.handleScroll,10),window.addEventListener("scroll",this.scrollRef),this.handleScroll()),this.preventFocusOnOverflowElements(),this.controlsContainer.addEventListener("animationend",this.handleAnimationEnd)}},{key:"componentWillUnmount",value:function(){this.swipeEvents.removeListeners(),document.removeEventListener("keydown",this.handleKeyDown),$.a.isSafari9&&window.removeEventListener("scroll",this.scrollRef),this.controlsContainer.removeEventListener("animationend",this.handleAnimationEnd)}},{key:"componentDidUpdate",value:function(e){this.handleSlideScroll(e)}},{key:"render",value:function(){var t,n=this,r=this.isAtStart(),i=this.isAtEnd(),o=this.props.labels.processLandmark;return e.createElement("section",{"aria-label":o,className:this.getClassName({isAtStart:r,isAtEnd:i}),ref:function(e){n.controlsContainer=e}},this.renderControls({isAtStart:r,isAtEnd:i}),e.createElement("div",{className:"process__wrap"},this.renderStart(),p()(t=this.props.items).call(t,this.renderItem),this.renderEnd()))}},{key:"renderControls",value:function(t){var n=this,r=t.isAtStart,i=t.isAtEnd,o=this.props,a=o.applySafariLandscapeHack,s=o.labels,c=o.safariLandscapeHackOffset,u=this.getControlsClassName({isAtStart:r,isAtEnd:i}),l=a?{bottom:c}:{},f=this.state.isTransitioning;return e.createElement(P.a,null,e.createElement("div",{className:this.getMenuClassName()},e.createElement("div",{ref:function(e){n.controls=e},className:u,style:l},e.createElement("div",{ref:function(e){n.nextContainer=e}},e.createElement(X.a,{allowTabNavigation:!i,atStart:r,labels:s,onClick:this.nextSlide,ref:function(e){n.nextControl=e},isTransitioning:f,type:"next"})),e.createElement("div",{ref:function(e){n.previousContainer=e}},e.createElement(X.a,{allowTabNavigation:!r,atStart:r,labels:s,onClick:this.previousSlide,ref:function(e){n.previousControl=e},isTransitioning:f,type:"previous"})))))}},{key:"renderStart",value:function(){var t=this,n=this.props,r=n.authorName,i=n.avatar,o=n.description,a=n.items,s=n.labels,c=n.lessonNumber,u=n.showLessonCount,l=n.title,f=n.totalLessons,d=n.type,h=this.isAtStart();return e.createElement("div",{"aria-hidden":!h,className:this.getItemClassName(0),ref:function(e){t["item-".concat(0)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(ee.a,{allowTabNavigation:h,authorName:r,avatar:i,description:o,labels:s,lessonNumber:c,onFullScreenChange:this.handleFullScreenChange,showLessonCount:u,steps:a.length,title:l,totalLessons:f,type:d})))}},{key:"renderItem",value:function(t,n){var r=this,i=this.props,o=i.items,a=i.labels,s=i.loadMedia,c=i.lessonNumber,u=E()(n),l=ae(this.props),f=u===l;return e.createElement("div",{"aria-hidden":!f,className:this.getItemClassName(u),key:"item-".concat(t.id),ref:function(e){r["item-".concat(u)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(Z.c,{allowTabNavigation:f,description:t.description,id:t.id,index:u,key:t.id,labels:a,lessonNumber:c,loadMedia:s,media:t.media,onFullScreenChange:this.handleFullScreenChange,settings:t.settings,steps:o.length,title:t.title})))}},{key:"renderEnd",value:function(){var t=this,n=this.props,r=n.applySafariLandscapeHack,i=n.items,o=n.labels,a=n.lessonNumber,s=n.nextComponent,c=E()(i.length);return e.createElement("div",{"aria-hidden":!this.isAtEnd(),className:this.getItemClassName(c),ref:function(e){t["item-".concat(c)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(J.a,{applySafariLandscapeHack:r,current:a,labels:o,onReplay:this.handleReplay},s)))}},{key:"preventFocusOnOverflowElements",value:function(){var e=Object(K.m)(this.isAtEnd());Object(K.j)(ie(),e),Object(K.j)(oe(),e)}},{key:"focusNextElement",value:function(){var e=this.nextControl,t=this.previousControl;if(this.isAtEnd()){var n=ie();n?n.focus():t.focus()}else this.isAtStart()&&e.focus()}},{key:"updateFocusForActiveCard",value:function(){!Object(K.c)(this["item-".concat(ae(this.props))])&&this.isAtStart()&&this.focusNextElement()}},{key:"handleAnimationEnd",value:function(e){var t=e.animationName,n=U()(t,["showcard","showcardUp"]);(this.state.isTransitioning&&this.setState({isTransitioning:!1}),n&&this.state.resetContentFocus)?(this.props.prefersKeyboardNavigation&&this.updateFocusForActiveCard(),this.setState({resetContentFocus:!1})):"showFoot"===t&&this.focusNextElement()}},{key:"getClassName",value:function(e){var t=e.isAtStart,n=e.isAtEnd;return y()("process",{"process--reverse-animation":"backwards"===this.props.lessonProgress.direction,"process--at-start":t,"process--at-end":n})}},{key:"getControlsClassName",value:function(e){var t=e.isAtStart,n=e.isAtEnd;return y()("process__controls",{"process__controls--at-start":t,"process__controls--at-end":n})}},{key:"getItemClassName",value:function(e){var t=ae(this.props);return y()("process__item",{"process__item--active":e===t,"process__item--done":e<t,"process__item--next":x()(e)===t})}},{key:"getMenuClassName",value:function(){var e=this.props,t=e.menuOpen,n=e.mobileMenuOpen,r=!!document.querySelector(".lesson--preview");return y()("lesson-controls-wrapper",{"lesson--open":t&&!r,"lesson--open-mobile":n&&!r})}},{key:"previousSlide",value:function(){if(!this.isAtStart()){this.slidePrep();var e=this.props,t=e.id,n=e.lessonProgress,r=Math.max(0,x()(B()(0,"activeIndex",n)));this.setState({resetContentFocus:!0}),Object(V.a)(Object(ne.e)({activeIndex:r,id:t}))}}},{key:"nextSlide",value:function(){if(!this.isAtEnd()){this.isAtStart()&&this.setState({isTransitioning:!0}),this.slidePrep();var e=this.props,t=e.id,n=e.items,r=e.lessonProgress,i=Math.max(0,E()(B()(0,"activeIndex",r))),o=C()([x()(i),"id"],n);this.setState({resetContentFocus:!0}),Object(V.a)(Object(ne.d)({activeIndex:i,id:t,itemId:o}))}}},{key:"handleKeyDown",value:function(e){_()([[G.g,this.previousSlide],[G.i,this.nextSlide]])(e)}},{key:"slidePrep",value:function(){Q.a.pause(),this.setState({xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null})}},{key:"handleReplay",value:function(){Object(V.a)(Object(ne.b)({id:this.props.id}))}},{key:"handleFullScreenChange",value:function(){var e=document.querySelector(".process__item--active");document.webkitFullscreenElement?e.style.animationDuration="0s":v()(function(){e.style.animationDuration=""},750)}},{key:"handleSlideScroll",value:function(e){var t=A()(0,["lessonProgress","activeIndex"],e);if(t!==A()(0,["lessonProgress","activeIndex"],this.props)){var n=document.querySelector(".page-wrap"),r=n.scrollTop,i=this.props.previousComponent?70:0;this["item-".concat(t)].scrollTop=r-i,n.scrollTop=i,this.preventFocusOnOverflowElements()}}},{key:"isAtStart",value:function(){return T()(I()("activeIndex",this.props.lessonProgress))}},{key:"isAtEnd",value:function(){var e=this.props,t=e.items,n=e.lessonProgress;return D()("activeIndex",E()(t.length),n)}}],[{key:"propTypes",get:function(){return{authorName:z.a.string.isRequired,avatar:z.a.string.isRequired,description:z.a.string.isRequired,id:z.a.any.isRequired,items:z.a.array.isRequired,labels:z.a.object.isRequired,lessonNumber:z.a.number.isRequired,lessonProgress:z.a.object.isRequired,loadMedia:z.a.bool.isRequired,menuOpen:z.a.bool.isRequired,mobileMenuOpen:z.a.bool.isRequired,nextComponent:z.a.object,previousComponent:z.a.object,title:z.a.string.isRequired,totalLessons:z.a.number.isRequired,type:z.a.string.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),o=(n(2625),n(544)),a=n(2),s=n.n(a),c=function(e){var t,n,r=e.current,o=e.labels,a=o.processComplete,s=o.processLessonName;return i()(t=i()(n="".concat(s," ")).call(n,r," ")).call(t,a)};t.a=function(t){var n=t.applySafariLandscapeHack,r=t.children,i=t.current,a=t.labels,u=t.onReplay,l=s()("process-end__footer",{"process-end__footer--mobile-safari-landscape":n});return e.createElement("div",{className:"process-end"},e.createElement("div",{className:"process-end__container"},e.createElement("div",{className:"process-end__message"},e.createElement("h1",{className:"process-end__text brand--ui"},c({current:i,labels:a})))),e.createElement(o.a,{onClick:u,text:a.processStartAgain}),e.createElement("div",{className:l},r))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(5),f=n.n(l),d=n(16),h=n.n(d),p=(n(2626),n(1)),m=n.n(p),v=n(81),g=n(314),y=n(43);function b(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var _=function(t){Object(s.a)(r,t);var n=b(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t,n=this.props,r=n.allowTabNavigation,i=n.authorName,o=n.avatar,a=n.children,s=n.description,c=n.labels,u=n.lessonNumber,l=n.showLessonCount,d=n.title,p=n.totalLessons,m=c.lessonName,b=c.lessonPreposition;return e.createElement("div",{className:"process-header"},e.createElement("div",{className:"process-header__container"},e.createElement("div",{className:"process-header__limit"},e.createElement("div",{className:"process-header__row"},e.createElement("div",{className:"process-header__main"},e.createElement("div",{className:"process-header__top-wrap brand--afterBackground"},e.createElement(y.a,{className:"process-header__title brand--lhead",tagName:"h1",value:d}),o&&i?e.createElement("div",{className:"process-header__author brand--ui"},e.createElement("img",{src:Object(v.p)("".concat(o)),alt:""}),e.createElement("span",{className:"visually-hidden"},"by ",i),e.createElement("span",{"aria-hidden":"true"},i)):null,l&&function(t){var n,r,i,o=t.lessonName,a=t.lessonNumber,s=t.lessonPreposition,c=t.totalLessons;return e.createElement("div",{className:"process-header__counter brand--body"},e.createElement("div",{className:"process-header__count"},f()(n=f()(r=f()(i="".concat(o," ")).call(i,a," ")).call(r,s," ")).call(n,c)))}({lessonName:m,lessonNumber:u,lessonPreposition:b,totalLessons:p})),h()(t=e.Children).call(t,a,function(t){return t&&t.type===g.a?e.createElement("div",{className:"process-header__audio"},t):null}),e.createElement(y.a,{className:"process-header__description brand--lbody editor-text brand--linkColor",value:s,allowTabNavigation:r}))),a)))}}],[{key:"propTypes",get:function(){return{steps:m.a.number,avatar:m.a.string,authorName:m.a.string,title:m.a.string.isRequired,type:m.a.string.isRequired,description:m.a.string,allowTabNavigation:m.a.bool.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(114),o=n(152),a=n(2),s=n.n(a),c=n(17),u=n.n(c),l=n(163),f=n.n(l),d=n(8),h=n.n(d),p=n(69),m=n.n(p),v=n(55),g=n.n(v),y=n(100),b=n.n(y),_=n(32),w=n.n(_),x=n(53),k=n.n(x),E=n(24),S=n.n(E),T=n(107),O=n.n(T),C=n(19),j=n.n(C),A=n(15),M=n.n(A),P=n(52),N=n.n(P),I=n(76),L=n.n(I),D=n(153),R=n.n(D),B=n(448),F=n.n(B),U=(n(2627),n(22)),q=n(449),z=n(212),H=n(81),W=n(1202),V=n(691),Y=n(2189),G=n(2293),K=n(2294),$=n(2296),X=n(165),Q="".concat(Object(U.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/trophy.svg"),Z=h()(k.a,g()(M()("isComplete")),L.a),J=h()(O()(["learningPathComplete","lpHasFailedQuiz"]),M()("learningPathUpNext"));t.a=Object(i.b)(J,function(e,t){var n=t.course,r=n.riseComCourseId,i=n.riseComLearningPathId;return{fetchLpUpNext:h()(e,V.b,u()({courseId:r,learningPathId:i}))}})(function(t){var n=t.color,i=t.course,a=void 0===i?{}:i,c=t.courseProgress,l=void 0===c?{}:c,d=t.fetchLpUpNext,p=t.lessons,v=void 0===p?[]:p,g=t.learningPathComplete,y=t.lpHasFailedQuiz,_=l.lessons,x=void 0===_?{}:_,k=l.percentComplete,E=a.dueAt,T=a.certificateDownload,O=a.completionCelebration,C=a.lessonsOnly,A=void 0===C?[]:C,P=a.riseComLearningPathId,I=a.trackingCompletionPercentage,L=a.trackingQuizId,D=w()(I)&&w()(L),B=D?100===k:Object(H.i)(),U=A.length,V=Z(x);Object(r.useEffect)(function(){P&&d()},[]);var J=Object(r.useMemo)(function(){return B?a.completedAt?a.completedAt:new Date:null},[a.completedAt,B]),ee=Object(r.useMemo)(function(){return m()(f()(j()("type","quiz"),j()("id",L)),v)},[L,v]),te=Object(r.useMemo)(function(){return N()(void 0,"title",ee)},[ee]),ne=Object(r.useMemo)(function(){return S()(100,["settings","passingScore"],ee)},[ee]),re=S()(null,["lessons",L,"passed"],l),ie=Object(r.useMemo)(function(){return h()(b()(j()("percentComplete",100),M()("score"),u()(null)),S()({},["lessons",L]))(l)},[l,L]),oe=Object(X.d)(l,ee,L).outOfAttempts,ae=!L||re,se=s()("progress-summary",{"progress-summary__no-req":D});return e.createElement(F.a,{title:Object(q.a)(a.title+" - Progress Summary")},e.createElement("div",{className:se},B&&O&&ae&&e.createElement(K.a,null),e.createElement("header",{className:"progress-summary__header"},e.createElement("h1",{className:"progress-summary__header-title"},B&&!D&&ae?"Congratulations!":"Progress Summary"),D?e.createElement("div",{className:"progress-summary__lessons-completed"},"You've completed ",V," of ",U," lessons."):B?e.createElement("div",{className:"progress-summary__header-completion-date"},ae&&e.createElement("img",{className:"progress-summary__header-trophy",src:Q,alt:"trophy"}),R()(J).format("MMMM Do, YYYY")):e.createElement(G.a,{dueAt:E})),e.createElement("section",{className:"progress-summary__section"},!D&&B&&e.createElement("div",{className:"progress-summary__requirements-met"},"You've met all the requirements."),D?!P&&e.createElement(o.b,{to:"/",className:"progress-summary__start-over"},"Start Over",e.createElement("i",{className:"progress-summary__start-over-icon icon icon-reload"})):e.createElement("div",{className:"progress-summary__requirements"},e.createElement(Y.a,{percentComplete:k,trackingCompletionPercentage:I}),e.createElement(Y.b,{outOfAttempts:oe,quizPassed:re,quizPassingScore:ne,quizScore:ie,quizTitle:te,trackingQuizId:L})),(B||D)&&e.createElement("div",{className:"progress-summary__completion-controls"},e.createElement("button",{role:"link",className:"progress-summary__btn-back progress-summary__completion-control brand--background",onClick:z.d,type:"button"},"Back to my learning"),B&&(!P&&T||P&&g)&&T&&ae&&!y&&e.createElement("span",{className:"progress-summary__completion-control"},e.createElement(W.a,null)))),B&&!!P&&e.createElement($.a,{color:n,learningPathId:P})))})}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t["aria-label"],r=t.title,o=t.desc,a=t.width,s=void 0===a?"26":a,c=t.height,u=void 0===c?"24":c,l=t.className,f=t.focusable,d=void 0===f?"false":f,h=t.role,p=void 0===h?"img":h;return e.createElement("svg",{viewBox:"0 0 26 24",width:s,height:u,"aria-label":n,className:i()("i i-checkedbox",l),focusable:d,role:p},r&&e.createElement("title",null,r),o&&e.createElement("desc",null,o),e.createElement("path",{fillRule:"nonzero",d:"M12.214 11.686L23.224.328a1.08 1.08 0 1 1 1.551 1.504L12.99 13.99a1.08 1.08 0 0 1-1.551 0L7.153 9.569a1.08 1.08 0 1 1 1.551-1.504l3.51 3.621zM2.58 21h18.197v-9.973a1.08 1.08 0 1 1 2.16 0V22.08a1.08 1.08 0 0 1-1.08 1.08H1.5a1.08 1.08 0 0 1-1.08-1.08v-21C.42.484.904 0 1.5 0h15a1.08 1.08 0 0 1 0 2.16H2.58V21z"}))}}).call(this,n(0))},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(711);t.a=function(e){var t=e.dueAt;return t?i.a.createElement("div",{className:"progress-summary__header-due brand--color brand--border"},Object(o.a)(t)):null}},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(33),v=n.n(m),g=n(2295),y=n.n(g);function b(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var _=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"],w=function(t){Object(c.a)(r,t);var n=b(r);function r(){var e,t,i;Object(o.a)(this,r);for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return(i=n.call.apply(n,d()(e=[this]).call(e,c))).state={run:!1,recycle:!0},i.startConfetti=p()(t=i.startConfetti).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"startConfetti",value:function(){var e=this;clearTimeout(this.timeout),this.timeout=v()(function(){return e.setState({recycle:!1})},1e4),this.setState({run:!0})}},{key:"componentDidMount",value:function(){clearTimeout(this.timeout),this.timeout=v()(this.startConfetti,900)}},{key:"shouldComponentUpdate",value:function(e,t){return t.recycle!==this.state.recycle||t.run!==this.state.run}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var t=this.state,n=t.recycle,r=t.run;return e.createElement("div",{className:"progress-summary__confetti"},e.createElement(y.a,{width:window.innerWidth,height:window.innerHeight,recycle:n,run:r,numberOfPieces:500,gravity:.4,colors:_}))}}]),r}(e.Component);t.a=w}).call(this,n(0))},function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(0),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=r},function(e,t,n){"use strict";var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return 0==e?t:(n-t)*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return 0===e?t:e===r?t+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:1==(e/=r)?t+s:((o=0)||(o=.3*r),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},easeOutElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:1==(e/=r)?t+s:((o=0)||(o=.3*r),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+s+t)},easeInOutElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:2==(e/=r/2)?t+s:((o=0)||(o=r*(.3*1.5)),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+s+t)},easeInBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var o=n-t;return void 0===i&&(i=1.70158),(e/=r/2)<1?o/2*(e*e*((1+(i*=1.525))*e-i))+t:o/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInBounce:function(e,t,n,i){var o=n-t;return o-r.easeOutBounce(i-e,0,o,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){var o=n-t;return e<i/2?.5*r.easeInBounce(2*e,0,o,i)+t:.5*r.easeOutBounce(2*e-i,0,o,i)+.5*o+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(0),a=n.n(o),s=n(1),c=n.n(s);function u(e,t){return e+Math.random()*(t-e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"}(r||(r={})),function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"}(i||(i={}));var d=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"context",void 0),f(this,"radius",void 0),f(this,"x",void 0),f(this,"y",void 0),f(this,"w",void 0),f(this,"h",void 0),f(this,"vx",void 0),f(this,"vy",void 0),f(this,"shape",void 0),f(this,"angle",void 0),f(this,"angularSpin",void 0),f(this,"color",void 0),f(this,"rotateY",void 0),f(this,"rotationDirection",void 0),f(this,"getOptions",void 0),this.getOptions=n;var a=this.getOptions(),s=a.colors,c=a.initialVelocityX,l=a.initialVelocityY;this.context=t,this.x=r,this.y=o,this.w=u(5,20),this.h=u(5,20),this.radius=u(5,10),this.vx=u(-c,c),this.vy=u(-l,0),this.shape=Math.floor(0+3*Math.random()),this.angle=u(0,360)*Math.PI/180,this.angularSpin=u(-.2,.2),this.color=s[Math.floor(Math.random()*s.length)],this.rotateY=u(0,1),this.rotationDirection=u(0,1)?i.Positive:i.Negative}var t,n;return t=e,(n=[{key:"update",value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,o=e.friction,a=e.opacity,s=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=o,this.vy*=o,this.rotateY>=1&&this.rotationDirection===i.Positive?this.rotationDirection=i.Negative:this.rotateY<=-1&&this.rotationDirection===i.Negative&&(this.rotationDirection=i.Positive);var c=.1*this.rotationDirection;if(this.rotateY+=c,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,s&&"function"==typeof s)s.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&l(t.prototype,n),e}();function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"canvas",void 0),h(this,"context",void 0),h(this,"getOptions",void 0),h(this,"x",0),h(this,"y",0),h(this,"w",0),h(this,"h",0),h(this,"lastNumberOfPieces",0),h(this,"tweenInitTime",Date.now()),h(this,"particles",[]),h(this,"particlesGenerated",0),h(this,"removeParticleAt",function(e){r.particles.splice(e,1)}),h(this,"getParticle",function(){var e=u(r.x,r.w+r.x),t=u(r.y,r.h+r.y);return new d(r.context,r.getOptions,e,t)}),h(this,"animate",function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,i=r.lastNumberOfPieces,o=r.getOptions(),a=o.run,s=o.recycle,c=o.numberOfPieces,u=o.debug,l=o.tweenFunction,f=o.tweenDuration;if(!a)return!1;var d=r.particles.length,h=s?d:n,p=Date.now();if(h<c){i!==c&&(r.tweenInitTime=p,r.lastNumberOfPieces=c);for(var m=r.tweenInitTime,v=l(p-m>f?f:Math.max(0,p-m),h,c,f),g=Math.round(v-h),y=0;y<g;y++)r.particles.push(r.getParticle());r.particlesGenerated+=g}return u&&(t.font="12px sans-serif",t.fillStyle="#333",t.textAlign="right",t.fillText("Particles: ".concat(d),e.width-10,e.height-20)),r.particles.forEach(function(t,n){t.update(),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(s&&h<=c?r.particles[n]=r.getParticle():r.removeParticleAt(n))}),d>0||h<c}),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=n};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={width:"undefined"!=typeof window?window.innerWidth:300,height:"undefined"!=typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:c.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},b=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"canvas",void 0),g(this,"context",void 0),g(this,"_options",void 0),g(this,"generator",void 0),g(this,"rafId",void 0),g(this,"setOptionsWithDefaults",function(e){var t={confettiSource:{x:0,y:0,w:r.canvas.width,h:0}};r._options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},y,{},e),Object.assign(r,e.confettiSource)}),g(this,"update",function(){var e=r.options,t=e.run,n=e.onConfettiComplete,i=r.canvas,o=r.context;t&&(o.fillStyle="white",o.clearRect(0,0,i.width,i.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&"function"==typeof n&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)}),g(this,"reset",function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)}),g(this,"stop",function(){r.options={run:!1},r.rafId&&(cancelAnimationFrame(r.rafId),r.rafId=void 0)}),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new p(this.canvas,function(){return r.options}),this.options=n,this.update()}var t,n;return t=e,(n=[{key:"options",get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof e.recycle&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof e.run&&e.run&&!1===t&&this.update()}}])&&v(t.prototype,n),e}();function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(n,!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"ReactConfetti",function(){return M});var j=function(e){function t(e){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return r=function(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?T(e):t}(this,(n=S(t)).call.apply(n,[this,e].concat(o))),C(T(r),"canvas",a.a.createRef()),C(T(r),"confetti",void 0),r.canvas=e.canvasRef||a.a.createRef(),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,o.Component),n=t,(r=[{key:"componentDidMount",value:function(){if(this.canvas.current){var e=A(this.props)[0];this.confetti=new b(this.canvas.current,e)}}},{key:"componentWillReceiveProps",value:function(e){var t=A(e)[0];this.confetti&&(this.confetti.options=t)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(A(this.props),2),t=e[0],n=e[1],r=k({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},n.style);return a.a.createElement("canvas",w({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&E(n.prototype,r),t}();function A(e){var t={},n={},r=[].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(Object.keys(y)),["confettiSource","drawShape","onConfettiComplete"]),i=["canvasRef"];for(var o in e){var a=e[o];r.includes(o)?t[o]=a:i.includes(o)?i[o]=a:n[o]=a}return[t,n,{}]}C(j,"defaultProps",k({},y)),C(j,"displayName","ReactConfetti");var M=a.a.forwardRef(function(e,t){return a.a.createElement(j,w({canvasRef:t},e))});t.default=M}]).default)},function(e,t,n){"use strict";(function(e){var r=n(28),i=n(5),o=n.n(i),a=n(0),s=n(114),c=n(153),u=n.n(c),l=n(207),f=n.n(l),d=n(101),h=n.n(d),p=n(8),m=n.n(p),v=n(102),g=n.n(v),y=n(117),b=n.n(y),_=n(69),w=n.n(_),x=n(82),k=n.n(x),E=n(412),S=n.n(E),T=n(24),O=n.n(T),C=n(107),j=n.n(C),A=n(15),M=n.n(A),P=n(52),N=n.n(P),I=n(19),L=n.n(I),D=n(208),R=n.n(D),B=n(136),F=n.n(B),U=n(209),q=n.n(U),z=n(2335),H=(n(2630),n(711)),W=n(22),V=n(656),Y=n(212),G=n(21),K=Object(W.c)("IMAGES_URI"),$=["cardImageKey","color","coverImageKey","progress","score","title"],X=function(e,t){return 1===e?t:o()(t).call(t,"s")},Q=O()([],["course","course","lessons"]),Z=function(e){return m()(k.a,F()(b()(L()("type","section"),R()(g()(f.a,e),"id"))),Q)},J=function(e){var t=Q(e),n=e.trackingQuizId,r=e.score;if(n&&t.length){var i=w()(L()("id",n),t),o=i.settings;return r<(o=void 0===o?{}:o).passingScore&&i}},ee=m()(w()(h()(L()("type","section"))),Q),te=q()(2,function(e){return m()(N()("","id"),w()(Boolean),S()([Z(e),J,ee]))}),ne=function(e){var t=u.a.duration(e),n=t.hours(),r=t.minutes(),i=n+X(n,"hr"),o="".concat(r,"min");return n>=100?"100+ hrs":n>0&&r>0?[i,o].join(" "):n>0?i:o},re=M()("learningPathUpNext");t.a=Object(s.b)(re)(function(t){var n,i=t.color,s=t.learningPathComplete,c=t.learningPathId,u=t.isSuccess,l=t.nextCourse,f=t.nextCourse,d=(f=void 0===f?{}:f).dueAt,h=f.courseId,p=void 0===h?"":h,m=f.lessonCount,v=f.lessonsCompleted,g=void 0===v?[]:v,y=f.sourceType,b=f.timeToComplete,_=Object(a.useMemo)(function(){return te(g,l)},[l,g]);Object(G.isNil)(l.color)&&(l.color=i);var w=j()($,l),x=Object(a.useCallback)(function(){var e;"PACKAGE"===y?(top.sessionStorage.setItem("upNextCourseId",p),top.location.assign("/learning-path/".concat(c))):Object(Y.f)(o()(e="".concat(p,"/lessons/")).call(e,_))},[p,c,_,y]);return u&&!s&&e.createElement("div",{className:"progress-summary__lp-next"},e.createElement("div",{className:"progress-summary__lp-next-inner"},e.createElement("div",{className:"progress-summary__lp-next-label"},"Next up ",e.createElement(V.a,{className:"progress-summary__lp-next-label-icon",decorative:!0})),e.createElement("div",{className:"progress-summary__lp-next-card"},e.createElement(z.a,Object(r.a)({imagesUri:K,labelCount:o()(n="".concat(m," ")).call(n,X(m,"lesson")),labelDue:Object(H.a)(d),labelDuration:ne(b),noFavoriteBtn:!0,noCertDownload:!0,onClick:x},w)))))})}).call(this,n(0))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=(r=a)&&r.__esModule?r:{default:r},c=n(2),u=["lines","ellipsis"],l=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return o.contextRef=null,o.setContextRef=function(e){return o.contextRef=e},o.state={clamp:!1,containerHeight:0,lineHeight:0},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){if(this.contextRef){var e=window.getComputedStyle(this.contextRef),t=(0,c.getLineHeight)(e),n=t*this.props.lines,r=(0,c.getHeight)(e)>n;this.setState({clamp:r,containerHeight:n,lineHeight:t})}}},{key:"render",value:function(){var e=this.props,t=e.background,n=void 0===t?"#fff":t,r=e.children,o=e.ellipsis,a=void 0===o?"...":o,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["background","children","ellipsis"]),f=this.state,d=f.clamp,h=f.containerHeight,p=f.lineHeight,m=(0,c.hexToRGB)(n);return s.default.createElement("div",{style:{maxHeight:h+"px",overflow:"hidden",position:"relative"}},s.default.createElement("div",i({ref:this.setContextRef},(0,c.omit)(u,l)),r,d&&s.default.createElement("div",{style:{background:"linear-gradient(to right, rgba("+m+", 0), rgba("+m+", 1) 50%)",display:"flex",justifyContent:"flex-end",position:"absolute",bottom:"0",right:"0",width:"2em",height:p+"px"}},a)))}}]),t}();l.displayName="LineClamp",t.default=l},function(e,t){e.exports=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.threeToSix=function(e){return 3===e.length?e.split("").map(function(e){return e+e}).join(""):e},i=t.cutHex=function(e){return"#"===e[0]?e.slice(1):e},o=t.parseHex=function(e){return r(i(e))},a=t.createHexToRGB=function(e,t){return function(n){return parseInt(o(n).substring(e,t),16)}},s=t.hexToR=a(0,2),c=t.hexToG=a(2,4),u=t.hexToB=a(4,6),l=(t.hexToRGB=function(e){return[s(e),c(e),u(e)].join(", ")},t.getNumberPixels=function(e){return Number(e.replace(/[a-zA-Z]+/,""))}),f=t.styleProp=function(e){return function(t){return l(t[e])}};t.getHeight=f("height"),t.getLineHeight=f("line-height"),t.omit=function(e,t){return Object.keys(t).reduce(function(n,r){return e.indexOf(-1===r)&&void 0!==t[r]?Object.assign(n,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t[r])):n},{})}}])},function(e,t,n){var r=n(309)(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n});e.exports=r},function(e,t,n){var r=n(47),i=n(309),o=n(2178),a=i(function(e,t){return o(e,function(){for(var n,i=1,o=t,a=0;i<=e&&"function"==typeof o;)n=i===e?arguments.length:a+o.length,o=o.apply(this,r(Array.prototype).call(arguments,a,n)),i+=1,a=n;return o})});e.exports=a},function(e,t,n){var r=n(2179)(function(e,t,n){return e(n)?t(n):n});e.exports=r},function(e,t,n){var r=n(309)(function(e,t){return e*t});e.exports=r},function(e,t,n){var r=n(1189),i=n(2632),o=n(2633),a=n(2638);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t,n){var r=n(255),i=n(309)(function e(t,n){var i,o,a,s=n instanceof Array?[]:{};for(o in n)i=t[o],a=r(i),s[o]="function"===a?i(n[o]):i&&"object"===a?e(i,n[o]):n[o];return s});e.exports=i},function(e,t,n){var r=n(514),i=n(1190),o=r(function(e){var t=[];for(var n in e)i(n,e)&&(t[t.length]=[n,e[n]]);return t});e.exports=o},function(e,t,n){var r=n(309),i=n(2243),o=n(2244),a=n(2180),s=n(2641),c=n(2178),u=n(1191),l=r(i(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return c(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},u(t));default:return o(e,t)}}));e.exports=l},function(e,t,n){var r=n(309)(function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n});e.exports=r},function(e,t,n){"use strict";(function(e){var r=n(60),i=n.n(r),o=n(45),a=n.n(o),s=n(59),c=n.n(s),u=n(44),l=n.n(u),f=n(34),d=n.n(f),h=n(49),p=n.n(h),m=n(75),v=n.n(m),g=n(62),y=n.n(g),b=n(12),_=n(149),w=n.n(_),x=n(270),k=n.n(x),E=n(94),S=n.n(E),T=n(58),O=n.n(T),C=n(154),j=n(577),A=n(2308),M=n(81);function P(e,t){var n=i()(e);if(a.a){var r=a()(e);t&&(r=c()(r).call(r,function(t){return l()(e,t).enumerable})),n.push.apply(n,r)}return n}var N=function(e){var t=e.id,n=e.settings,r=e.lessonProgress,i=void 0===r?{}:r;return O()(S()(["passingScore"]),function(e){var t=e.id,n=e.passingScore;return k()(w.a,Object(M.g)({id:t,passingScore:n}))}(function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)d()(n=P(Object(r),!0)).call(n,function(t){Object(b.a)(e,t,r[t])});else if(p.a)v()(e,p()(r));else{var i;d()(i=P(Object(r))).call(i,function(t){y()(e,t,l()(r,t))})}}return e}({id:t},i)),n)};t.a=function(t){var n=t.authorName,r=t.avatar,i=t.color,o=t.continueComponent,a=t.data,s=a.description,c=a.id,u=a.items,l=a.settings,f=a.title,d=a.type,h=t.enableVideoPlaybackSpeed,p=t.isLesson,m=t.labels,v=t.lessonNumber,g=t.lessonProgress,y=t.menuButtons,b=t.menuOpen,_=t.mobileMenuOpen,w=t.mode,x=t.nextComponent,k=t.nextLesson,E=t.nextLessonRestrictions,S=t.onNextClick,T=t.prefersKeyboardNavigation,O=t.previousComponent,M=t.showLessonCount,P=t.showNavigationButtons,I=t.sidebarEnabled,L=t.totalLessons;return e.createElement(C.c,{type:d},O,e.createElement(C.b,{type:d},y,e.createElement(C.a,{type:d,items:u},e.createElement(j.b,{id:c,lessonProgress:g,menuOpen:b,mobileMenuOpen:_,type:"quiz"}),e.createElement(A.a,{authorName:n,avatar:r,color:i,currentPassingScore:l.passingScore,description:s,enableVideoPlaybackSpeed:h,id:c,isLesson:p,items:u,labels:m,lessonNumber:v,lessonProgress:g,menuOpen:b,mobileMenuOpen:_,mode:w,nextComponent:o||x,nextLesson:k,nextLessonRestrictions:E,onNextClick:S,prefersKeyboardNavigation:T,previousComponent:O,settings:N({id:c,lessonProgress:g,settings:l}),showLessonCount:M,showNavigationButtons:P,sidebarEnabled:I,title:f,totalLessons:L}))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ht});var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(59),l=n.n(u),f=n(44),d=n.n(f),h=n(34),p=n.n(h),m=n(49),v=n.n(m),g=n(75),y=n.n(g),b=n(62),_=n.n(b),w=n(1203),x=n(50),k=n(141),E=n(28),S=n(12),T=n(9),O=n(10),C=n(11),j=n(14),A=n(6),M=n(47),P=n.n(M),N=n(16),I=n.n(N),L=n(5),D=n.n(L),R=n(128),B=n.n(R),F=n(4),U=n.n(F),q=(n(2674),n(237)),z=n.n(q),H=n(26),W=n.n(H),V=n(1199),Y=n.n(V),G=n(421),K=n.n(G),$=n(2),X=n.n($),Q=n(8),Z=n.n(Q),J=n(121),ee=n.n(J),te=n(38),ne=n.n(te),re=n(92),ie=n.n(re),oe=n(2191),ae=n.n(oe),se=n(55),ce=n.n(se),ue=n(69),le=n.n(ue),fe=n(137),de=n.n(fe),he=n(270),pe=n.n(he),me=n(420),ve=n.n(me),ge=n(553),ye=n.n(ge),be=n(124),_e=n.n(be),we=n(30),xe=n.n(we),ke=n(29),Ee=n.n(ke),Se=n(1165),Te=n.n(Se),Oe=n(111),Ce=n.n(Oe),je=n(2309),Ae=n.n(je),Me=n(31),Pe=n.n(Me),Ne=n(24),Ie=n.n(Ne),Le=n(15),De=n.n(Le),Re=n(19),Be=n.n(Re),Fe=n(52),Ue=n.n(Fe),qe=n(289),ze=n.n(qe),He=n(724),We=n.n(He),Ve=n(340),Ye=n.n(Ve),Ge=n(42),Ke=n.n(Ge),$e=n(77),Xe=n(1163),Qe=n(158),Ze=n(2310),Je=n(2313),et=n(2314),tt=n(74),nt=n(70);function rt(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=l()(r).call(r,function(t){return d()(e,t).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)p()(n=rt(Object(r),!0)).call(n,function(t){Object(S.a)(e,t,r[t])});else if(v.a)y()(e,v()(r));else{var i;p()(i=rt(Object(r))).call(i,function(t){_()(e,t,d()(r,t))})}}return e}function ot(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(A.a)(e);if(t){var o=Object(A.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(j.a)(this,n)}}var at=Qe.a.MATCHING,st=Ie()(0,["lessonProgress","activeIndex"]),ct=function(e,t){return Z()(ne()(e),st)(t)},ut=Ie()(0,["lessonProgress","retryAttempts"]),lt=ee()(function(e){return ae()(function(e){return Z()(pe()(le.a,e),Be()("id"),De()("id"))}(e),ye.a)}),ft=Z()(Ae()("answers"),Te()(ee()(function(e){return xe()(function(e){return Z()(Te()(z.a),lt(e))}(e))})),K()(De()("answers"),De()("answers"))),dt=pe()(function(e){return xe()((t=e,Z()(Te()(z.a),ae()(ft,Te()(z.a)),lt(t))));var t}),ht=function(t){Object(C.a)(r,t);var n=ot(r);function r(e){var t;return Object(T.a)(this,r),(t=n.call(this,e)).state={items:Ot(e)},t}return Object(O.a)(r,[{key:"componentWillReceiveProps",value:function(e){if(ut(this.props)!==ut(e))this.setState({items:Ot(e)});else{var t=Et(it(it({},e),{},{currentItems:this.state.items})),n=dt(this.state.items,t);this.setState({items:n})}}},{key:"render",value:function(){var t=this.state.items,n=st(this.props),r=gt(n),i=it(it({},this.props),{},{getClassName:r,items:t}),o=function(e){return{start:e<2?0:e-2,end:e+2}}(n),a=o.start,s=o.end,c=P()(t).call(t,a,s),u=mt(i,a),l=this.props.labels.quizLandmark;return e.createElement("section",{"aria-label":l,className:"quiz","data-quiz":!0},e.createElement("div",{className:"quiz__wrap"},n<2?pt(i):null,I()(c).call(c,u),vt(i)))}}]),r}(e.Component),pt=function(t){var n=t.authorName,r=t.avatar,i=t.description,o=t.getClassName,a=t.id,s=t.isLesson,c=t.items,u=t.labels,l=t.lessonNumber,f=t.lessonProgress,d=t.showLessonCount,h=t.title,p=t.totalLessons;return e.createElement("div",{className:o(0)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(Je.a,{allowTabNavigation:ct(0,{lessonProgress:f}),authorName:n,avatar:r,description:i,id:a,isLesson:s,items:c,labels:u,lessonNumber:l,lessonProgress:f,showLessonCount:d,title:h,totalLessons:p})))},mt=function(t,n){return function(r,i){return e.createElement(et.a,Object(E.a)({index:i+n,item:r,key:"item-".concat(r.id),retryAttempts:ut({lessonProgress:t.lessonProgress})},t))}},vt=function(t){var n=t.color,r=t.currentPassingScore,i=t.getClassName,o=t.id,a=t.items,s=t.labels,c=t.lessonNumber,u=t.lessonProgress,l=t.mode,f=t.nextComponent,d=t.nextLesson,h=t.nextLessonRestrictions,p=t.onNextClick,m=t.settings,v=m.continueType,g=m.passingScore,y=m.retryCount,b=t.showNavigationButtons,_=t.sidebarEnabled,w=_e()(a.length),x=ct(w,{lessonProgress:u});return e.createElement("div",{className:i(w)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(Ze.a,{allowTabNavigation:x,color:n,continueType:v,current:c,currentPassingScore:r,id:o,isAtEnd:x,labels:s,length:a.length,lessonProgress:u,mode:l,nextComponent:f,nextLesson:d,nextLessonRestrictions:h,onNextClick:p,passingScore:g,retryAttempts:ut({lessonProgress:u}),retryCount:Number(y),showNavigationButtons:b,sidebarEnabled:_})))},gt=function(e){return function(t){return X()("quiz__item",{"quiz__item--active":t===e,"quiz__item--done":t<e,"quiz__item--next":t===e+1,"quiz__item--penultimate":t===e+2,"quiz__item--future":t>e+2})}},yt=Be()("type",at),bt=function(e){return function(t){return yt(t)?function(e){var t=Object($e.i)(Ue()([],"answers",e));return Ee()(e,{titleIndices:ze()(t),matchIndices:t})}(t):e?ie()({answers:ze.a},t):t}},_t=Ie()(!1,["settings","shuffleAnswerChoices"]),wt=Ie()(!1,["settings","randomizeQuestionOrder"]),xt=ce()(Be()("drawn",!0)),kt=de()(Be()("type",Qe.a.DRAW_FROM_QUESTION_BANK)),Et=function(e){for(var t=e.items,n=e.currentItems,r=Object(k.a)(t),i=kt(r);-1!==i;){var o,a=We()(i,r),s=Object(x.a)(a,2),c=s[0],u=s[1],l=Ye()(u),f=xt(n);r=D()(o=[]).call(o,Object(k.a)(c),Object(k.a)(f),Object(k.a)(l)),i=kt(r)}return r},St=function(e){return function(t,n,r){var i=n.id,o=e.originalItemProgress,a={};return o&&(a=o[r]||{}),t[i]=it(it(it({},e.items[i]||{}),a),{},{id:i,index:r}),t}},Tt=function(e,t,n){return it(it({},n),{},{questionsDrawn:!0,questionList:e,items:B()(t).call(t,St(n),{})})},Ot=Z()(De()("items"),function(e){var t=_t(e),n=bt(t);return ie()({items:xe()(n)},e)},Ke()(wt,function(e){var t,n,r=De()("items",e),i=Pe()(["lessonProgress","items"],e),o=Z()(String,De()("id")),a=Object($e.d)(i,De()("isComplete")),s=Object($e.c)(o,a)(r),c=Object($e.d)(i,Z()(Ce.a,De()("isComplete"))),u=Object($e.c)(o,c)(r),l=D()(t=D()(n=[]).call(n,s)).call(t,ze()(u));return W()("items",l,e)}),Y()("items",function(e){for(var t=e.id,n=e.items,r=e.lessonProgress,i=Object(k.a)(n),o=kt(i),a=[],s=0,c=function(){for(var e,t=We()(o,i),n=Object(x.a)(t,2),c=n[0],u=n[1],l=Object(w.a)(u),f=l[0],d=P()(l).call(l,1),h=f.drawCount,p=f.questions,m=[],v=[],g=[];m.length<h;)if(r.questionsDrawn){var y=r.questionList[s];ve()(function(e){var t,n=p[e];m.push(it(it({},n),{},{drawn:!0,id:D()(t="".concat(f.id,"-")).call(t,n.id)}))},y),g.push.apply(g,Object(k.a)(y))}else{var b,_=Object(Xe.b)({drawCount:h,questions:p,drawnQuestions:v});m.push(it(it({},_),{},{drawn:!0,id:D()(b="".concat(f.id,"-")).call(b,_.id)})),v.push(_.id),g.push(_.index)}i=D()(e=[]).call(e,Object(k.a)(c),m,Object(k.a)(d)),a.push(g),s++,o=kt(i)};-1!==o;)c();return Object(tt.a)(Object(nt.g)({id:t,currentLesson:t,type:"quiz",updateFn:U()(Tt).call(Tt,null,a,i,r)})),i}))}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(119),i=n(372);e.exports=r(function(e,t){var n;if(!e||!i(e))throw new TypeError("objOf: Non-empty String required for first argument");return(n={})[e]=t,n})},function(e,t,n){"use strict";(function(e){var r=n(120),i=(n(2677),n(2311)),o=["nextComponent"];t.a=function(t){var n=t.nextComponent,a=Object(r.a)(t,o);return e.createElement("div",{"aria-hidden":!a.allowTabNavigation,className:"quiz-end"},e.createElement("div",{className:"quiz-end__container"},e.createElement(i.a,a)),e.createElement("div",{className:"quiz-end__footer"},a.isAtEnd&&n))}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(5),d=n.n(f),h=n(4),p=n.n(h),m=n(33),v=n.n(m),g=(n(2678),n(0)),y=n.n(g),b=n(2),_=n.n(b),w=n(539),x=n.n(w),k=n(74),E=n(354),S=n(81),T=n(22),O=n(20),C=n(165),j=n(574),A=n(682),M=n(2312),P=n(544);function N(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var I=function(e){Object(c.a)(n,e);var t=N(n);function n(){var e,r,i,a;Object(o.a)(this,n);for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return(a=t.call.apply(t,d()(e=[this]).call(e,u))).animationTimeout=null,a.state={showFooter:!1},a.headingRef=Object(g.createRef)(),a.showFooter=p()(r=a.showFooter).call(r,Object(s.a)(a)),a.onTryAgainFocus=p()(i=a.onTryAgainFocus).call(i,Object(s.a)(a)),a}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props.isAtEnd;t!==e.isAtEnd&&(t?this.focusHeading():this.setState({showFooter:!1}))}},{key:"componentWillUnmount",value:function(){this.animationTimeout&&(clearTimeout(this.animationTimeout),this.animationTimeout=null)}},{key:"focusHeading",value:function(){this.headingRef&&this.headingRef.current&&x()(this.headingRef.current.focus)&&this.headingRef.current.focus()}},{key:"showFooter",value:function(){var e=this;this.animationTimeout=v()(function(){e.setState({showFooter:!0})},500)}},{key:"onTryAgainFocus",value:function(){this.animationTimeout&&(clearTimeout(this.animationTimeout),this.animationTimeout=null),this.setState({showFooter:!0})}},{key:"render",value:function(){var e,t,n=this.props,r=n.allowTabNavigation,i=n.color,o=n.continueType,a=n.currentPassingScore,s=n.id,c=n.isAtEnd,u=n.labels,l=n.lessonProgress,f=l.reportResults,h=l.score,p=n.mode,m=n.nextLesson,v=n.nextLessonRestrictions,g=n.onNextClick,b=n.passingScore,_=n.retryAttempts,w=n.retryCount,x=n.showNavigationButtons,k=n.sidebarEnabled,E=this.state.showFooter,S=u.quizPassing,T=u.quizResults,C=u.quizScore,j=h>=b,A=d()(e="".concat(C," ")).call(e,h,"%");return y.a.createElement("div",{className:L({isAtEnd:c})},y.a.createElement("div",{className:"quiz-results__header"},y.a.createElement("h1",{className:"quiz-results__label noOutline",ref:this.headingRef,tabIndex:O.i},T),y.a.createElement("div",{className:"quiz-results__passing"},y.a.createElement("div",{className:"odometer__passlabel brand--ui"},S),y.a.createElement("div",{className:"odometer__passpercent brand--ui"},"".concat(b,"%")))),y.a.createElement("div",{className:"visually-hidden"},y.a.createElement("div",null,A),y.a.createElement("div",null,"".concat(j?"Passed":"Failed")),y.a.createElement("div",null,d()(t="".concat(S," ")).call(t,b,"%"))),y.a.createElement("div",{"aria-hidden":"true",className:"quiz-results__results"},y.a.createElement(M.a,{atEnd:c,color:i,complete:f,isPass:j,onAnimationDone:this.showFooter,quizScore:C,quizPassing:S,score:h,scoreLabel:A,passingScore:b})),B({allowTabNavigation:r,continueType:o,currentPassingScore:a,id:s,isAtEnd:c,labels:u,mode:p,nextLesson:m,nextLessonRestrictions:v,onNextClick:g,onTryAgainFocus:this.onTryAgainFocus,retryAttempts:_,retryCount:w,showFooter:E,showNavigationButtons:x,sidebarEnabled:k}))}}]),n}(y.a.Component),L=function(e){var t=e.isAtEnd;return _()("quiz-results",{"quiz-results--active":t})},D=function(e){var t=e.isAtEnd,n=e.showFooter;return _()("quiz-results__footer",{"quiz-results__footer--active":t,"quiz-results__footer--hidden":!n})},R=function(e){var t=e.currentPassingScore,n=e.id;return function(){return Object(k.a)(Object(E.b)({currentPassingScore:t,id:n}))}},B=function(e){var t=e.allowTabNavigation,n=e.continueType,r=e.currentPassingScore,i=e.id,o=e.isAtEnd,a=e.labels,s=e.mode,c=e.nextLesson,u=e.nextLessonRestrictions,l=e.onNextClick,f=e.onTryAgainFocus,d=e.retryAttempts,h=e.retryCount,p=e.showFooter,m=e.showNavigationButtons,v=e.sidebarEnabled,g=u.isRestricted,b=a.courseFinish,_=void 0===b?"Finish":b,w=a.quizContinue,x=a.quizTakeAgain,k="continue"===n&&"preview-lesson"!==s&&!(v&&!m),E=k&&T.e&&!c&&m&&!Object(S.j)();return y.a.createElement("div",{className:D({isAtEnd:o,showFooter:p})},(-1===h||d<h)&&y.a.createElement(P.a,{allowTabNavigation:t,onClick:R({currentPassingScore:r,id:i}),onFocus:f,text:x}),k&&g&&c&&y.a.createElement(A.a,{bgType:"transparent",text:Object(C.a)({labels:a,restrictions:u})}),k&&!g&&c&&y.a.createElement(j.a,{href:"/lessons/".concat(encodeURIComponent(c)),onClick:l,text:w}),E&&y.a.createElement(j.a,{href:"/lessons/progress-summary",onClick:l,text:_}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(33),f=n.n(l),d=n(575),h=n.n(d),p=(n(2679),n(2)),m=n.n(p),v=n(144);function g(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var y=function(t){Object(s.a)(r,t);var n=g(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).animationTimeout=null,t.state={animated:!1,counted:!1},t}return Object(a.a)(r,[{key:"componentWillUnmount",value:function(){this.resetCanvas(),this.resetAnimationTimeout()}},{key:"componentWillReceiveProps",value:function(e,t){e.atEnd&&!t.animated&&this.setState({animated:!0}),this.props.atEnd&&!e.atEnd&&(this.resetCanvas(),this.resetAnimationTimeout(),this.setState({counted:!1,pass:null}))}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.atEnd!==e.atEnd||this.state.counted!==t.counted||!this.state.animated}},{key:"componentDidUpdate",value:function(){var e=this;this.props.atEnd&&(!this.state.counted&&this.props.complete?(this.odo(),this.animationTimeout=f()(function(){e.setState({counted:!0,pass:e.props.isPass}),e.props.onAnimationDone()},4e3)):this.state.counted&&this.props.isPass?this.pass():this.state.counted&&!this.props.isPass&&this.fail())}},{key:"render",value:function(){var t=this,n=this.props,r=n.canvasHeight,i=n.canvasWidth,o=n.passingScore,a=n.quizPassing,s=n.quizScore,c=n.scoreLabel,u=this.state,l=u.pass,f=u.counted,d=m()("odometer__score brand--ui",{"odometer__score--pass":l,"odometer__score--fail":!1===l}),h=m()("odometer__score-percent",{"odometer__score-percent--hidden":f});return e.createElement("div",{className:"odometer"},e.createElement("canvas",{className:"odometer__canvas",id:"odometer",width:i,height:r}),e.createElement("canvas",{className:"odometer__fail",id:"fail",width:"170",height:"170"}),e.createElement("canvas",{className:"odometer__pass",id:"pass",width:"170",height:"170"}),e.createElement("div",{className:d},e.createElement("div",{className:"odometer__score-label"},s),e.createElement("div",{className:"odometer__pass-label brand--color"},c),e.createElement("div",{className:"odometer__fail-label"},c),e.createElement("div",{ref:function(e){t.scorePercent=e},className:h})),e.createElement("div",{ref:function(e){t.passmark=e},className:"odometer__passmark"},e.createElement("div",{className:"odometer__passlabel brand--ui"},a),e.createElement("div",{className:"odometer__passpercent brand--ui"},"".concat(o,"%"))))}},{key:"resetAnimationTimeout",value:function(){clearTimeout(this.animationTimeout),this.animationTimeout=null}},{key:"resetCanvas",value:function(){var e=document.getElementById("pass"),t=document.getElementById("fail");e&&t&&(e.getContext("2d").clearRect(0,0,170,170),t.getContext("2d").clearRect(0,0,170,170))}},{key:"odo",value:function(){var e=this,t=this.props,n=t.passingScore,i=t.atEnd,o=t.canvasWidth,a=t.canvasHeight,s=t.color,c=document.getElementById("odometer").getContext("2d"),u=new Image,l=Math.PI/.8,d=.25*Math.PI;u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDFBQzM3NTBGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDFBQzM3NTFGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMUFDMzc0RUYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMUFDMzc0RkYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq3YZDIAAAA6SURBVHjaYjQ0NVdiYGC4D8T/GRCAEYgVmXBJADEzEy4JIL7DhEsCpIkJlwRIkAmXBEwSqwQIAAQYABZQDs+U1J1TAAAAAElFTkSuQmCC";var p=null,m=function t(f){return function(m){!p&&f&&(p=m);var v,g,y,b,_,w,x,k,E,S,T,O=f?(m-p)/2e3:0;v=O,g=e.props.score/100,y=r.easeInOutCubic(Math.min(v,1)),b=(225+y*g*270-90)*Math.PI/180,_=.5*o+210*Math.cos(b),w=.5*a+210*Math.sin(b),x=(225+n/100*270-90)*Math.PI/180,k=.5*o+210*Math.cos(x),E=.5*a+210*Math.sin(x),S=k+3,T=E+3,e.passmark&&(e.passmark.style.left="".concat(k/o*100,"%"),e.passmark.style.top="".concat(E/a*100,"%")),c.clearRect(0,0,o,a),c.beginPath(),c.arc(o/2,a/2,219,d,1.52*Math.PI*(n/100-.03)-l,!0),c.lineWidth=16,c.strokeStyle=c.createPattern(u,"repeat"),c.stroke(),c.closePath(),c.beginPath(),c.moveTo(S,T),c.lineTo(S+38,T-38),c.lineTo(S-38,T-38),c.lineTo(S-38,T+38),c.fillStyle="#f5f5f5",h()(c).call(c),c.closePath(),c.beginPath(),c.moveTo(k,E),c.lineTo(k+35,E-35),c.strokeStyle="#c2c3c4",c.lineWidth=1,c.stroke(),c.closePath(),c.beginPath(),c.moveTo(k+35,E-35),c.lineTo(k+70,E-35),c.strokeStyle="#c2c3c4",c.lineWidth=1,c.stroke(),c.closePath(),c.beginPath(),c.strokeStyle="#dcdcdc",c.arc(o/2,a/2,210,-l,1.5*Math.PI-l,!1),c.lineWidth=3,c.stroke(),c.closePath(),i&&(c.beginPath(),c.arc(o/2,a/2,210,-l,1.5*Math.PI*y*g-l,!1),c.lineWidth=3,c.strokeStyle="#313537",Math.floor(y*g*100)>=n&&(c.strokeStyle=s),c.stroke(),c.closePath(),c.beginPath(),c.arc(_,w,6,0,2*Math.PI,!1),c.fillStyle="#313537",Math.floor(y*g*100)>=n&&(c.fillStyle=s),h()(c).call(c),c.closePath()),O<1&&f&&window.requestAnimationFrame(t(!0))}};window.requestAnimationFrame(m(!1)),f()(function(){window.requestAnimationFrame(m(!0)),e.score()},1e3)}},{key:"score",value:function(){var e=this,t=null,n=function n(i){t||(t=i);var o=(i-t)/2e3;!function(t,n){var i=r.easeInOutQuad(Math.min(t,1)),o=Math.round(i*n*100)+"";if(e.scorePercent){for(;o.length<2;)o="0"+o;e.scorePercent.innerHTML="".concat(o,"%")}}(o,e.props.score/100),o<1&&window.requestAnimationFrame(n)};t=null,window.requestAnimationFrame(n)}},{key:"pass",value:function(){var e=this,t=this.props.color,n=document.getElementById("pass").getContext("2d"),i=null,o=function o(a){i||(i=a);var s,c,u=(a-i)/750;s=u,e.props.score,c=r.easeInOutCubic(Math.min(s,1)),n.clearRect(0,0,170,170),n.beginPath(),n.moveTo(30,70),n.lineTo(30+40*Math.min(c,.5)*2,70+45*Math.min(c,.5)*2),c>=.5&&n.lineTo(70+90*(c-.5)*2,110-85*(c-.5)*2),n.strokeStyle=t,n.lineWidth=20,n.stroke(),n.closePath(),u<1&&window.requestAnimationFrame(o)};i=null,window.requestAnimationFrame(o)}},{key:"fail",value:function(){var e=this,t=document.getElementById("pass").getContext("2d"),n=null,i=function i(o){n||(n=o);var a,s,c=(o-n)/750;a=c,e.props.score,s=r.easeInOutCubic(Math.min(a,1)),t.clearRect(0,0,170,170),t.beginPath(),t.moveTo(40,30),t.lineTo(40+90*Math.min(s,.5)*2,30+90*Math.min(s,.5)*2),t.strokeStyle="#313537",t.lineWidth=20,t.stroke(),t.closePath(),s>=.5&&(t.beginPath(),t.moveTo(130,30),t.lineTo(130-90*(s-.5)*2,30+90*(s-.5)*2),t.strokeStyle="#313537",t.lineWidth=20,t.stroke(),t.closePath()),c<1&&window.requestAnimationFrame(i)};n=null,window.requestAnimationFrame(i)}}],[{key:"defaultProps",get:function(){return{canvasWidth:590,canvasHeight:500,onAnimationDone:v.b,score:0}}},{key:"easeInOutCubic",value:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},{key:"easeInOutQuad",value:function(e){return e<.5?2*e*e:(4-2*e)*e-1}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";var r=n(5),i=n.n(r),o=(n(2680),n(0)),a=n.n(o),s=n(8),c=n.n(s),u=n(124),l=n.n(u),f=n(539),d=n.n(f),h=n(270),p=n.n(h),m=n(231),v=n.n(m),g=n(52),y=n.n(g),b=n(74),_=n(81),w=n(144),x=n(354),k=n(43),E=n(103),S=n(20),T=c()(p()(v.a,0),y()(0,"retryAttempts")),O=function(e){var t=e.lessonProgress,n=e.quizStart,r=e.quizTakeAgain;return T(t)?r:n},C=function(e){var t,n,r,o=e.lessonName,s=e.lessonNumber,c=e.lessonPreposition,u=e.totalLessons;return a.a.createElement("div",{className:"quiz-header__count"},i()(t=i()(n=i()(r="".concat(o," ")).call(r,s," ")).call(n,c," ")).call(t,u))},j=function(e){var t=e.id,n=e.lessonProgress;return function(){return Object(b.a)(Object(x.c)({activeIndex:Math.max(0,l()(y()(0,"activeIndex",n))),id:t}))}};t.a=function(e){var t=e.allowTabNavigation,n=e.authorName,r=e.avatar,i=e.description,s=e.id,c=e.isLesson,u=e.labels,l=u.lessonName,f=u.lessonPreposition,h=u.quizStart,p=u.quizTakeAgain,m=e.lessonNumber,v=e.lessonProgress,g=e.showLessonCount,y=e.title,b=e.totalLessons,x=Object(o.useRef)(),A=t&&T(v);return Object(o.useEffect)(function(){A&&x&&x.current&&d()(x.current.focus)&&x.current.focus()},[A,x]),a.a.createElement("div",{"aria-hidden":!t,className:"quiz-header"},a.a.createElement("div",{className:"quiz-header__container"},a.a.createElement("div",{className:"quiz-header__limit"},a.a.createElement("div",{className:"quiz-header__row"},a.a.createElement("div",{className:"quiz-header__main"},a.a.createElement("div",{className:"quiz-header__top-wrap brand--afterBackground"},a.a.createElement("h1",{className:"noOutline",ref:x,tabIndex:S.i},a.a.createElement(k.a,{className:"quiz-header__title brand--lhead",value:Object(E.a)(y)})),r&&n?a.a.createElement("div",{className:"quiz-header__author brand--ui"},a.a.createElement("img",{src:Object(_.p)("".concat(r)),alt:""}),a.a.createElement("span",{className:"visually-hidden"},"by ",n),a.a.createElement("span",{"aria-hidden":"true"},n)):null,a.a.createElement("div",{className:"quiz-header__counter brand--body"},c&&g&&C({lessonName:l,lessonNumber:m,lessonPreposition:f,totalLessons:b}))),a.a.createElement(k.a,{className:"quiz-header__description brand--lbody brand--linkColor",value:i,allowTabNavigation:t}),a.a.createElement("button",{className:"quiz-header__start-quiz brand--color",onClick:t?j({id:s,lessonProgress:v}):w.b,tabIndex:Object(S.m)(t),type:"button"},a.a.createElement("span",{className:"brand--ui"},O({lessonProgress:v,quizStart:h,quizTakeAgain:p})),a.a.createElement("i",{className:"icon icon-chevron-right"})))))))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ie});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(1208),d=n.n(f),h=n(4),p=n.n(h),m=n(161),v=n.n(m),g=n(5),y=n.n(g),b=n(33),_=n.n(b),w=n(526),x=n.n(w),k=n(8),E=n.n(k),S=n(102),T=n.n(S),O=n(38),C=n.n(O),j=n(137),A=n.n(j),M=n(48),P=n.n(M),N=n(46),I=n.n(N),L=n(124),D=n.n(L),R=n(84),B=n.n(R),F=n(53),U=n.n(F),q=n(30),z=n.n(q),H=n(31),W=n.n(H),V=n(24),Y=n.n(V),G=n(25),K=n.n(G),$=n(15),X=n.n($),Q=n(19),Z=n.n(Q),J=n(52),ee=n.n(J),te=n(378),ne=n.n(te),re=n(286),ie=n.n(re),oe=n(245),ae=n.n(oe),se=n(77),ce=n(74),ue=n(171),le=n(2315),fe=n(2316),de=n(354),he=n(2317),pe=n(2318),me=n(81),ve=n(43),ge=n(41),ye=n(268),be=n.n(ye),_e=n(192),we=n(175),xe=n(364),ke=n(158);function Ee(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Se=ke.a.FILL_IN_THE_BLANK,Te=ke.a.MATCHING,Oe=ke.a.MULTIPLE_CHOICE,Ce=ke.a.MULTIPLE_RESPONSE,je=xe.a.ANY,Ae=xe.a.CHOICE,Me=xe.a.CORRECT_INCORRECT,Pe=function(e){return e?73:3},Ne=Y()(0,["lessonProgress","activeIndex"]),Ie=function(t){Object(c.a)(r,t);var n=Ee(r);function r(e){var t,i,a,c,u,l,f;return Object(o.a)(this,r),(f=n.call(this,e)).state={startTime:d()()},f.handleChoiceSelect=p()(t=f.handleChoiceSelect).call(t,Object(s.a)(f)),f.handleFillIn=p()(i=f.handleFillIn).call(i,Object(s.a)(f)),f.handleMatch=p()(a=f.handleMatch).call(a,Object(s.a)(f)),f.handleNext=p()(c=f.handleNext).call(c,Object(s.a)(f)),f.handleResponseToggle=p()(u=f.handleResponseToggle).call(u,Object(s.a)(f)),f.handleSubmit=p()(l=f.handleSubmit).call(l,Object(s.a)(f)),f}return Object(a.a)(r,[{key:"componentDidUpdate",value:function(e){this.isNewlyActive({prevProps:e})&&(this.scrollTopIfNewlyActive(),this.setState({startTime:d()()})),this.scrollActionsIfComplete({prevProps:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.enableVideoPlaybackSpeed,i=n.getClassName,o=n.item,a=n.items,s=n.labels,c=n.settings,u=s.quizAcceptableResponses,l=s.quizAnswerPlaceholder,f=s.quizCorrect,d=s.quizIncorrect,h=s.quizNext,p=s.quizQuestion,m=s.quizSubmit,v=o.id,g=o.media,y=o.title,b=Ne(this.props),_=this.getStepIndex(),w=_===b,x=this.getItemProgress({props:this.props})||{},k=this.getIsComplete({itemProgress:x}),E=this.getIsCorrect({itemProgress:x}),S=ee()(!1,"revealAnswers",c),T=k&&ee()(!1,"revealAnswers",c),O=!k&&this.getCanSubmit({itemProgress:x}),C=this.handleSubmit({isCorrect:E,canSubmit:O,itemProgress:x}),j=X()("selectedIndex",x),A=this.getFeedback({isCorrect:E,selectedIndex:j}),M="q-".concat(v),P=w||k?void 0:{display:"none"};return e.createElement("div",{"aria-hidden":!w,className:i(_)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(we.b,{isActive:w,isComplete:k},e.createElement("div",{style:P},e.createElement(we.f,{isActive:w,num:_,quizQuestion:p,total:U()(a)}),e.createElement(we.g,{value:y,allowTabNavigation:w,id:M}),e.createElement(we.e,{allowTabNavigation:w,enableVideoPlaybackSpeed:r,index:String(_),labels:s,media:g,opts:c}),e.createElement(we.d,{hasNoBorder:this.hasNoBorder()},this.renderType({canSubmit:O,isActive:w,isComplete:k,isCorrect:E,itemProgress:x,onSubmit:C,revealAnswers:S,questionHtmlId:M,quizAcceptableResponses:u,quizAnswerPlaceholder:l})),e.createElement(we.a,{allowTabNavigation:w,canProceed:T,canSubmit:O,onSubmit:C,quizSubmit:m}),e.createElement(we.c,{allowTabNavigation:w,canProceed:T,feedbackRef:function(e){t.feedback=e},hasFeedback:!!A,isCorrect:E,labels:s,onNext:w?function(){return t.handleNext()}:Function.prototype,quizCorrect:f,quizIncorrect:d,quizNext:h,renderText:function(){return e.createElement(ve.a,{className:"quiz-card__feedback-text brand--body brand--linkColor",allowTabNavigation:k&&w,value:A})}})))))}},{key:"getStepIndex",value:function(){return D()(this.props.index)}},{key:"getIsCorrect",value:function(e){var t=e.itemProgress,n=this.props.item;switch(n.type){case Se:return Be({item:n,itemProgress:t});case Te:return Object(se.b)(Fe(t));case Ce:return De({item:n,itemProgress:t});case Oe:default:return C()(X()("selectedIndex",t),A()(Z()("id",n.correct),n.answers))}}},{key:"getFeedback",value:function(e){var t=e.isCorrect,n=e.selectedIndex,r=this.props.item,i=r.answers,o=r.feedback,a=r.feedbackCorrect,s=r.feedbackIncorrect;switch(r.feedbackType){case Ae:return Y()("",[n,"feedback"],i);case Me:return t?a:s;case je:default:return o}}},{key:"hasNoBorder",value:function(){return T()(this.props.item.type,[Se,Te])}},{key:"getCanSubmit",value:function(e){var t=e.itemProgress,n=this.props.item;switch(n.type){case Se:return Object(ue.b)(X()("text",t));case Te:return Ue(t)===U()(X()("answers",n));case Ce:return Object(ue.b)(X()("selectedIndices",t));case Oe:default:return Object(ue.b)(X()("selectedIndex",t))}}},{key:"getIsComplete",value:function(e){var t=e.itemProgress;return ee()(!1,"isComplete",t)}},{key:"getItemProgress",value:function(e){var t=e.props,n=t.item,r=t.lessonProgress;return W()(["items",n.id],r)}},{key:"handleSubmit",value:function(e){var t=this,n=e.isCorrect,r=e.canSubmit,i=e.itemProgress;return function(){if(r){var e=t.state.startTime,o=t.props,a=o.id,s=o.item,c=o.retryAttempts,u=o.title,l=o.settings,f=l.passingScore,h=l.revealAnswers,m=void 0!==h&&h,g=l.passToContinue,y=o.settings,b=s.id,_=ee()(-1,"retryCount",y),w=C()(v()(_,10),v()(c,10)),x=p()(de.d).call(de.d,null,{finalRetryAttempt:w,id:a,isCorrect:n,itemId:b,passingScore:f,revealAnswers:m,passToContinue:g});if(Object(me.o)({duration:{startTime:e,stopTime:d()()},id:a,isCorrect:n,item:s,itemProgress:i,retryAttempts:c,title:u}),m)return Object(ce.a)(x());t.handleNext(x)}}}},{key:"handleNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return[]},t=this.props,n=t.id,r=t.previousComponent,i=Ne(this.props),o=Pe(r);ge.a.pause(),ye.Events.scrollEvent.register("end",function(){var t,r;ye.Events.scrollEvent.remove("end"),Object(ce.a)(y()(t=y()(r=[]).call(r,e())).call(t,Object(de.c)({activeIndex:D()(i),id:n})))}),be.a.animateScroll.scrollTo(o,{containerId:"page-wrap",duration:500,smooth:!0})}},{key:"isNewlyActive",value:function(e){var t=e.prevProps,n=Ne(t),r=Ne(this.props),i=this.getStepIndex();return n!==r&&i===r}},{key:"renderType",value:function(t){var n=t.canSubmit,r=t.isActive,i=t.isComplete,o=t.isCorrect,a=t.itemProgress,s=t.onSubmit,c=t.revealAnswers,u=t.questionHtmlId,l=t.quizAcceptableResponses,f=t.quizAnswerPlaceholder,d=this.props,h=d.item,p=d.prefersKeyboardNavigation,m=r&&!i;switch(h.type){case Se:return e.createElement(_e.a,{allowTabNavigation:r,isComplete:i,isCorrect:o,onChange:this.handleFillIn,onEnterToSubmit:s,options:h.answers,revealAnswers:c,questionHtmlId:u,quizAcceptableResponses:l,quizAnswerPlaceholder:f,value:ee()("","text",a)});case Te:return e.createElement(_e.b,{allowTabNavigation:m,answers:h.answers,canSubmit:n,isActive:r,isComplete:i,matchIndices:h.matchIndices,matches:Fe(a),onEnterToSubmit:s,onMatch:this.handleMatch,prefersKeyboardNavigation:p,revealAnswers:c,titleIndices:h.titleIndices});case Ce:return e.createElement(_e.d,{allowTabNavigation:r,correctIds:h.corrects,isComplete:i,onChange:this.handleResponseToggle,onEnterToSubmit:s,options:h.answers,prefersKeyboardNavigation:p,renderOptionText:function(t){var n=t.title;return e.createElement(ve.a,{value:n,allowTabNavigation:r,component:"span"})},revealAnswers:c,selectedIndices:X()("selectedIndices",a)});case Oe:default:return e.createElement(_e.c,{allowTabNavigation:m,correctId:h.correct,isComplete:i,onChange:this.handleChoiceSelect,onEnterToSubmit:s,options:h.answers,prefersKeyboardNavigation:p,questionHtmlId:u,renderOptionText:function(t){var n=t.title;return e.createElement(ve.a,{className:"quiz-multiple-choice-option__label brand--body",value:n,allowTabNavigation:r})},revealAnswers:c,selectedIndex:X()("selectedIndex",a)})}}},{key:"handleChoiceSelect",value:function(e){var t=e.selectedIndex,n=this.props,r=n.id,i=n.item.id;Object(ce.a)(Object(he.a)({id:r,itemId:i,selectedIndex:t}))}},{key:"handleResponseToggle",value:function(e){var t=e.optionIndex,n=this.props,r=n.id,i=n.item.id;Object(ce.a)(Object(pe.a)({id:r,itemId:i,selectedIndex:t}))}},{key:"handleFillIn",value:function(e){var t=this.props,n=t.id,r=t.item.id;Object(ce.a)(Object(le.a)({id:n,itemId:r,text:e}))}},{key:"handleMatch",value:function(e){var t=e.dragIndex,n=e.dropZoneIndex,r=this.props,i=r.id,o=r.item.id;Object(ce.a)(Object(fe.a)({id:i,itemId:o,dragIndex:t,dropZoneIndex:n}))}},{key:"scrollTopIfNewlyActive",value:function(){var e=this.props.previousComponent,t=Pe(e);be.a.animateScroll.scrollTo(t,{containerId:"page-wrap",smooth:!0})}},{key:"scrollActionsIfComplete",value:function(e){var t=this,n=e.prevProps,r=this.props.settings,i=Ne(this.props),o=this.getStepIndex()===i,a=ee()(!1,"revealAnswers",r);if(o&&a){var s=this.getItemProgress({props:n}),c=this.getIsComplete({itemProgress:s}),u=this.getItemProgress({props:this.props}),l=this.getIsComplete({itemProgress:u});!c&&l&&_()(function(){var e=t.feedback,n=e.offsetHeight,r=e.offsetTop;be.a.animateScroll.scrollTo(n+r,{containerId:"page-wrap",smooth:!0})},750)}}}]),r}(e.Component),Le=x()(I.a),De=function(e){var t=e.item,n=e.itemProgress;return X()("selectedIndices",n)&&C()(ne()(Le,ee()([],"selectedIndices",n)),E()(ne()(Le),z()(E()(P()(A.a)(ee()([],"answers",t)),Z()("id"))))(ee()([],"corrects",t)))},Re=E()(ae.a,ie.a),Be=function(e){var t=e.item,n=e.itemProgress,r=t.settings,i=(void 0===r?{}:r).isCaseSensitive,o=void 0!==i&&i?ae.a:Re;return X()("text",n)&&K()(z()(X()("title")),z()(o),T()(o(X()("text",n))))(ee()([],"answers",t))},Fe=ee()({},"matches"),Ue=E()(U.a,B.a,Fe)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(26),i=n.n(r),o=n(100),a=n.n(o),s=n(68),c=n.n(s),u=n(94),l=n.n(u),f=n(73),d=n.n(f),h=n(58),p=n.n(h),m=n(145),v=n.n(m),g=n(70),y=function(e){var t=e.id,n=e.itemId,r=e.text;return function(e){return e(Object(g.g)({id:t,type:"quiz",updateFn:b({itemId:n,text:r})}))}},b=function(e){var t=e.itemId,n=e.text;return p()(l()(["items",t]),a()(v()(c.a,[n]),d()(["text"]),i()("text",n)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(26),i=n.n(r),o=n(8),a=n.n(o),s=n(38),c=n.n(s),u=n(94),l=n.n(u),f=n(58),d=n.n(f),h=n(136),p=n.n(h),m=n(70),v=n(171),g=function(e){var t=e.id,n=e.itemId,r=e.dragIndex,i=e.dropZoneIndex;return function(e){return e(Object(m.g)({id:t,type:"quiz",updateFn:y({itemId:n,dragIndex:r,dropZoneIndex:i})}))}},y=function(e){var t=e.itemId,n=e.dragIndex,r=e.dropZoneIndex;return d()(l()(["items",t,"matches"]),a()(i()(n,r),p()(c()(r)),v.d))}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(26),i=n.n(r),o=n(94),a=n.n(o),s=n(58),c=n.n(s),u=n(70),l=function(e){var t=e.id,n=e.itemId,r=e.selectedIndex;return function(e){return e(Object(u.g)({id:t,type:"quiz",updateFn:f({itemId:n,selectedIndex:r})}))}},f=function(e){var t=e.itemId,n=e.selectedIndex;return c()(a()(["items",t]),i()("selectedIndex",n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return P});var r=n(190),i=n.n(r),o=n(8),a=n.n(o),s=n(102),c=n.n(s),u=n(100),l=n.n(u),f=n(68),d=n.n(f),h=n(32),p=n.n(h),m=n(94),v=n.n(m),g=n(88),y=n.n(g),b=n(414),_=n.n(b),w=n(73),x=n.n(w),k=n(58),E=n.n(k),S=n(529),T=n.n(S),O=n(42),C=n.n(O),j=n(313),A=n.n(j),M=n(70),P=function(e){var t=e.id,n=e.itemId,r=e.selectedIndex;return function(e){return e(Object(M.g)({id:t,type:"quiz",updateFn:L({itemId:n,selectedIndex:r})}))}},N=function(e){return v()(["items",e])},I=function(e){return a()(N(e),y()("selectedIndices"))},L=function(e){var t,n=e.itemId,r=e.selectedIndex;return a()(C()((t=n,a()(d.a,T()(I(t)))),function(e){return E()(N(e),x()(["selectedIndices"]))}(n)),function(e){var t=e.itemId,n=e.selectedIndex;return E()(I(t),a()(l()(c()(n),A()(_()(n)),i()(n)),C()(p.a,function(){return[]})))}({itemId:n,selectedIndex:r}))}},function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),o=n(154),a=n(2320);t.a=function(t){var n=t.data,r=n.id,s=n.items,c=n.piles,u=n.type,l=t.labels,f=t.lessonHeader,d=t.lessonProgress,h=t.menuButtons,p=t.nextComponent,m=t.previousComponent;return e.createElement(o.c,{type:u},m,e.createElement(o.b,{type:u},h,f,e.createElement(o.a,{type:u},e.createElement(a.a,{id:r,items:s,labels:l,progress:d,piles:c}))),i()("isComplete",d)?p:null)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(28),i=(n(2684),n(8)),o=n.n(i),a=n(74),s=n(450),c=n(685);t.a=function(t){return e.createElement("section",{"aria-label":"Sorting Activity Content",className:"sorting-lesson"},e.createElement(c.a,Object(r.a)({},t,{onCardDrop:o()(a.a,s.d),onReplay:o()(a.a,s.b)})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(154),i=n(2322);t.a=function(t){var n=t.data,o=n.id,a=n.items,s=n.type,c=t.labels,u=t.lessonHeader,l=t.lessonProgress,f=t.loadMedia,d=t.menuButtons,h=t.nextComponent,p=t.previousComponent;return e.createElement(r.c,{type:s},p,e.createElement(r.b,{type:s},d,u,e.createElement(r.a,{type:s},e.createElement(i.a,{id:o,items:a,labels:c,lessonProgress:l,loadMedia:f}))),h)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return M});var r=n(3),i=n.n(r),o=n(28),a=n(9),s=n(10),c=n(11),u=n(14),l=n(6),f=n(689),d=n.n(f),h=(n(2685),n(8)),p=n.n(h),m=n(31),v=n.n(m),g=n(25),y=n.n(g),b=n(15),_=n.n(b),w=n(1082),x=n.n(w),k=n(452),E=n(74),S=n(686);function T(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var O=y()(_()("linePosition"),d.a),C=x()(O),j=p()(E.a,k.a),A=p()(E.a,k.a),M=function(t){Object(c.a)(r,t);var n=T(r);function r(){return Object(a.a)(this,r),n.apply(this,arguments)}return Object(s.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.items,n=e.id,r=v()([0,"id"],t);j({id:n,payload:{activeIndex:0,itemId:r}})}},{key:"render",value:function(){var t=this.props.items;return e.createElement("section",{"aria-label":"Timeline Content",className:"timeline-lesson"},e.createElement(S.a,Object(o.a)({},this.props,{isLearner:!0,items:C(t),progress:_()("lessonProgress",this.props),onEnter:j,onLeave:A})))}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(154),i=n(2324);t.a=function(t){var n=t.data,o=t.labels,a=t.lessonHeader,s=t.lessonProgress,c=t.menuButtons,u=t.nextComponent,l=t.prefersKeyboardNavigation,f=t.previousComponent,d=t.enableVideoPlaybackSpeed;return e.createElement(r.c,{type:n.type},f,e.createElement(r.b,{type:n.type},c,a,e.createElement(r.a,null,e.createElement(i.a,{data:n,labels:o,lessonProgress:s,prefersKeyboardNavigation:l,enableVideoPlaybackSpeed:d}))),u)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return M});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(33),f=n.n(l),d=n(4),h=n.n(d),p=(n(2686),n(2)),m=n.n(p),v=n(57),g=n.n(v),y=n(31),b=n.n(y),_=n(24),w=n.n(_),x=n(15),k=n.n(x),E=n(1),S=n.n(E),T=n(74),O=n(1197),C=n(556),j=n(352);function A(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var M=function(t){Object(s.a)(r,t);var n=A(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={load:!1},t}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e=this;f()(function(){e.setState({load:!0})},800)}},{key:"render",value:function(){var t,n=this.props,r=n.enableVideoPlaybackSpeed,i=n.labels,o=n.lessonProgress,a=this.props.data,s=a.id,c=a.media,u=a.settings,l=w()(0,["audioVideoPlayhead"],o),f=k()("currentTime",o),d=b()(["video","key"],c),p=b()(["lessonProgress","percentComplete"],o),v=b()(["video","poster"],c),g=m()("video-lesson",{"video-lesson--visible":this.state.load});return e.createElement("div",null,e.createElement("div",{className:"page__content-container"},e.createElement("section",{"aria-label":"Video Content",className:g},this.state.load?e.createElement("div",{className:"video-lesson__item"},e.createElement(j.a,{audioVideoPlayhead:l,canAdjustPlaybackSpeed:r,canRestrictSeek:u.forwardSeekRestricted,currentTime:f,id:s,labels:i,percentComplete:p,poster:v,progressChanged:P(s),recordMediaPlayheadPosition:h()(t=this.handleRecordMediaPlayheadPosition).call(t,this,s),src:d})):null)))}},{key:"handleRecordMediaPlayheadPosition",value:function(e,t){Object(T.a)(Object(O.a)({lessonId:e,playheadPercentage:t}))}}],[{key:"propTypes",get:function(){return{id:S.a.any,labels:S.a.object,lessonProgress:S.a.object.isRequired,media:S.a.object,recordMediaPlayheadPosition:S.a.func}}},{key:"defaultProps",get:function(){return{lessonProgress:{audioVideoPlayhead:0,currentTime:0,percentComplete:0}}}}]),r}(e.Component),P=g()(2,function(e,t){var n=t.currentTime,r=t.percentComplete;return Object(T.a)(Object(C.c)({id:e,currentTime:n,percentComplete:r}))})}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(161),i=n.n(r),o=n(38),a=n.n(o),s=n(69),c=n.n(s),u=n(32),l=n.n(u),f=n(15),d=n.n(f),h=n(19),p=n.n(h),m=n(52),v=n.n(m),g=n(81),y=function(e,t){var n=e.completedAt,r=e.lessons,o=e.trackingQuizId,s=t.percentComplete,u=function(e,t){return e&&c()(p()("id",e),t)}(o,r);if(u&&100===s&&l()(n)){var f=u.settings,h=t.lessons[o],m=d()("score",h);Object(g.e)(function(e,t){return t>=v()(-1,"passingScore",e)}(f,m),m,o,function(e){var t=v()(-1,"retryCount",e);return a()(i()(t,10),i()(e.retryAttempts,10))}(f))}}},function(e,t,n){"use strict";(function(e){var r=n(28),i=n(16),o=n.n(i),a=(n(2687),n(86)),s=n(2),c=n.n(s),u=function(t){var n=t.childElements,r=t.labels,i=t.search,s=i.activeLessons,u=i.term,l=r.noResults;return e.createElement(a.a,{classNames:"lesson-lists__list",key:"results",timeout:600},e.createElement(a.d,{className:"lesson-lists__list lesson-lists__list--results",component:"ol",role:"list",key:"results"},0===s.length?function(t){var n=t.noResults,r=t.searchTerm,i=c()("lesson-lists__item",{"visually-hidden":!(r&&r.length)});return e.createElement(a.a,{classNames:"lesson-lists__item",exit:!1,key:"no-results",timeout:400},e.createElement("li",{className:i},e.createElement("span",{className:"lesson-lists__no-results"},n,' "',r,'"')))}({noResults:l,searchTerm:u}):function(t){var n=t.activeLessons,r=t.childElements;return o()(r).call(r,function(t){return e.createElement(a.a,{classNames:"lesson-lists__item",exit:!1,key:t.key,timeout:100*n.length+300},t)})}({activeLessons:s,childElements:n})))},l=function(t){var n=t.children,i=t.index,o=t.isSearch?{role:"listitem"}:{};return e.createElement("li",Object(r.a)({className:"lesson-lists__item",style:{transitionDelay:"".concat(.1*i,"s")}},o),n)};t.a=function(t){var n,r=t.children,i=t.labels,s=t.search,c=s.active,f=o()(n=e.Children).call(n,r,function(t,n){return e.createElement(l,{index:n,isSearch:c},t)}),d=c?"Search Results":"Course Outline";return e.createElement(a.d,{"aria-label":d,className:"lesson-lists",component:"nav"},c?u({childElements:f,labels:i,search:s}):function(t){return e.createElement(a.a,{classNames:"lesson-lists__list",key:"list",timeout:600},e.createElement("ol",{className:"lesson-lists__list",key:"list"},t))}(f))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(7),c=n(11),u=n(14),l=n(6),f=n(4),d=n.n(f),h=(n(2688),n(152)),p=n(123),m=n(2),v=n.n(m),g=n(1),y=n.n(g),b=n(316),_=n.n(b),w=n(43),x=n(549),k=n(20);function E(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var S=function(t){Object(c.a)(r,t);var n=E(r);function r(e){var t,i;return Object(o.a)(this,r),(i=n.call(this,e)).onClick=d()(t=i.onClick).call(t,Object(s.a)(i)),i}return Object(a.a)(r,[{key:"isActive",value:function(){return this.props.match.url==="/lessons/".concat(this.props.id)}},{key:"componentWillMount",value:function(){var e=this.isActive();this.setState({visited:e})}},{key:"onClick",value:function(e){var t=this.props,n=t.focusLessonContent,r=t.id,i=t.onClick,o=t.onMobileActiveClick;if(this.isActive()){if(e.preventDefault(),!o)return n(),!1;o()}this.setState({visited:!0}),i(r)}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.icon,i=t.labels,o=t.resultsCount,a=t.title,s=i.result,c=i.results,u=v()("lesson-link","lesson-search-link",{"lesson-link--visited lesson-search-link--visited":this.state.visited}),l=1===o?s:c,f=[e.createElement("div",{"aria-hidden":"true",className:"lesson-link__icon lesson-search-link__icon",key:"icon-".concat(n)},e.createElement(x.a,{icon:r})),e.createElement("div",{className:"lesson-link__name lesson-search-link__name brand--ui",key:"name-".concat(n)},e.createElement(w.a,{value:_()(a,{length:60})}),e.createElement("span",{className:"lesson-search-link__results"},o," ",l))],d=this.props.allowTabNavigation,p=Object(k.m)(d);return e.createElement(h.c,{activeClassName:"lesson-link--active lesson-search-link--active brand--beforeBackground","aria-hidden":!d,className:u,onClick:this.onClick,tabIndex:p,to:"/lessons/"+encodeURIComponent(n)},f)}}],[{key:"propTypes",get:function(){return{focusLessonContent:y.a.func.isRequired,icon:y.a.string.isRequired,id:y.a.any.isRequired,onClick:y.a.func.isRequired,resultsCount:y.a.number.isRequired,title:y.a.string.isRequired,type:y.a.string.isRequired}}}]),r}(e.Component);t.a=Object(p.f)(S)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(16),f=n.n(l),d=(n(2692),n(2)),h=n.n(d);function p(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(t){Object(s.a)(r,t);var n=p(r);function r(){return Object(o.a)(this,r),n.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var t,n=this,r=this.props,i=r.children,o=r.isActive,a=r.sectionId,s=r.sectionLabel,c=h()("section-lists",{"section-lists__closed":!o}),u=this.ol?this.ol.offsetHeight:null;return e.createElement("div",{"aria-hidden":!o,"aria-label":s,className:c,id:a,style:{maxHeight:u}},e.createElement("ol",{ref:function(e){return n.ol=e}},f()(t=e.Children).call(t,i,function(t){return e.createElement("li",{className:"lesson-lists__item"},t)})))}}]),r}(e.Component);t.a=m}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2694);var r=n(448),i=n.n(r),o=n(449);t.a=function(){return e.createElement(i.a,{title:Object(o.a)()},e.createElement("div",null,e.createElement("div",{className:"not-found"},e.createElement("div",{className:"not-found__copy"},e.createElement("h1",{className:"not-found__copy--heading"},"Hmm..."),e.createElement("div",null,"We can't seem to find the page you're looking for.")))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(3),i=n.n(r),o=n(9),a=n(10),s=n(11),c=n(14),u=n(6),l=n(4),f=n.n(l),d=(n(2701),n(2)),h=n.n(d),p=n(1),m=n.n(p);function v(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var g=function(t){Object(s.a)(r,t);var n=v(r);function r(e){var t;return Object(o.a)(this,r),(t=n.call(this,e)).state={failAttempt:!1,shouldShake:!1},t}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e;this.dialog.addEventListener("animationend",f()(e=this.handleRemoveAnimationEnd).call(e,this))}},{key:"componentWillReceiveProps",value:function(e){var t=e.failAttempt,n=this.state.shouldShake;this.setState({failAttempt:t&&n})}},{key:"componentWillUnmount",value:function(){var e;this.dialog.removeEventListener("animationend",f()(e=this.handleRemoveAnimationEnd).call(e,this))}},{key:"handleRemoveAnimationEnd",value:function(){this.setState({failAttempt:!1,shouldShake:!1})}},{key:"onSubmitPassword",value:function(e){var t=this;e.preventDefault();var n=this.props.onSubmit;this.setState({shouldShake:!0},function(){n(t.refs.password)})}},{key:"render",value:function(){var t,n=this,r=this.state.failAttempt,i=h()("brand--border","share-password-dialog",{"fail-password":r});return e.createElement("div",{className:i,ref:function(e){n.dialog=e}},e.createElement("h1",{className:"heading"},"Enter Password"),e.createElement("p",{className:"instructions"},"You need a password to view this course. If you don’t know it, ask the person who shared this with you."),e.createElement("form",{onSubmit:f()(t=this.onSubmitPassword).call(t,this)},e.createElement("label",{htmlFor:"share-password",className:"label"},"password"),e.createElement("input",{id:"share-password",ref:"password",type:"password",className:"input"}),e.createElement("div",{className:"dialog__toolbar"},e.createElement("input",{type:"submit",className:"button brand--background",value:"View"}))))}}],[{key:"propTypes",get:function(){return{onSubmit:m.a.func.isRequired,failAttempt:m.a.bool.isRequired}}}]),r}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";e.exports=n(2702)},function(e,t,n){t.hot=function(e){return e}},function(e,t,n){"use strict";var r=n(2270),i=n.n(r);function o(e,t){return e===t}var a=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),s=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),c=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),u=e(function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return c.apply(null,e)});return u.resultFunc=a,u.dependencies=s,u.recomputations=function(){return o},u.resetRecomputations=function(){return o=0},u}}(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}});var s=n(114),c=(n(112),n(163)),u=n.n(c),l=n(101),f=n.n(l),d=n(100),h=n.n(d),p=n(32),m=n.n(p),v=n(19),g=n.n(v),y=n(208),b=n.n(y),_=n(66),w=n(5),x=n.n(w),k=n(2271),E=n.n(k),S=function(e){var t,n,r=e.alpha,i=e.color,o=e.url,a=E()(i,r);return{backgroundImage:x()(t=x()(n="linear-gradient(0deg,".concat(a,",")).call(n,a,'), url("')).call(t,o,'")')}},T=n(454),O=n.n(T),C=(O()({ACCENT:null,DARK:null,LIGHT:null}),O()({LARGE:null,MEDIUM:null,SMALL:null}),O()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),O()({COMPACT:null,OVERLAY:null,SIDEBAR:null})),j=(O()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),O()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),O()({ACCENT:null,DARK:null,IMAGE:null,LIGHT:null,TINT:null}),O()({ACCENT:null,DARK:null,LIGHT:null}),O()({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),"hidden"),A="open",M=(g()("navigationMode","restricted"),g()("sidebarMode",A),f()(g()("sidebarMode",j))),P=(g()("navigationType",C.SIDEBAR),g()("navigationType",C.COMPACT)),N=h()(b()(m.a,"navigation"),M,g()("navigation",!0));u()(P,N);function I(e){return null==e?void 0:e.course}function L(){return Object(s.c)(function(e){return I(e)})}n.d(t,"a",function(){return L});a(function(e){return I(e).coverImage},function(e){return n=(t=e).alpha,r=t.hasOverlay,i=void 0===r||r,o=t.media,a=(void 0===o?{}:o).image,c=(s=void 0===a?{}:a).key,u=s.src,(l=c?Object(_.a)(s):u)?i?S({alpha:n/100,color:"#000",url:l}):{backgroundImage:'url("'.concat(l,'")')}:null;var t,n,r,i,o,a,s,c,u,l}),a(I,function(e){var t;return null===(t=e.authors)||void 0===t?void 0:i()(t).call(t,function(t){return t.id===e.selectedAuthorId||t.id===e.author})})},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(60),a=n.n(o),s=n(45),c=n.n(s),u=n(44),l=n.n(u),f=n(34),d=n.n(f),h=n(49),p=n.n(h),m=n(75),v=n.n(m),g=n(62),y=n.n(g),b=n(120),_=n(12),w=n(9),x=n(10),k=n(11),E=n(14),S=n(6),T=n(5),O=n.n(T),C=n(4),j=n.n(C),A=n(59),M=n.n(A),P=n(16),N=n.n(P),I=n(47),L=n.n(I),D=n(112),R=n.n(D),B=(n(2598),n(0)),F=n.n(B),U=n(123),q=n(8),z=n.n(q),H=n(232),W=n.n(H),V=n(38),Y=n.n(V),G=n(55),K=n.n(G),$=n(69),X=n.n($),Q=n(137),Z=n.n(Q),J=n(124),ee=n.n(J),te=n(143),ne=n.n(te),re=n(53),ie=n.n(re),oe=n(29),ae=n.n(oe),se=n(73),ce=n.n(se),ue=n(24),le=n.n(ue),fe=n(25),de=n.n(fe),he=n(15),pe=n.n(he),me=n(19),ve=n.n(me),ge=n(268),ye=n.n(ge),be=n(76),_e=n.n(be),we=n(21),xe=Object(we.equals)(null),ke=Object(we.complement)(xe),Ee=n(74),Se=n(23),Te=n(77),Oe=n(297),Ce=n(1197),je=n(725),Ae=n(2280),Me=n(1198),Pe=n(159),Ne=n.n(Pe),Ie=n(129),Le=n.n(Ie),De=n(174),Re=n.n(De),Be=n(133),Fe=n.n(Be),Ue=n(108),qe=n.n(Ue);function ze(e,t){var n=void 0!==Le.a&&Re()(e)||e["@@iterator"];if(!n){if(Fe()(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return He(e,t);var r=L()(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Ne()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return He(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var We=qe.a.mark(function e(t){var n,r,i,o,a,s;return qe.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.querySelectorAll("input, textarea, select, button, a, [tabindex]"),r=ze(n),e.prev=2,r.s();case 4:if((i=r.n()).done){e.next=12;break}if(o=i.value,a=window.getComputedStyle(o),s=a.display,"-1"===o.getAttribute("tabindex")||"none"===s){e.next=10;break}return e.next=10,o;case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}},e,null,[[2,14,17,20]])}),Ve=Object(we.invoker)(1,"getAttribute"),Ye=Object(we.either)(Object(we.equals)("0"),we.isNil),Ge=Object(we.when)(Ye,Object(we.always)(1/0)),Ke=Object(we.compose)(Ge,Ve("tabindex")),$e=Object(we.sortBy)(Ke),Xe=Object(we.compose)(we.head,$e,Ne.a,We),Qe=n(20),Ze=n(65),Je=n(1163),et=["id"];function tt(e,t){var n=a()(e);if(c.a){var r=c()(e);t&&(r=M()(r).call(r,function(t){return l()(e,t).enumerable})),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)d()(n=tt(Object(r),!0)).call(n,function(t){Object(_.a)(e,t,r[t])});else if(p.a)v()(e,p()(r));else{var i;d()(i=tt(Object(r))).call(i,function(t){y()(e,t,l()(r,t))})}}return e}function rt(e){var t=function(){if("undefined"==typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(S.a)(e);if(t){var o=Object(S.a)(this).constructor;n=i()(r,arguments,o)}else n=r.apply(this,arguments);return Object(E.a)(this,n)}}var it=Ze.b.lessonPreview,ot=Ze.b.lessonEdit,at=["timeline"],st=function(e){Object(k.a)(n,e);var t=rt(n);function n(){var e,r;Object(w.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.call.apply(t,O()(e=[this]).call(e,o))).lastDivRef=Object(B.createRef)(),r.state={randomQuestions:{}},r}return Object(x.a)(n,[{key:"componentDidMount",value:function(){var e,t;this.handleKeyDown=j()(e=this.handleKeyDown).call(e,this),this.handleClick=j()(t=this.handleClick).call(t,this),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClick)}},{key:"componentDidUpdate",value:function(){this.scrollIfContinued()}},{key:"handleKeyDown",value:function(e){if(this.lastCompletedContinueIndex&&Object(Se.l)(e)){e.preventDefault();for(var t=!e.shiftKey,n=this.lastCompletedContinueIndex,r=document.querySelector(".page-wrap"),i=_t(t),o=xt(t);i(n,this.props.blocks.length);){n=wt(n,t);var a=le()(null,["blocks",n,"id"],this.props);if(o(r.querySelector('[data-block-id="'.concat(a,'"]'))))break}delete this.lastCompletedContinueIndex}}},{key:"handleClick",value:function(){delete this.lastCompletedContinueIndex}},{key:"render",value:function(){this.dividerNumber=0;var e=this.props.labels.lessonContentLandmark;return F.a.createElement("section",{"aria-label":e,className:"blocks-lesson","data-ba":it.container},this.renderBlocks(),F.a.createElement("div",{className:"noOutline",ref:this.lastDivRef,tabIndex:Qe.i}))}},{key:"getBlockType",value:function(e){var t,n,r=e.variant,i=O()(t="".concat(e.family," ")).call(t,r);"divider numbered divider"===i&&this.dividerNumber++;var o=this.props,a=o.animateBlockEntrance,s=o.color,c=o.courseId,u=o.courseTitle,l=o.enableVideoPlaybackSpeed,f=o.handleNavigate,d=o.handleStorylineFullscreen,h=o.lessonId,p=o.loadMedia,m=o.labels,v=o.lessonProgress,g=o.match,y=o.menuOpen,b=o.partnerContent,w=o.publishedAt,x=o.prefersKeyboardNavigation,k=o.previewType,E=o.tenantId,S="audio"===r||"video"===r?{lessonId:h,blockId:e.blockId,itemId:e.items[0].id}:{},T=ae()(ce()(["type"],e),{animateBlockEntrance:a,color:s,courseId:c,courseTitle:u,dividerNumber:this.dividerNumber,enableVideoPlaybackSpeed:l,handleNavigate:f,handleStorylineFullscreen:d,isLearner:!0,labels:m,lessonId:h,loadMedia:p,match:g,menuOpen:y,partnerContent:b,prefersKeyboardNavigation:x,previewType:k,progress:v,publishedAt:w,recordMediaPlayheadPosition:j()(n=this.handleRecordMediaPlayheadPosition).call(n,this,S),tenantId:E});if("knowledgeCheck draw from question bank"===i){var C=this.state.randomQuestions[T.blockId],A=null,M=T.items[0];if(!C&&M.questions?(A=Object(Je.b)(M),this.setState({randomQuestions:nt(nt({},this.state.randomQuestions),{},Object(_.a)({},T.blockId,A))})):A=C,A&&(T.originalVariant=T.variant,T.variant=Je.a[A.type],T.items=[A]),!A)return F.a.createElement("div",null)}return F.a.createElement(je.a,T)}},{key:"renderBlocks",value:function(){var e,t,n;return M()(e=N()(t=function e(t,n,r){var i;if(t.length){var o=L()(t).call(t,-1)[0],a=le()(!1,["items",o.id,"isComplete"],r);if(!a)return t}var s=N()(i=Object(Te.j)(ut(r),L()(n).call(n,t.length))).call(i,ct);return s.length?e(O()(t).call(t,s),n,r):t}([],this.props.blocks,this.props.lessonProgress)).call(t,j()(n=this.buildBlock).call(n,this,this.props.lessonProgress))).call(e,ke)}},{key:"buildBlock",value:function(e,t,n,r){var i,o=function(e,t,n){var r=e.id,i=Object(b.a)(e,et);if("continue"===i.family){var o=le()("",["items",0,"type"],i);return ae()(nt({blockId:r},i),{canContinue:gt({continueType:o,blocks:t,progress:n}),lessonProgress:n})}return nt({blockId:r},i)}(t,L()(r).call(r,0,-1),e),a=this.getBlockType(o);if(null===a)return null;var s,c,u=o.blockId,l=o.family,f=o.variant,d=o.items,h="block-".concat(u),p=le()(!1,["items",u,"isComplete"],e);return lt({family:l,isComplete:p})?null:ft({family:l,variant:f})?F.a.createElement("div",{className:"noOutline","data-ba":ot.block,"data-ba-index":n,key:h,"data-block-id":u,tabIndex:Qe.i},F.a.createElement(Ae.a,{onStep:j()(s=this.handleStep).call(s,this,l,f,u,d),isFirstLesson:this.props.isFirstLesson,onViewed:j()(c=this.handleViewed).call(c,this,d,u)},a)):F.a.createElement("div",{className:"noOutline","data-ba":ot.block,"data-ba-index":n,key:h,"data-block-id":u,tabIndex:Qe.i},F.a.createElement(Me.a,{key:h,onViewed:j()(i=this.handleViewed).call(i,this,d,u),isFirstLesson:this.props.isFirstLesson},a))}},{key:"handleRecordMediaPlayheadPosition",value:function(e,t){var n=e.lessonId,r=e.blockId,i=e.itemId;Object(Ee.a)(Object(Ce.a)({itemId:i,blockId:r,lessonId:n,playheadPercentage:t}))}},{key:"handleStep",value:function(e,t,n,r,i){var o=this.props,a=o.blocks,s=o.lessonId,c=o.lessonProgress,u=o.nextLesson,l=o.history,f="draw from question bank"===t?r[0]:X()(ve()("id",i),r),d=le()(!1,["items",i,"isComplete"],c),h=de()(ne.a,ve()("id",n))(a);"continue"!==e||d||(this.continueFromId=n),Object(Ee.a)(Object(Oe.e)({id:n,lessonId:s,items:[f]})),"continue"===e&&h&&u&&l.push("/lessons/".concat(encodeURIComponent(u)))}},{key:"handleViewed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.props.lessonId;Object(Ee.a)(Object(Oe.e)({id:t,lessonId:n,items:e}))}},{key:"scrollIfContinued",value:function(){if(this.continueFromId){var e=this.props.blocks,t=Z()(ve()("id",this.continueFromId),e),n=ee()(t),r=le()(null,["blocks",n,"id"],this.props);if(r){var i=document.querySelector(".page-wrap"),o=i.querySelector('[data-block-id="'.concat(r,'"]')),a=o?o.getBoundingClientRect().top:0;if(ye.a.animateScroll.scrollTo(a+i.scrollTop,{smooth:!0,containerId:"page-wrap"}),this.lastCompletedContinueIndex=t,o){var s=Xe(o);s?s.focus():o.focus()}}else{var c=this.lastDivRef.current;c&&c.focus()}delete this.continueFromId}}}]),n}(F.a.Component);t.a=Object(U.f)(st);function ct(e,t,n){var r=L()(n).call(n,-1)[0]||{},i="continue"===r.family&&le()(!1,["items",0,"type"],r);return"continue"===e.variant||i&&("completeBlock"!==i||t===n.length-1||t===n.length-2)?ae()(e,{requiresInteraction:!0}):e}var ut=function(e){return function(t){var n=t.family,r=t.items,i=le()({},0,r);return"continue"===n&&!le()(!1,["items",i.id,"isComplete"],e)}},lt=function(e){var t=e.family,n=e.isComplete;return"continue"===t&&n},ft=function(e){var t=e.family,n=e.variant;return(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(n))&&!R()(at).call(at,n)},dt=K()(ve()("isComplete",!0)),ht=z()(_e.a,pe()("items")),pt=z()(dt,ht),mt=z()(ie.a,pt),vt=z()(pe()("id"),ne.a),gt=function(e){var t=e.continueType,n=e.blocks,r=e.progress;switch(t){case"completeAll":return Y()(ie()(n),mt(r));case"completeBlock":return le()(!1,["items",vt(n),"isComplete"],r);default:return!0}},yt=function(e,t){return e<t},bt=function(e){return e>=0},_t=function(e){return e?yt:bt},wt=function(e,t){return t?ee()(e):W()(e)},xt=function(e){return e?Qe.c:Qe.d}},function(e,t,n){"use strict";var r,i=n(3),o=n.n(i),a=n(12),s=n(9),c=n(10),u=n(7),l=n(11),f=n(14),d=n(6),h=n(5),p=n.n(h),m=n(4),v=n.n(m),g=n(112),y=n.n(g),b=n(0),_=n.n(b),w=n(731),x=n.n(w),k=n(692),E=n.n(k),S=n(2297),T=n.n(S),O=n(60),C=n.n(O),j=n(45),A=n.n(j),M=n(59),P=n.n(M),N=n(44),I=n.n(N),L=n(34),D=n.n(L),R=n(49),B=n.n(R),F=n(75),U=n.n(F),q=n(62),z=n.n(q),H=n(120),W=n(679),V=n.n(W),Y=n(98),G=n.n(Y),K=n(2306),$=n.n(K),X=n(2299),Q=n.n(X),Z=n(2303),J=n.n(Z),ee=n(2190),te=n.n(ee),ne=n(2305),re=n.n(ne),ie=n(2301),oe=n.n(ie),ae=n(2298),se=n.n(ae),ce=n(2302),ue=n.n(ce),le=n(2304),fe=n.n(le),de=n(2300),he=n.n(de),pe=["alt"];function me(e,t){var n=C()(e);if(A.a){var r=A()(e);t&&(r=P()(r).call(r,function(t){return I()(e,t).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)D()(n=me(Object(r),!0)).call(n,function(t){Object(a.a)(e,t,r[t])});else if(B.a)U()(e,B()(r));else{var i;D()(i=me(Object(r))).call(i,function(t){z()(e,t,I()(r,t))})}}return e}var ge=["a","alpha","b","background","c","colors","f","format","h","height","q","quality","r","rasterize","s","scale","w","width"];var ye=se()(ge),be=function(e){return!V()(Number(e))},_e=Q()(2,function(e){var t=he()(be,oe()(e));return ue()(ye,J()({h:t,height:t,w:t,width:t}),fe.a,re()(te()(":")),te()(","))}),we=function(e){var t=e.imagesUri,n=e.hidpi,r=e.imageKey;if(null!=r){var i=function(e,t,n){var r,i;return p()(r=p()(i="".concat(e,"/")).call(i,n,"/")).call(r,t)}(t,r,_e(n?2:1,e));return{backgroundImage:'url("'.concat(i,'")')}}};var xe="styles_image__32Tdo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".styles_image__32Tdo{display:inline-block}",{insertAt:"top"});var ke=$()(p()(r=["imagesUri","imageKey","hidpi","style"]).call(r,ge)),Ee=function(e){return ve(ve({},e.style),we(e))},Se=function(e){var t=e.alt,n=Object(H.a)(e,pe);return _.a.createElement("span",G()({"aria-label":t,className:xe,role:"img",style:Ee(n)},ke(n)))};Se.defaultProps={alt:"Image",imagesUri:"",style:{}};var Te=Se,Oe=n(50),Ce=n(246),je=n.n(Ce),Ae=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 14 13",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.62L13.37.17a.5.5 0 0 1 .63.483v8.581a1 1 0 0 1-.74.966L8 11.62v-10zm-1.57 0v10L1.169 10.2a1 1 0 0 1-.74-.966V.653A.5.5 0 0 1 1.06.17l5.37 1.45z"}))};Ae.displayName="IconBookFilled",Ae.defaultProps={desc:"Solid colored book",height:"12",title:"Book",width:"14"};var Me=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 11 8",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"}))};Me.displayName="IconCheckMark",Me.defaultProps={desc:"A check mark",height:"8",title:"Check mark",width:"11"};var Pe=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cct-".concat(u),f="ccd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 15 15",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zM5.458 7.008a.89.89 0 0 0-1.208 0 .776.776 0 0 0 0 1.141l1.708 1.615a.89.89 0 0 0 1.208 0l3.584-3.386a.776.776 0 0 0 0-1.142.89.89 0 0 0-1.208 0l-2.98 2.816-1.104-1.044z"}))};Pe.displayName="IconCheckmarkCircle",Pe.defaultProps={desc:"Checkmark inside of a solid circle",height:"15",title:"Checkmark Circle",width:"15"};var Ne=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cdt-".concat(u),f="cdd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 8 5",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M1.46.582a.65.65 0 1 0-.92.919l3 3a.65.65 0 0 0 .92 0L7.5 1.46a.65.65 0 1 0-.92-.92L4 3.122 1.46.582z"}))};Ne.displayName="IconChevronDown",Ne.defaultProps={desc:"Chevron pointing downwards",height:"5",title:"Chevron down",width:"8"};var Ie=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 6 10",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z"}))};Ie.displayName="IconChevronLeftRounded",Ie.defaultProps={desc:"Rounded chevron pointing left",height:"10",title:"Rounded chevron left",width:"6"};var Le=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cdt-".concat(u),f="cdd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,fill:"none",focusable:"false",height:i,role:o,viewBox:"0 0 13 13",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{clipRule:"evenodd",d:"M6.5 11.375C3.81875 11.375 1.625 9.18125 1.625 6.5C1.625 3.81875 3.81875 1.625 6.5 1.625C9.18125 1.625 11.375 3.81875 11.375 6.5C11.375 9.18125 9.18125 11.375 6.5 11.375ZM6.5 0C2.925 0 0 2.925 0 6.5C0 10.075 2.925 13 6.5 13C10.075 13 13 10.075 13 6.5C13 2.925 10.075 0 6.5 0Z",fill:"currentColor",fillRule:"evenodd"}),_.a.createElement("path",{clipRule:"evenodd",d:"M7.3125 3.25H5.6875V7.3125H9.75V5.6875H7.3125V3.25Z",fill:"currentColor",fillRule:"evenodd"}))};Le.displayName="IconClock",Le.defaultProps={desc:"An analog clock",height:"13",title:"Clock",width:"13"};var De=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 14 14",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("g",{transform:"translate(-18 -659)"},_.a.createElement("path",{fill:"currentColor",d:"M31.7,659.3 C31.3,658.9 30.7,658.9 30.3,659.3 L25,664.6 L19.7,659.3 C19.3,658.9 18.7,658.9 18.3,659.3 C17.9,659.7 17.9,660.3 18.3,660.7 L23.6,666 L18.3,671.3 C17.9,671.7 17.9,672.3 18.3,672.7 C18.5,672.9 18.7,673 19,673 C19.3,673 19.5,672.9 19.7,672.7 L25,667.4 L30.3,672.7 C30.5,672.9 30.8,673 31,673 C31.2,673 31.5,672.9 31.7,672.7 C32.1,672.3 32.1,671.7 31.7,671.3 L26.4,666 L31.7,660.7 C32.1,660.3 32.1,659.7 31.7,659.3"})))};De.displayName="IconClose",De.defaultProps={desc:"Image of an X",height:"14",title:"Close",width:"14"};var Re=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cdt-".concat(u),f="cdd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,fill:"none",focusable:"false",height:i,role:o,viewBox:"0 0 16 16",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.59335 0.966685L13.9267 3.63335C14.3798 3.85851 14.6664 4.32072 14.6667 4.82669V11.18C14.6664 11.686 14.3798 12.1482 13.9267 12.3734L8.59335 15.04C8.21777 15.228 7.77559 15.228 7.40001 15.04L2.06668 12.3734C1.61401 12.1453 1.32982 11.6802 1.33335 11.1734V4.82669C1.33361 4.32072 1.62024 3.85851 2.07335 3.63335L7.40668 0.966685C7.78043 0.780962 8.21959 0.780962 8.59335 0.966685Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),_.a.createElement("path",{d:"M1.54669 4.10669L8.00003 7.33336L14.4534 4.10669",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),_.a.createElement("path",{d:"M8 15.1733V7.33331",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}))};function Be(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Re.displayName="IconCube",Re.defaultProps={desc:"Image of a cube",height:"16",title:"Cube",width:"16"};Be(".IconError_iconError__1pbVY{color:#d0021b}",{insertAt:"top"});var Fe=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 18 18",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",d:"m9 0a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9zm-0.73438 4h1.6309v4.0039c0 0.425-0.0205 0.841-0.0625 1.25-0.042 0.408-0.097969 0.84083-0.16797 1.2988h-1.1699c-0.07-0.457-0.12597-0.89083-0.16797-1.2988a12.206 12.206 0 0 1-0.0625-1.25v-4.0039zm0.79883 8.1133a1.06 1.06 0 0 1 0.74805 0.30859 1.06 1.06 0 0 1 0.30859 0.74805 1.07 1.07 0 0 1-0.30859 0.75 1.077 1.077 0 0 1-0.74805 0.30078 1.095 1.095 0 0 1-0.75977-0.30078 0.995 0.995 0 0 1-0.22461-0.33398 1.069 1.069 0 0 1-0.080078-0.41602c0-0.145 0.027078-0.28111 0.080078-0.41211a0.987 0.987 0 0 1 0.22461-0.33594 1.103 1.103 0 0 1 0.75977-0.30859z"}))};Fe.displayName="IconError",Fe.defaultProps={className:"IconError_iconError__1pbVY",desc:"A red circle with a white exclamation point in the middle",height:"18",title:"Error",width:"18"};var Ue=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cdt-".concat(u),f="cdd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,fill:"none",focusable:"false",height:i,role:o,viewBox:"0 0 16 16",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("svg",{fill:"none",height:"9",viewBox:"0 0 16 9",width:"16",xmlns:"http://www.w3.org/2000/svg"},_.a.createElement("path",{clipRule:"evenodd",d:"M7.99992 1.33337L1.33325 4.66671L7.99992 8.00004L14.6666 4.66671L7.99992 1.33337Z",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"})),_.a.createElement("svg",{fill:"none",height:"6",viewBox:"0 0 16 6",width:"16",xmlns:"http://www.w3.org/2000/svg",y:"40%"},_.a.createElement("path",{d:"M1.33325 1.33331L7.99992 4.66665L14.6666 1.33331",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"})),_.a.createElement("svg",{fill:"none",height:"6",viewBox:"0 0 16 6",width:"16",xmlns:"http://www.w3.org/2000/svg",y:"60%"},_.a.createElement("path",{d:"M1.33325 0.999634L7.99992 4.33297L14.6666 0.999634",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"})))};Ue.displayName="IconFilter",Ue.defaultProps={desc:"Three squares stacked on one another",height:"16",title:"Filter",width:"16"};var qe=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 14 13",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.15 0C8.838 0 7.7.7 7 1.75 6.3.7 5.162 0 3.85 0 1.75 0 0 1.75 0 3.85c0 3.85 7 9.538 7 9.538S14 7.7 14 3.85C14 1.75 12.25 0 10.15 0"}))};qe.displayName="IconHeartFilled",qe.defaultProps={desc:"Solid colored heart",height:"15",title:"Heart",width:"16"};var ze=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 16 15",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{stroke:"currentColor",fill:"none",fillRule:"evenodd",d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"}))};ze.displayName="IconHeartOutline",ze.defaultProps={desc:"Outline of a heart",height:"15",title:"Heart",width:"16"};var He=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cdt-".concat(u),f="cdd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,fill:"none",focusable:"false",height:i,role:o,viewBox:"0 0 16 16",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{clipRule:"evenodd",d:"M2 4C2 2.89543 2.89543 2 4 2H12C13.1046 2 14 2.89543 14 4V12C14 13.1046 13.1046 14 12 14H4C2.89543 14 2 13.1046 2 12V4Z",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}),_.a.createElement("path",{d:"M2 6H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}),_.a.createElement("path",{d:"M6 14V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}))};He.displayName="IconLayout",He.defaultProps={desc:"Rounded square with header and sidebar dividers",height:"16",title:"Layout",width:"16"};Be(".IconLearningPath_defaultFill__3ksqg{color:#adaeaf}",{insertAt:"top"});var We=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="lpt-".concat(u),f="lpd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 9 9",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("g",{fill:"none",fillRule:"evenodd"},_.a.createElement("path",{fill:"currentColor",d:"M7 2h2v7H2V7h5V2z"}),_.a.createElement("path",{fill:"currentColor",d:"M0 0h7v7H0z"}),_.a.createElement("path",{fill:"#000f20",opacity:"0.505",d:"M0 0h7v7H0z"})))};We.displayName="IconLearningPath",We.defaultProps={className:"IconLearningPath_defaultFill__3ksqg",desc:"Two stacked squares",height:"9",title:"Learning Path",width:"9"};var Ve=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 16 16",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{fill:"currentColor",d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"}))};Ve.displayName="IconSearch",Ve.defaultProps={desc:"Magnifying glass",height:"16",title:"Search",width:"16"};var Ye=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="cdt-".concat(u),f="cdd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,fill:"none",focusable:"false",height:i,role:o,viewBox:"0 0 17 11",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("path",{d:"M5.99992 7.62108L3.8786 9.7424L1.75728 7.62108",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}),_.a.createElement("path",{d:"M3.8786 1.99976L3.8786 8.99976",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}),_.a.createElement("path",{d:"M9.35638 5.4624H15.3564",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}),_.a.createElement("path",{d:"M9.35638 1.4624H15.3564",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}),_.a.createElement("path",{d:"M9.35638 9.4624H15.3564",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6"}))};Ye.displayName="IconSortDesc",Ye.defaultProps={desc:"Downward arrow with three horizontal lines",height:"11",title:"SortDesc",width:"17"};var Ge=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,c=Object(b.useState)(function(){return je()()}),u=Object(Oe.a)(c,1)[0],l="hft-".concat(u),f="hfd-".concat(u);return _.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":f,"aria-hidden":t,"aria-labelledby":l,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 32 32",width:s},_.a.createElement("title",{id:l},a),_.a.createElement("desc",{id:f},r),_.a.createElement("g",{fill:"none",fillRule:"evenodd",transform:"rotate(-90 15.5 15.5)"},_.a.createElement("circle",{cx:"15",cy:"16",r:"15",stroke:"currentColor",opacity:"0.083",strokeWidth:"2"}),_.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M31 16a1 1 0 0 1-2 0c0-7.732-6.268-14-14-14a1 1 0 0 1 0-2c8.837 0 16 7.163 16 16z"})))};function Ke(e){var t=function(){if("undefined"==typeof Reflect||!o.a)return!1;if(o.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(o()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var i=Object(d.a)(this).constructor;n=o()(r,arguments,i)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}function $e(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Ge.displayName="IconSpinner",Ge.defaultProps={desc:"Hollow circle fading from transparent to gray",height:"32",title:"Spinner",width:"32"};var Xe="styles_wrap__6_qdv",Qe="styles_content__nx_52",Ze="styles_image__32Tdo",Je="styles_title__NDffz",et="styles_titleClamp__1-eSv",tt="styles_score__2FWHt",nt="styles_scoreText__2FWJg",rt="styles_scoreWrap__3GrXD",it="styles_lessonsInfo__SbVMH",ot="styles_pipe__1XBpq",at="styles_lpIcon__3XeRQ",st="styles_imageOverlay__RSsiC",ct="styles_imageOverlayStarted__17CIL",ut="styles_imageOverlayAssignedToMe__1pYS_",lt="styles_statusText__1q5C8",ft="styles_statusTextNoProgress__39xCR",dt="styles_status__1VLZS",ht="styles_completedStatus__A0RxX",pt="styles_learningPathBadge__3vO-1",mt="styles_progressBarWrap__24ETA",vt="styles_heartWrap__217al",gt="styles_heartFilled__35Shx",yt="styles_heartOutline__2fakg",bt="styles_completedAt__2Iu7h",_t="styles_due__SPTRi",wt="styles_dueUrgent__1j39c",xt="styles_downloadCertWrap__1wv7-";$e(".styles_content__nx_52,.styles_wrap__6_qdv{display:flex;flex-direction:column}.styles_wrap__6_qdv{height:360px;border-radius:6px;background-color:#fff;cursor:pointer;box-shadow:0 2px 25px 0 rgba(0,0,0,.1);transition:box-shadow .3s,transform .3s;position:relative;width:100%}.styles_wrap__6_qdv:hover{box-shadow:0 .2rem 4rem 0 rgba(0,0,0,.15);transform:translate3d(0,-1rem,0)}.styles_image__32Tdo{min-height:14.8rem;width:100%;border-top-left-radius:6px;border-top-right-radius:6px;background-size:cover;background-position:50% 50%;background-repeat:no-repeat;background-color:var(--color-accent)}.styles_content__nx_52{box-sizing:border-box;height:100%;width:100%;padding:1.5rem 3.5rem 2rem 2.5rem;position:relative}.styles_title__NDffz{max-height:9.45rem;height:9.45rem;font-size:1.8rem;line-height:1.33;font-weight:700;color:#313537;overflow-wrap:break-word;margin-top:.5rem;overflow:hidden}.styles_titleClamp__1-eSv>div{display:none!important}.styles_score__2FWHt,.styles_scoreText__2FWJg{font-weight:700;color:#313537}.styles_scoreText__2FWJg{margin-left:.4rem}.styles_scoreWrap__3GrXD{margin-top:.5rem;color:#666;font-size:1.2rem}.styles_lessonsInfo__SbVMH{font-size:1.2rem;letter-spacing:.05rem;position:absolute;bottom:2rem;color:#313537}.styles_pipe__1XBpq{margin:0 .25rem}.styles_lpIcon__3XeRQ{display:inline-flex;margin-right:.4rem;color:#adaeaf}.styles_imageOverlay__RSsiC{position:absolute;width:100%;min-height:14.8rem}.styles_imageOverlayStarted__17CIL{min-height:14.8rem;width:100%;opacity:.15;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.83),#000)}.styles_imageOverlayAssignedToMe__1pYS_{min-height:14.8rem;width:100%;opacity:.5;background-image:linear-gradient(180deg,transparent,#000)}.styles_statusText__1q5C8{display:flex;color:#fff;align-items:center;position:absolute;bottom:2.5rem;left:1rem}.styles_statusTextNoProgress__39xCR{bottom:1.2rem}.styles_status__1VLZS{padding-left:.5rem;text-transform:capitalize}.styles_completedStatus__A0RxX{display:flex;color:#fff;align-items:center;position:absolute;top:1rem;right:1rem}.styles_learningPathBadge__3vO-1{display:flex;color:#313537;border-radius:.6rem;padding:.4rem .6rem;font-size:8px;text-transform:uppercase;letter-spacing:.3px;font-weight:700;background-color:#fff;align-items:center;position:absolute;top:1rem;left:1rem}.styles_progressBarWrap__24ETA{position:absolute;left:0;bottom:1rem;width:calc(100% - 2rem);margin:0 1rem}.styles_heartWrap__217al{position:absolute;top:1rem;right:1rem;width:2rem;height:2rem;display:flex;justify-content:center;align-items:center}.styles_heartWrap__217al:hover{cursor:pointer}.styles_heartWrap__217al:hover .styles_heartFilled__35Shx{color:var(--color-accent-focus)}.styles_heartWrap__217al:hover .styles_heartOutline__2fakg{color:#313537}.styles_heartFilled__35Shx{color:var(--color-accent)}.styles_heartOutline__2fakg{color:#979797}.styles_completedAt__2Iu7h{margin-top:1rem;color:#6a737c;font-size:1.2rem}.styles_due__SPTRi{display:inline-block;font-size:1rem;font-weight:900;letter-spacing:.05rem;text-transform:uppercase;line-height:1.2;color:#313537;border:1px solid #979797;padding:.5rem .7rem;border-radius:.4rem}.styles_dueUrgent__1j39c{color:var(--color-accent);border-color:var(--color-accent)}.styles_downloadCertWrap__1wv7-{position:absolute;bottom:2rem}@media (max-width:580px){.styles_progressBarWrap__24ETA{bottom:1.5rem;margin:0 2rem;width:calc(100% - 4rem)}.styles_statusText__1q5C8{left:2rem}}",{insertAt:"top"});var kt="ProgressBar_progressBarBase__1njSY",Et="ProgressBar_progressBarWrap__1dSL2",St="ProgressBar_progressBar__14M3v";$e(".ProgressBar_progressBarBase__1njSY{height:.5rem;border-radius:10rem}.ProgressBar_progressBarWrap__1dSL2{position:relative;width:100%;background:hsla(0,0%,98%,.5)}.ProgressBar_progressBar__14M3v{background:#fff}",{insertAt:"top"});var Tt=function(e){var t=e.progress,n=x()(kt,Et),r=x()(kt,St);return _.a.createElement("div",{className:n,role:"progressbar","aria-valuenow":t,"aria-valuemin":"0","aria-valuemax":"100"},_.a.createElement("div",{className:r,style:{width:"".concat(t,"%")}}))},Ot=function(e){Object(l.a)(n,e);var t=Ke(n);function n(){var e,r,i,o,a,c,l,f,d;Object(s.a)(this,n);for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return(d=t.call.apply(t,p()(e=[this]).call(e,m))).onClick=v()(r=d.onClick).call(r,Object(u.a)(d)),d.onKeyDown=v()(i=d.onKeyDown).call(i,Object(u.a)(d)),d.toggleFavorite=v()(o=d.toggleFavorite).call(o,Object(u.a)(d)),d.renderProgress=v()(a=d.renderProgress).call(a,Object(u.a)(d)),d.renderDueStatus=v()(c=d.renderDueStatus).call(c,Object(u.a)(d)),d.renderAssignedOrCompleted=v()(l=d.renderAssignedOrCompleted).call(l,Object(u.a)(d)),d.renderLessonsInfo=v()(f=d.renderLessonsInfo).call(f,Object(u.a)(d)),d}return Object(c.a)(n,[{key:"onClick",value:function(){var e=this.props,t=e.disable,n=e.onClick;t||n()}},{key:"onKeyDown",value:function(e){var t;y()(t=[13,32]).call(t,e.keyCode)&&(e.preventDefault(),this.onClick())}},{key:"toggleFavorite",value:function(e){var t=this.props,n=t.favoritedAt,r=t.onAddFavorite,i=t.onRemoveFavorite;e.stopPropagation(),n?i():r()}},{key:"renderProgress",value:function(){var e=this.props,t=e.disable,n=e.progress;return n&&!t?_.a.createElement("div",{className:mt},_.a.createElement(Tt,{progress:n})):null}},{key:"renderDueStatus",value:function(){var e=this.props,t=e.completedAt,n=e.isUrgent,r=e.labelDue,i=e.labelCompleted,o=null!=t,s=x()(_t,Object(a.a)({},wt,n));return o?_.a.createElement("div",{className:bt},i):r?_.a.createElement("div",null,_.a.createElement("div",{className:s},r)):null}},{key:"renderAssignedOrCompleted",value:function(){var e=this.props,t=e.labelAssignedToMe,n=e.completedAt,r=e.progress,i=null!=n,o=x()(lt,Object(a.a)({},ft,!r));return i?_.a.createElement("div",{className:ht},_.a.createElement(Pe,{width:22,height:22,decorative:!0})):_.a.createElement("div",{className:o},_.a.createElement(Ae,{decorative:!0}),_.a.createElement("span",{className:dt},t))}},{key:"renderLessonsInfo",value:function(){var e=this.props,t=e.labelCount,n=e.durationHidden,r=e.labelDuration;return _.a.createElement("div",{className:it},t,!n&&_.a.createElement(_.a.Fragment,null,_.a.createElement("span",{className:ot,"aria-hidden":"true"},"|"),r))}},{key:"render",value:function(){var e,t=this.props,n=t.cardImageKey,r=t.certDownloadComp,i=t.color,o=t.completedAt,s=t.coverImageKey,c=t.enrolledAt,u=t.favoritedAt,l=t.imagesUri,f=t.isLearningPath,d=t.labelHeartFilled,h=t.labelHeartOutline,p=t.labelLearningPath,m=t.labelQuizScore,v=t.noCertDownload,g=t.noFavoriteBtn,y=t.progress,b=t.score,w=t.title,k=t.extraScoreText,S=null!=o,O=c||S,C=x()((e={},Object(a.a)(e,ct,!!y||S),Object(a.a)(e,ut,c&&!S),e)),j=n||s;return _.a.createElement("div",{"aria-label":w,className:Xe,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"link",tabIndex:"0"},_.a.createElement(Te,{className:Ze,b:"fff",f:"jpg",h:150,imagesUri:l,imageKey:j,style:{backgroundColor:i},w:300,s:"cover"}),(S||c||y||f)&&_.a.createElement("div",{className:st},_.a.createElement("div",{className:C}),f&&_.a.createElement("div",{className:pt},_.a.createElement(We,{height:7,width:7,className:at,decorative:!0})," ",p),this.renderProgress(),O&&this.renderAssignedOrCompleted()),_.a.createElement("div",{className:Qe},!g&&_.a.createElement("div",{className:vt,onClick:this.toggleFavorite,onKeyDown:this.toggleFavorite,role:"button",tabIndex:"0"},u?_.a.createElement(qe,{title:d,className:gt}):_.a.createElement(ze,{title:h,className:yt})),this.renderDueStatus(),_.a.createElement("div",{className:Je},_.a.createElement(T.a,{className:et,lines:4},w)),S&&null!=b&&_.a.createElement("div",{className:rt},m," ",_.a.createElement("span",{className:tt},E()(b).divide(100).format("0%")),k&&_.a.createElement("span",{className:nt},k)),!S||v?this.renderLessonsInfo():_.a.createElement("div",{className:xt},_.a.createElement(r,null))))}}]),n}(b.Component);Ot.defaultProps={cardImageKey:null,certDownloadComp:function(){return null},color:"#ff6602",completedAt:null,coverImageKey:null,disable:!1,durationHidden:!1,enrolledAt:null,favoritedAt:null,imagesUri:"",isLearningPath:!1,isUrgent:!1,labelAssignedToMe:"Assigned To Me",labelCompleted:"",labelCount:"",labelDuration:"",labelHeartFilled:"Remove from my list",labelHeartOutline:"Add to my list",labelLearningPath:"Learning path",labelQuizScore:"Quiz Score",noCertDownload:!1,noFavoriteBtn:!1,onAddFavorite:Function.prototype,onClick:Function.prototype,onRemoveFavorite:Function.prototype,progress:0,score:null,title:"",extraScoreText:""};t.a=Ot},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(127),i=n(244),o=n(180),a=n(650),s=n(37),c=n(326),u=n(1070),l=n(113),f=n(1068),d=n(444),h=n(1069),p=n(181),m=n(2203),v=n(336),g=n(2363),y=n(653),b=n(169),_=n(162),w=n(335),x=n(410),k=n(651),E=n(568),S=n(2205),T=n(325),O=n(201),C=n(1066),j=n(308),A=n(718),M=n(1170)("hidden"),P=n(374),N=P.set,I=P.getterFor("Symbol"),L=T.f,D=O.f,R=S.f,B=r.Symbol,F=r.JSON,U=F&&F.stringify,q=p("toPrimitive"),z=C.f,H=f("symbol-registry"),W=f("symbols"),V=f("op-symbols"),Y=f("wks"),G=Object.prototype,K=r.QObject,$=n(2202),X=!K||!K.prototype||!K.prototype.findChild,Q=o&&l(function(){return 7!=E(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=L(G,t);r&&delete G[t],D(e,t,n),r&&e!==G&&D(G,t,r)}:D,Z=function(e,t){var n=W[e]=E(B.prototype);return N(n,{type:"Symbol",tag:e,description:t}),o||(n.description=t),n},J=$&&"symbol"==typeof B.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof B},ee=function(e,t,n){return e===G&&ee(V,t,n),b(e),t=x(t,!0),b(n),i(W,t)?(n.enumerable?(i(e,M)&&e[M][t]&&(e[M][t]=!1),n=E(n,{enumerable:k(0,!1)})):(i(e,M)||D(e,M,k(1,{})),e[M][t]=!0),Q(e,t,n)):D(e,t,n)},te=function(e,t){b(e);for(var n,r=g(t=w(t)),i=0,o=r.length;o>i;)ee(e,n=r[i++],t[n]);return e},ne=function(e){var t=z.call(this,e=x(e,!0));return!(this===G&&i(W,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(W,e)||i(this,M)&&this[M][e])||t)},re=function(e,t){if(e=w(e),t=x(t,!0),e!==G||!i(W,t)||i(V,t)){var n=L(e,t);return!n||!i(W,t)||i(e,M)&&e[M][t]||(n.enumerable=!0),n}},ie=function(e){for(var t,n=R(w(e)),r=[],o=0;n.length>o;)i(W,t=n[o++])||i(u,t)||r.push(t);return r},oe=function(e){for(var t,n=e===G,r=R(n?V:w(e)),o=[],a=0;r.length>a;)!i(W,t=r[a++])||n&&!i(G,t)||o.push(W[t]);return o};$||(c((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=h(e),n=function(e){this===G&&n.call(V,e),i(this,M)&&i(this[M],t)&&(this[M][t]=!1),Q(this,t,k(1,e))};return o&&X&&Q(G,t,{configurable:!0,set:n}),Z(t,e)}).prototype,"toString",function(){return I(this).tag}),C.f=ne,O.f=ee,T.f=re,n(652).f=S.f=ie,n(1171).f=oe,o&&(D(B.prototype,"description",{configurable:!0,get:function(){return I(this).description}}),a||c(G,"propertyIsEnumerable",ne,{unsafe:!0})),m.f=function(e){return Z(p(e),e)}),s({global:!0,wrap:!0,forced:!$,sham:!$},{Symbol:B});for(var ae=A(Y),se=0;ae.length>se;)v(ae[se++]);s({target:"Symbol",stat:!0,forced:!$},{for:function(e){return i(H,e+="")?H[e]:H[e]=B(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol");for(var t in H)if(H[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s({target:"Object",stat:!0,forced:!$,sham:!o},{create:function(e,t){return void 0===t?E(e):te(E(e),t)},defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:ie,getOwnPropertySymbols:oe}),F&&s({target:"JSON",stat:!0,forced:!$||l(function(){var e=B();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))})},{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(_(t)||void 0!==e)&&!J(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,U.apply(F,r)}}),B.prototype[q]||j(B.prototype,q,B.prototype.valueOf),d(B,"Symbol"),u[M]=!0},function(e,t,n){var r=n(718),i=n(1171),o=n(1066);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),c=o.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){"use strict";var r=n(180),i=n(244),o=n(162),a=n(201).f,s=n(2200),c=n(127).Symbol;if(r&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var u={},l=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof l?new c(e):void 0===e?c():c(e);return""===e&&(u[t]=!0),t};s(l,c);var f=l.prototype=c.prototype;f.constructor=l;var d=f.toString,h="Symbol(test)"==String(c("test")),p=/^Symbol\((.*)\)[^)]+$/;a(f,"description",{configurable:!0,get:function(){var e=o(this)?this.valueOf():this,t=d.call(e);if(i(u,e))return"";var n=h?t.slice(7,-1):t.replace(p,"$1");return""===n?void 0:n}}),n(37)({global:!0,forced:!0},{Symbol:l})}},function(e,t,n){n(336)("asyncIterator")},function(e,t,n){n(336)("hasInstance")},function(e,t,n){n(336)("isConcatSpreadable")},function(e,t,n){n(336)("iterator")},function(e,t,n){n(336)("match")},function(e,t,n){n(336)("replace")},function(e,t,n){n(336)("search")},function(e,t,n){n(336)("species")},function(e,t,n){n(336)("split")},function(e,t,n){n(336)("toPrimitive")},function(e,t,n){n(336)("toStringTag")},function(e,t,n){n(336)("unscopables")},function(e,t,n){"use strict";var r=n(653),i=n(162),o=n(217),a=n(187),s=n(654),c=n(1073),u=n(181)("isConcatSpreadable"),l=!n(113)(function(){var e=[];return e[u]=!1,e.concat()[0]!==e}),f=n(1074)("concat"),d=function(e){if(!i(e))return!1;var t=e[u];return void 0!==t?!!t:r(e)},h=!l||!f;n(37)({target:"Array",proto:!0,forced:h},{concat:function(e){var t,n,r,i,u,l=o(this),f=c(l,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(u=-1===t?l:arguments[t],d(u)){if(h+(i=a(u.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,h++)n in u&&s(f,h,u[n])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,h++,u)}return f.length=h,f}})},function(e,t,n){n(37)({target:"Array",proto:!0},{copyWithin:n(2206)}),n(569)("copyWithin")},function(e,t,n){"use strict";var r=n(296)(4),i=n(512)("every");n(37)({target:"Array",proto:!0,forced:i},{every:function(e){return r(this,e,arguments[1])}})},function(e,t,n){n(37)({target:"Array",proto:!0},{fill:n(2159)}),n(569)("fill")},function(e,t,n){"use strict";var r=n(296)(2),i=n(1074)("filter");n(37)({target:"Array",proto:!0,forced:!i},{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(296)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),n(37)({target:"Array",proto:!0,forced:i},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(569)("find")},function(e,t,n){"use strict";var r=n(296)(6),i=!0;"findIndex"in[]&&Array(1).findIndex(function(){i=!1}),n(37)({target:"Array",proto:!0,forced:i},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(569)("findIndex")},function(e,t,n){"use strict";var r=n(2207),i=n(217),o=n(187),a=n(375),s=n(1073);n(37)({target:"Array",proto:!0},{flat:function(){var e=arguments[0],t=i(this),n=o(t.length),c=s(t,0);return c.length=r(c,t,t,n,0,void 0===e?1:a(e)),c}})},function(e,t,n){"use strict";var r=n(2207),i=n(217),o=n(187),a=n(376),s=n(1073);n(37)({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),c=o(n.length);return a(e),(t=s(n,0)).length=r(t,n,n,c,0,1,e,arguments[1]),t}})},function(e,t,n){"use strict";var r=n(2208);n(37)({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(e,t,n){var r=!n(1172)(function(e){Array.from(e)});n(37)({target:"Array",stat:!0,forced:r},{from:n(2209)})},function(e,t,n){"use strict";var r=n(1071)(!0);n(37)({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(569)("includes")},function(e,t,n){"use strict";var r=n(1071)(!1),i=[].indexOf,o=!!i&&1/[1].indexOf(1,-0)<0,a=n(512)("indexOf");n(37)({target:"Array",proto:!0,forced:o||a},{indexOf:function(e){return o?i.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){n(37)({target:"Array",stat:!0},{isArray:n(653)})},function(e,t,n){"use strict";var r=n(335),i=[].join,o=n(1067)!=Object,a=n(512)("join",",");n(37)({target:"Array",proto:!0,forced:o||a},{join:function(e){return i.call(r(this),void 0===e?",":e)}})},function(e,t,n){var r=n(2214);n(37)({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},function(e,t,n){"use strict";var r=n(296)(1),i=n(1074)("map");n(37)({target:"Array",proto:!0,forced:!i},{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(654),i=n(113)(function(){function e(){}return!(Array.of.call(e)instanceof e)});n(37)({target:"Array",stat:!0,forced:i},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2215),i=n(512)("reduce");n(37)({target:"Array",proto:!0,forced:i},{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(2215),i=n(512)("reduceRight");n(37)({target:"Array",proto:!0,forced:i},{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(653),i=[].reverse,o=[1,2];n(37)({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i.call(this)}})},function(e,t,n){"use strict";var r=n(162),i=n(653),o=n(567),a=n(187),s=n(335),c=n(654),u=n(181)("species"),l=[].slice,f=Math.max,d=n(1074)("slice");n(37)({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,d,h,p=s(this),m=a(p.length),v=o(e,m),g=o(void 0===t?m:t,m);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[u])&&(n=void 0):n=void 0,n===Array||void 0===n))return l.call(p,v,g);for(d=new(void 0===n?Array:n)(f(g-v,0)),h=0;v<g;v++,h++)v in p&&c(d,h,p[v]);return d.length=h,d}})},function(e,t,n){"use strict";var r=n(296)(3),i=n(512)("some");n(37)({target:"Array",proto:!0,forced:i},{some:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(376),i=n(217),o=n(113),a=[].sort,s=[1,2,3],c=o(function(){s.sort(void 0)}),u=o(function(){s.sort(null)}),l=n(512)("sort"),f=c||!u||l;n(37)({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?a.call(i(this)):a.call(i(this),r(e))}})},function(e,t,n){n(720)("Array")},function(e,t,n){"use strict";var r=n(567),i=n(375),o=n(187),a=n(217),s=n(1073),c=n(654),u=Math.max,l=Math.min,f=n(1074)("splice");n(37)({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,f,d,h,p,m,v=a(this),g=o(v.length),y=r(e,g),b=arguments.length;if(0===b?n=f=0:1===b?(n=0,f=g-y):(n=b-2,f=l(u(i(t),0),g-y)),g+n-f>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=s(v,f),h=0;h<f;h++)(p=y+h)in v&&c(d,h,v[p]);if(d.length=f,n<f){for(h=y;h<g-f;h++)m=h+n,(p=h+f)in v?v[m]=v[p]:delete v[m];for(h=g;h>g-f+n;h--)delete v[h-1]}else if(n>f)for(h=g-f;h>y;h--)m=h+n-1,(p=h+f-1)in v?v[m]=v[p]:delete v[m];for(h=0;h<n;h++)v[h+y]=arguments[h+2];return v.length=g-f+n,d}})},function(e,t,n){n(569)("flat")},function(e,t,n){n(569)("flatMap")},function(e,t,n){"use strict";var r=n(1175).ArrayBuffer,i=n(127).ArrayBuffer;n(37)({global:!0,forced:i!==r},{ArrayBuffer:r}),n(720)("ArrayBuffer")},function(e,t,n){var r=n(170),i=r.NATIVE_ARRAY_BUFFER_VIEWS;n(37)({target:"ArrayBuffer",stat:!0,forced:!i},{isView:r.isView})},function(e,t,n){"use strict";var r=n(1175),i=n(169),o=n(567),a=n(187),s=n(572),c=r.ArrayBuffer,u=r.DataView,l=c.prototype.slice,f=n(113)(function(){return!new c(2).slice(1,void 0).byteLength});n(37)({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:f},{slice:function(e,t){if(void 0!==l&&void 0===t)return l.call(i(this),e);for(var n=i(this).byteLength,r=o(e,n),f=o(void 0===t?n:t,n),d=new(s(this,c))(a(f-r)),h=new u(this),p=new u(d),m=0;r<f;)p.setUint8(m++,h.getUint8(r++));return d}})},function(e,t,n){var r=n(170).NATIVE_ARRAY_BUFFER;n(37)({global:!0,forced:!r},{DataView:n(1175).DataView})},function(e,t,n){n(37)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){var r=n(2411);n(37)({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},function(e,t,n){"use strict";var r=n(113),i=Date.prototype,o=i.getTime,a=i.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!r(function(){a.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+s(this.getUTCMonth()+1)+"-"+s(this.getUTCDate())+"T"+s(this.getUTCHours())+":"+s(this.getUTCMinutes())+":"+s(this.getUTCSeconds())+"."+(t>99?t:"0"+s(t))+"Z"}:a},function(e,t,n){"use strict";var r=n(217),i=n(410),o=n(113)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})});n(37)({target:"Date",proto:!0,forced:o},{toJSON:function(e){var t=r(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(308),i=n(181)("toPrimitive"),o=n(2414),a=Date.prototype;i in a||r(a,i,o)},function(e,t,n){"use strict";var r=n(169),i=n(410);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!==e)}},function(e,t,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(326)(r,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,n){n(37)({target:"Function",proto:!0},{bind:n(2217)})},function(e,t,n){"use strict";var r=n(162),i=n(201),o=n(445),a=n(181)("hasInstance"),s=Function.prototype;a in s||i.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(180),i=n(201).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;!r||"name"in o||i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){n(444)(n(127).JSON,"JSON",!0)},function(e,t,n){"use strict";e.exports=n(1176)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(2218),!0)},function(e,t,n){var r=n(2219),i=Math.acosh,o=Math.log,a=Math.sqrt,s=Math.LN2,c=!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0;n(37)({target:"Math",stat:!0,forced:c},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+s:r(e-1+a(e-1)*a(e+1))}})},function(e,t,n){var r=Math.asinh,i=Math.log,o=Math.sqrt;n(37)({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):i(t+o(t*t+1)):t}})},function(e,t,n){var r=Math.atanh,i=Math.log;n(37)({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){var r=n(2165),i=Math.abs,o=Math.pow;n(37)({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*o(i(e),1/3)}})},function(e,t,n){var r=Math.floor,i=Math.log,o=Math.LOG2E;n(37)({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(i(e+.5)*o):32}})},function(e,t,n){var r=n(1177),i=Math.cosh,o=Math.abs,a=Math.E;n(37)({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=r(o(e)-1)+1;return(t+1/(t*a*a))*(a/2)}})},function(e,t,n){var r=n(1177);n(37)({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){n(37)({target:"Math",stat:!0},{fround:n(2429)})},function(e,t,n){var r=n(2165),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),c=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),u=r(e);return i<c?u*(i/c/a+1/o-1/o)*c*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?u*(1/0):u*n}},function(e,t,n){var r=Math.abs,i=Math.sqrt;n(37)({target:"Math",stat:!0},{hypot:function(e,t){for(var n,o,a=0,s=0,c=arguments.length,u=0;s<c;)u<(n=r(arguments[s++]))?(a=a*(o=u/n)*o+1,u=n):a+=n>0?(o=n/u)*o:n;return u===1/0?1/0:u*i(a)}})},function(e,t,n){var r=Math.imul,i=n(113)(function(){return-5!=r(4294967295,5)||2!=r.length});n(37)({target:"Math",stat:!0,forced:i},{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=Math.log,i=Math.LOG10E;n(37)({target:"Math",stat:!0},{log10:function(e){return r(e)*i}})},function(e,t,n){n(37)({target:"Math",stat:!0},{log1p:n(2219)})},function(e,t,n){var r=Math.log,i=Math.LN2;n(37)({target:"Math",stat:!0},{log2:function(e){return r(e)/i}})},function(e,t,n){n(37)({target:"Math",stat:!0},{sign:n(2165)})},function(e,t,n){var r=n(1177),i=Math.abs,o=Math.exp,a=Math.E,s=n(113)(function(){return-2e-17!=Math.sinh(-2e-17)});n(37)({target:"Math",stat:!0,forced:s},{sinh:function(e){return i(e=+e)<1?(r(e)-r(-e))/2:(o(e-1)-o(-e-1))*(a/2)}})},function(e,t,n){var r=n(1177),i=Math.exp;n(37)({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){n(444)(Math,"Math",!0)},function(e,t,n){var r=Math.ceil,i=Math.floor;n(37)({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:r)(e)}})},function(e,t,n){"use strict";var r=n(127),i=n(1072),o=n(244),a=n(409),s=n(2164),c=n(410),u=n(113),l=n(652).f,f=n(325).f,d=n(201).f,h=n(722),p=r.Number,m=p.prototype,v="Number"==a(n(568)(m)),g="trim"in String.prototype,y=function(e){var t,n,r,i,o,a,s,u,l=c(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=g?l.trim():h(l,3)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((u=o.charCodeAt(s))<48||u>i)return NaN;return parseInt(o,r)}return+l};if(i("Number",!p(" 0o1")||!p("0b1")||p("+0x1"))){for(var b,_=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof _&&(v?u(function(){m.valueOf.call(n)}):"Number"!=a(n))?s(new p(y(t)),n,_):y(t)},w=n(180)?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)o(p,b=w[x])&&!o(_,b)&&d(_,b,f(p,b));_.prototype=m,m.constructor=_,n(326)(r,"Number",_)}},function(e,t,n){n(37)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(37)({target:"Number",stat:!0},{isFinite:n(2443)})},function(e,t,n){var r=n(127).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(37)({target:"Number",stat:!0},{isInteger:n(2220)})},function(e,t,n){n(37)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(2220),i=Math.abs;n(37)({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){n(37)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(37)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(2221);n(37)({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){var r=n(2222);n(37)({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var r=n(375),i=n(2223),o=n(2166),a=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=s(r/1e7)},l=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=s(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t},d=function(e,t,n){return 0===t?n:t%2==1?d(e,t-1,n*e):d(e*e,t/2,n)};n(37)({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(113)(function(){a.call({})})},{toFixed:function(e){var t,n,a,s,c=i(this),h=r(e),p="",m="0";if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(p="-",c=-c),c>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*d(2,69,1))-69)<0?c*d(2,-t,1):c/d(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),a=h;a>=7;)u(1e7,0),a-=7;for(u(d(10,a,1),0),a=t-1;a>=23;)l(1<<23),a-=23;l(1<<a),u(1,1),l(2),m=f()}else u(0,n),u(1<<-t,0),m=f()+o.call("0",h);return m=h>0?p+((s=m.length)<=h?"0."+o.call("0",h-s)+m:m.slice(0,s-h)+"."+m.slice(s-h)):p+m}})},function(e,t,n){"use strict";var r=n(113),i=n(2223),o=1..toPrecision;n(37)({target:"Number",proto:!0,forced:r(function(){return"1"!==o.call(1,void 0)})||!r(function(){o.call({})})},{toPrecision:function(e){return void 0===e?o.call(i(this)):o.call(i(this),e)}})},function(e,t,n){var r=n(2224);n(37)({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){n(37)({target:"Object",stat:!0,sham:!n(180)},{create:n(568)})},function(e,t,n){"use strict";var r=n(217),i=n(376),o=n(201),a=n(1179);n(180)&&n(37)({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){o.f(r(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(180);n(37)({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n(2158)})},function(e,t,n){var r=n(180);n(37)({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n(201).f})},function(e,t,n){"use strict";var r=n(217),i=n(376),o=n(201),a=n(1179);n(180)&&n(37)({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){o.f(r(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(2225);n(37)({target:"Object",stat:!0},{entries:function(e){return r(e,!0)}})},function(e,t,n){var r=n(162),i=n(655).onFreeze,o=Object.freeze,a=n(1077),s=n(113)(function(){o(1)});n(37)({target:"Object",stat:!0,forced:s,sham:!a},{freeze:function(e){return o&&r(e)?o(i(e)):e}})},function(e,t,n){var r=n(1078),i=n(654);n(37)({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,function(e,n){i(t,e,n)},void 0,!0),t}})},function(e,t,n){var r=n(335),i=n(325).f,o=n(180),a=n(113)(function(){i(1)}),s=!o||a;n(37)({target:"Object",stat:!0,forced:s,sham:!o},{getOwnPropertyDescriptor:function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(180),i=n(2155),o=n(335),a=n(325),s=n(654);n(37)({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),c=a.f,u=i(r),l={},f=0;u.length>f;)void 0!==(n=c(r,t=u[f++]))&&s(l,t,n);return l}})},function(e,t,n){var r=n(2205).f,i=n(113)(function(){Object.getOwnPropertyNames(1)});n(37)({target:"Object",stat:!0,forced:i},{getOwnPropertyNames:r})},function(e,t,n){var r=n(217),i=n(445),o=n(2162),a=n(113)(function(){i(1)});n(37)({target:"Object",stat:!0,forced:a,sham:!o},{getPrototypeOf:function(e){return i(r(e))}})},function(e,t,n){n(37)({target:"Object",stat:!0},{is:n(2226)})},function(e,t,n){var r=n(162),i=Object.isExtensible,o=n(113)(function(){i(1)});n(37)({target:"Object",stat:!0,forced:o},{isExtensible:function(e){return!!r(e)&&(!i||i(e))}})},function(e,t,n){var r=n(162),i=Object.isFrozen,o=n(113)(function(){i(1)});n(37)({target:"Object",stat:!0,forced:o},{isFrozen:function(e){return!r(e)||!!i&&i(e)}})},function(e,t,n){var r=n(162),i=Object.isSealed,o=n(113)(function(){i(1)});n(37)({target:"Object",stat:!0,forced:o},{isSealed:function(e){return!r(e)||!!i&&i(e)}})},function(e,t,n){var r=n(217),i=n(718),o=n(113)(function(){i(1)});n(37)({target:"Object",stat:!0,forced:o},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var r=n(217),i=n(410),o=n(445),a=n(325).f,s=n(1179);n(180)&&n(37)({target:"Object",proto:!0,forced:s},{__lookupGetter__:function(e){var t,n=r(this),s=i(e,!0);do{if(t=a(n,s))return t.get}while(n=o(n))}})},function(e,t,n){"use strict";var r=n(217),i=n(410),o=n(445),a=n(325).f,s=n(1179);n(180)&&n(37)({target:"Object",proto:!0,forced:s},{__lookupSetter__:function(e){var t,n=r(this),s=i(e,!0);do{if(t=a(n,s))return t.set}while(n=o(n))}})},function(e,t,n){var r=n(162),i=n(655).onFreeze,o=Object.preventExtensions,a=n(1077),s=n(113)(function(){o(1)});n(37)({target:"Object",stat:!0,forced:s,sham:!a},{preventExtensions:function(e){return o&&r(e)?o(i(e)):e}})},function(e,t,n){var r=n(162),i=n(655).onFreeze,o=Object.seal,a=n(1077),s=n(113)(function(){o(1)});n(37)({target:"Object",stat:!0,forced:s,sham:!a},{seal:function(e){return o&&r(e)?o(i(e)):e}})},function(e,t,n){n(37)({target:"Object",stat:!0},{setPrototypeOf:n(719)})},function(e,t,n){var r=n(2477),i=Object.prototype;r!==i.toString&&n(326)(i,"toString",r,{unsafe:!0})},function(e,t,n){"use strict";var r=n(1173),i={};i[n(181)("toStringTag")]="z",e.exports="[object z]"!==String(i)?function(){return"[object "+r(this)+"]"}:i.toString},function(e,t,n){var r=n(2225);n(37)({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){var r=n(2221);n(37)({global:!0,forced:parseFloat!=r},{parseFloat:r})},function(e,t,n){var r=n(2222);n(37)({global:!0,forced:parseInt!=r},{parseInt:r})},function(e,t,n){"use strict";var r,i,o,a="Promise",s=n(650),c=n(127),u=n(37),l=n(162),f=n(376),d=n(571),h=n(409),p=n(1078),m=n(1172),v=n(572),g=n(2167).set,y=n(2227),b=n(2228),_=n(2482),w=n(2229),x=n(2483),k=n(1180),E=n(181)("species"),S=n(374),T=n(1072),O=S.get,C=S.set,j=S.getterFor(a),A=c.Promise,M=c.TypeError,P=c.document,N=c.process,I=c.fetch,L=N&&N.versions,D=L&&L.v8||"",R=w.f,B=R,F="process"==h(N),U=!!(P&&P.createEvent&&c.dispatchEvent),q=T(a,function(){var e=A.resolve(1),t=function(){},n=(e.constructor={})[E]=function(e){e(t,t)};return!((F||"function"==typeof PromiseRejectionEvent)&&(!s||e.finally)&&e.then(t)instanceof n&&0!==D.indexOf("6.6")&&-1===k.indexOf("Chrome/66"))}),z=q||!m(function(e){A.all(e).catch(function(){})}),H=function(e){var t;return!(!l(e)||"function"!=typeof(t=e.then))&&t},W=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;y(function(){for(var i=t.value,o=1==t.state,a=0,s=function(n){var r,a,s,c=o?n.ok:n.fail,u=n.resolve,l=n.reject,f=n.domain;try{c?(o||(2===t.rejection&&K(e,t),t.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),s=!0)),r===n.promise?l(M("Promise-chain cycle")):(a=H(r))?a.call(r,u,l):u(r)):l(i)}catch(e){f&&!s&&f.exit(),l(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&Y(e,t)})}},V=function(e,t,n){var r,i;U?((r=P.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(i=c["on"+e])?i(r):"unhandledrejection"===e&&_("Unhandled promise rejection",n)},Y=function(e,t){g.call(c,function(){var n,r=t.value;if(G(t)&&(n=x(function(){F?N.emit("unhandledRejection",r,e):V("unhandledrejection",e,r)}),t.rejection=F||G(t)?2:1,n.error))throw n.value})},G=function(e){return 1!==e.rejection&&!e.parent},K=function(e,t){g.call(c,function(){F?N.emit("rejectionHandled",e):V("rejectionhandled",e,t.value)})},$=function(e,t,n,r){return function(i){e(t,n,i,r)}},X=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,W(e,t,!0))},Q=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw M("Promise can't be resolved itself");var i=H(n);i?y(function(){var r={done:!1};try{i.call(n,$(Q,e,r,t),$(X,e,r,t))}catch(n){X(e,r,n,t)}}):(t.value=n,t.state=1,W(e,t,!1))}catch(n){X(e,{done:!1},n,t)}}};q&&(A=function(e){d(this,A,a),f(e),r.call(this);var t=O(this);try{e($(Q,this,t),$(X,this,t))}catch(e){X(this,t,e)}},(r=function(e){C(this,{type:a,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n(721)(A.prototype,{then:function(e,t){var n=j(this),r=R(v(this,A));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=F?N.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&W(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=O(e);this.promise=e,this.resolve=$(Q,e,t),this.reject=$(X,e,t)},w.f=R=function(e){return e===A||e===o?new i(e):B(e)},s||"function"!=typeof I||u({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return b(A,I.apply(c,arguments))}})),u({global:!0,wrap:!0,forced:q},{Promise:A}),n(444)(A,a,!1,!0),n(720)(a),o=n(2157).Promise,u({target:a,stat:!0,forced:q},{reject:function(e){var t=R(this);return t.reject.call(void 0,e),t.promise}}),u({target:a,stat:!0,forced:s||q},{resolve:function(e){return b(s&&this===o?A:this,e)}}),u({target:a,stat:!0,forced:z},{all:function(e){var t=this,n=R(t),r=n.resolve,i=n.reject,o=x(function(){var n=[],o=0,a=1;p(e,function(e){var s=o++,c=!1;n.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,i=x(function(){p(e,function(e){t.resolve(e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(127);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(2163),i=n(572),o=n(2228);n(37)({target:"Promise",proto:!0,real:!0},{finally:function(e){var t=i(this,r("Promise")),n="function"==typeof e;return this.then(n?function(n){return o(t,e()).then(function(){return n})}:e,n?function(n){return o(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(376),i=n(169),o=(n(127).Reflect||{}).apply,a=Function.apply,s=!n(113)(function(){o(function(){})});n(37)({target:"Reflect",stat:!0,forced:s},{apply:function(e,t,n){return r(e),i(n),o?o(e,t,n):a.call(e,t,n)}})},function(e,t,n){var r=n(568),i=n(376),o=n(169),a=n(162),s=n(113),c=n(2217),u=(n(127).Reflect||{}).construct,l=s(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),f=!s(function(){u(function(){})}),d=l||f;n(37)({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(e,t){i(e),o(t);var n=arguments.length<3?e:i(arguments[2]);if(f&&!l)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var s=[null];return s.push.apply(s,t),new(c.apply(e,s))}var d=n.prototype,h=r(a(d)?d:Object.prototype),p=Function.apply.call(e,h,t);return a(p)?p:h}})},function(e,t,n){var r=n(201),i=n(169),o=n(410),a=n(180),s=n(113)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})});n(37)({target:"Reflect",stat:!0,forced:s,sham:!a},{defineProperty:function(e,t,n){i(e),t=o(t,!0),i(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(325).f,i=n(169);n(37)({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=r(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){var r=n(325),i=n(445),o=n(244),a=n(162),s=n(169);n(37)({target:"Reflect",stat:!0},{get:function e(t,n){var c,u,l=arguments.length<3?t:arguments[2];return s(t)===l?t[n]:(c=r.f(t,n))?o(c,"value")?c.value:void 0===c.get?void 0:c.get.call(l):a(u=i(t))?e(u,n,l):void 0}})},function(e,t,n){var r=n(325),i=n(169),o=n(180);n(37)({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(445),i=n(169),o=n(2162);n(37)({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(e){return r(i(e))}})},function(e,t,n){n(37)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){var r=n(169),i=Object.isExtensible;n(37)({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){n(37)({target:"Reflect",stat:!0},{ownKeys:n(2155)})},function(e,t,n){var r=n(2163),i=n(169),o=n(1077);n(37)({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(e){i(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(201),i=n(325),o=n(445),a=n(244),s=n(651),c=n(169),u=n(162);n(37)({target:"Reflect",stat:!0},{set:function e(t,n,l){var f,d,h=arguments.length<4?t:arguments[3],p=i.f(c(t),n);if(!p){if(u(d=o(t)))return e(d,n,l,h);p=s(0)}if(a(p,"value")){if(!1===p.writable||!u(h))return!1;if(f=i.f(h,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=l,r.f(h,n,f)}else r.f(h,n,s(0,l));return!0}return void 0!==p.set&&(p.set.call(h,l),!0)}})},function(e,t,n){var r=n(719),i=n(2213);r&&n(37)({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e,t);try{return r(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(180),i=n(181)("match"),o=n(127),a=n(1072),s=n(2164),c=n(201).f,u=n(652).f,l=n(2168),f=n(1181),d=n(326),h=n(113),p=o.RegExp,m=p.prototype,v=/a/g,g=/a/g,y=new p(v)!==v;if(a("RegExp",r&&(!y||h(function(){return g[i]=!1,p(v)!=v||p(g)==g||"/a/i"!=p(v,"i")})))){for(var b=function(e,t){var n=this instanceof b,r=l(e),i=void 0===t;return!n&&r&&e.constructor===b&&i?e:s(y?new p(r&&!i?e.source:e,t):p((r=e instanceof b)?e.source:e,r&&i?f.call(e):t),n?this:m,b)},_=function(e){e in b||c(b,e,{configurable:!0,get:function(){return p[e]},set:function(t){p[e]=t}})},w=u(p),x=0;x<w.length;)_(w[x++]);m.constructor=b,b.prototype=m,d(o,"RegExp",b)}n(720)("RegExp")},function(e,t,n){"use strict";var r=n(1182);n(37)({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){n(180)&&"g"!=/./g.flags&&n(201).f(RegExp.prototype,"flags",{configurable:!0,get:n(1181)})},function(e,t,n){"use strict";var r=n(169),i=n(113),o=n(1181),a=n(180),s=/./.toString,c=i(function(){return"/a/b"!=s.call({source:"a",flags:"b"})}),u="toString"!=s.name;(c||u)&&n(326)(RegExp.prototype,"toString",function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?o.call(e):void 0)},{unsafe:!0})},function(e,t,n){"use strict";e.exports=n(1176)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(2218))},function(e,t,n){"use strict";var r=n(1183);n(37)({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var r=n(187),i=n(2169),o="".endsWith,a=Math.min,s=n(2170)("endsWith");n(37)({target:"String",proto:!0,forced:!s},{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,s=r(t.length),c=void 0===n?s:a(r(n),s),u=String(e);return o?o.call(t,u,c):t.slice(c-u.length,c)===u}})},function(e,t,n){var r=n(567),i=String.fromCharCode,o=String.fromCodePoint,a=!!o&&1!=o.length;n(37)({target:"String",stat:!0,forced:a},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(2169),i=n(2170)("includes");n(37)({target:"String",proto:!0,forced:!i},{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(169),i=n(187),o=n(373),a=n(2171),s=n(1184);n(1185)("match",1,function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var c=r(e),u=String(this);if(!c.global)return s(c,u);var l=c.unicode;c.lastIndex=0;for(var f,d=[],h=0;null!==(f=s(c,u));){var p=String(f[0]);d[h]=p,""===p&&(c.lastIndex=a(u,i(c.lastIndex),l)),h++}return 0===h?null:d}]})},function(e,t,n){"use strict";var r=n(2231),i=n(2232);n(37)({target:"String",proto:!0,forced:i},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(2231),i=n(2232);n(37)({target:"String",proto:!0,forced:i},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(335),i=n(187);n(37)({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<o&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){n(37)({target:"String",proto:!0},{repeat:n(2166)})},function(e,t,n){"use strict";var r=n(169),i=n(217),o=n(187),a=n(375),s=n(373),c=n(2171),u=n(1184),l=Math.max,f=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(1185)("replace",2,function(e,t,n){return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,i){var s=n(t,e,this,i);if(s.done)return s.value;var d=r(e),h=String(this),p="function"==typeof i;p||(i=String(i));var v=d.global;if(v){var g=d.unicode;d.lastIndex=0}for(var y=[];;){var b=u(d,h);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(d.lastIndex=c(h,o(d.lastIndex),g))}for(var _,w="",x=0,k=0;k<y.length;k++){b=y[k];for(var E=String(b[0]),S=l(f(a(b.index),h.length),0),T=[],O=1;O<b.length;O++)T.push(void 0===(_=b[O])?_:String(_));var C=b.groups;if(p){var j=[E].concat(T,S,h);void 0!==C&&j.push(C);var A=String(i.apply(void 0,j))}else A=m(E,h,S,T,C,i);S>=x&&(w+=h.slice(x,S)+A,x=S+E.length)}return w+h.slice(x)}];function m(e,n,r,o,a,s){var c=r+e.length,u=o.length,l=p;return void 0!==a&&(a=i(a),l=h),t.call(s,l,function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>u){var f=d(l/10);return 0===f?t:f<=u?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s})}})},function(e,t,n){"use strict";var r=n(169),i=n(373),o=n(2226),a=n(1184);n(1185)("search",1,function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var s=r(e),c=String(this),u=s.lastIndex;o(u,0)||(s.lastIndex=0);var l=a(s,c);return o(s.lastIndex,u)||(s.lastIndex=u),null===l?-1:l.index}]})},function(e,t,n){"use strict";var r=n(2168),i=n(169),o=n(373),a=n(572),s=n(2171),c=n(187),u=n(1184),l=n(1182),f=n(113),d=[].push,h=Math.min,p=!f(function(){return!RegExp(4294967295,"y")});n(1185)("split",2,function(e,t,n){var f;return f="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(o(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,a);for(var s,c,u,f=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,h+"g");(s=l.call(m,i))&&!((c=m.lastIndex)>p&&(f.push(i.slice(p,s.index)),s.length>1&&s.index<i.length&&d.apply(f,s.slice(1)),u=s[0].length,p=c,f.length>=a));)m.lastIndex===s.index&&m.lastIndex++;return p===i.length?!u&&m.test("")||f.push(""):f.push(i.slice(p)),f.length>a?f.slice(0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,r,n):f.call(String(r),t,n)},function(e,r){var o=n(f,e,this,r,f!==t);if(o.done)return o.value;var l=i(e),d=String(this),m=a(l,RegExp),v=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g"),y=new m(p?l:"^(?:"+l.source+")",g),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===d.length)return null===u(y,d)?[d]:[];for(var _=0,w=0,x=[];w<d.length;){y.lastIndex=p?w:0;var k,E=u(y,p?d:d.slice(w));if(null===E||(k=h(c(y.lastIndex+(p?0:w)),d.length))===_)w=s(d,w,v);else{if(x.push(d.slice(_,w)),x.length===b)return x;for(var S=1;S<=E.length-1;S++)if(x.push(E[S]),x.length===b)return x;w=_=k}}return x.push(d.slice(_)),x}]},!p)},function(e,t,n){"use strict";var r=n(187),i=n(2169),o=n(2170)("startsWith"),a="".startsWith;n(37)({target:"String",proto:!0,forced:!o},{startsWith:function(e){var t=i(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return a?a.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var r=n(722),i=n(2172)("trim");n(37)({target:"String",proto:!0,forced:i},{trim:function(){return r(this,3)}})},function(e,t,n){"use strict";var r=n(722),i=n(2172)("trimEnd"),o=i?function(){return r(this,2)}:"".trimEnd;n(37)({target:"String",proto:!0,forced:i},{trimEnd:o,trimRight:o})},function(e,t,n){"use strict";var r=n(722),i=n(2172)("trimStart"),o=i?function(){return r(this,1)}:"".trimStart;n(37)({target:"String",proto:!0,forced:i},{trimStart:o,trimLeft:o})},function(e,t,n){"use strict";var r=n(337),i=n(338)("anchor");n(37)({target:"String",proto:!0,forced:i},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("big");n(37)({target:"String",proto:!0,forced:i},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("blink");n(37)({target:"String",proto:!0,forced:i},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("bold");n(37)({target:"String",proto:!0,forced:i},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("fixed");n(37)({target:"String",proto:!0,forced:i},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("fontcolor");n(37)({target:"String",proto:!0,forced:i},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("fontsize");n(37)({target:"String",proto:!0,forced:i},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("italics");n(37)({target:"String",proto:!0,forced:i},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("link");n(37)({target:"String",proto:!0,forced:i},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("small");n(37)({target:"String",proto:!0,forced:i},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("strike");n(37)({target:"String",proto:!0,forced:i},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("sub");n(37)({target:"String",proto:!0,forced:i},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(337),i=n(338)("sup");n(37)({target:"String",proto:!0,forced:i},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){n(513)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(513)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(513)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";var r=n(2206),i=n(170),o=i.aTypedArray;i.exportProto("copyWithin",function(e,t){return r.call(o(this),e,t,arguments.length>2?arguments[2]:void 0)})},function(e,t,n){"use strict";var r=n(296)(4),i=n(170),o=i.aTypedArray;i.exportProto("every",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(2159),i=n(170),o=i.aTypedArray;i.exportProto("fill",function(e){return r.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(572),i=n(170),o=n(296)(2),a=i.aTypedArray,s=i.aTypedArrayConstructor;i.exportProto("filter",function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=r(this,this.constructor),i=0,c=t.length,u=new(s(n))(c);c>i;)u[i]=t[i++];return u})},function(e,t,n){"use strict";var r=n(296)(5),i=n(170),o=i.aTypedArray;i.exportProto("find",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(296)(6),i=n(170),o=i.aTypedArray;i.exportProto("findIndex",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(296)(0),i=n(170),o=i.aTypedArray;i.exportProto("forEach",function(e){r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(2173),i=n(170),o=n(2234);i.exportStatic("from",o,r)},function(e,t,n){"use strict";var r=n(1071)(!0),i=n(170),o=i.aTypedArray;i.exportProto("includes",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(1071)(!1),i=n(170),o=i.aTypedArray;i.exportProto("indexOf",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(1174),i=n(127).Uint8Array,o=n(170),a=n(181)("iterator"),s=r.values,c=r.keys,u=r.entries,l=o.aTypedArray,f=o.exportProto,d=i&&i.prototype[a],h=!!d&&("values"==d.name||null==d.name),p=function(){return s.call(l(this))};f("entries",function(){return u.call(l(this))}),f("keys",function(){return c.call(l(this))}),f("values",p,!h),f(a,p,!h)},function(e,t,n){"use strict";var r=n(170),i=r.aTypedArray,o=[].join;r.exportProto("join",function(e){return o.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(2214),i=n(170),o=i.aTypedArray;i.exportProto("lastIndexOf",function(e){return r.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(572),i=n(170),o=i.aTypedArray,a=i.aTypedArrayConstructor,s=n(296)(1,function(e,t){return new(a(r(e,e.constructor)))(t)});i.exportProto("map",function(e){return s(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(2173),i=n(170),o=i.aTypedArrayConstructor;i.exportStatic("of",function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n},r)},function(e,t,n){"use strict";var r=n(170),i=r.aTypedArray,o=[].reduce;r.exportProto("reduce",function(e){return o.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(170),i=r.aTypedArray,o=[].reduceRight;r.exportProto("reduceRight",function(e){return o.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(170),i=r.aTypedArray;r.exportProto("reverse",function(){for(var e,t=i(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this})},function(e,t,n){"use strict";var r=n(187),i=n(2233),o=n(217),a=n(170),s=a.aTypedArray,c=n(113)(function(){new Int8Array(1).set({})});a.exportProto("set",function(e){s(this);var t=i(arguments[1],1),n=this.length,a=o(e),c=r(a.length),u=0;if(c+t>n)throw RangeError("Wrong length");for(;u<c;)this[t+u]=a[u++]},c)},function(e,t,n){"use strict";var r=n(572),i=n(170),o=i.aTypedArray,a=i.aTypedArrayConstructor,s=[].slice,c=n(113)(function(){new Int8Array(1).slice()});i.exportProto("slice",function(e,t){for(var n=s.call(o(this),e,t),i=r(this,this.constructor),c=0,u=n.length,l=new(a(i))(u);u>c;)l[c]=n[c++];return l},c)},function(e,t,n){"use strict";var r=n(296)(3),i=n(170),o=i.aTypedArray;i.exportProto("some",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(170),i=r.aTypedArray,o=[].sort;r.exportProto("sort",function(e){return o.call(i(this),e)})},function(e,t,n){"use strict";var r=n(187),i=n(567),o=n(572),a=n(170),s=a.aTypedArray;a.exportProto("subarray",function(e,t){var n=s(this),a=n.length,c=i(e,a);return new(o(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,r((void 0===t?a:i(t,a))-c))})},function(e,t,n){"use strict";var r=n(127).Int8Array,i=n(113),o=n(170),a=o.aTypedArray,s=[].toLocaleString,c=[].slice,u=!!r&&i(function(){s.call(new r(1))}),l=i(function(){return[1,2].toLocaleString()!=new r([1,2]).toLocaleString()})||!i(function(){r.prototype.toLocaleString.call([1,2])});o.exportProto("toLocaleString",function(){return s.apply(u?c.call(a(this)):a(this),arguments)},l)},function(e,t,n){"use strict";var r=n(127).Uint8Array,i=r&&r.prototype,o=n(170),a=[].toString,s=[].join;n(113)(function(){a.call({})})&&(a=function(){return s.call(this)}),o.exportProto("toString",a,(i||{}).toString!=a)},function(e,t,n){"use strict";var r,i=n(127),o=n(721),a=n(655),s=n(2235),c=n(162),u=n(374).enforce,l=n(2199),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},p=e.exports=n(1176)("WeakMap",h,s,!0,!0);if(l&&f){r=s.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var m=p.prototype,v=m.delete,g=m.has,y=m.get,b=m.set;o(m,{delete:function(e){if(c(e)&&!d(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.delete(e)}return v.call(this,e)},has:function(e){if(c(e)&&!d(e)){var t=u(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.has(e)}return g.call(this,e)},get:function(e){if(c(e)&&!d(e)){var t=u(this);return t.frozen||(t.frozen=new r),g.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=u(this);n.frozen||(n.frozen=new r),g.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(1176)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(2235),!1,!0)},function(e,t,n){var r=n(2236),i=n(2208),o=n(308),a=n(127);for(var s in r){var c=a[s],u=c&&c.prototype;if(u&&u.forEach!==i)try{o(u,"forEach",i)}catch(e){u.forEach=i}}},function(e,t,n){var r=n(2236),i=n(1174),o=n(127),a=n(308),s=n(181),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var f in r){var d=o[f],h=d&&d.prototype;if(h){if(h[c]!==l)try{a(h,c,l)}catch(e){h[c]=l}if(h[u]||a(h,u,f),r[f])for(var p in i)if(h[p]!==i[p])try{a(h,p,i[p])}catch(e){h[p]=i[p]}}}},function(e,t,n){var r=n(127),i=n(2167),o=!r.setImmediate||!r.clearImmediate;n(37)({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){var r=n(2227),i=n(127).process,o="process"==n(409)(i);n(37)({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=o&&i.domain;r(t?t.bind(e):e)}})},function(e,t,n){var r=n(127),i=n(1180),o=[].slice,a=/MSIE .\./.test(i),s=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&o.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};n(37)({global:!0,bind:!0,forced:a},{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){"use strict";n(2230);var r,i=n(180),o=n(2237),a=n(127).URL,s=n(2158),c=n(326),u=n(571),l=n(244),f=n(2224),d=n(2209),h=n(1183),p=n(2574),m=n(2238),v=m.URLSearchParams,g=m.getState,y=n(374),b=y.set,_=y.getterFor("URL"),w=Math.pow,x=/[a-zA-Z]/,k=/[a-zA-Z0-9+\-.]/,E=/\d/,S=/^(0x|0X)/,T=/^[0-7]+$/,O=/^\d+$/,C=/^[0-9A-Fa-f]+$/,j=/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/,A=/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/,M=/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,P=/\u0009|\u000A|\u000D/g,N=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=L(t.slice(1,-1))))return"Invalid host";e.host=n}else if(H(e)){if(t=p(t),j.test(t))return"Invalid host";if(null===(n=I(t)))return"Invalid host";e.host=n}else{if(A.test(t))return"Invalid host";for(n="",r=d(t),i=0;i<r.length;i++)n+=q(r[i],R);e.host=n}},I=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(""==c[c.length-1]&&c.length&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=S.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?O:8==o?T:C).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=w(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*w(256,3-r);return s},L=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=n=0;n<4&&C.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,u>6)return;for(r=0;d();){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!E.test(d()))return;for(;E.test(d());){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},D=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Math.floor(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},R={},B=f({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),F=f({},B,{"#":1,"?":1,"{":1,"}":1}),U=f({},F,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(e,t){var n=h(e,0);return n>32&&n<127&&!l(t,e)?e:encodeURIComponent(e)},z={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},H=function(e){return l(z,e.scheme)},W=function(e){return""!=e.username||""!=e.password},V=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&x.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},G=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},K=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},$=function(e){return"."===e||"%2e"===e.toLowerCase()},X={},Q={},Z={},J={},ee={},te={},ne={},re={},ie={},oe={},ae={},se={},ce={},ue={},le={},fe={},de={},he={},pe={},me={},ve={},ge=function(e,t,n,i){var o,a,s,c,u,f=n||X,h=0,p="",m=!1,v=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(M,"")),t=t.replace(P,""),o=d(t);h<=o.length;){switch(a=o[h],f){case X:if(!a||!x.test(a)){if(n)return"Invalid scheme";f=Z;continue}p+=a.toLowerCase(),f=Q;break;case Q:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";p="",f=Z,h=0;continue}if(n&&(H(e)!=l(z,p)||"file"==p&&(W(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(H(e)&&z[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?f=ue:H(e)&&i&&i.scheme==e.scheme?f=J:H(e)?f=re:"/"==o[h+1]?(f=ee,h++):(e.cannotBeABaseURL=!0,e.path.push(""),f=pe)}break;case Z:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,f=ve;break}f="file"==i.scheme?ue:te;continue;case J:if("/"!=a||"/"!=o[h+1]){f=te;continue}f=ie,h++;break;case ee:if("/"==a){f=oe;break}f=he;continue;case te:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&H(e))f=ne;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",f=me;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),f=he;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",f=ve}break;case ne:if(!H(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,f=he;continue}f=oe}else f=ie;break;case re:if(f=ie,"/"!=a||"/"!=p.charAt(h+1))continue;h++;break;case ie:if("/"!=a&&"\\"!=a){f=oe;continue}break;case oe:if("@"==a){m&&(p="%40"+p),m=!0,s=d(p);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var _=q(b,U);g?e.password+=_:e.username+=_}else g=!0}p=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(m&&""==p)return"Invalid authority";h-=d(p).length+1,p="",f=ae}else p+=a;break;case ae:case se:if(n&&"file"==e.scheme){f=fe;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(H(e)&&""==p)return"Invalid host";if(n&&""==p&&(W(e)||null!==e.port))return;if(c=N(e,p))return c;if(p="",f=de,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),p+=a}else{if(""==p)return"Invalid host";if(c=N(e,p))return c;if(p="",f=ce,n==se)return}break;case ce:if(!E.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)||n){if(""!=p){var w=parseInt(p,10);if(w>65535)return"Invalid port";e.port=H(e)&&w===z[e.scheme]?null:w,p=""}if(n)return;f=de;continue}return"Invalid port"}p+=a;break;case ue:if(e.scheme="file","/"==a||"\\"==a)f=le;else{if(!i||"file"!=i.scheme){f=he;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",f=me;else{if("#"!=a){G(o.slice(h).join(""))||(e.host=i.host,e.path=i.path.slice(),K(e)),f=he;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",f=ve}}break;case le:if("/"==a||"\\"==a){f=fe;break}i&&"file"==i.scheme&&!G(o.slice(h).join(""))&&(Y(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),f=he;continue;case fe:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Y(p))f=he;else if(""==p){if(e.host="",n)return;f=de}else{if(c=N(e,p))return c;if("localhost"==e.host&&(e.host=""),n)return;p="",f=de}continue}p+=a;break;case de:if(H(e)){if(f=he,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(f=he,"/"!=a))continue}else e.fragment="",f=ve;else e.query="",f=me;break;case he:if(a==r||"/"==a||"\\"==a&&H(e)||!n&&("?"==a||"#"==a)){if(".."===(u=(u=p).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(K(e),"/"==a||"\\"==a&&H(e)||e.path.push("")):$(p)?"/"==a||"\\"==a&&H(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",f=me):"#"==a&&(e.fragment="",f=ve)}else p+=q(a,F);break;case pe:"?"==a?(e.query="",f=me):"#"==a?(e.fragment="",f=ve):a!=r&&(e.path[0]+=q(a,R));break;case me:n||"#"!=a?a!=r&&("'"==a&&H(e)?e.query+="%27":e.query+="#"==a?"%23":q(a,R)):(e.fragment="",f=ve);break;case ve:a!=r&&(e.fragment+=q(a,B))}h++}},ye=function(e){var t,n,r=u(this,ye,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=b(r,{type:"URL"});if(void 0!==o)if(o instanceof ye)t=_(o);else if(n=ge(t={},String(o)))throw TypeError(n);if(n=ge(s,a,null,t))throw TypeError(n);var c=s.searchParams=new v,l=g(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},i||(r.href=_e.call(r),r.origin=we.call(r),r.protocol=xe.call(r),r.username=ke.call(r),r.password=Ee.call(r),r.host=Se.call(r),r.hostname=Te.call(r),r.port=Oe.call(r),r.pathname=Ce.call(r),r.search=je.call(r),r.searchParams=Ae.call(r),r.hash=Me.call(r))},be=ye.prototype,_e=function(){var e=_(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",W(e)&&(u+=n+(r?":"+r:"")+"@"),u+=D(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},we=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&H(e)?t+"://"+D(e.host)+(null!==n?":"+n:""):"null"},xe=function(){return _(this).scheme+":"},ke=function(){return _(this).username},Ee=function(){return _(this).password},Se=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?D(t):D(t)+":"+n},Te=function(){var e=_(this).host;return null===e?"":D(e)},Oe=function(){var e=_(this).port;return null===e?"":String(e)},Ce=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},je=function(){var e=_(this).query;return e?"?"+e:""},Ae=function(){return _(this).searchParams},Me=function(){var e=_(this).fragment;return e?"#"+e:""},Pe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&s(be,{href:Pe(_e,function(e){var t=_(this),n=String(e),r=ge(t,n);if(r)throw TypeError(r);g(t.searchParams).updateSearchParams(t.query)}),origin:Pe(we),protocol:Pe(xe,function(e){var t=_(this);ge(t,String(e)+":",X)}),username:Pe(ke,function(e){var t=_(this),n=d(String(e));if(!V(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=q(n[r],U)}}),password:Pe(Ee,function(e){var t=_(this),n=d(String(e));if(!V(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=q(n[r],U)}}),host:Pe(Se,function(e){var t=_(this);t.cannotBeABaseURL||ge(t,String(e),ae)}),hostname:Pe(Te,function(e){var t=_(this);t.cannotBeABaseURL||ge(t,String(e),se)}),port:Pe(Oe,function(e){var t=_(this);V(t)||(""==(e=String(e))?t.port=null:ge(t,e,ce))}),pathname:Pe(Ce,function(e){var t=_(this);t.cannotBeABaseURL||(t.path=[],ge(t,e+"",de))}),search:Pe(je,function(e){var t=_(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ge(t,e,me)),g(t.searchParams).updateSearchParams(t.query)}),searchParams:Pe(Ae),hash:Pe(Me,function(e){var t=_(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ge(t,e,ve)):t.fragment=null})}),c(be,"toJSON",function(){return _e.call(this)},{enumerable:!0}),c(be,"toString",function(){return _e.call(this)},{enumerable:!0}),a){var Ne=a.createObjectURL,Ie=a.revokeObjectURL;Ne&&c(ye,"createObjectURL",function(e){return Ne.apply(a,arguments)}),Ie&&c(ye,"revokeObjectURL",function(e){return Ie.apply(a,arguments)})}n(444)(ye,"URL"),n(37)({global:!0,forced:!o,sham:!i},{URL:ye})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[\u002E\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,l=128,f=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var h=r.length,p=h;for(h&&r.push("-");p<i;){var m=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<m&&(m=n);var v=p+1;if(m-l>a((2147483647-f)/v))throw RangeError(o);for(f+=(m-l)*v,l=m,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(o);if(n==l){for(var g=f,y=36;;y+=36){var b=y<=d?1:y>=d+26?26:y-d;if(g<b)break;var _=g-b,w=36-b;r.push(s(c(b+_%w))),g=a(_/w)}r.push(s(c(g))),d=u(f,v,p==h),f=0,++p}}++f,++l}return r.join("")};e.exports=function(e){var t,n,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)n=a[t],o.push(r.test(n)?"xn--"+l(n):n);return o.join(".")}},function(e,t,n){var r=n(169),i=n(1076);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n(37)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(e,t,n){var r=l;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?h:f,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={};function m(){}function v(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(C([])));_&&_!==n&&r.call(_,o)&&(y=_);var w=g.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,i){function o(){return new Promise(function(t,o){!function t(n,i,o,a){var s=u(e[n],e,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(l).then(function(e){c.value=e,o(c)},function(e){return t("throw",e,o,a)})}a(s.arg)}(n,i,t,o)})}return t=t?t.then(o,o):o()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=w.constructor=g,g.constructor=v,g[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i){var o=new k(c(t,n,r,i));return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},x(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var e=!1;try{var t=document.createElement("div");t.addEventListener("focus",function(e){e.preventDefault(),e.stopPropagation()},!0),t.focus(Object.defineProperty({},"preventScroll",{get:function(){e=!0}}))}catch(e){}if(void 0===HTMLElement.prototype.nativeFocus&&!e){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(e){for(var t=0;t<e.length;t++)e[t][0].scrollTop=e[t][1],e[t][0].scrollLeft=e[t][2];e=[]};HTMLElement.prototype.focus=function(e){if(e&&e.preventScroll){var t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push([t,t.scrollTop,t.scrollLeft]),t=t.parentNode;return t=r,n.push([t,t.scrollTop,t.scrollLeft]),n}(this);this.nativeFocus(),"function"==typeof setTimeout?setTimeout(function(){n(t)},0):n(t)}else this.nativeFocus()}}}}()},function(e,t,n){"use strict";!function(){function e(e){for(var t=[];e=e.parentNode||e.host||e.defaultView;)t.push(e);return t}function t(e){return function(t){var n=void 0!==t.getAttribute?t.getAttribute("class")||"":void 0;void 0!==n&&-1===n.indexOf(e)&&t.setAttribute("class",n.concat(" ",e).trim())}}var n=["\n","\t"," ","\r"];try{"undefined"!=typeof window&&document.querySelector(":focus-within")}catch(r){return function(){var r=function(r){if(!i){window.requestAnimationFrame(function(){var o;i=!1,"blur"===r.type&&Array.prototype.slice.call(e(r.target)).forEach((o="focus-within",function(e){var t=void 0!==e.getAttribute?e.getAttribute("class")||"":void 0;if(t){var r=t.indexOf(o);0<=r&&(0===r||0<=n.indexOf(t.charAt(r-1)))&&(""===(t=t.replace(o,"").trim())?e.removeAttribute("class"):e.setAttribute("class",t))}})),"focus"===r.type&&Array.prototype.slice.call(e(r.target)).forEach(t("focus-within"))});var i=!0}};return document.addEventListener("focus",r,!0),document.addEventListener("blur",r,!0),t("js-focus-within")(document.body),!0}()}}()},function(e,t){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?f(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,a=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),c(e,"resize",r,!0)),c(t,"scroll",r,!0),a&&a.disconnect()});var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1})){var o=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),o(),t!=r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,a=u(i),s=this._rootContainsTarget(i),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(i,a,t),f=null;this._rootContainsTarget(i)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:f,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var a,s,c,l,d,p,m,v,g=i,y=h(t),b=!1;!b&&y;){var _=null,w=1==y.nodeType?window.getComputedStyle(y):{};if("none"==w.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,_=null,g=null):_=r:_=o;else{var x=h(y),k=x&&u(x),E=x&&this._computeTargetAndRootIntersection(x,k,o);k&&E?(y=x,_=f(k,E)):(y=null,g=null)}else{var S=y.ownerDocument;y!=S.body&&y!=S.documentElement&&"visible"!=w.overflow&&(_=u(y))}if(_&&(a=_,s=g,c=void 0,l=void 0,d=void 0,p=void 0,m=void 0,v=void 0,c=Math.max(a.top,s.top),l=Math.min(a.bottom,s.bottom),d=Math.max(a.left,s.left),p=Math.min(a.right,s.right),v=l-c,g=(m=p-d)>=0&&v>=0&&{top:c,bottom:l,left:d,right:p,width:m,height:v}||null),!g)break;y=y&&h(y)}return g}},a.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=u(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},a.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},a.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return d(n,t)&&(!this.root||n==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=l(e.rootBounds),this.boundingClientRect=l(e.boundingClientRect),this.intersectionRect=l(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n,r,i,o=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(o.root&&1!=o.root.nodeType&&9!=o.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){n(),i=null},r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}()},function(e,t,n){},function(e,t,n){var r=n(2583);e.exports=r},function(e,t,n){var r=n(2584),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?r:t}},function(e,t,n){n(2585);var r=n(132);e.exports=r("Array").find},function(e,t,n){"use strict";var r=n(36),i=n(324).find,o=n(564),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){var e=r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],4),t=e[0],n=void 0===t?0:t,i=e[1],o=void 0===i?0:i,a=e[2],s=void 0===a?0:a,c=e[3],u=void 0===c?1:c;return"rgba(".concat(n,",").concat(o,",").concat(s,",").concat(u,")")};t.default=i},function(e,t,n){e.exports=n(2588)()},function(e,t,n){"use strict";var r=n(402),i=n(403),o=n(2589);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),i=s(r),o=s(n(2591)),a=s(n(2592));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(s){if("function"!=typeof s)throw new Error("Expected WrappedComponent to be a React component.");var c=[],u=void 0;function l(){u=e(c.map(function(e){return e.props})),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.peek=function(){return u},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,c=[],e},t.prototype.shouldComponentUpdate=function(e){return!(0,a.default)(e,this.props)},t.prototype.componentWillMount=function(){c.push(this),l()},t.prototype.componentDidUpdate=function(){l()},t.prototype.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),l()},t.prototype.render=function(){return i.default.createElement(s,this.props)},t}(r.Component);return f.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(s)+")",f.canUseDOM=o.default.canUseDOM,f}}},function(e,t,n){var r;
/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/
/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/
!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var u=o[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(i=n?n.call(r,l,f,u):void 0)||void 0===i&&l!==f)return!1}return!0}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=o(n(2174));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),c=0;c<o;c++)s[c]=arguments[c];return n=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.render=function(){return r.default.createElement("a",i.props,i.props.children)},a(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Component),t}();t.default=(0,i.default)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2176),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEach(function(t){return(0,r.addPassiveEventListener)(document,t,e)})}}},function(e,t,n){"use strict";var r=n(402),i=n(403),o=n(2603);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(2174));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),t}();t.default=(0,o.default)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(0)),a=c(n(2241)),s=c(n(1187));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"render",value:function(){var e=this,t=r({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",r({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}();u.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(u)},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=n(0),u=(n(91),n(1079),n(2175)),l=n(1186),f=n(1187),d=n(2240),h={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool},p={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||l,f=function(t){function l(e){o(this,l);var t=a(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e));return p.call(t),t.state={active:!1},t}return s(l,c.Component),i(l,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();u.isMounted(e)||u.mount(e),this.props.hashSpy&&(d.isMounted()||d.mount(n),d.mapContainer(this.props.to,e)),this.props.spy&&u.addStateHandler(this.stateHandler),u.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){u.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in h)n.hasOwnProperty(i)&&delete n[i];return n.className=t,n.onClick=this.handleClick,c.createElement(e,n)}}]),l}(),p=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!d.isMounted()||d.isInitialized()){var i=e.props.to,o=null,a=0,s=0,c=0;if(r.getBoundingClientRect)c=r.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(i)))return;var l=o.getBoundingClientRect();s=(a=l.top-c+t)+l.height}var f=t-e.props.offset,h=f>=Math.floor(a)&&f<Math.floor(s),p=f<Math.floor(a)||f>=Math.floor(s),m=n.getActiveLink();return p?(i===m&&n.setActiveLink(void 0),e.props.hashSpy&&d.getHash()===i&&d.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),u.updateStates()):h&&m!==i?(n.setActiveLink(i),e.props.hashSpy&&d.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),u.updateStates()):void 0}}};return f.propTypes=h,f.defaultProps={offset:0},f},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return s(n,c.Component),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;l.unregister(this.props.name)}},{key:"registerElems",value:function(e){l.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return c.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:f.string,id:f.string},t}};e.exports=p},function(e,t,n){var r=n(191)(n(2608));e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2610);e.exports=r},function(e,t,n){var r=n(2611),i=Array.prototype;e.exports=function(e){var t=e.sort;return e===i||e instanceof Array&&t===i.sort?r:t}},function(e,t,n){n(2612);var r=n(132);e.exports=r("Array").sort},function(e,t,n){"use strict";var r=n(36),i=n(140),o=n(199),a=n(200),s=n(118),c=n(2613),u=n(369),l=n(2614),f=n(2615),d=n(322),h=n(2616),p=[],m=p.sort,v=s(function(){p.sort(void 0)}),g=s(function(){p.sort(null)}),y=u("sort"),b=!s(function(){if(d)return d<70;if(!(l&&l>3)){if(f)return!0;if(h)return h<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:t+r,v:n})}for(p.sort(function(e,t){return t.v-e.v}),r=0;r<p.length;r++)t=p[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});r({target:"Array",proto:!0,forced:v||!g||!y||!b},{sort:function(e){void 0!==e&&i(e);var t=o(this);if(b)return void 0===e?m.call(t):m.call(t,e);var n,r,s=[],u=a(t.length);for(r=0;r<u;r++)r in t&&s.push(t[r]);for(n=(s=c(s,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:String(t)>String(n)?1:-1}}(e))).length,r=0;r<n;)t[r]=s[r++];for(;r<u;)delete t[r++];return t}})},function(e,t){var n=Math.floor,r=function(e,t){var a=e.length,s=n(a/2);return a<8?i(e,t):o(r(e.slice(0,s),t),r(e.slice(s),t),t)},i=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},o=function(e,t,n){for(var r=e.length,i=t.length,o=0,a=0,s=[];o<r||a<i;)o<r&&a<i?s.push(n(e[o],t[a])<=0?e[o++]:t[a++]):s.push(o<r?e[o++]:t[a++]);return s};e.exports=r},function(e,t,n){var r=n(323).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(323);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(323).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(1189),i=n(1188);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,c=t,u=0;u<n.length||s<arguments.length;){var l;u<n.length&&(!i(n[u])||s>=arguments.length)?l=n[u]:(l=arguments[s],s+=1),a[u]=l,i(l)||(c-=1),u+=1}return c<=0?o.apply(this,a):r(c,e(t,a,o))}}},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(2179)(n(2180));e.exports=r},function(e,t,n){var r=n(255),i=n(514),o=n(2181),a=n(2635),s=i(function(e){return!!o(e)||!!e&&("object"===r(e)&&(!a(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=s},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(1189),i=n(309)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=i},function(e,t,n){var r=n(2242),i=n(514)(r("tail",n(2639)(1,1/0)));e.exports=i},function(e,t,n){var r=n(47),i=n(2242),o=n(2179)(i("slice",function(e,t,n){return r(Array.prototype).call(n,e,t)}));e.exports=o},function(e,t){e.exports=function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}},function(e,t,n){var r=n(309),i=n(2245),o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),a=r(function(e,t){return new o(e,t)});e.exports=a},function(e,t,n){var r=n(1190),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return r("callee",e)}}();e.exports=o},function(e,t,n){var r=n(47),i=n(309),o=n(2644),a=n(2178),s=n(2645),c=i(function(e,t){return a(e+1,function(){var n=arguments[e];if(null!=n&&o(n[t]))return n[t].apply(n,r(Array.prototype).call(arguments,0,e));throw new TypeError(s(n)+' does not have a method named "'+t+'"')})});e.exports=c},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(514),i=n(2646),o=r(function(e){return i(e,[])});e.exports=o},function(e,t,n){var r=n(255),i=n(5),o=n(1200),a=n(47),s=n(2647),c=n(2244),u=n(2666),l=n(2667),f=n(1191),d=n(2668);e.exports=function e(t,n){var h,p=function(r){var o=i(n).call(n,[t]);return s(r,o)?"<Circular>":e(r,o)},m=function(e,t){var n;return c(function(t){return u(t)+": "+p(e[t])},o(n=a(t).call(t)).call(n))};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+c(p,t).join(", ")+"))";case"[object Array]":return"["+i(h=c(p,t)).call(h,m(t,d(function(e){return/^\d+$/.test(e)},f(t)))).join(", ")+"]";case"[object Boolean]":return"object"===r(t)?"new Boolean("+p(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?p(NaN):u(l(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===r(t)?"new Number("+p(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"===r(t)?"new String("+p(t.valueOf())+")":u(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var v=t.toString();if("[object Object]"!==v)return v}return"{"+m(t,f(t)).join(", ")+"}"}}},function(e,t,n){var r=n(2648);e.exports=function(e,t){return r(t,e,0)>=0}},function(e,t,n){var r=n(255),i=n(195),o=n(2649);e.exports=function(e,t,n){var a,s;if("function"==typeof i(e))switch(r(t)){case"number":if(0===t){for(a=1/t;n<e.length;){if(0===(s=e[n])&&1/s===a)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return i(e).call(e,t,n);case"string":case"boolean":case"function":case"undefined":return i(e).call(e,t,n);case"object":if(null===t)return i(e).call(e,t,n)}for(;n<e.length;){if(o(e[n],t))return n;n+=1}return-1}},function(e,t,n){var r=n(309),i=n(2650),o=r(function(e,t){return i(e,t,[],[])});e.exports=o},function(e,t,n){var r=n(255),i=n(47),o=n(2651),a=n(5),s=n(160),c=n(2656),u=n(2657),l=n(2658),f=n(1190),d=n(2659),h=n(1191),p=n(2665);function m(e,t,n,r){var o=c(e),a=c(t);function s(e,t){return v(e,t,i(n).call(n),i(r).call(r))}return!u(function(e,t){return!u(s,t,e)},a,o)}function v(e,t,n,i){if(d(e,t))return!0;var c=p(e);if(c!==p(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(c){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===l(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(r(e)!==r(t)||!d(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!d(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===e)return i[u]===t;u-=1}switch(c){case"Map":return e.size===t.size&&m(o(e).call(e),o(t).call(t),a(n).call(n,[e]),a(i).call(i,[t]));case"Set":return e.size===t.size&&m(s(e).call(e),s(t).call(t),a(n).call(n,[e]),a(i).call(i,[t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var g=h(e);if(g.length!==h(t).length)return!1;var y=a(n).call(n,[e]),b=a(i).call(i,[t]);for(u=g.length-1;u>=0;){var _=g[u];if(!f(_,t)||!v(t[_],e[_],y,b))return!1;u-=1}return!0}e.exports=v},function(e,t,n){e.exports=n(2652)},function(e,t,n){var r=n(2653);e.exports=r},function(e,t,n){n(295);var r=n(2654),i=n(294),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.entries;return e===o||e instanceof Array&&t===o.entries||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(2655);e.exports=r},function(e,t,n){n(441);var r=n(132);e.exports=r("Array").entries},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t,n){var r=n(2660);e.exports="function"==typeof r?r:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){e.exports=n(2661)},function(e,t,n){var r=n(2662);e.exports=r},function(e,t,n){n(2663);var r=n(93);e.exports=r.Object.is},function(e,t,n){n(36)({target:"Object",stat:!0},{is:n(2664)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(47),i=n(514)(function(e){var t;return null===e?"Null":void 0===e?"Undefined":r(t=Object.prototype.toString.call(e)).call(t,8,-1)});e.exports=i},function(e,t){e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(e,t,n){var r=n(47),i=function(e){return(e<10?"0":"")+e},o="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){var t;return e.getUTCFullYear()+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"."+r(t=(e.getUTCMilliseconds()/1e3).toFixed(3)).call(t,2,5)+"Z"};e.exports=o},function(e,t,n){var r=n(2669),i=n(309),o=n(2670),a=i(function(e,t){return o(r(e),t)});e.exports=a},function(e,t){e.exports=function(e){return function(){return!e.apply(this,arguments)}}},function(e,t,n){var r=n(309),i=n(2243),o=n(2671),a=n(2672),s=n(2180),c=n(2673),u=n(1191),l=r(i(["filter"],c,function(e,t){return a(t)?s(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},u(t)):o(e,t)}));e.exports=l},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(309),i=n(2245),o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),a=r(function(e,t){return new o(e,t)});e.exports=a},function(e,t,n){},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(566),i=n(370),o=n(371),a=n(194).type("Pair"),s=n(194).typeFn(a(),4),c=n(173),u=n(717),l=n(442),f=n(243),d=n(90),h=n(206),p=n(443);function m(e,t){var n;if(arguments.length<2)throw new TypeError("Pair: Must provide a first and second value");var i=function(){return e},v=function(){return t},g=function(){return"Pair("+o(e)+","+o(t)+" )"};function y(e){return h(m,e)&&r(e.fst(),i())&&r(e.snd(),v())}function b(e){return function(t){if(!h(m,t))throw new TypeError("Pair."+e+": Pair required");var n=i(),r=v(),o=t.fst(),a=t.snd();if(!p(n)||!p(r))throw new TypeError("Pair."+e+": Both Pairs must contain Semigroups of the same type");if(!h(n,o)||!h(r,a))throw new TypeError("Pair."+e+": Both Pairs must contain Semigroups of the same type");return m(n.concat(o),r.concat(a))}}function _(n){return function(r){if(!d(r))throw new TypeError("Pair."+n+": Function required");return m(e,r(t))}}function w(n){return function(r,i){if(!d(r)||!d(i))throw new TypeError("Pair."+n+": Function required for both arguments");return m(r(e),i(t))}}function x(e){return function(t){var n=i();if(!d(t))throw new TypeError("Pair."+e+": Function required");if(!p(n))throw new TypeError("Pair."+e+": Semigroups of the same type required for first values");var r=t(v());if(!h(m,r))throw new TypeError("Pair."+e+": Function must return a Pair");var o=r.fst();if(!h(n,o))throw new TypeError("Pair."+e+": Semigroups of the same type required for first values");return m(n.concat(o),r.snd())}}function k(n){return function(r){if(!d(r))throw new TypeError("Pair."+n+": Function required");return m(e,r(m(e,t)))}}return(n={inspect:g,toString:g,fst:i,snd:v,toArray:function(){return[e,t]},type:a,merge:function(e){if(!d(e))throw new TypeError("Pair.merge: Binary function required");return e(i(),v())},equals:y,swap:function(n,r){if(!d(n)||!d(r))throw new TypeError("Pair.swap: Requires both left and right functions");return m(r(t),n(e))},ap:function(e){if(!h(m,e))throw new TypeError("Pair.ap: Pair required");var t=v();if(!d(t))throw new TypeError("Pair.ap: Function required for second value");var n=i(),r=e.fst();if(!p(n)||!h(n,r))throw new TypeError("Pair.ap: Semigroups of the same type is required for first values");return m(n.concat(r),t(e.snd()))},sequence:function(n){if(!u(n)&&!d(n))throw new TypeError("Pair.sequence: Applicative TypeRep or Apply returning function required");if(!l(t)&&!f(t))throw new TypeError("Pair.sequence: Must wrap an Apply in the second");return t.map(function(t){return m(e,t)})},traverse:function(n,r){if(!u(n)&&!d(n))throw new TypeError("Pair.traverse: Applicative TypeRep or Apply returning function required for first argument");if(!d(r))throw new TypeError("Pair.traverse: Apply returning function required for second argument");var i=r(t);if(!l(i)&&!f(i))throw new TypeError("Pair.traverse: Both functions must return an Apply of the same type");return i.map(function(t){return m(e,t)})},concat:b("concat"),map:_("map"),bimap:w("bimap"),chain:x("chain"),extend:k("extend")})[c.equals]=y,n[c.concat]=b(c.concat),n[c.map]=_(c.map),n[c.bimap]=w(c.bimap),n[c.chain]=x(c.chain),n[c.extend]=k(c.extend),n["@@type"]=s,n.constructor=m,n}m.type=a,m["@@type"]=s,m["@@implements"]=i(["ap","bimap","chain","concat","extend","equals","map","traverse"]),e.exports=m},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(216);e.exports=function(e){return!!e&&r("compose",e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(2682);e.exports=r},function(e,t,n){n(2683);var r=n(93);e.exports=r.Date.now},function(e,t,n){n(36)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1;t.AppContainer=o,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){"use strict";n.r(t);var r=n(262),i=n.n(r),o=(n(2362),n(2364),n(2365),n(2366),n(2367),n(2368),n(2369),n(2370),n(2371),n(2372),n(2373),n(2374),n(2375),n(2376),n(2377),n(2378),n(2379),n(2380),n(2381),n(2382),n(2383),n(2384),n(2385),n(2386),n(2387),n(2388),n(2389),n(2390),n(1174),n(2391),n(2392),n(2393),n(2394),n(2395),n(2396),n(2397),n(2398),n(2399),n(2400),n(2401),n(2402),n(2403),n(2404),n(2405),n(2406),n(2407),n(2408),n(2409),n(2410),n(2412),n(2413),n(2415),n(2416),n(2417),n(2418),n(2419),n(2420),n(2421),n(2422),n(2423),n(2424),n(2425),n(2426),n(2427),n(2428),n(2430),n(2431),n(2432),n(2433),n(2434),n(2435),n(2436),n(2437),n(2438),n(2439),n(2440),n(2441),n(2442),n(2444),n(2445),n(2446),n(2447),n(2448),n(2449),n(2450),n(2451),n(2452),n(2453),n(2454),n(2455),n(2456),n(2457),n(2458),n(2459),n(2460),n(2461),n(2462),n(2463),n(2464),n(2465),n(2466),n(2467),n(2468),n(2469),n(2470),n(2471),n(2472),n(2473),n(2474),n(2475),n(2476),n(2478),n(2479),n(2480),n(2481),n(2484),n(2485),n(2486),n(2487),n(2488),n(2489),n(2490),n(2491),n(2492),n(2493),n(2494),n(2495),n(2496),n(2497),n(2498),n(2499),n(2500),n(2501),n(2502),n(2503),n(2504),n(2505),n(2506),n(2230),n(2507),n(2508),n(2509),n(2510),n(2511),n(2512),n(2513),n(2514),n(2515),n(2516),n(2517),n(2518),n(2519),n(2520),n(2521),n(2522),n(2523),n(2524),n(2525),n(2526),n(2527),n(2528),n(2529),n(2530),n(2531),n(2532),n(2533),n(2534),n(2535),n(2536),n(2537),n(2538),n(2539),n(2540),n(2541),n(2542),n(2543),n(2544),n(2545),n(2546),n(2547),n(2548),n(2549),n(2550),n(2551),n(2552),n(2553),n(2554),n(2555),n(2556),n(2557),n(2558),n(2559),n(2560),n(2561),n(2562),n(2563),n(2564),n(2565),n(2566),n(2567),n(2568),n(2569),n(2570),n(2571),n(2572),n(2573),n(2576),n(2238),n(2577),n(2578),n(2579),n(2580),n(2268)),a=n.n(o);window.URLSearchParams=i.a||a.a,Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var s=n(0),c=n.n(s),u=n(91),l=n(123),f=n(114),d=n(271),h=n.n(d),p=n(1196),m=n.n(p);function v(e){return"/"===e.charAt(0)}function g(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&v(e),o=t&&v(t),a=i||o;if(e&&v(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var c=r[r.length-1];s="."===c||".."===c||""===c}else s=!1;for(var u=0,l=r.length;l>=0;l--){var f=r[l];"."===f?g(r,l):".."===f?(g(r,l),u++):u&&(g(r,l),u--)}if(!a)for(;u--;u)r.unshift("..");!a||""===r[0]||r[0]&&v(r[0])||r.unshift("");var d=r.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d},b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var _,w=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":b(t);if(r!==(void 0===n?"undefined":b(n)))return!1;if("object"===r){var i=t.valueOf(),o=n.valueOf();if(i!==t||o!==n)return e(i,o);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},x=function(e){return"/"===e.charAt(0)?e:"/"+e},k=function(e){return"/"===e.charAt(0)?e.substr(1):e},E=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},S=function(e,t){return E(e,t)?e.substr(t.length):e},T=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},O=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j=function(e,t,n,r){var i=void 0;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=C({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=y(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},A=function(){var e=null,t=[];return{setPrompt:function(t){return h()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):(h()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}},M=!("undefined"==typeof window||!window.document||!window.document.createElement),P=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},N=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},I=function(e,t){return t(window.confirm(e))},L=("function"==typeof Symbol&&Symbol.iterator,Object.assign,Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),D={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+k(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:k,decodePath:x},slash:{encodePath:x,decodePath:x}},R=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},B=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m()(M,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?I:r,o=e.hashType,a=void 0===o?"slash":o,s=e.basename?T(x(e.basename)):"",c=D[a],u=c.encodePath,l=c.decodePath,f=function(){var e=l(R());return h()(!s||E(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=S(e,s)),j(e)},d=A(),p=function(e){L(V,e),V.length=t.length,d.notifyListeners(V.location,V.action)},v=!1,g=null,y=function(){var e,t,n=R(),r=u(n);if(n!==r)B(r);else{var i=f(),o=V.location;if(!v&&(t=i,(e=o).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&w(e.state,t.state)))return;if(g===O(i))return;g=null,b(i)}},b=function(e){v?(v=!1,p()):d.confirmTransitionTo(e,"POP",i,function(t){t?p({action:"POP",location:e}):_(e)})},_=function(e){var t=V.location,n=U.lastIndexOf(O(t));-1===n&&(n=0);var r=U.lastIndexOf(O(e));-1===r&&(r=0);var i=n-r;i&&(v=!0,q(i))},k=R(),C=u(k);k!==C&&B(C);var F=f(),U=[O(F)],q=function(e){h()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},z=0,H=function(e){1===(z+=e)?P(window,"hashchange",y):0===z&&N(window,"hashchange",y)},W=!1,V={length:t.length,action:"POP",location:F,createHref:function(e){return"#"+u(s+O(e))},push:function(e,t){h()(void 0===t,"Hash history cannot push state; it is ignored");var n=j(e,void 0,void 0,V.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=O(n),r=u(s+t);if(R()!==r){g=t,function(e){window.location.hash=e}(r);var i=U.lastIndexOf(O(V.location)),o=U.slice(0,-1===i?0:i+1);o.push(t),U=o,p({action:"PUSH",location:n})}else h()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),p()}})},replace:function(e,t){h()(void 0===t,"Hash history cannot replace state; it is ignored");var n=j(e,void 0,void 0,V.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=O(n),r=u(s+t);R()!==r&&(g=t,B(r));var i=U.indexOf(O(V.location));-1!==i&&(U[i]=t),p({action:"REPLACE",location:n})}})},go:q,goBack:function(){return q(-1)},goForward:function(){return q(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return W||(H(1),W=!0),function(){return W&&(W=!1,H(-1)),t()}},listen:function(e){var t=d.appendListener(e);return H(1),function(){H(-1),t()}}};return V},U=("function"==typeof Symbol&&Symbol.iterator,Object.assign,n(2581),n(1318),n(81)),q=n(74),z=n(2269),H=n(3),W=n.n(H),V=n(9),Y=n(10),G=n(7),K=n(11),$=n(14),X=n(6),Q=n(4),Z=n.n(Q),J=n(33),ee=n.n(J),te=n(2331),ne=n(2332),re=n(86),ie=n(156),oe=n.n(ie),ae=n(448),se=n.n(ae),ce=n(2272),ue=n.n(ce),le=n(8),fe=n.n(le),de=n(31),he=n.n(de),pe=n(1164),me=n(2273),ve=n(1157),ge=n(2274),ye=n(85),be=n(50),_e=(n(2594),n(163)),we=n.n(_e),xe=n(39),ke=n.n(xe),Ee=n(19),Se=n.n(Ee),Te=n(71),Oe=n.n(Te),Ce=n(447),je=function(e){var t=e.loadingText,n=e.status,r=Object(s.useState)(!1),i=Object(be.a)(r,2),o=i[0],a=i[1],c=function(){return a(!0)},u=Se()("status","error"),l=Se()("status","fatalError"),f=we()(u,Se()("reconnectFailed",!0));return Object(s.useEffect)(function(){return _=ee()(c,1e4),function(){clearTimeout(_)}},[]),ke()([[l,Pe],[f,Ie],[u,Ne],[Oe.a,Me(t)]])({status:n,reconnectFailed:o})},Ae=function(){return window.location.reload(!0)},Me=function(e){return function(){return c.a.createElement("div",{className:"curtain__container"},c.a.createElement("div",{className:"curtain"},c.a.createElement("div",{className:"curtain__spinner"}),c.a.createElement("div",{className:"curtain__text"},e||"Your course is loading.")))}},Pe=function(){return c.a.createElement("div",{className:"curtain__container"},c.a.createElement("div",{className:"curtain"},c.a.createElement("div",{className:"curtain__title"},"Something went wrong."),c.a.createElement("div",{className:"curtain__description"},"Click to refresh and try again."),c.a.createElement(Ce.a,{headerDone:!0,onClick:Ae},"Refresh")))},Ne=function(){return c.a.createElement("div",{className:"curtain__container"},c.a.createElement("div",{className:"curtain"},c.a.createElement("div",{className:"curtain__spinner curtain__spinner--reconnect"}),c.a.createElement("div",{className:"curtain__title"},"Your computer is offline."),c.a.createElement("div",{className:"curtain__description"},"Attempting to reconnect…")))},Ie=function(){return c.a.createElement("div",{className:"curtain__container"},c.a.createElement("div",{className:"curtain"},c.a.createElement("div",{className:"curtain__title"},"Your session has timed out."),c.a.createElement("div",{className:"curtain__description"},"Click refresh to restart your session."),c.a.createElement(Ce.a,{headerDone:!0,onClick:Ae},"Refresh")))},Le=Object(s.memo)(je),De=n(2275),Re=n(2276),Be=function(e){var t=e.onClose;return c.a.createElement(Re.a,{hideCloseButton:!0,hideHeader:!0,onClose:t,onConfirm:t,width:440},c.a.createElement("div",{className:"base-modal__content base-modal__content--centered"},c.a.createElement("p",null,"External links are disabled in trial accounts."),c.a.createElement("div",{className:"base-modal__btns"},c.a.createElement(Ce.a,{inverted:!0,onClick:t},"OKAY"))))},Fe=n(360),Ue=n(238),qe=n(2185),ze=n(423),He=n(234),We=n(263),Ve=n(2329),Ye=n(212),Ge=n(2194),Ke=n(218),$e=n(2330),Xe=n(20),Qe=n(449),Ze=n(66);function Je(e){var t=function(){if("undefined"==typeof Reflect||!W.a)return!1;if(W.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(W()(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Object(X.a)(e);if(t){var i=Object(X.a)(this).constructor;n=W()(r,arguments,i)}else n=r.apply(this,arguments);return Object($.a)(this,n)}}var et=n(65).a.learn.course,tt=function(e){Object(K.a)(n,e);var t=Je(n);function n(e){var r,i,o,a,s,c;return Object(V.a)(this,n),(c=t.call(this,e)).state={previewType:"",failAttempt:!1,notFound:!1,showPasswordDialog:!0},c.onSharePasswordSubmit=Z()(r=c.onSharePasswordSubmit).call(r,Object(G.a)(c)),c.onFavoriteAdded=Z()(i=c.onFavoriteAdded).call(i,Object(G.a)(c)),c.onFavoriteRemoved=Z()(o=c.onFavoriteRemoved).call(o,Object(G.a)(c)),c.preventExternalLinking=Z()(a=c.preventExternalLinking).call(a,Object(G.a)(c)),c.closeExternalLinkingModal=Z()(s=c.closeExternalLinkingModal).call(s,Object(G.a)(c)),c}return Object(Y.a)(n,[{key:"componentWillMount",value:function(){var e;ye.a.isIe11&&document.documentElement.classList.add("ie11"),ye.a.isSafari9&&document.documentElement.classList.add("safari9"),ye.a.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),ye.a.isSafari&&"iframe"===this.props.match.params.mode&&ue.a.enable(),window.addEventListener("message",Z()(e=this.handleMessages).call(e,this)),Object(Xe.l)()}},{key:"componentDidMount",value:function(){this.startRedux()}},{key:"updateConnectionStatus",value:function(e){Object(q.a)(Object(Ke.b)(e))}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.course,i=n.languageCode;!t.languageCode&&i&&(document.documentElement.lang=i),!t.course&&r&&r.externalLinksDisabled&&document.addEventListener("click",this.preventExternalLinking,!0)}},{key:"startRedux",value:function(){var e=this;this.unsubscribe=q.b.subscribe(function(){var t=q.b.getState(),n=t.course,r=t.courseLabels,i=t.courseProgress,o=t.partnerContent,a=t.search,s=t.sessionPreferences,c=t.status,u=c.courseLoaded,l=c.fontsLoaded,f=c.coverLoaded,d=c.notFound,h=c.partnerContentLoaded;d&&e.setState({notFound:d}),u&&!f&&e.preloadCover(),u&&l&&h&&e.setState({course:n,courseProgress:i,labels:r.labels,languageCode:r.iso639Code,lessons:n&&n.lessons,partnerContent:o,search:a,sessionPreferences:s})});Object(q.a)([Object(He.d)(),Object(We.b)()]),Object(Ye.h)("favoriteAdded",this.onFavoriteAdded),Object(Ye.h)("favoriteRemoved",this.onFavoriteRemoved)}},{key:"componentWillUnmount",value:function(){var e;this.unsubscribe(),window.removeEventListener("message",Z()(e=this.handleMessages).call(e,this)),document.removeEventListener("click",this.preventExternalLinking,!0),Object(Ye.g)("favoriteAdded",this.onFavoriteAdded),Object(Ye.g)("favoriteRemoved",this.onFavoriteRemoved)}},{key:"handleMessages",value:function(e){var t=e.data,n=t.type,r=t.data;"preview:update"===n&&this.setState({previewType:r})}},{key:"onSharePasswordSubmit",value:function(e){var t=this;return Object(U.u)(e.value).then(function(n){n.isValid?t.setState({showPasswordDialog:!1}):(e.value="",t.setState({failAttempt:!0}))}).catch(function(e){return console.error("Verify password error",e)})}},{key:"onFavoriteAdded",value:function(){Object(q.a)(Object(Fe.d)())}},{key:"onFavoriteRemoved",value:function(){Object(q.a)(Object(Fe.e)())}},{key:"preventExternalLinking",value:function(e){var t=e.target.closest("a, .fr-view");t&&"A"===t.tagName&&Object(Ue.a)(t.href)&&(e.preventDefault(),this.props.showExternalLinksModal())}},{key:"closeExternalLinkingModal",value:function(){this.props.hideExternalLinksModal()}},{key:"renderAppLayout",value:function(){var e=this.state,t=e.course,n=e.courseProgress,r=e.labels,i=e.lessons,o=e.partnerContent,a=e.previewType,s=e.search,u=e.sessionPreferences,l=this.props,f=l.easterEggClassNames,d=l.location,h=l.externalLinksModalVisible;if(!t)return null;var p=t.color,m=t.bodyTypeface,v=t.headingTypeface,g=t.uiTypeface,y=d.pathname.split("/")[1],b={key:d.pathname.split("/")[1],course:t,courseProgress:n,labels:r,lessons:i,location:d,partnerContent:o,previewType:a,search:s,sessionPreferences:u},_={bodyTypeface:m,color:p,headingTypeface:v,uiTypeface:g};return c.a.createElement(se.a,{title:Object(Qe.a)(t.title)},c.a.createElement("div",{id:"innerApp","data-ba":et.container,className:f},c.a.createElement(ve.a,_),c.a.createElement(ge.a,{env:"runtime"},c.a.createElement(re.d,{component:"div",className:"transition-group"},c.a.createElement(ze.a,{key:y},c.a.createElement(me.a,{location:d},c.a.createElement(pe.a,{exact:!0,path:"/",component:Ge.a,childProps:b}),c.a.createElement(pe.a,{exact:!0,path:"/:mode",component:Ge.a,childProps:b}),c.a.createElement(pe.a,{exact:!0,path:"/lessons/:id",component:qe.a,childProps:b}),c.a.createElement(pe.a,{path:"/lessons/:id/:mode",component:qe.a,childProps:b}))),h&&c.a.createElement(re.a,{classNames:"modal",timeout:400},c.a.createElement(Be,{onClose:this.closeExternalLinkingModal}))))))}},{key:"coverImageSuccess",value:function(){Object(q.a)(Object(Ke.d)(!0))}},{key:"preloadCover",value:function(){var e=this,t=q.b.getState().course.coverImage.media,n=(void 0===t?{}:t).image,r=void 0===n?{}:n,i=r.key,o=r.src;if(i||o){var a=i?Object(Ze.a)(r):o,s=ee()(this.coverImageSuccess,5e3),c=new Image;c.src=a,c.onload=function(){clearTimeout(s),e.coverImageSuccess()}}else this.coverImageSuccess()}},{key:"render",value:function(){var e=this.state,t=e.failAttempt,n=e.notFound,r=e.showPasswordDialog,i=q.b.getState(),o=i.status,a=o.courseLoaded,s=o.fontsLoaded,u=o.coverLoaded,l=o.partnerContentLoaded,f=i.course.hasPassword,d=r&&Object(U.m)()&&(!!f||Object(U.l)()),h=this.onSharePasswordSubmit,p=!(a&&s&&u&&l);return n?c.a.createElement(Ve.a,null):p?c.a.createElement(Le,{status:status}):d?c.a.createElement($e.a,{failAttempt:t,onSubmit:h}):this.renderAppLayout()}}]),n}(s.Component);Object(te.setConfig)({ignoreSFC:!0,pureRender:!0});var nt=oe()({externalLinksModalVisible:he()(["global","externalLinksModalVisible"])}),rt=fe()(ne.hot,De.a,Object(f.b)(nt,{showExternalLinksModal:function(){return{type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!0}},hideExternalLinksModal:function(){return{type:"rise/globals/SHOW_EXTERNAL_LINKS_MODAL",payload:!1}}}))(tt),it=n(728),ot=F();Object(U.n)(ot);var at=rt;Object(u.render)(c.a.createElement(s.Suspense,{fallback:null},c.a.createElement(f.a,{store:q.b},c.a.createElement(z.a,null,c.a.createElement(l.b,{history:ot},c.a.createElement(l.a,{path:"/",component:function(e){var t=Object(it.b)("rise-course-themes")?at:rt;return c.a.createElement(t,e)}}))))),document.getElementById("app"))}]);