webpackJsonp([2],[function(t,e,n){"use strict";t.exports=n(2217)},function(t,e,n){t.exports=n(2218)()},,,function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){return t===e}function o(t){var e=arguments.length<=1||void 0===arguments[1]?i:arguments[1],n=null,r=null;return function(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a]
;return null!==n&&n.length===o.length&&o.every(function(t,r){return e(t,n[r])})?r:(n=o,r=t.apply(void 0,o))}}function a(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every(function(t){return"function"==typeof t})){var n=e.map(function(t){return typeof t}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return e}function s(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i]
;return function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];var s=0,u=i.pop(),c=a(i),l=t.apply(void 0,[function(){return s++,u.apply(void 0,arguments)}].concat(n)),f=function(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var a=c.map(function(n){return n.apply(void 0,[t,e].concat(i))});return l.apply(void 0,r(a))};return f.resultFunc=u,f.recomputations=function(){return s},f.resetRecomputations=function(){return s=0},f}}function u(){
return s(o).apply(void 0,arguments)}function c(t){var e=arguments.length<=1||void 0===arguments[1]?u:arguments[1];if("object"!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var n=Object.keys(t);return e(n.map(function(e){return t[e]}),function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce(function(t,e,r){return t[n[r]]=e,t},{})})}e.__esModule=!0,
e.defaultMemoize=o,e.createSelectorCreator=s,e.createSelector=u,e.createStructuredSelector=c},,,,,,function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=O(r,o,4);var a=!A(n)&&x.keys(n),s=(a||n).length,u=t>0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,s)}}function o(t){return function(e,n,r){n=T(n,r);for(var i=C(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o
;return-1}}function a(t,e,n){return function(r,i,o){var a=0,s=C(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(d.call(r,a,s),x.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}}function s(t,e){var n=N.length,r=t.constructor,i=x.isFunction(r)&&r.prototype||f,o="constructor"
;for(x.has(t,o)&&!x.contains(e,o)&&e.push(o);n--;)(o=N[n])in t&&t[o]!==i[o]&&!x.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,h=Function.prototype,p=l.push,d=l.slice,g=f.toString,v=f.hasOwnProperty,y=Array.isArray,m=Object.keys,b=h.bind,w=Object.create,_=function(){},x=function(t){return t instanceof x?t:this instanceof x?void(this._wrapped=t):new x(t)};void 0!==t&&t.exports&&(e=t.exports=x),e._=x,x.VERSION="1.8.3";var O=function(t,e,n){if(void 0===e)return t
;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},T=function(t,e,n){return null==t?x.identity:x.isFunction(t)?O(t,e,n):x.isObject(t)?x.matcher(t):x.property(t)};x.iteratee=function(t,e){return T(t,e,1/0)};var S=function(t,e){return function(n){var r=arguments.length
;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},E=function(t){if(!x.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},j=function(t){return function(e){return null==e?void 0:e[t]}},k=Math.pow(2,53)-1,C=j("length"),A=function(t){var e=C(t);return"number"==typeof e&&e>=0&&e<=k};x.each=x.forEach=function(t,e,n){e=O(e,n);var r,i;if(A(t))for(r=0,
i=t.length;r<i;r++)e(t[r],r,t);else{var o=x.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},x.map=x.collect=function(t,e,n){e=T(e,n);for(var r=!A(t)&&x.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},x.reduce=x.foldl=x.inject=n(1),x.reduceRight=x.foldr=n(-1),x.find=x.detect=function(t,e,n){var r;if(void 0!==(r=A(t)?x.findIndex(t,e,n):x.findKey(t,e,n))&&-1!==r)return t[r]},x.filter=x.select=function(t,e,n){var r=[];return e=T(e,n),
x.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},x.reject=function(t,e,n){return x.filter(t,x.negate(T(e)),n)},x.every=x.all=function(t,e,n){e=T(e,n);for(var r=!A(t)&&x.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},x.some=x.any=function(t,e,n){e=T(e,n);for(var r=!A(t)&&x.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},x.contains=x.includes=x.include=function(t,e,n,r){return A(t)||(t=x.values(t)),
("number"!=typeof n||r)&&(n=0),x.indexOf(t,e,n)>=0},x.invoke=function(t,e){var n=d.call(arguments,2),r=x.isFunction(e);return x.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},x.pluck=function(t,e){return x.map(t,x.property(e))},x.where=function(t,e){return x.filter(t,x.matcher(e))},x.findWhere=function(t,e){return x.find(t,x.matcher(e))},x.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e&&null!=t){t=A(t)?t:x.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])>o&&(o=r)
}else e=T(e,n),x.each(t,function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},x.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=A(t)?t:x.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])<o&&(o=r)}else e=T(e,n),x.each(t,function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},x.shuffle=function(t){for(var e,n=A(t)?t:x.values(t),r=n.length,i=Array(r),o=0;o<r;o++)e=x.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},x.sample=function(t,e,n){
return null==e||n?(A(t)||(t=x.values(t)),t[x.random(t.length-1)]):x.shuffle(t).slice(0,Math.max(0,e))},x.sortBy=function(t,e,n){return e=T(e,n),x.pluck(x.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var P=function(t){return function(e,n,r){var i={};return n=T(n,r),x.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}}
;x.groupBy=P(function(t,e,n){x.has(t,n)?t[n].push(e):t[n]=[e]}),x.indexBy=P(function(t,e,n){t[n]=e}),x.countBy=P(function(t,e,n){x.has(t,n)?t[n]++:t[n]=1}),x.toArray=function(t){return t?x.isArray(t)?d.call(t):A(t)?x.map(t,x.identity):x.values(t):[]},x.size=function(t){return null==t?0:A(t)?t.length:x.keys(t).length},x.partition=function(t,e,n){e=T(e,n);var r=[],i=[];return x.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},x.first=x.head=x.take=function(t,e,n){
if(null!=t)return null==e||n?t[0]:x.initial(t,t.length-e)},x.initial=function(t,e,n){return d.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},x.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:x.rest(t,Math.max(0,t.length-e))},x.rest=x.tail=x.drop=function(t,e,n){return d.call(t,null==e||n?1:e)},x.compact=function(t){return x.filter(t,x.identity)};var M=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=C(t);a<s;a++){var u=t[a];if(A(u)&&(x.isArray(u)||x.isArguments(u))){e||(u=M(u,e,n))
;var c=0,l=u.length;for(i.length+=l;c<l;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};x.flatten=function(t,e){return M(t,e,!1)},x.without=function(t){return x.difference(t,d.call(arguments,1))},x.uniq=x.unique=function(t,e,n,r){x.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=T(n,r));for(var i=[],o=[],a=0,s=C(t);a<s;a++){var u=t[a],c=n?n(u,a,t):u;e?(a&&o===c||i.push(u),o=c):n?x.contains(o,c)||(o.push(c),i.push(u)):x.contains(i,u)||i.push(u)}return i},x.union=function(){return x.uniq(M(arguments,!0,!0))
},x.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=C(t);r<i;r++){var o=t[r];if(!x.contains(e,o)){for(var a=1;a<n&&x.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},x.difference=function(t){var e=M(arguments,!0,!0,1);return x.filter(t,function(t){return!x.contains(e,t)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(t){for(var e=t&&x.max(t,C).length||0,n=Array(e),r=0;r<e;r++)n[r]=x.pluck(t,r);return n},x.object=function(t,e){
for(var n={},r=0,i=C(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},x.findIndex=o(1),x.findLastIndex=o(-1),x.sortedIndex=function(t,e,n,r){n=T(n,r,1);for(var i=n(e),o=0,a=C(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},x.indexOf=a(1,x.findIndex,x.sortedIndex),x.lastIndexOf=a(-1,x.findLastIndex),x.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i};var D=function(t,e,n,r,i){
if(!(r instanceof e))return t.apply(n,i);var o=E(t.prototype),a=t.apply(o,i);return x.isObject(a)?a:o};x.bind=function(t,e){if(b&&t.bind===b)return b.apply(t,d.call(arguments,1));if(!x.isFunction(t))throw new TypeError("Bind must be called on a function");var n=d.call(arguments,2),r=function(){return D(t,r,e,this,n.concat(d.call(arguments)))};return r},x.partial=function(t){var e=d.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===x?arguments[r++]:e[a]
;for(;r<arguments.length;)o.push(arguments[r++]);return D(t,n,this,this,o)};return n},x.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)n=arguments[e],t[n]=x.bind(t[n],t);return t},x.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return x.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},x.delay=function(t,e){var n=d.call(arguments,2)
;return setTimeout(function(){return t.apply(null,n)},e)},x.defer=x.partial(x.delay,x,1),x.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:x.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var c=x.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,l)),o}},x.debounce=function(t,e,n){var r,i,o,a,s,u=function(){
var c=x.now()-a;c<e&&c>=0?r=setTimeout(u,e-c):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=x.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},x.wrap=function(t,e){return x.partial(e,t)},x.negate=function(t){return function(){return!t.apply(this,arguments)}},x.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},x.after=function(t,e){
return function(){if(--t<1)return e.apply(this,arguments)}},x.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},x.once=x.partial(x.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(t){if(!x.isObject(t))return[];if(m)return m(t);var e=[];for(var n in t)x.has(t,n)&&e.push(n);return I&&s(t,e),e},
x.allKeys=function(t){if(!x.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&s(t,e),e},x.values=function(t){for(var e=x.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},x.mapObject=function(t,e,n){e=T(e,n);for(var r,i=x.keys(t),o=i.length,a={},s=0;s<o;s++)r=i[s],a[r]=e(t[r],r,t);return a},x.pairs=function(t){for(var e=x.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},x.invert=function(t){
for(var e={},n=x.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},x.functions=x.methods=function(t){var e=[];for(var n in t)x.isFunction(t[n])&&e.push(n);return e.sort()},x.extend=S(x.allKeys),x.extendOwn=x.assign=S(x.keys),x.findKey=function(t,e,n){e=T(e,n);for(var r,i=x.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],e(t[r],r,t))return r},x.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;x.isFunction(e)?(i=x.allKeys(a),r=O(e,n)):(i=M(arguments,!1,!1,1),r=function(t,e,n){
return e in n},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=a[c];r(l,c,a)&&(o[c]=l)}return o},x.omit=function(t,e,n){if(x.isFunction(e))e=x.negate(e);else{var r=x.map(M(arguments,!1,!1,1),String);e=function(t,e){return!x.contains(r,e)}}return x.pick(t,e,n)},x.defaults=S(x.allKeys,!0),x.create=function(t,e){var n=E(t);return e&&x.extendOwn(n,e),n},x.clone=function(t){return x.isObject(t)?x.isArray(t)?t.slice():x.extend({},t):t},x.tap=function(t,e){return e(t),t},
x.isMatch=function(t,e){var n=x.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var R=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof x&&(t=t._wrapped),e instanceof x&&(e=e._wrapped);var i=g.call(t);if(i!==g.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e
;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(x.isFunction(a)&&a instanceof a&&x.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!R(t[u],e[u],n,r))return!1}else{var c,l=x.keys(t)
;if(u=l.length,x.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!x.has(e,c)||!R(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};x.isEqual=function(t,e){return R(t,e)},x.isEmpty=function(t){return null==t||(A(t)&&(x.isArray(t)||x.isString(t)||x.isArguments(t))?0===t.length:0===x.keys(t).length)},x.isElement=function(t){return!(!t||1!==t.nodeType)},x.isArray=y||function(t){return"[object Array]"===g.call(t)},x.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},
x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){x["is"+t]=function(e){return g.call(e)==="[object "+t+"]"}}),x.isArguments(arguments)||(x.isArguments=function(t){return x.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(t){return"function"==typeof t||!1}),x.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},x.isNaN=function(t){return x.isNumber(t)&&t!==+t},x.isBoolean=function(t){
return!0===t||!1===t||"[object Boolean]"===g.call(t)},x.isNull=function(t){return null===t},x.isUndefined=function(t){return void 0===t},x.has=function(t,e){return null!=t&&v.call(t,e)},x.noConflict=function(){return u._=c,this},x.identity=function(t){return t},x.constant=function(t){return function(){return t}},x.noop=function(){},x.property=j,x.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},x.matcher=x.matches=function(t){return t=x.extendOwn({},t),function(e){
return x.isMatch(e,t)}},x.times=function(t,e,n){var r=Array(Math.max(0,t));e=O(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},x.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},x.now=Date.now||function(){return(new Date).getTime()};var L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},U=x.invert(L),F=function(t){var e=function(e){return t[e]},n="(?:"+x.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){
return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};x.escape=F(L),x.unescape=F(U),x.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),x.isFunction(r)?r.call(t):r};var B=0;x.uniqueId=function(t){var e=++B+"";return t?t+e:e},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+q[t]
};x.template=function(t,e,n){!e&&n&&(e=n),e=x.defaults({},e,x.templateSettings);var r=RegExp([(e.escape||z).source,(e.interpolate||z).source,(e.evaluate||z).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(H,W),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),
o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,x)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},x.chain=function(t){var e=x(t);return e._chain=!0,e};var V=function(t,e){return t._chain?x(e).chain():e};x.mixin=function(t){x.each(x.functions(t),function(e){var n=x[e]=t[e];x.prototype[e]=function(){
var t=[this._wrapped];return p.apply(t,arguments),V(this,n.apply(x,t))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];x.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],V(this,n)}}),x.each(["concat","join","slice"],function(t){var e=l[t];x.prototype[t]=function(){return V(this,e.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},
x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return x}.apply(e,r))&&(t.exports=i)}).call(this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2241),i=n(1212),o=n(2244);n.d(e,"Provider",function(){return r.b}),n.d(e,"createProvider",function(){return r.a}),n.d(e,"connectAdvanced",function(){return i.a}),n.d(e,"connect",function(){return o.a})},,function(t,e,n){
var r,i;/*!
 * jQuery JavaScript Library v2.1.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-04-28T16:01Z
 */
!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function a(t){var e="length"in t&&t.length,n=nt.type(t);return"function"!==n&&!nt.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}function s(t,e,n){if(nt.isFunction(e))return nt.grep(t,function(t,r){
return!!e.call(t,r,t)!==n});if(e.nodeType)return nt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(lt.test(e))return nt.filter(e,t,n);e=nt.filter(e,t)}return nt.grep(t,function(t){return $.call(e,t)>=0!==n})}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e=vt[t]={};return nt.each(t.match(gt)||[],function(t,n){e[n]=!0}),e}function l(){et.removeEventListener("DOMContentLoaded",l,!1),n.removeEventListener("load",l,!1),nt.ready()}function f(){
Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=nt.expando+f.uid++}function h(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(xt,"-$1").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:_t.test(n)?nt.parseJSON(n):n)}catch(t){}wt.set(t,e,n)}else n=void 0;return n}function p(){return!0}function d(){return!1}function g(){try{return et.activeElement}catch(t){}}function v(t,e){
return nt.nodeName(t,"table")&&nt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function m(t){var e=Lt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){for(var n=0,r=t.length;n<r;n++)bt.set(t[n],"globalEval",!e||bt.get(e[n],"globalEval"))}function w(t,e){var n,r,i,o,a,s,u,c;if(1===e.nodeType){
if(bt.hasData(t)&&(o=bt.access(t),a=bt.set(e,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)nt.event.add(e,i,c[i][n])}wt.hasData(t)&&(s=wt.access(t),u=nt.extend({},s),wt.set(e,u))}}function _(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&nt.nodeName(t,e)?nt.merge([t],n):n}function x(t,e){var n=e.nodeName.toLowerCase()
;"input"===n&&Et.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function O(t,e){var r,i=nt(e.createElement(t)).appendTo(e.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i[0]))?r.display:nt.css(i[0],"display");return i.detach(),o}function T(t){var e=et,n=zt[t];return n||(n=O(t,e),"none"!==n&&n||(Bt=(Bt||nt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Bt[0].contentDocument,e.write(),e.close(),
n=O(t,e),Bt.detach()),zt[t]=n),n}function S(t,e,n){var r,i,o,a,s=t.style;return n=n||Wt(t),n&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||nt.contains(t.ownerDocument,t)||(a=nt.style(t,e)),Ht.test(a)&&qt.test(e)&&(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 E(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function j(t,e){if(e in t)return e
;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=$t.length;i--;)if((e=$t[i]+n)in t)return e;return r}function k(t,e,n){var r=Yt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function C(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=nt.css(t,n+Tt[o],!0,i)),r?("content"===n&&(a-=nt.css(t,"padding"+Tt[o],!0,i)),"margin"!==n&&(a-=nt.css(t,"border"+Tt[o]+"Width",!0,i))):(a+=nt.css(t,"padding"+Tt[o],!0,i),
"padding"!==n&&(a+=nt.css(t,"border"+Tt[o]+"Width",!0,i)));return a}function A(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Wt(t),a="border-box"===nt.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=S(t,e,o),(i<0||null==i)&&(i=t.style[e]),Ht.test(i))return i;r=a&&(tt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+C(t,e,n||(a?"border":"content"),r,o)+"px"}function P(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)r=t[a],r.style&&(o[a]=bt.get(r,"olddisplay"),
n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&St(r)&&(o[a]=bt.access(r,"olddisplay",T(r.nodeName)))):(i=St(r),"none"===n&&i||bt.set(r,"olddisplay",i?n:nt.css(r,"display"))));for(a=0;a<s;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function M(t,e,n,r,i){return new M.prototype.init(t,e,n,r,i)}function D(){return setTimeout(function(){Qt=void 0}),Qt=nt.now()}function I(t,e){var n,r=0,i={
height:t};for(e=e?1:0;r<4;r+=2-e)n=Tt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function N(t,e,n){for(var r,i=(re[e]||[]).concat(re["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function R(t,e,n){var r,i,o,a,s,u,c,l=this,f={},h=t.style,p=t.nodeType&&St(t),d=bt.get(t,"fxshow");n.queue||(s=nt._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,l.always(function(){l.always(function(){
s.unqueued--,nt.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=nt.css(t,"display"),"inline"===("none"===c?bt.get(t,"olddisplay")||T(t.nodeName):c)&&"none"===nt.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",l.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Zt.exec(i)){if(delete e[r],o=o||"toggle"===i,
i===(p?"hide":"show")){if("show"!==i||!d||void 0===d[r])continue;p=!0}f[r]=d&&d[r]||nt.style(t,r)}else c=void 0;if(nt.isEmptyObject(f))"inline"===("none"===c?T(t.nodeName):c)&&(h.display=c);else{d?"hidden"in d&&(p=d.hidden):d=bt.access(t,"fxshow",{}),o&&(d.hidden=!p),p?nt(t).show():l.done(function(){nt(t).hide()}),l.done(function(){var e;bt.remove(t,"fxshow");for(e in f)nt.style(t,e,f[e])});for(r in f)a=N(p?d[r]:0,r,l),r in d||(d[r]=a.start,p&&(a.end=a.start,
a.start="width"===r||"height"===r?1:0))}}function L(t,e){var n,r,i,o,a;for(n in t)if(r=nt.camelCase(n),i=e[r],o=t[n],nt.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=nt.cssHooks[r])&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function U(t,e,n){var r,i,o=0,a=ne.length,s=nt.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1
;for(var e=Qt||D(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,a=0,u=c.tweens.length;a<u;a++)c.tweens[a].run(o);return s.notifyWith(t,[c,o,n]),o<1&&u?n:(s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:nt.extend({},e),opts:nt.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Qt||D(),duration:n.duration,tweens:[],createTween:function(e,n){var r=nt.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},
stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?s.resolveWith(t,[c,e]):s.rejectWith(t,[c,e]),this}}),l=c.props;for(L(l,c.opts.specialEasing);o<a;o++)if(r=ne[o].call(c,t,l,c.opts))return r;return nt.map(l,N,c),nt.isFunction(c.opts.start)&&c.opts.start.call(t,c),nt.fx.timer(nt.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function F(t){
return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(gt)||[];if(nt.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function B(t,e,n,r){function i(s){var u;return o[s]=!0,nt.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=t===be;return i(e.dataTypes[0])||!o["*"]&&i("*")}function z(t,e){
var n,r,i=nt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&nt.extend(!0,t,r),t}function q(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function H(t,e,n,r){
var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){
return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function W(t,e,n,r){var i;if(nt.isArray(e))nt.each(e,function(e,i){n||Te.test(t)?r(t,i):W(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==nt.type(e))r(t,e);else for(i in e)W(t+"["+i+"]",e[i],n,r)}function V(t){return nt.isWindow(t)?t:9===t.nodeType&&t.defaultView}
var Y=[],G=Y.slice,X=Y.concat,K=Y.push,$=Y.indexOf,Q={},J=Q.toString,Z=Q.hasOwnProperty,tt={},et=n.document,nt=function(t,e){return new nt.fn.init(t,e)},rt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,it=/^-ms-/,ot=/-([\da-z])/gi,at=function(t,e){return e.toUpperCase()};nt.fn=nt.prototype={jquery:"2.1.4",constructor:nt,selector:"",length:0,toArray:function(){return G.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:G.call(this)},pushStack:function(t){
var e=nt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return nt.each(this,t,e)},map:function(t){return this.pushStack(nt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){
return this.prevObject||this.constructor(null)},push:K,sort:Y.sort,splice:Y.splice},nt.extend=nt.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||nt.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],r=t[e],a!==r&&(c&&r&&(nt.isPlainObject(r)||(i=nt.isArray(r)))?(i?(i=!1,o=n&&nt.isArray(n)?n:[]):o=n&&nt.isPlainObject(n)?n:{},
a[e]=nt.extend(c,o,r)):void 0!==r&&(a[e]=r));return a},nt.extend({expando:"jQuery"+("2.1.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===nt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!nt.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){
return"object"===nt.type(t)&&!t.nodeType&&!nt.isWindow(t)&&!(t.constructor&&!Z.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Q[J.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=nt.trim(t))&&(1===t.indexOf("use strict")?(e=et.createElement("script"),e.text=t,et.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){
return t.replace(it,"ms-").replace(ot,at)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=a(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(rt,"")},makeArray:function(t,e){var n=e||[]
;return null!=t&&(a(Object(t))?nt.merge(n,"string"==typeof t?[t]:t):K.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:$.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,s=a(t),u=[];if(s)for(;i<o;i++)null!=(r=e(t[i],i,n))&&u.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&u.push(r)
;return X.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),nt.isFunction(t))return r=G.call(arguments,2),i=function(){return t.apply(e||this,r.concat(G.call(arguments)))},i.guid=t.guid=t.guid||nt.guid++,i},now:Date.now,support:tt}),nt.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Q["[object "+e+"]"]=e.toLowerCase()});var st=/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-12-16
 */
function(t){function e(t,e,n,r){var i,o,a,s,c,f,h,p,d,g;if((e?e.ownerDocument||e:U)!==A&&C(e),e=e||A,n=n||[],s=e.nodeType,"string"!=typeof t||!t||1!==s&&9!==s&&11!==s)return n;if(!r&&M){if(11!==s&&(i=vt.exec(t)))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&R(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return $.apply(n,e.getElementsByTagName(t)),n
;if((a=i[3])&&b.getElementsByClassName)return $.apply(n,e.getElementsByClassName(a)),n}if(b.qsa&&(!D||!D.test(t))){if(p=h=L,d=e,g=1!==s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(f=O(t),(h=e.getAttribute("id"))?p=h.replace(mt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",c=f.length;c--;)f[c]=p+l(f[c]);d=yt.test(t)&&u(e.parentNode)||e,g=f.join(",")}if(g)try{return $.apply(n,d.querySelectorAll(g)),n}catch(t){}finally{h||e.removeAttribute("id")}}}return S(t.replace(at,"$1"),e,n,r)}
function n(){function t(n,r){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[L]=!0,t}function i(t){var e=A.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(r)return r
;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function l(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function f(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=B++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)
}:function(e,n,a){var s,u,c=[F,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[L]||(e[L]={}),(s=u[r])&&s[0]===F&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function h(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function p(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function d(t,e,n,r,i){
for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function g(t,e,n,i,o,a){return i&&!i[L]&&(i=g(i)),o&&!o[L]&&(o=g(o,a)),r(function(r,a,s,u){var c,l,f,h=[],g=[],v=a.length,y=r||p(e||"*",s.nodeType?[s]:s,[]),m=!t||!r&&e?y:d(y,h,t,s,u),b=n?o||(r?t:v||i)?[]:a:m;if(n&&n(m,b,s,u),i)for(c=d(b,g),i(c,[],s,u),l=c.length;l--;)(f=c[l])&&(b[g[l]]=!(m[g[l]]=f));if(r){if(o||t){if(o){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(m[l]=f);o(null,b=[],c,u)}
for(l=b.length;l--;)(f=b[l])&&(c=o?J(r,f):h[l])>-1&&(r[c]=!(a[c]=f))}}else b=d(b===a?b.splice(v,b.length):b),o?o(null,a,b,u):$.apply(a,b)})}function v(t){for(var e,n,r,i=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,u=f(function(t){return t===e},a,!0),c=f(function(t){return J(e,t)>-1},a,!0),p=[function(t,n,r){var i=!o&&(r||n!==E)||((e=n).nodeType?u(t,n,r):c(t,n,r));return e=null,i}];s<i;s++)if(n=w.relative[t[s].type])p=[f(h(p),n)];else{
if(n=w.filter[t[s].type].apply(null,t[s].matches),n[L]){for(r=++s;r<i&&!w.relative[t[r].type];r++);return g(s>1&&h(p),s>1&&l(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(at,"$1"),n,s<r&&v(t.slice(s,r)),r<i&&v(t=t.slice(r)),r<i&&l(t))}p.push(n)}return h(p)}function y(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,c){var l,f,h,p=0,g="0",v=r&&[],y=[],m=E,b=r||o&&w.find.TAG("*",c),_=F+=null==m?1:Math.random()||.1,x=b.length;for(c&&(E=a!==A&&a);g!==x&&null!=(l=b[g]);g++){
if(o&&l){for(f=0;h=t[f++];)if(h(l,a,s)){u.push(l);break}c&&(F=_)}i&&((l=!h&&l)&&p--,r&&v.push(l))}if(p+=g,i&&g!==p){for(f=0;h=n[f++];)h(v,y,a,s);if(r){if(p>0)for(;g--;)v[g]||y[g]||(y[g]=X.call(u));y=d(y)}$.apply(u,y),c&&!r&&y.length>0&&p+n.length>1&&e.uniqueSort(u)}return c&&(F=_,E=m),v};return i?r(a):a}var m,b,w,_,x,O,T,S,E,j,k,C,A,P,M,D,I,N,R,L="sizzle"+1*new Date,U=t.document,F=0,B=0,z=n(),q=n(),H=n(),W=function(t,e){return t===e&&(k=!0),0
},V=1<<31,Y={}.hasOwnProperty,G=[],X=G.pop,K=G.push,$=G.push,Q=G.slice,J=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1
},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",nt=et.replace("w","w#"),rt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",ot=new RegExp(tt+"+","g"),at=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),st=new RegExp("^"+tt+"*,"+tt+"*"),ut=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),ct=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),lt=new RegExp(it),ft=new RegExp("^"+nt+"$"),ht={
ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et.replace("w","w*")+")"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")
},pt=/^(?:input|select|textarea|button)$/i,dt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,mt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_t=function(){C()};try{$.apply(G=Q.call(U.childNodes),U.childNodes),G[U.childNodes.length].nodeType}catch(t){$={apply:G.length?function(t,e){K.apply(t,Q.call(e))
}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}b=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},C=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:U;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,P=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),M=!x(r),b.attributes=i(function(t){
return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=gt.test(r.getElementsByClassName),b.getById=i(function(t){return P.appendChild(t).id=L,!r.getElementsByName||!r.getElementsByName(L).length}),b.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&M){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){
var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){
for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(M)return e.getElementsByClassName(t)},I=[],D=[],(b.qsa=gt.test(r.querySelectorAll))&&(i(function(t){P.appendChild(t).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+tt+"*(?:''|\"\")"),
t.querySelectorAll("[selected]").length||D.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+L+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||D.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+tt+"*[*^$|!~]?="),
t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(b.matchesSelector=gt.test(N=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i(function(t){b.disconnectedMatch=N.call(t,"div"),N.call(t,"[s!='']:x"),I.push("!=",it)}),D=D.length&&new RegExp(D.join("|")),I=I.length&&new RegExp(I.join("|")),e=gt.test(P.compareDocumentPosition),R=e||gt.test(P.contains)?function(t,e){
var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return k=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,
1&n||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===U&&R(U,t)?-1:e===r||e.ownerDocument===U&&R(U,e)?1:j?J(j,t)-J(j,e):0:4&n?-1:1)}:function(t,e){if(t===e)return k=!0,0;var n,i=0,o=t.parentNode,s=e.parentNode,u=[t],c=[e];if(!o||!s)return t===r?-1:e===r?1:o?-1:s?1:j?J(j,t)-J(j,e):0;if(o===s)return a(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)c.unshift(n);for(;u[i]===c[i];)i++;return i?a(u[i],c[i]):u[i]===U?-1:c[i]===U?1:0},r):A},
e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==A&&C(t),n=n.replace(ct,"='$1']"),b.matchesSelector&&M&&(!I||!I.test(n))&&(!D||!D.test(n)))try{var r=N.call(t,n);if(r||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==A&&C(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==A&&C(t)
;var n=w.attrHandle[e.toLowerCase()],r=n&&Y.call(w.attrHandle,e.toLowerCase())?n(t,e,!M):void 0;return void 0!==r?r:b.attributes||!M?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(k=!b.detectDuplicates,j=!b.sortStable&&t.slice(0),t.sort(W),k){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return j=null,t},
_=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=_(e);return n},w=e.selectors={cacheLength:50,createPseudo:r,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){
return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2]
;return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&lt.test(n)&&(e=O(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=z[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&z(t,function(t){
return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ot," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){
var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,p,d,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,y=s&&e.nodeName.toLowerCase(),m=!u&&!s;if(v){if(o){for(;g;){for(f=e;f=f[g];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?v.firstChild:v.lastChild],a&&m){for(l=v[L]||(v[L]={}),c=l[t]||[],p=c[0]===F&&c[1],h=c[0]===F&&c[2],
f=p&&v.childNodes[p];f=++p&&f&&f[g]||(h=p=0)||d.pop();)if(1===f.nodeType&&++h&&f===e){l[t]=[F,p,h];break}}else if(m&&(c=(e[L]||(e[L]={}))[t])&&c[0]===F)h=c[1];else for(;(f=++p&&f&&f[g]||(h=p=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++h||(m&&((f[L]||(f[L]={}))[t]=[F,h]),f!==e)););return(h-=i)===r||h%r==0&&h/r>=0}}},PSEUDO:function(t,n){var i,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(n):o.length>1?(i=[t,t,"",n],
w.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=J(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=T(t.replace(at,"$1"));return i[L]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){
return t=t.replace(bt,wt),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:r(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var n;do{if(n=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){
return t===P},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},
parent:function(t){return!w.pseudos.empty(t)},header:function(t){return dt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,n){return[n<0?n+e:n]}),
even:s(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:s(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:s(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},w.pseudos.nth=w.pseudos.eq;for(m in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[m]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(m);for(m in{submit:!0,reset:!0
})w.pseudos[m]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(m);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,O=e.tokenize=function(t,n){var r,i,o,a,s,u,c,l=q[t+" "];if(l)return n?0:l.slice(0);for(s=t,u=[],c=w.preFilter;s;){r&&!(i=st.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ut.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),s=s.slice(r.length))
;for(a in w.filter)!(i=ht[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):q(t,u).slice(0)},T=e.compile=function(t,e){var n,r=[],i=[],o=H[t+" "];if(!o){for(e||(e=O(t)),n=e.length;n--;)o=v(e[n]),o[L]?r.push(o):i.push(o);o=H(t,y(i,r)),o.selector=t}return o},S=e.select=function(t,e,n,r){var i,o,a,s,c,f="function"==typeof t&&t,h=!r&&O(t=f.selector||t);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),
o.length>2&&"ID"===(a=o[0]).type&&b.getById&&9===e.nodeType&&M&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(bt,wt),e)||[])[0]))return n;f&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=ht.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((c=w.find[s])&&(r=c(a.matches[0].replace(bt,wt),yt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&l(o)))return $.apply(n,r),n;break}}
return(f||T(t,h))(r,e,!M,n,yt.test(t)&&u(e.parentNode)||e),n},b.sortStable=L.split("").sort(W).join("")===L,b.detectDuplicates=!!k,C(),b.sortDetached=i(function(t){return 1&t.compareDocumentPosition(A.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&i(function(t){return t.innerHTML="<input/>",
t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(Z,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);nt.find=st,nt.expr=st.selectors,nt.expr[":"]=nt.expr.pseudos,nt.unique=st.uniqueSort,nt.text=st.getText,nt.isXMLDoc=st.isXML,
nt.contains=st.contains;var ut=nt.expr.match.needsContext,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lt=/^.[^:#\[\.,]*$/;nt.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?nt.find.matchesSelector(r,t)?[r]:[]:nt.find.matches(t,nt.grep(e,function(t){return 1===t.nodeType}))},nt.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(nt(t).filter(function(){for(e=0;e<n;e++)if(nt.contains(i[e],this))return!0}))
;for(e=0;e<n;e++)nt.find(t,i[e],r);return r=this.pushStack(n>1?nt.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&ut.test(t)?nt(t):t||[],!1).length}});var ft,ht=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(nt.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){
if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ht.exec(t))||!n[1]&&e)return!e||e.jquery?(e||ft).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof nt?e[0]:e,nt.merge(this,nt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:et,!0)),ct.test(n[1])&&nt.isPlainObject(e))for(n in e)nt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=et.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=et,this.selector=t,this}
return t.nodeType?(this.context=this[0]=t,this.length=1,this):nt.isFunction(t)?void 0!==ft.ready?ft.ready(t):t(nt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),nt.makeArray(t,this))}).prototype=nt.fn,ft=nt(et);var pt=/^(?:parents|prev(?:Until|All))/,dt={children:!0,contents:!0,next:!0,prev:!0};nt.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&nt(t).is(n))break;r.push(t)}return r},sibling:function(t,e){
for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),nt.fn.extend({has:function(t){var e=nt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(nt.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ut.test(t)||"string"!=typeof t?nt(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&nt.find.matchesSelector(n,t))){o.push(n);break}
return this.pushStack(o.length>1?nt.unique(o):o)},index:function(t){return t?"string"==typeof t?$.call(nt(t),this[0]):$.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(nt.unique(nt.merge(this.get(),nt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),nt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){
return nt.dir(t,"parentNode")},parentsUntil:function(t,e,n){return nt.dir(t,"parentNode",n)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return nt.dir(t,"nextSibling")},prevAll:function(t){return nt.dir(t,"previousSibling")},nextUntil:function(t,e,n){return nt.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return nt.dir(t,"previousSibling",n)},siblings:function(t){return nt.sibling((t.parentNode||{}).firstChild,t)},
children:function(t){return nt.sibling(t.firstChild)},contents:function(t){return t.contentDocument||nt.merge([],t.childNodes)}},function(t,e){nt.fn[t]=function(n,r){var i=nt.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=nt.filter(r,i)),this.length>1&&(dt[t]||nt.unique(i),pt.test(t)&&i.reverse()),this.pushStack(i)}});var gt=/\S+/g,vt={};nt.Callbacks=function(t){t="string"==typeof t?vt[t]||c(t):nt.extend({},t);var e,n,r,i,o,a,s=[],u=!t.once&&[],l=function(c){
for(e=t.memory&&c,n=!0,a=i||0,i=0,o=s.length,r=!0;s&&a<o;a++)if(!1===s[a].apply(c[0],c[1])&&t.stopOnFalse){e=!1;break}r=!1,s&&(u?u.length&&l(u.shift()):e?s=[]:f.disable())},f={add:function(){if(s){var n=s.length;!function e(n){nt.each(n,function(n,r){var i=nt.type(r);"function"===i?t.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)})}(arguments),r?o=s.length:e&&(i=n,l(e))}return this},remove:function(){return s&&nt.each(arguments,function(t,e){
for(var n;(n=nt.inArray(e,s,n))>-1;)s.splice(n,1),r&&(n<=o&&o--,n<=a&&a--)}),this},has:function(t){return t?nt.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=u=e=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,e||f.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!s||n&&!u||(e=e||[],e=[t,e.slice?e.slice():e],r?u.push(e):l(e)),this},fire:function(){return f.fireWith(this,arguments),this},
fired:function(){return!!n}};return f},nt.extend({Deferred:function(t){var e=[["resolve","done",nt.Callbacks("once memory"),"resolved"],["reject","fail",nt.Callbacks("once memory"),"rejected"],["notify","progress",nt.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return nt.Deferred(function(n){nt.each(e,function(e,o){var a=nt.isFunction(t[e])&&t[e];i[o[1]](function(){
var t=a&&a.apply(this,arguments);t&&nt.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?nt.extend(t,r):r}},i={};return r.pipe=r.then,nt.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),
r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=G.call(arguments),a=o.length,s=1!==a||t&&nt.isFunction(t.promise)?a:0,u=1===s?t:nt.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?G.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&nt.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,e)):--s;return s||u.resolveWith(r,o),
u.promise()}});var yt;nt.fn.ready=function(t){return nt.ready.promise().done(t),this},nt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?nt.readyWait++:nt.ready(!0)},ready:function(t){(!0===t?--nt.readyWait:nt.isReady)||(nt.isReady=!0,!0!==t&&--nt.readyWait>0||(yt.resolveWith(et,[nt]),nt.fn.triggerHandler&&(nt(et).triggerHandler("ready"),nt(et).off("ready"))))}}),nt.ready.promise=function(t){return yt||(yt=nt.Deferred(),
"complete"===et.readyState?setTimeout(nt.ready):(et.addEventListener("DOMContentLoaded",l,!1),n.addEventListener("load",l,!1))),yt.promise(t)},nt.ready.promise();var mt=nt.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===nt.type(n)){i=!0;for(s in n)nt.access(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,nt.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(nt(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)))
;return i?t:c?e.call(t):u?e(t[0],n):o};nt.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},f.uid=1,f.accepts=nt.acceptData,f.prototype={key:function(t){if(!f.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=f.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,nt.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i]
;if("string"==typeof e)o[e]=n;else if(nt.isEmptyObject(o))nt.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,nt.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{
nt.isArray(e)?r=e.concat(e.map(nt.camelCase)):(i=nt.camelCase(e),e in a?r=[e,i]:(r=i,r=r in a?[r]:r.match(gt)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!nt.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var bt=new f,wt=new f,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;nt.extend({hasData:function(t){return wt.hasData(t)||bt.hasData(t)},data:function(t,e,n){return wt.access(t,e,n)},
removeData:function(t,e){wt.remove(t,e)},_data:function(t,e,n){return bt.access(t,e,n)},_removeData:function(t,e){bt.remove(t,e)}}),nt.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=wt.get(o),1===o.nodeType&&!bt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=nt.camelCase(r.slice(5)),h(o,r,i[r])));bt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){wt.set(this,t)
}):mt(this,function(e){var n,r=nt.camelCase(t);if(o&&void 0===e){if(void 0!==(n=wt.get(o,t)))return n;if(void 0!==(n=wt.get(o,r)))return n;if(void 0!==(n=h(o,r,void 0)))return n}else this.each(function(){var n=wt.get(this,r);wt.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&wt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){wt.remove(this,t)})}}),nt.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=bt.get(t,e),
n&&(!r||nt.isArray(n)?r=bt.access(t,e,nt.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=nt.queue(t,e),r=n.length,i=n.shift(),o=nt._queueHooks(t,e),a=function(){nt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return bt.get(t,n)||bt.access(t,n,{empty:nt.Callbacks("once memory").add(function(){bt.remove(t,[e+"queue",n])})})}}),
nt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?nt.queue(this[0],t):void 0===e?this:this.each(function(){var n=nt.queue(this,t,e);nt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&nt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){nt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=nt.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])}
;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=bt.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var Ot=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Tt=["Top","Right","Bottom","Left"],St=function(t,e){return t=e||t,"none"===nt.css(t,"display")||!nt.contains(t.ownerDocument,t)},Et=/^(?:checkbox|radio)$/i;!function(){var t=et.createDocumentFragment(),e=t.appendChild(et.createElement("div")),n=et.createElement("input");n.setAttribute("type","radio"),
n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),tt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",tt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();tt.focusinBubbles="onfocusin"in n;var jt=/^key/,kt=/^(?:mouse|pointer|contextmenu)|click/,Ct=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;nt.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,l,f,h,p,d,g,v=bt.get(t)
;if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=nt.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==nt&&nt.event.triggered!==e.type?nt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(gt)||[""],c=e.length;c--;)s=At.exec(e[c])||[],p=g=s[1],d=(s[2]||"").split(".").sort(),p&&(f=nt.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=nt.event.special[p]||{},l=nt.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,
selector:i,needsContext:i&&nt.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||(h=u[p]=[],h.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(p,a,!1)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),nt.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,c,l,f,h,p,d,g,v=bt.hasData(t)&&bt.get(t);if(v&&(u=v.events)){for(e=(e||"").match(gt)||[""],
c=e.length;c--;)if(s=At.exec(e[c])||[],p=g=s[1],d=(s[2]||"").split(".").sort(),p){for(f=nt.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l))
;a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,v.handle)||nt.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)nt.event.remove(t,p+e[c],n,r,!0);nt.isEmptyObject(u)&&(delete v.handle,bt.remove(t,"events"))}},trigger:function(t,e,r,i){var o,a,s,u,c,l,f,h=[r||et],p=Z.call(t,"type")?t.type:t,d=Z.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||et,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(p+nt.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),
c=p.indexOf(":")<0&&"on"+p,t=t[nt.expando]?t:new nt.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=d.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:nt.makeArray(e,[t]),f=nt.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!nt.isWindow(r)){for(u=f.delegateType||p,Ct.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a
;s===(r.ownerDocument||et)&&h.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(bt.get(a,"events")||{})[t.type]&&bt.get(a,"handle"),l&&l.apply(a,e),(l=c&&a[c])&&l.apply&&nt.acceptData(a)&&(t.result=l.apply(a,e),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!nt.acceptData(r)||c&&nt.isFunction(r[p])&&!nt.isWindow(r)&&(s=r[c],s&&(r[c]=null),
nt.event.triggered=p,r[p](),nt.event.triggered=void 0,s&&(r[c]=s)),t.result}},dispatch:function(t){t=nt.event.fix(t);var e,n,r,i,o,a=[],s=G.call(arguments),u=(bt.get(this,"events")||{})[t.type]||[],c=nt.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=nt.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,
n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((nt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target
;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==t.type){for(r=[],n=0;n<s;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?nt(i,this).index(u)>=0:nt.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},
props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button
;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||et,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[nt.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i]
;for(a||(this.fixHooks[i]=a=kt.test(i)?this.mouseHooks:jt.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new nt.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=et),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===g()&&this.blur)return this.blur(),!1},
delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&nt.nodeName(this,"input"))return this.click(),!1},_default:function(t){return nt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=nt.extend(new nt.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?nt.event.trigger(i,null,e):nt.event.dispatch.call(e,i),
i.isDefaultPrevented()&&n.preventDefault()}},nt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},nt.Event=function(t,e){if(!(this instanceof nt.Event))return new nt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?p:d):this.type=t,e&&nt.extend(this,e),this.timeStamp=t&&t.timeStamp||nt.now(),this[nt.expando]=!0},nt.Event.prototype={isDefaultPrevented:d,
isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},nt.each({
mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){nt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||nt.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),tt.focusinBubbles||nt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){nt.event.simulate(e,t.target,nt.event.fix(t),!0)};nt.event.special[e]={
setup:function(){var r=this.ownerDocument||this,i=bt.access(r,e);i||r.addEventListener(t,n,!0),bt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=bt.access(r,e)-1;i?bt.access(r,e,i):(r.removeEventListener(t,n,!0),bt.remove(r,e))}}}),nt.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,
n=e,e=void 0)),!1===r)r=d;else if(!r)return this;return 1===i&&(o=r,r=function(t){return nt().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=nt.guid++)),this.each(function(){nt.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,nt(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i])
;return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=d),this.each(function(){nt.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){nt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return nt.event.trigger(t,e,n,!0)}})
;var Pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Mt=/<([\w:]+)/,Dt=/<|&#?\w+;/,It=/<(?:script|style|link)/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^$|\/(?:java|ecma)script/i,Lt=/^true\/(.*)/,Ut=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ft={option:[1,"<select multiple='multiple'>","</select>"],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,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,nt.extend({clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=nt.contains(t.ownerDocument,t);if(!(tt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||nt.isXMLDoc(t)))for(a=_(s),o=_(t),r=0,i=o.length;r<i;r++)x(o[r],a[r]);if(e)if(n)for(o=o||_(t),a=a||_(s),r=0,i=o.length;r<i;r++)w(o[r],a[r]);else w(t,s);return a=_(s,"script"),
a.length>0&&b(a,!u&&_(t,"script")),s},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,c,l=e.createDocumentFragment(),f=[],h=0,p=t.length;h<p;h++)if((i=t[h])||0===i)if("object"===nt.type(i))nt.merge(f,i.nodeType?[i]:i);else if(Dt.test(i)){for(o=o||l.appendChild(e.createElement("div")),a=(Mt.exec(i)||["",""])[1].toLowerCase(),s=Ft[a]||Ft._default,o.innerHTML=s[1]+i.replace(Pt,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;nt.merge(f,o.childNodes),o=l.firstChild,o.textContent=""
}else f.push(e.createTextNode(i));for(l.textContent="",h=0;i=f[h++];)if((!r||-1===nt.inArray(i,r))&&(u=nt.contains(i.ownerDocument,i),o=_(l.appendChild(i),"script"),u&&b(o),n))for(c=0;i=o[c++];)Rt.test(i.type||"")&&n.push(i);return l},cleanData:function(t){for(var e,n,r,i,o=nt.event.special,a=0;void 0!==(n=t[a]);a++){if(nt.acceptData(n)&&(i=n[bt.expando])&&(e=bt.cache[i])){if(e.events)for(r in e.events)o[r]?nt.event.remove(n,r):nt.removeEvent(n,r,e.handle);bt.cache[i]&&delete bt.cache[i]}
delete wt.cache[n[wt.expando]]}}}),nt.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?nt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){v(this,t).appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){
if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?nt.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||nt.cleanData(_(n)),
n.parentNode&&(e&&nt.contains(n.ownerDocument,n)&&b(_(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(nt.cleanData(_(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return nt.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML
;if("string"==typeof t&&!It.test(t)&&!Ft[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pt,"<$1></$2>");try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(nt.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,nt.cleanData(_(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){
return this.remove(t,!0)},domManip:function(t,e){t=X.apply([],t);var n,r,i,o,a,s,u=0,c=this.length,l=this,f=c-1,h=t[0],p=nt.isFunction(h);if(p||c>1&&"string"==typeof h&&!tt.checkClone&&Nt.test(h))return this.each(function(n){var r=l.eq(n);p&&(t[0]=h.call(this,n,r.html())),r.domManip(t,e)});if(c&&(n=nt.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=nt.map(_(n,"script"),y),o=i.length;u<c;u++)a=n,u!==f&&(a=nt.clone(a,!0,!0),
o&&nt.merge(i,_(a,"script"))),e.call(this[u],a,u);if(o)for(s=i[i.length-1].ownerDocument,nt.map(i,m),u=0;u<o;u++)a=i[u],Rt.test(a.type||"")&&!bt.access(a,"globalEval")&&nt.contains(s,a)&&(a.src?nt._evalUrl&&nt._evalUrl(a.src):nt.globalEval(a.textContent.replace(Ut,"")))}return this}}),nt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){nt.fn[t]=function(t){
for(var n,r=[],i=nt(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),nt(i[a])[e](n),K.apply(r,n.get());return this.pushStack(r)}});var Bt,zt={},qt=/^margin/,Ht=new RegExp("^("+Ot+")(?!px)[a-z%]+$","i"),Wt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):n.getComputedStyle(t,null)};!function(){function t(){
a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",i.appendChild(o);var t=n.getComputedStyle(a,null);e="1%"!==t.top,r="4px"===t.width,i.removeChild(o)}var e,r,i=et.documentElement,o=et.createElement("div"),a=et.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",
tt.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),n.getComputedStyle&&nt.extend(tt,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,e=a.appendChild(et.createElement("div"))
;return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",i.appendChild(o),t=!parseFloat(n.getComputedStyle(e,null).marginRight),i.removeChild(o),a.removeChild(e),t}}))}(),nt.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i}
;var Vt=/^(none|table(?!-c[ea]).+)/,Yt=new RegExp("^("+Ot+")(.*)$","i"),Gt=new RegExp("^([+-])=("+Ot+")","i"),Xt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"},$t=["Webkit","O","Moz","ms"];nt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=S(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},
cssProps:{float:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=nt.camelCase(e),u=t.style;if(e=nt.cssProps[s]||(nt.cssProps[s]=j(u,s)),a=nt.cssHooks[e]||nt.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];o=typeof n,"string"===o&&(i=Gt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(nt.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||nt.cssNumber[s]||(n+="px"),
tt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u[e]=n))}},css:function(t,e,n,r){var i,o,a,s=nt.camelCase(e);return e=nt.cssProps[s]||(nt.cssProps[s]=j(t.style,s)),a=nt.cssHooks[e]||nt.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=S(t,e,r)),"normal"===i&&e in Kt&&(i=Kt[e]),""===n||n?(o=parseFloat(i),!0===n||nt.isNumeric(o)?o||0:i):i}}),nt.each(["height","width"],function(t,e){nt.cssHooks[e]={get:function(t,n,r){
if(n)return Vt.test(nt.css(t,"display"))&&0===t.offsetWidth?nt.swap(t,Xt,function(){return A(t,e,r)}):A(t,e,r)},set:function(t,n,r){var i=r&&Wt(t);return k(t,n,r?C(t,e,r,"border-box"===nt.css(t,"boxSizing",!1,i),i):0)}}}),nt.cssHooks.marginRight=E(tt.reliableMarginRight,function(t,e){if(e)return nt.swap(t,{display:"inline-block"},S,[t,"marginRight"])}),nt.each({margin:"",padding:"",border:"Width"},function(t,e){nt.cssHooks[t+e]={expand:function(n){
for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Tt[r]+e]=o[r]||o[r-2]||o[0];return i}},qt.test(t)||(nt.cssHooks[t+e].set=k)}),nt.fn.extend({css:function(t,e){return mt(this,function(t,e,n){var r,i,o={},a=0;if(nt.isArray(e)){for(r=Wt(t),i=e.length;a<i;a++)o[e[a]]=nt.css(t,e[a],!1,r);return o}return void 0!==n?nt.style(t,e,n):nt.css(t,e)},t,e,arguments.length>1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(t){
return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){St(this)?nt(this).show():nt(this).hide()})}}),nt.Tween=M,M.prototype={constructor:M,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(nt.cssNumber[n]?"":"px")},cur:function(){var t=M.propHooks[this.prop];return t&&t.get?t.get(this):M.propHooks._default.get(this)},run:function(t){var e,n=M.propHooks[this.prop]
;return this.options.duration?this.pos=e=nt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=nt.css(t.elem,t.prop,""),
e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){nt.fx.step[t.prop]?nt.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[nt.cssProps[t.prop]]||nt.cssHooks[t.prop])?nt.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},nt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},nt.fx=M.prototype.init,nt.fx.step={}
;var Qt,Jt,Zt=/^(?:toggle|show|hide)$/,te=new RegExp("^(?:([+-])=|)("+Ot+")([a-z%]*)$","i"),ee=/queueHooks$/,ne=[R],re={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=te.exec(e),o=i&&i[3]||(nt.cssNumber[t]?"":"px"),a=(nt.cssNumber[t]||"px"!==o&&+r)&&te.exec(nt.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{s=s||".5",a/=s,nt.style(n.elem,t,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]}
;nt.Animation=nt.extend(U,{tweener:function(t,e){nt.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r<i;r++)n=t[r],re[n]=re[n]||[],re[n].unshift(e)},prefilter:function(t,e){e?ne.unshift(t):ne.push(t)}}),nt.speed=function(t,e,n){var r=t&&"object"==typeof t?nt.extend({},t):{complete:n||!n&&e||nt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!nt.isFunction(e)&&e}
;return r.duration=nt.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in nt.fx.speeds?nt.fx.speeds[r.duration]:nt.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){nt.isFunction(r.old)&&r.old.call(this),r.queue&&nt.dequeue(this,r.queue)},r},nt.fn.extend({fadeTo:function(t,e,n,r){return this.filter(St).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){
var i=nt.isEmptyObject(t),o=nt.speed(e,n,r),a=function(){var e=U(this,nt.extend({},t),o);(i||bt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=nt.timers,a=bt.get(this)
;if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ee.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||nt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=bt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=nt.timers,a=r?r.length:0;for(n.finish=!0,nt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),
e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),nt.each(["toggle","show","hide"],function(t,e){var n=nt.fn[e];nt.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(I(e,!0),t,r,i)}}),nt.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}
},function(t,e){nt.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),nt.timers=[],nt.fx.tick=function(){var t,e=0,n=nt.timers;for(Qt=nt.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||nt.fx.stop(),Qt=void 0},nt.fx.timer=function(t){nt.timers.push(t),t()?nt.fx.start():nt.timers.pop()},nt.fx.interval=13,nt.fx.start=function(){Jt||(Jt=setInterval(nt.fx.tick,nt.fx.interval))},nt.fx.stop=function(){clearInterval(Jt),Jt=null},nt.fx.speeds={slow:600,fast:200,_default:400},
nt.fn.delay=function(t,e){return t=nt.fx?nt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=et.createElement("input"),e=et.createElement("select"),n=e.appendChild(et.createElement("option"));t.type="checkbox",tt.checkOn=""!==t.value,tt.optSelected=n.selected,e.disabled=!0,tt.optDisabled=!n.disabled,t=et.createElement("input"),t.value="t",t.type="radio",tt.radioValue="t"===t.value}();var ie,oe=nt.expr.attrHandle
;nt.fn.extend({attr:function(t,e){return mt(this,nt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){nt.removeAttr(this,t)})}}),nt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?nt.prop(t,e,n):(1===o&&nt.isXMLDoc(t)||(e=e.toLowerCase(),r=nt.attrHooks[e]||(nt.expr.match.bool.test(e)?ie:void 0)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=nt.find.attr(t,e),
null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void nt.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(gt);if(o&&1===t.nodeType)for(;n=o[i++];)r=nt.propFix[n]||n,nt.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!tt.radioValue&&"radio"===e&&nt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ie={set:function(t,e,n){
return!1===e?nt.removeAttr(t,n):t.setAttribute(n,n),n}},nt.each(nt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=oe[e]||nt.find.attr;oe[e]=function(t,e,r){var i,o;return r||(o=oe[e],oe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,oe[e]=o),i}});var ae=/^(?:input|select|textarea|button)$/i;nt.fn.extend({prop:function(t,e){return mt(this,nt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[nt.propFix[t]||t]})}}),nt.extend({propFix:{for:"htmlFor",
class:"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!nt.isXMLDoc(t),o&&(e=nt.propFix[e]||e,i=nt.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||ae.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),tt.optSelected||(nt.propHooks.selected={get:function(t){var e=t.parentNode
;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),nt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){nt.propFix[this.toLowerCase()]=this});var se=/[\t\r\n\f]/g;nt.fn.extend({addClass:function(t){var e,n,r,i,o,a,s="string"==typeof t&&t,u=0,c=this.length;if(nt.isFunction(t))return this.each(function(e){nt(this).addClass(t.call(this,e,this.className))})
;if(s)for(e=(t||"").match(gt)||[];u<c;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=nt.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0===arguments.length||"string"==typeof t&&t,u=0,c=this.length;if(nt.isFunction(t))return this.each(function(e){nt(this).removeClass(t.call(this,e,this.className))})
;if(s)for(e=(t||"").match(gt)||[];u<c;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?nt.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):nt.isFunction(t)?this.each(function(n){nt(this).toggleClass(t.call(this,n,this.className,e),e)
}):this.each(function(){if("string"===n)for(var e,r=0,i=nt(this),o=t.match(gt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else"undefined"!==n&&"boolean"!==n||(this.className&&bt.set(this,"__className__",this.className),this.className=this.className||!1===t?"":bt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(se," ").indexOf(e)>=0)return!0;return!1}});var ue=/\r/g
;nt.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=nt.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,nt(this).val()):t,null==i?i="":"number"==typeof i?i+="":nt.isArray(i)&&(i=nt.map(i,function(t){return null==t?"":t+""})),(e=nt.valHooks[this.type]||nt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})
;if(i)return(e=nt.valHooks[i.type]||nt.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ue,""):null==n?"":n)}}}),nt.extend({valHooks:{option:{get:function(t){var e=nt.find.attr(t,"value");return null!=e?e:nt.trim(nt.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],
(n.selected||u===i)&&(tt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!nt.nodeName(n.parentNode,"optgroup"))){if(e=nt(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=nt.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=nt.inArray(r.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),nt.each(["radio","checkbox"],function(){nt.valHooks[this]={set:function(t,e){
if(nt.isArray(e))return t.checked=nt.inArray(nt(t).val(),e)>=0}},tt.checkOn||(nt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),nt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){nt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),
nt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var ce=nt.now(),le=/\?/;nt.parseJSON=function(t){return JSON.parse(t+"")},nt.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,
e=n.parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||nt.error("Invalid XML: "+t),e};var fe=/#.*$/,he=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,de=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,ve=/^\/\//,ye=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,me={},be={},we="*/".concat("*"),_e=n.location.href,xe=ye.exec(_e.toLowerCase())||[];nt.extend({active:0,lastModified:{},etag:{},
ajaxSettings:{url:_e,type:"GET",isLocal:de.test(xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":we,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":nt.parseJSON,"text xml":nt.parseXML},
flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?z(z(t,nt.ajaxSettings),e):z(nt.ajaxSettings,t)},ajaxPrefilter:F(me),ajaxTransport:F(be),ajax:function(t,e){function n(t,e,n,a){var u,l,y,m,w,x=e;2!==b&&(b=2,s&&clearTimeout(s),r=void 0,o=a||"",_.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(m=q(f,_,n)),m=H(f,m,_,u),u?(f.ifModified&&(w=_.getResponseHeader("Last-Modified"),w&&(nt.lastModified[i]=w),(w=_.getResponseHeader("etag"))&&(nt.etag[i]=w)),
204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=m.state,l=m.data,y=m.error,u=!y)):(y=x,!t&&x||(x="error",t<0&&(t=0))),_.status=t,_.statusText=(e||x)+"",u?d.resolveWith(h,[l,x,_]):d.rejectWith(h,[_,x,y]),_.statusCode(v),v=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[_,f,u?l:y]),g.fireWith(h,[_,x]),c&&(p.trigger("ajaxComplete",[_,f]),--nt.active||nt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{}
;var r,i,o,a,s,u,c,l,f=nt.ajaxSetup({},e),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?nt(h):nt.event,d=nt.Deferred(),g=nt.Callbacks("once memory"),v=f.statusCode||{},y={},m={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=pe.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=m[n]=m[n]||t,
y[t]=e),this},overrideMimeType:function(t){return b||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)v[e]=[v[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),n(0,e),this}};if(d.promise(_).complete=g.add,_.success=_.done,_.error=_.fail,f.url=((t||f.url||_e)+"").replace(fe,"").replace(ve,xe[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=nt.trim(f.dataType||"*").toLowerCase().match(gt)||[""],
null==f.crossDomain&&(u=ye.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===xe[1]&&u[2]===xe[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(xe[3]||("http:"===xe[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=nt.param(f.data,f.traditional)),B(me,f,e,_),2===b)return _;c=nt.event&&f.global,c&&0==nt.active++&&nt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ge.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(le.test(i)?"&":"?")+f.data,
delete f.data),!1===f.cache&&(f.url=he.test(i)?i.replace(he,"$1_="+ce++):i+(le.test(i)?"&":"?")+"_="+ce++)),f.ifModified&&(nt.lastModified[i]&&_.setRequestHeader("If-Modified-Since",nt.lastModified[i]),nt.etag[i]&&_.setRequestHeader("If-None-Match",nt.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&_.setRequestHeader("Content-Type",f.contentType),
_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+we+"; q=0.01":""):f.accepts["*"]);for(l in f.headers)_.setRequestHeader(l,f.headers[l]);if(f.beforeSend&&(!1===f.beforeSend.call(h,_,f)||2===b))return _.abort();w="abort";for(l in{success:1,error:1,complete:1})_[l](f[l]);if(r=B(be,f,e,_)){_.readyState=1,c&&p.trigger("ajaxSend",[_,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){_.abort("timeout")},f.timeout));try{b=1,
r.send(y,n)}catch(t){if(!(b<2))throw t;n(-1,t)}}else n(-1,"No Transport");return _},getJSON:function(t,e,n){return nt.get(t,e,n,"json")},getScript:function(t,e){return nt.get(t,void 0,e,"script")}}),nt.each(["get","post"],function(t,e){nt[e]=function(t,n,r,i){return nt.isFunction(n)&&(i=i||r,r=n,n=void 0),nt.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),nt._evalUrl=function(t){return nt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},nt.fn.extend({
wrapAll:function(t){var e;return nt.isFunction(t)?this.each(function(e){nt(this).wrapAll(t.call(this,e))}):(this[0]&&(e=nt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return nt.isFunction(t)?this.each(function(e){nt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=nt(this),n=e.contents()
;n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=nt.isFunction(t);return this.each(function(n){nt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){nt.nodeName(this,"body")||nt(this).replaceWith(this.childNodes)}).end()}}),nt.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},nt.expr.filters.visible=function(t){return!nt.expr.filters.hidden(t)}
;var Oe=/%20/g,Te=/\[\]$/,Se=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;nt.param=function(t,e){var n,r=[],i=function(t,e){e=nt.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=nt.ajaxSettings&&nt.ajaxSettings.traditional),nt.isArray(t)||t.jquery&&!nt.isPlainObject(t))nt.each(t,function(){i(this.name,this.value)});else for(n in t)W(n,t[n],e,i);return r.join("&").replace(Oe,"+")},
nt.fn.extend({serialize:function(){return nt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=nt.prop(this,"elements");return t?nt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!nt(this).is(":disabled")&&je.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=nt(this).val();return null==n?null:nt.isArray(n)?nt.map(n,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,
value:n.replace(Se,"\r\n")}}).get()}}),nt.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var ke=0,Ce={},Ae={0:200,1223:204},Pe=nt.ajaxSettings.xhr();n.attachEvent&&n.attachEvent("onunload",function(){for(var t in Ce)Ce[t]()}),tt.cors=!!Pe&&"withCredentials"in Pe,tt.ajax=Pe=!!Pe,nt.ajaxTransport(function(t){var e;if(tt.cors||Pe&&!t.crossDomain)return{send:function(n,r){var i,o=t.xhr(),a=++ke;if(o.open(t.type,t.url,t.async,t.username,t.password),
t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete Ce[a],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(Ae[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},
o.onload=e(),o.onerror=e("error"),e=Ce[a]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),nt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return nt.globalEval(t),t}}}),nt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),
nt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=nt("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),et.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Me=[],De=/(=)\?(?=&|$)|\?\?/;nt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Me.pop()||nt.expando+"_"+ce++;return this[t]=!0,t}}),nt.ajaxPrefilter("json jsonp",function(t,e,r){
var i,o,a,s=!1!==t.jsonp&&(De.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&De.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=nt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(De,"$1"+i):!1!==t.jsonp&&(t.url+=(le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||nt.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],
n[i]=function(){a=arguments},r.always(function(){n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Me.push(i)),a&&nt.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),nt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||et;var r=ct.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=nt.buildFragment([t],e,i),i&&i.length&&nt(i).remove(),nt.merge([],r.childNodes))};var Ie=nt.fn.load;nt.fn.load=function(t,e,n){
if("string"!=typeof t&&Ie)return Ie.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=nt.trim(t.slice(s)),t=t.slice(0,s)),nt.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&nt.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?nt("<div>").append(nt.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},
nt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){nt.fn[e]=function(t){return this.on(e,t)}}),nt.expr.filters.animated=function(t){return nt.grep(nt.timers,function(e){return t===e.elem}).length};var Ne=n.document.documentElement;nt.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c,l=nt.css(t,"position"),f=nt(t),h={};"static"===l&&(t.style.position="relative"),s=f.offset(),o=nt.css(t,"top"),u=nt.css(t,"left"),
c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),nt.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},nt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){nt.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument
;if(o)return e=o.documentElement,nt.contains(e,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=V(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===nt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),nt.nodeName(t[0],"html")||(r=t.offset()),r.top+=nt.css(t[0],"borderTopWidth",!0),r.left+=nt.css(t[0],"borderLeftWidth",!0)),{
top:e.top-r.top-nt.css(n,"marginTop",!0),left:e.left-r.left-nt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ne;t&&!nt.nodeName(t,"html")&&"static"===nt.css(t,"position");)t=t.offsetParent;return t||Ne})}}),nt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var r="pageYOffset"===e;nt.fn[t]=function(i){return mt(this,function(t,i,o){var a=V(t);if(void 0===o)return a?a[e]:t[i]
;a?a.scrollTo(r?n.pageXOffset:o,r?o:n.pageYOffset):t[i]=o},t,i,arguments.length,null)}}),nt.each(["top","left"],function(t,e){nt.cssHooks[e]=E(tt.pixelPosition,function(t,n){if(n)return n=S(t,e),Ht.test(n)?nt(t).position()[e]+"px":n})}),nt.each({Height:"height",Width:"width"},function(t,e){nt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){nt.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return mt(this,function(e,n,r){
var i;return nt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?nt.css(e,n,a):nt.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),nt.fn.size=function(){return this.length},nt.fn.andSelf=nt.fn.addBack,r=[],void 0!==(i=function(){return nt}.apply(e,r))&&(t.exports=i);var Re=n.jQuery,Le=n.$;return nt.noConflict=function(t){return n.$===nt&&(n.$=Le),
t&&n.jQuery===nt&&(n.jQuery=Re),nt},void 0===o&&(n.jQuery=n.$=nt),nt})},,function(t,e,n){t.exports=n(2030)},,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);var n=e||{},r=null==n.additionalDigits?w:Object(v.a)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2")
;if(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"==typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var c=i(t),l=o(c.date,r),f=l.year,h=l.restDateString,p=a(h,f);if(isNaN(p))return new Date(NaN);if(p){var d,g=p.getTime(),m=0;if(c.time&&(m=s(c.time),isNaN(m)))return new Date(NaN)
;if(c.timezone){if(d=u(c.timezone),isNaN(d))return new Date(NaN)}else d=Object(y.a)(new Date(g+m)),d=Object(y.a)(new Date(g+m+d));return new Date(g+m+d)}return new Date(NaN)}function i(t){var e,n={},r=t.split(_.dateTimeDelimeter);if(_.plainTime.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1],_.timeZoneDelimeter.test(n.date)&&(n.date=t.split(_.timeZoneDelimeter)[0],e=t.substr(n.date.length,t.length))),e){var i=_.timezone.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}
function o(t,e){var n,r=_.YYY[e],i=_.YYYYY[e];if(n=_.YYYY.exec(t)||i.exec(t)){var o=n[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(n=_.YY.exec(t)||r.exec(t)){var a=n[1];return{year:100*parseInt(a,10),restDateString:t.slice(a.length)}}return{year:null}}function a(t,e){if(null===e)return null;var n,r,i,o;if(0===t.length)return r=new Date(0),r.setUTCFullYear(e),r;if(n=_.MM.exec(t))return r=new Date(0),i=parseInt(n[1],10)-1,f(e,i)?(r.setUTCFullYear(e,i),r):new Date(NaN)
;if(n=_.DDD.exec(t)){r=new Date(0);var a=parseInt(n[1],10);return h(e,a)?(r.setUTCFullYear(e,0,a),r):new Date(NaN)}if(n=_.MMDD.exec(t)){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return f(e,i,s)?(r.setUTCFullYear(e,i,s),r):new Date(NaN)}if(n=_.Www.exec(t))return o=parseInt(n[1],10)-1,p(e,o)?c(e,o):new Date(NaN);if(n=_.WwwD.exec(t)){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return p(e,o,u)?c(e,o,u):new Date(NaN)}return null}function s(t){var e,n,r
;if(e=_.HH.exec(t))return n=parseFloat(e[1].replace(",",".")),d(n)?n%24*m:NaN;if(e=_.HHMM.exec(t))return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),d(n,r)?n%24*m+r*b:NaN;if(e=_.HHMMSS.exec(t)){n=parseInt(e[1],10),r=parseInt(e[2],10);var i=parseFloat(e[3].replace(",","."));return d(n,r,i)?n%24*m+r*b+1e3*i:NaN}return null}function u(t){var e,n;if(e=_.timezoneZ.exec(t))return 0;var r;if(e=_.timezoneHH.exec(t))return r=parseInt(e[2],10),g(r)?(n=r*m,"+"===e[1]?-n:n):NaN
;if(e=_.timezoneHHMM.exec(t)){r=parseInt(e[2],10);var i=parseInt(e[3],10);return g(r,i)?(n=r*m+i*b,"+"===e[1]?-n:n):NaN}return 0}function c(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=7*e+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}function l(t){return t%400==0||t%4==0&&t%100!=0}function f(t,e,n){if(e<0||e>11)return!1;if(null!=n){if(n<1)return!1;var r=l(t);if(r&&n>O[e])return!1;if(!r&&n>x[e])return!1}return!0}function h(t,e){if(e<1)return!1
;var n=l(t);return!(n&&e>366)&&!(!n&&e>365)}function p(t,e,n){return!(e<0||e>52)&&(null==n||!(n<0||n>6))}function d(t,e,n){return(null==t||!(t<0||t>=25))&&((null==e||!(e<0||e>=60))&&(null==n||!(n<0||n>=60)))}function g(t,e){return null==e||!(e<0||e>59)}e.a=r;var v=n(44),y=n(269),m=36e5,b=6e4,w=2,_={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,
YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/},x=[31,28,31,30,31,30,31,31,30,31,30,31],O=[31,29,31,30,31,30,31,31,30,31,30,31]},,,,,,,,,,,,,,,,,,,,,function(t,e,n){
"use strict";function r(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}e.a=r},,,,,function(t,e,n){t.exports=n(2435)()},,,,,,function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){
for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(t,e){if(null==t)return{};var n,r,i=u(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"c",function(){return S}),n.d(e,"a",function(){
return E}),n.d(e,"d",function(){return k}),n.d(e,"b",function(){return C}),n.d(e,"j",function(){return A}),n.d(e,"h",function(){return P}),n.d(e,"i",function(){return M}),n.d(e,"k",function(){return D}),n.d(e,"e",function(){return N}),n.d(e,"f",function(){return L}),n.d(e,"q",function(){return U}),n.d(e,"n",function(){return F}),n.d(e,"g",function(){return q}),n.d(e,"m",function(){return W}),n.d(e,"p",function(){return V}),n.d(e,"l",function(){return Y}),n.d(e,"o",function(){return G})
;var c=n(199),l=n.n(c),f=n(640),h=n.n(f),p=n(200),d=n.n(p),g=n(82),v=n.n(g),y=n(104),m=n.n(y),b=n(0),w=n.n(b),_=n(49),x=n.n(_),O=n(83),T=n(60),S={alignmentBaseline:x.a.string,angle:x.a.number,baselineShift:x.a.string,clip:x.a.string,clipPath:x.a.string,clipRule:x.a.string,color:x.a.string,colorInterpolation:x.a.string,colorInterpolationFilters:x.a.string,colorProfile:x.a.string,colorRendering:x.a.string,cursor:x.a.string,direction:x.a.oneOf(["ltr","rtl","inherit"]),display:x.a.string,
dominantBaseline:x.a.string,enableBackground:x.a.string,fill:x.a.string,fillOpacity:x.a.oneOfType([x.a.string,x.a.number]),fillRule:x.a.oneOf(["nonzero","evenodd","inherit"]),filter:x.a.string,floodColor:x.a.string,floodOpacity:x.a.oneOfType([x.a.string,x.a.number]),font:x.a.string,fontFamily:x.a.string,fontSize:x.a.oneOfType([x.a.number,x.a.string]),fontSizeAdjust:x.a.oneOfType([x.a.number,x.a.string]),
fontStretch:x.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:x.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:x.a.oneOf(["normal","small-caps","inherit"]),fontWeight:x.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:x.a.string,glyphOrientationVertical:x.a.string,
imageRendering:x.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:x.a.oneOfType([x.a.number,x.a.string]),letterSpacing:x.a.oneOfType([x.a.number,x.a.string]),lightingColor:x.a.string,markerEnd:x.a.string,markerMid:x.a.string,markerStart:x.a.string,mask:x.a.string,opacity:x.a.oneOfType([x.a.number,x.a.string]),overflow:x.a.oneOf(["visible","hidden","scroll","auto","inherit"]),
pointerEvents:x.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:x.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:x.a.string,stopOpacity:x.a.oneOfType([x.a.number,x.a.string]),stroke:x.a.oneOfType([x.a.number,x.a.string]),strokeDasharray:x.a.string,strokeDashoffset:x.a.oneOfType([x.a.number,x.a.string]),strokeLinecap:x.a.oneOf(["butt","round","square","inherit"]),
strokeLinejoin:x.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:x.a.oneOfType([x.a.number,x.a.string]),strokeOpacity:x.a.oneOfType([x.a.number,x.a.string]),strokeWidth:x.a.oneOfType([x.a.number,x.a.string]),textAnchor:x.a.oneOf(["start","middle","end","inherit"]),textDecoration:x.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:x.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),
unicodeBidi:x.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:x.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:x.a.oneOfType([x.a.number,x.a.string]),writingMode:x.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:x.a.string,style:x.a.object,width:x.a.number,height:x.a.number,dx:x.a.number,dy:x.a.number,x:x.a.number,y:x.a.number,r:x.a.number,radius:x.a.oneOfType([x.a.number,x.a.array])},E={onClick:x.a.func,onMouseDown:x.a.func,
onMouseUp:x.a.func,onMouseOver:x.a.func,onMouseMove:x.a.func,onMouseOut:x.a.func,onMouseEnter:x.a.func,onMouseLeave:x.a.func,onTouchEnd:x.a.func,onTouchMove:x.a.func,onTouchStart:x.a.func,onTouchCancel:x.a.func},j={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"
},k=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],C=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],A=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},P=function(t,e){var n=[],r=[];return r=m()(e)?e.map(function(t){return A(t)}):[A(e)],w.a.Children.forEach(t,function(t){var e=t&&t.type&&(t.type.displayName||t.type.name)
;-1!==r.indexOf(e)&&n.push(t)}),n},M=function(t,e){var n=P(t,e);return n&&n[0]},D=function(t){if(!t||v()(t))return null;var e=w.a.isValidElement(t)?t.props:t;if(!d()(e))return null;var n=null;for(var r in e)({}).hasOwnProperty.call(e,r)&&S[r]&&(n||(n={}),n[r]=e[r]);return n},I=function(t,e){return function(n){return t(e,n),null}},N=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||v()(t))return null;var r=w.a.isValidElement(t)?t.props:t;if(!d()(r))return null
;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&E[o]&&(i||(i={}),i[o]=e||(n?I(r[o],r):r[o]));return i},R=function(t,e,n){return function(r){return t(e,n,r),null}},L=function(t,e,n){if(!d()(t))return null;var r=null;for(var i in t)({}).hasOwnProperty.call(t,i)&&E[i]&&v()(t[i])&&(r||(r={}),r[i]=R(t[i],e,n));return r},U=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Object(O.h)(n)||n<=0||!Object(O.h)(r)||r<=0)},F=function(){
return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)
},B=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],z=function(t){
return t&&t.type&&h()(t.type)&&B.indexOf(t.type)>=0},q=function(t){var e=[];return w.a.Children.forEach(t,function(t){t&&t.type&&h()(t.type)&&B.indexOf(t.type)>=0&&e.push(t)}),e},H=function(t,e){if(l()(t)&&l()(e))return!0;if(!l()(t)&&!l()(e)){var n=t.props||{},r=n.children,i=s(n,["children"]),o=e.props||{},a=o.children,u=s(o,["children"]);return r&&a?Object(T.b)(i,u)&&W(r,a):!r&&!a&&Object(T.b)(i,u)}return!1},W=function t(e,n){if(e===n)return!0
;if(b.Children.count(e)!==b.Children.count(n))return!1;var r=b.Children.count(e);if(0===r)return!0;if(1===r)return H(m()(e)?e[0]:e,m()(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],a=n[i];if(m()(o)||m()(a)){if(!t(o,a))return!1}else if(!H(o,a))return!1}return!0},V=function(t,e){var n=[],i={};return b.Children.forEach(t,function(t,o){if(t&&z(t))n.push(t);else if(t&&e[A(t.type)]){var a=A(t.type),s=e[a],u=s.handler,c=s.once;if(c&&!i[a]||!c){var l=u(t,a,o);m()(l)?n=[n].concat(r(l)):n.push(l),i[a]=!0}}
}),n},Y=function(t){var e=t&&t.type;return e&&j[e]?j[e]:null},G=function(t,e){var n=-1;return b.Children.forEach(e,function(e,r){e===t&&(n=r)}),n}},,,,,function(t,e,n){"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function i(t,e){return!r(t,this.props)||!r(e,this.state)}function o(t){t.prototype.shouldComponentUpdate=i}
e.b=r,e.a=o},,,,,,function(t,e,n){var r,i;/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===i)for(var s in r)o.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var o={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(i=function(){return n}.apply(e,r))&&(t.exports=i))}()},,,,,,,,,,,,,,,function(t,e,n){"use strict"
;function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(o.a)(t);return Object(i.a)(1e3*n,e)}e.a=r;var i=n(23),o=n(44)},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t);return e==s||e==u||e==a||e==c}var i=n(314),o=n(200),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){"use strict";n.d(e,"j",function(){return p}),
n.d(e,"i",function(){return d}),n.d(e,"h",function(){return g}),n.d(e,"g",function(){return v}),n.d(e,"k",function(){return m}),n.d(e,"d",function(){return b}),n.d(e,"b",function(){return w}),n.d(e,"e",function(){return _}),n.d(e,"f",function(){return x}),n.d(e,"a",function(){return O}),n.d(e,"c",function(){return T});var r=n(539),i=n.n(r),o=n(104),a=n.n(o),s=n(648),u=n.n(s),c=n(866),l=n.n(c),f=n(640),h=n.n(f),p=function(t){return 0===t?0:t>0?1:-1},d=function(t){
return h()(t)&&t.indexOf("%")===t.length-1},g=function(t){return l()(t)&&!u()(t)},v=function(t){return g(t)||h()(t)},y=0,m=function(t){var e=++y;return"".concat(t||"").concat(e)},b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!g(t)&&!h()(t))return n;var i;if(d(t)){var o=t.indexOf("%");i=e*parseFloat(t.slice(0,o))/100}else i=+t;return u()(i)&&(i=n),r&&i>e&&(i=e),i},w=function(t){if(!t)return null
;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},_=function(t){if(!a()(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1},x=function(t,e){return g(t)&&g(e)?function(n){return t+n*(e-t)}:function(){return e}},O=function(t,e,n){return t&&t.length?t.find(function(t){return t&&i()(t,e)===n}):null},T=function(t){if(!t||!t.length)return null;for(var e=t.length,n=0,r=0,i=0,o=0,a=1/0,s=-1/0,u=0;u<e;u++)n+=t[u].cx,r+=t[u].cy,i+=t[u].cx*t[u].cy,
o+=t[u].cx*t[u].cx,a=Math.min(a,t[u].cx),s=Math.max(s,t[u].cx);var c=e*o!=n*n?(e*i-n*r)/(e*o-n*n):0;return{xmin:a,xmax:s,a:c,b:(r-c*n)/e}}},,,,,,,,,,,,,,,,,,,,,function(t,e){var n=Array.isArray;t.exports=n},,,,,,,,,function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t,e){if(null==t)return{}
;var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function a(t){var e=t.children,n=t.className,o=i(t,["children","className"]),a=h()("recharts-layer",n);return u.a.createElement("g",r({className:a},o),e)}
var s=n(0),u=n.n(s),c=n(49),l=n.n(c),f=n(66),h=n.n(f),p={className:l.a.string,children:l.a.oneOfType([l.a.arrayOf(l.a.node),l.a.node])};a.propTypes=p,e.a=a},,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}r(),t.exports=n(2234)},,,,,,function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}
function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){u(t,e,n[e])})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"w",function(){return z}),n.d(e,"n",function(){return q}),n.d(e,"b",function(){return H}),n.d(e,"r",function(){return W}),n.d(e,"q",function(){return V}),
n.d(e,"i",function(){return Y}),n.d(e,"h",function(){return G}),n.d(e,"a",function(){return X}),n.d(e,"A",function(){return $}),n.d(e,"o",function(){return Q}),n.d(e,"y",function(){return J}),n.d(e,"m",function(){return Z}),n.d(e,"u",function(){return tt}),n.d(e,"d",function(){return et}),n.d(e,"B",function(){return nt}),n.d(e,"c",function(){return rt}),n.d(e,"f",function(){return it}),n.d(e,"D",function(){return ot}),n.d(e,"s",function(){return ct}),n.d(e,"v",function(){return ft}),
n.d(e,"l",function(){return ht}),n.d(e,"k",function(){return pt}),n.d(e,"j",function(){return dt}),n.d(e,"x",function(){return gt}),n.d(e,"e",function(){return vt}),n.d(e,"t",function(){return yt}),n.d(e,"p",function(){return bt}),n.d(e,"C",function(){return xt}),n.d(e,"g",function(){return Ot}),n.d(e,"z",function(){return Tt})
;var c=n(278),l=n.n(c),f=n(1316),h=n.n(f),p=n(648),d=n.n(p),g=n(640),v=n.n(g),y=n(2672),m=n.n(y),b=n(1325),w=n.n(b),_=n(104),x=n.n(_),O=n(2673),T=n.n(O),S=n(82),E=n.n(S),j=n(539),k=n.n(j),C=n(199),A=n.n(C),P=n(2675),M=(n.n(P),n(1329)),D=n(869),I=n(83),N=n(1361),R=n(1363),L=n(1364),U=n(548),F=n(867),B=n(55),z=function(t,e,n){return A()(t)||A()(e)?n:Object(I.g)(e)?k()(t,e,n):E()(e)?e(t):n},q=function(t,e,n,r){var i=T()(t,function(t){return z(t,e)});if("number"===n){var o=i.filter(function(t){
return Object(I.h)(t)||parseFloat(t,10)});return[Math.min.apply(null,o),Math.max.apply(null,o)]}return(r?i.filter(function(t){return!A()(t)}):i).map(function(t){return Object(I.g)(t)?t:""})},H=function(t,e,n,r){var i=-1,o=e.length;if(o>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s<o;s++){var u=s>0?n[s-1].coordinate:n[o-1].coordinate,c=n[s].coordinate,l=s>=o-1?n[0].coordinate:n[s+1].coordinate,f=void 0
;if(Object(I.j)(c-u)!==Object(I.j)(l-c)){var h=[];if(Object(I.j)(l-c)===Object(I.j)(a[1]-a[0])){f=l;var p=c+a[1]-a[0];h[0]=Math.min(p,(p+u)/2),h[1]=Math.max(p,(p+u)/2)}else{f=u;var d=l+a[1]-a[0];h[0]=Math.min(c,(d+c)/2),h[1]=Math.max(c,(d+c)/2)}var g=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(t>g[0]&&t<=g[1]||t>=h[0]&&t<=h[1]){i=n[s].index;break}}else{var v=Math.min(u,l),y=Math.max(u,l);if(t>(v+c)/2&&t<=(y+c)/2){i=n[s].index;break}}
}else for(var m=0;m<o;m++)if(0===m&&t<=(e[m].coordinate+e[m+1].coordinate)/2||m>0&&m<o-1&&t>(e[m].coordinate+e[m-1].coordinate)/2&&t<=(e[m].coordinate+e[m+1].coordinate)/2||m===o-1&&t>(e[m].coordinate+e[m-1].coordinate)/2){i=e[m].index;break}}else i=0;return i},W=function(t){var e,n=t.type.displayName;switch(n){case"Line":case"Area":case"Radar":e=t.props.stroke;break;default:e=t.props.fill}return e},V=function(t){
var e=t.children,n=t.formatedGraphicalItems,r=t.legendWidth,i=t.legendContent,o=Object(B.i)(e,F.a);if(!o)return null;var a;return a=o.props&&o.props.payload?o.props&&o.props.payload:"children"===i?(n||[]).reduce(function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map(function(t){return{type:o.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(n||[]).map(function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,a=n.legendType;return{
inactive:n.hide,dataKey:r,type:o.props.iconType||a||"square",color:W(e),value:i||r,payload:e.props}}),s({},o.props,F.a.getWithHeight(o,r),{payload:a,item:o})},Y=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var u=r[o[a]].stackGroups,c=Object.keys(u),l=0,f=c.length;l<f;l++){var h=u[c[l]],p=h.items,d=h.cateAxisId,g=p.filter(function(t){return Object(B.j)(t.type).indexOf("Bar")>=0});if(g&&g.length){
var v=g[0].props.barSize,y=g[0].props[d];i[y]||(i[y]=[]),i[y].push({item:g[0],stackList:g.slice(1),barSize:A()(v)?e:v})}}return i},G=function(t){var e=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,s=t.maxBarSize,u=a.length;if(u<1)return null;var c,l=Object(I.d)(e,i,0,!0);if(a[0].barSize===+a[0].barSize){var f=!1,h=i/u,p=a.reduce(function(t,e){return t+e.barSize||0},0);p+=(u-1)*l,p>=i&&(p-=(u-1)*l,l=0),p>=i&&h>0&&(f=!0,h*=.9,p=u*h);var d=(i-p)/2>>0,g={offset:d-l,size:0}
;c=a.reduce(function(t,e){var n=r(t).concat([{item:e.item,position:{offset:g.offset+g.size+l,size:f?h:e.barSize}}]);return g=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:g})}),n},[])}else{var v=Object(I.d)(n,i,0,!0);i-2*v-(u-1)*l<=0&&(l=0);var y=(i-2*v-(u-1)*l)/u;y>1&&(y>>=0);var m=s===+s?Math.min(y,s):y;c=a.reduce(function(t,e,n){var i=r(t).concat([{item:e.item,position:{offset:v+(y+l)*n+(y-m)/2,size:m}}])
;return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){i.push({item:t,position:i[i.length-1].position})}),i},[])}return c},X=function(t,e,n,r){var i=n.children,o=n.width,a=n.height,c=n.margin,l=o-(c.left||0)-(c.right||0),f=a-(c.top||0)-(c.bottom||0),h=V({children:i,items:e,legendWidth:l,legendHeight:f}),p=t;if(h){var d=r||{},g=h.align,v=h.verticalAlign,y=h.layout;("vertical"===y||"horizontal"===y&&"center"===v)&&Object(I.h)(t[g])&&(p=s({},t,u({},g,p[g]+(d.width||0)))),
("horizontal"===y||"vertical"===y&&"center"===g)&&Object(I.h)(t[v])&&(p=s({},t,u({},v,p[v]+(d.height||0))))}return p},K=function(t,e,n,r){var i=e.props.children,o=Object(B.h)(i,U.a).filter(function(t){var e=t.props.direction;return!(!A()(e)&&!A()(r))||r.indexOf(e)>=0});if(o&&o.length){var a=o.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var r=z(e,n,0),i=x()(r)?[w()(r),m()(r)]:[r,r],o=a.reduce(function(t,n){
var r=z(e,n,0),o=i[0]-Math.abs(x()(r)?r[0]:r),a=i[1]+Math.abs(x()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},$=function(t,e,n,r){var i=e.map(function(e){return K(t,e,n,r)}).filter(function(t){return!A()(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},Q=function(t,e,n,r){var i=e.map(function(e){var i=e.props.dataKey
;return"number"===n&&i?K(t,e,i)||q(t,i,n,r):q(t,i,n,r)});if("number"===n)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var o={};return i.reduce(function(t,e){for(var n=0,r=e.length;n<r;n++)o[e[n]]||(o[e[n]]=!0,t.push(e[n]));return t},[])},J=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Z=function(t,e,n){var r,i,o=t.map(function(t){
return t.coordinate===e&&(r=!0),t.coordinate===n&&(i=!0),t.coordinate});return r||o.push(e),i||o.push(n),o},tt=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,s=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/2:0;return s="angleAxis"===t.axisType?2*Object(I.j)(a[0]-a[1])*s:s,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map(function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+s,value:t,offset:s}
}):t.isCategorial&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:r(t),value:t,index:e,offset:s}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(t){return{coordinate:r(t)+s,value:t,offset:s}}):r.domain().map(function(t,e){return{coordinate:r(t)+s,value:i?i[t]:t,index:e,offset:s}})},et=function(t,e,n){var r;return E()(n)?r=n:E()(e)&&(r=e),E()(t)||r?function(e,n,i,o){E()(t)&&t(e,n,i,o),E()(r)&&r(e,n,i,o)}:null},nt=function(t,e){
var n=t.scale,r=t.type,i=t.layout,o=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===o?{scale:M.scaleBand(),realScaleType:"band"}:"radial"===i&&"angleAxis"===o?{scale:M.scaleLinear(),realScaleType:"linear"}:"category"===r&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0)?{scale:M.scalePoint(),realScaleType:"point"}:"category"===r?{scale:M.scaleBand(),realScaleType:"band"}:{scale:M.scaleLinear(),realScaleType:"linear"};if(v()(n)){
var a="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(M[a]||M.scalePoint)(),realScaleType:M[a]?a:"point"}}return E()(n)?{scale:n}:{scale:M.scalePoint(),realScaleType:"point"}},rt=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),s=t(e[n-1]);(a<i||a>o||s<i||s>o)&&t.domain([e[0],e[n-1]])}},it=function(t,e){if(!t)return null
;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},ot=function(t,e){if(!e||2!==e.length||!Object(I.h)(e[0])||!Object(I.h)(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Object(I.h)(t[0])||t[0]<n)&&(i[0]=n),(!Object(I.h)(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},at=function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,a=0;a<e;++a){var s=d()(t[a][n][1])?t[a][n][0]:t[a][n][1]
;s>=0?(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1])}},st={sign:at,expand:D.o,none:D.p,silhouette:D.q,wiggle:D.r},ut=function(t,e,n){var r=e.map(function(t){return t.props.dataKey});return Object(D.n)().keys(r).value(function(t,e){return+z(t,e,0)}).order(D.s).offset(st[n])(t)},ct=function(t,e,n,r,i,o){if(!t)return null;var a=o?e.reverse():e,c=a.reduce(function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],c=t[a]||{hasStack:!1,
stackGroups:{}};if(Object(I.g)(o)){var l=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(e),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[Object(I.k)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return s({},t,u({},a,c))},{});return Object.keys(c).reduce(function(e,o){var a=c[o];return a.hasStack&&(a.stackGroups=Object.keys(a.stackGroups).reduce(function(e,o){var c=a.stackGroups[o];return s({},e,u({},o,{numericAxisId:n,cateAxisId:r,items:c.items,
stackedData:ut(t,c.items,i)}))},{})),s({},e,u({},o,a))},{})},lt=function(t,e){return"number"===e?[Math.min.apply(null,t),Math.max.apply(null,t)]:t},ft=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,s=n||e.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain(),c=Object(P.getNiceTickValues)(u,i,a);return t.domain(lt(c,r)),{niceTicks:c}}if(i&&"number"===r){var l=t.domain();return{
niceTicks:Object(P.getTickValuesFixedDomain)(l,i,a)}}return null},ht=function(t){var e=t.axis,n=t.ticks,r=t.bandSize,i=t.entry,o=t.index;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!A()(i[e.dataKey])){var a=Object(I.a)(n,"value",i[e.dataKey]);if(a)return a.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=z(i,e.dataKey);return A()(s)?null:e.scale(s)},pt=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,a=t.index
;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var s=z(o,e.dataKey,e.domain[a]);return A()(s)?null:e.scale(s)-i/2+r},dt=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},gt=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},vt=function(t,e,n,r,i){
var o=Object(B.h)(t,R.a),a=Object(B.h)(t,N.a),s=o.concat(a),u=Object(B.h)(t,L.a),c="".concat(r,"Id"),l=r[0],f=e;if(s.length&&(f=s.reduce(function(t,e){if(e.props[c]===n&&gt(e.props,"extendDomain")&&Object(I.h)(e.props[l])){var r=e.props[l];return[Math.min(t[0],r),Math.max(t[1],r)]}return t},f)),u.length){var h="".concat(l,"1"),p="".concat(l,"2");f=u.reduce(function(t,e){if(e.props[c]===n&&gt(e.props,"extendDomain")&&Object(I.h)(e.props[h])&&Object(I.h)(e.props[p])){var r=e.props[h],i=e.props[p]
;return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t},f)}return i&&i.length&&(f=i.reduce(function(t,e){return Object(I.h)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},yt=function(t,e){var n=t.props.stackId;if(Object(I.g)(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===t){i=o;break}return i>=0?r.stackedData[i]:null}}return null},mt=function(t){return t.reduce(function(t,e){
return[Math.min.apply(null,e.concat([t[0]]).filter(I.h)),Math.max.apply(null,e.concat([t[1]]).filter(I.h))]},[1/0,-1/0])},bt=function(t,e,n){return Object.keys(t).reduce(function(r,i){var o=t[i],a=o.stackedData,s=a.reduce(function(t,r){var i=mt(r.slice(e,n+1));return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})
},wt=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_t=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xt=function(t,e,n){if(!x()(t))return e;var r=[];if(Object(I.h)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(wt.test(t[0])){var i=+wt.exec(t[0])[1];r[0]=e[0]-i}else E()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(Object(I.h)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(_t.test(t[1])){var o=+_t.exec(t[1])[1];r[1]=e[1]+o}else E()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Ot=function(t,e){
if(t&&t.scale&&t.scale.bandwidth)return t.scale.bandwidth();if(t&&e&&e.length>=2){for(var n=h()(e,function(t){return t.coordinate}),r=1/0,i=1,o=n.length;i<o;i++){var a=n[i],s=n[i-1];r=Math.min((a.coordinate||0)-(s.coordinate||0),r)}return r===1/0?0:r}return 0},Tt=function(t,e,n){return t&&t.length?l()(t,k()(n,"type.defaultProps.domain"))?e:t:e}},,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Math.floor(Object(i.a)(t,e)/1e3)}e.a=r;var i=n(1252)},function(t,e,n){var r=n(856),i=n(857),o=n(1258),a=n(2413),s=n(2416),u=function(t,e,n){var c,l,f,h,p=t&u.F,d=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,m=d?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?i:i[e]||(i[e]={}),w=b.prototype||(b.prototype={});d&&(n=e);for(c in n)l=!p&&m&&void 0!==m[c],f=(l?m:n)[c],
h=y&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,m&&a(m,c,f,t&u.U),b[c]!=f&&o(b,c,h),v&&w[c]!=f&&(w[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},,,,,,,,,,function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,,,,,,,,,function(t,e,n){var r=n(1092)("wks"),i=n(595),o=n(195).Symbol,a="function"==typeof o;(t.exports=function(t){
return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),v=n||{},y=v.locale||c.a,m=y.options&&y.options.firstWeekContainsDate,b=null==m?1:Object(o.a)(m),w=null==v.firstWeekContainsDate?b:Object(o.a)(v.firstWeekContainsDate);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")
;var _=y.options&&y.options.weekStartsOn,x=null==_?0:Object(o.a)(_),O=null==v.weekStartsOn?x:Object(o.a)(v.weekStartsOn);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");var T=Object(s.a)(t,v);if(!Object(u.a)(T,v))return"Invalid Date";var S=Object(a.a)(T),E=Object(h.a)(T,S,v),j={
firstWeekContainsDate:w,weekStartsOn:O,locale:y,_originalDate:T};return r.match(g).map(function(t){var e=t[0];if("p"===e||"P"===e){return(0,f.a[e])(t,y.formatLong,j)}return t}).join("").match(d).map(function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return i(t);var n=l.a[e];return n?(!v.awareOfUnicodeTokens&&Object(p.a)(t)&&Object(p.b)(t),n(E,t,y.localize,j)):t}).join("")}function i(t){return t.match(v)[1].replace(y,"'")}e.a=r
;var o=n(44),a=n(269),s=n(23),u=n(613),c=n(510),l=n(2004),f=n(2008),h=n(616),p=n(1162),d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'(.*?)'?$/,y=/''/g},,,,,function(t,e,n){"use strict";function r(t,e,n,a){function s(e){return t(e=new Date(+e)),e}return s.floor=s,s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){
return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,r,i){var o,a=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return a},s.filter=function(n){return r(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(s.count=function(e,r){return i.setTime(+e),o.setTime(+r),t(i),t(o),Math.floor(n(i,o))},
s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}e.a=r;var i=new Date,o=new Date},,,,,,,,function(t,e,n){"use strict";var r=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;u=new Error(e.replace(/%s/g,function(){
return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},,,,,,,,,,,,function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,,,function(t,e){function n(t){return null==t}t.exports=n},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},,,,,,,,,,,,,function(t,e,n){
var r=n(1260),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){"use strict";var r=n(1276),i=(n(1294),n(659));n(2597);n.d(e,"b",function(){return i.e}),e.a=r.a},,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1570);Object.defineProperty(e,"DragDropContext",{enumerable:!0,get:function(){return r(i).default}});var o=n(3874)
;Object.defineProperty(e,"DragDropContextProvider",{enumerable:!0,get:function(){return r(o).default}});var a=n(3875);Object.defineProperty(e,"DragLayer",{enumerable:!0,get:function(){return r(a).default}});var s=n(3876);Object.defineProperty(e,"DragSource",{enumerable:!0,get:function(){return r(s).default}});var u=n(3886);Object.defineProperty(e,"DropTarget",{enumerable:!0,get:function(){return r(u).default}})},,,function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)
},,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setDate(r.getDate()+a),r}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return u(t)||s(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(t,e){
var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function u(t){if(Array.isArray(t))return t}n.d(e,"a",function(){return p}),n.d(e,"e",function(){return g}),n.d(e,"c",function(){return v}),n.d(e,"b",function(){return y}),n.d(e,"d",function(){return x});var c=n(199),l=n.n(c),f=n(83),h=n(135),p=Math.PI/180,d=function(t){
return 180*t/Math.PI},g=function(t,e,n,r){return{x:t+Math.cos(-p*r)*n,y:e+Math.sin(-p*r)*n}},v=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(e-(n.top||0)-(n.bottom||0)))/2},y=function(t,e,n,a,s){
var u=t.width,c=t.height,p=t.startAngle,d=t.endAngle,g=Object(f.d)(t.cx,u,u/2),y=Object(f.d)(t.cy,c,c/2),m=v(u,c,n),b=Object(f.d)(t.innerRadius,m,0),w=Object(f.d)(t.outerRadius,m,.8*m);return Object.keys(e).reduce(function(t,n){var u,c=e[n],f=c.domain,v=c.reversed;if(l()(c.range))"angleAxis"===a?u=[p,d]:"radiusAxis"===a&&(u=[b,w]),v&&(u=[u[1],u[0]]);else{u=c.range;var m=u,_=o(m,2);p=_[0],d=_[1]}var x=Object(h.B)(c,s),O=x.realScaleType,T=x.scale;return T.domain(f).range(u),Object(h.c)(T),
r({},t,i({},n,r({},c,Object(h.v)(T,r({},c,{realScaleType:O})),{range:u,radius:w,realScaleType:O,scale:T,cx:g,cy:y,innerRadius:b,outerRadius:w,startAngle:p,endAngle:d})))},{})},m=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))},b=function(t,e){var n=t.x,r=t.y,i=e.cx,o=e.cy,a=m({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,u=Math.acos(s);return r>o&&(u=2*Math.PI-u),{radius:a,angle:d(u),angleInRadian:u}},w=function(t){
var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}},_=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},x=function(t,e){var n=t.x,i=t.y,o=b({x:n,y:i},e),a=o.radius,s=o.angle,u=e.innerRadius,c=e.outerRadius;if(a<u||a>c)return!1;if(0===a)return!0;var l,f=w(e),h=f.startAngle,p=f.endAngle,d=s;if(h<=p){for(;d>p;)d-=360;for(;d<h;)d+=360;l=d>=h&&d<=p}else{
for(;d>h;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=h}return l?r({},e,{radius:a,angle:_(d,e)}):null}},,,,,,,,,,,,,,,,,function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?s(t)?o(t[0],t[1]):i(t):u(t)}var i=n(2651),o=n(2654),a=n(447),s=n(104),u=n(2658);t.exports=r},,,,,,,,,,function(t,e,n){"use strict";var r=function(){this.init=function(){var t={}
;this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var r;return!!t[e]&&(r=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(r,1),r>-1)},this.trigger=function(e){var n,r,i,o;if(n=t[e])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(){t={}}}};r.prototype.pipe=function(t){
return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),t},r.prototype.push=function(t){this.trigger("data",t)},r.prototype.flush=function(t){this.trigger("done",t)},t.exports=r},,,,,function(t,e,n){"use strict";function r(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();e.setSeconds(0,0);var r=e.getTime()%i;return n*i+r}e.a=r;var i=6e4},,,,function(t,e,n){function r(t){if(!a(t)||i(t)!=s)return!1;var e=o(t);if(null===e)return!0
;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var i=n(631),o=n(2249),a=n(526),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=l.call(Object);t.exports=r},,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r
;var i=n(441)},function(t,e,n){var r=n(1281),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){function r(t,e){return i(t,e)}var i=n(885);t.exports=r},function(t,e,n){"use strict";var r=n(1330);n.d(e,"b",function(){return r.a});var i=n(448);n.d(e,"a",function(){return i.a});var o=n(1331);n.d(e,"c",function(){return o.a});var a=(n(2679),n(2680),n(1333),n(1335),n(2681),n(2684),n(2685),n(1339),n(2686),n(2687),n(2688),n(2689),
n(1340),n(1332),n(2690),n(897));n.d(e,"d",function(){return a.a});var s=n(1337);n.d(e,"e",function(){return s.a});var u=(n(2691),n(2692),n(2693),n(1338));n.d(e,"h",function(){return u.a}),n.d(e,"f",function(){return u.b}),n.d(e,"g",function(){return u.c});n(1341),n(1334),n(2694)},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"e",function(){return s})
;var r=1e3,i=6e4,o=36e5,a=864e5,s=6048e5},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(){return s=Object.assign||function(t){
for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){c(t,e,n[e])})}return t}
function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(null==t)return{};var n,r,i=f(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function f(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}
function h(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,i=t.clockWise,o=t.id,a=l(t,["data","valueAccessor","dataKey","clockWise","id"]);return e&&e.length?T.a.createElement(k.a,{className:"recharts-label-list"},e.map(function(t,e){var c=m()(r)?n(t,e):Object(A.w)(t&&t.payload,r),l=m()(o)?{}:{id:"".concat(o,"-").concat(e)};return T.a.createElement(j.a,s({},Object(C.k)(t),a,l,{index:e,value:c,viewBox:j.a.parseViewBox(m()(i)?t:u({},t,{clockWise:i})),key:"label-".concat(e)}))})):null}
var p=n(200),d=n.n(p),g=n(82),v=n.n(g),y=n(199),m=n.n(y),b=n(1365),w=n.n(b),_=n(104),x=n.n(_),O=n(0),T=n.n(O),S=n(49),E=n.n(S),j=n(316),k=n(113),C=n(55),A=n(135),P={id:E.a.string,data:E.a.arrayOf(E.a.object),valueAccessor:E.a.func,clockWise:E.a.bool,dataKey:E.a.oneOfType([E.a.string,E.a.number,E.a.func])},M={valueAccessor:function(t){return x()(t.value)?w()(t.value):t.value}};h.propTypes=P,h.displayName="LabelList";var D=function(t,e){return t?!0===t?T.a.createElement(h,{
key:"labelList-implicit",data:e}):T.a.isValidElement(t)||v()(t)?T.a.createElement(h,{key:"labelList-implicit",data:e,content:t}):d()(t)?T.a.createElement(h,s({data:e},t,{key:"labelList-implicit"})):null:null},I=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=Object(C.h)(i,h).map(function(t,n){return Object(O.cloneElement)(t,{data:e,key:"labelList-".concat(n)})});return n?[D(t.label,e)].concat(r(o)):o}
;h.renderCallByParent=I,h.defaultProps=M,e.a=h},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(null==t)return{};var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],
e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function s(t){return l(t)||c(t)||u()}function u(){
throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){h(t,e,n[e])})}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function v(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?w(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
var _=n(2763),x=n.n(_),O=n(1362),T=n.n(O),S=n(2764),E=n.n(S),j=n(1316),k=n.n(j),C=n(82),A=n.n(C),P=n(1372),M=n.n(P),D=n(2769),I=n.n(D),N=n(199),R=n.n(N),L=n(0),U=n.n(L),F=n(49),B=n.n(F),z=n(66),q=n.n(z),H=n(538),W=n(113),V=n(653),Y=n(867),G=n(453),X=n(1366),K=n(669),$=n(383),Q=n(452),J=n(55),Z=n(1374),tt=n(1371),et=n(661),nt=n(83),rt=n(135),it=n(235),ot=n(60),at=n(2770),st={xAxis:["bottom","top"],yAxis:["left","right"]},ut={x:0,y:0},ct=function(t){
var e=t.chartName,n=t.GraphicalChild,r=t.eventType,o=void 0===r?"axis":r,u=t.axisComponents,c=t.legendContent,l=t.formatAxisMap,d=t.defaultProps,b=t.propTypes,_=function(t){function r(t){var n;p(this,r),n=v(this,y(r).call(this,t)),n.handleLegendBBoxUpdate=function(t){if(t&&n.legendInstance){var e=n.state,r=e.dataStartIndex,i=e.dataEndIndex,o=e.updateId;n.setState(n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:r,dataEndIndex:i,updateId:o}))}},
n.handleReceiveSyncEvent=function(t,e,r){var i=n.props,o=i.syncId,a=i.layout,s=n.state.updateId;if(o===t&&e!==n.uniqueChartId){var u=r.dataStartIndex,c=r.dataEndIndex;if(R()(r.dataStartIndex)&&R()(r.dataEndIndex))if(R()(r.activeTooltipIndex))n.setState(r);else{var l=r.chartX,h=r.chartY,p=r.activeTooltipIndex,d=n.state,g=d.offset,v=d.tooltipTicks;if(!g)return;var y=f({},g,{x:g.left,y:g.top}),m=Math.min(l,y.x+y.width),b=Math.min(h,y.y+y.height),w=v[p]&&v[p].value,_=n.getTooltipContent(p),x=v[p]?{
x:"horizontal"===a?v[p].coordinate:m,y:"horizontal"===a?b:v[p].coordinate}:ut;n.setState(f({},r,{activeLabel:w,activeCoordinate:x,activePayload:_}))}else n.setState(f({dataStartIndex:u,dataEndIndex:c},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:u,dataEndIndex:c,updateId:s})))}},n.handleBrushChange=function(t){var e=t.startIndex,r=t.endIndex;if(e!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var i=n.state.updateId;n.setState(function(){return f({
dataStartIndex:e,dataEndIndex:r},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:e,dataEndIndex:r,updateId:i}))}),n.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}},n.handleMouseEnter=function(t){var e=n.props.onMouseEnter,r=n.getMouseInfo(t);if(r){var i=f({},r,{isTooltipActive:!0});n.setState(i),n.triggerSyncEvent(i),A()(e)&&e(i,t)}},n.triggeredAfterMouseMove=function(t){var e=n.props.onMouseMove,r=n.getMouseInfo(t),i=r?f({},r,{isTooltipActive:!0}):{
isTooltipActive:!1};n.setState(i),n.triggerSyncEvent(i),A()(e)&&e(i,t)},n.handleItemMouseEnter=function(t){n.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})},n.handleItemMouseLeave=function(){n.setState(function(){return{isTooltipActive:!1}})},n.handleMouseMove=function(t){t&&A()(t.persist)&&t.persist(),n.triggeredAfterMouseMove(t)},n.handleMouseLeave=function(t){var e=n.props.onMouseLeave,r={
isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),A()(e)&&e(r,t)},n.handleOuterEvent=function(t){var e=Object(J.l)(t);if(e&&A()(n.props[e])){var r=n.getMouseInfo(t);(0,n.props[e])(r,t)}},n.handleClick=function(t){var e=n.props.onClick;if(A()(e)){e(n.getMouseInfo(t),t)}},n.handleMouseDown=function(t){var e=n.props.onMouseDown;if(A()(e)){e(n.getMouseInfo(t),t)}},n.handleMouseUp=function(t){var e=n.props.onMouseUp;if(A()(e)){e(n.getMouseInfo(t),t)}},n.handleTouchMove=function(t){
null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseMove(t.changedTouches[0])},n.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseDown(t.changedTouches[0])},n.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleMouseUp(t.changedTouches[0])},n.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,i=t.offset;return Object(rt.m)(Z.a.getTicks(f({},Z.a.defaultProps,e,{
ticks:Object(rt.u)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,i=t.offset;return Object(rt.m)(Z.a.getTicks(f({},Z.a.defaultProps,e,{ticks:Object(rt.u)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(t){return Object(rt.u)(t,!0)},n.tooltipTicksGenerator=function(t){var e=Object(nt.b)(t),n=Object(rt.u)(e,!1,!0);return{tooltipTicks:n,
orderedTooltipTicks:k()(n,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:Object(rt.g)(e)}},n.renderCursor=function(t){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!(t&&t.props.cursor&&i&&o))return null;var u,c=n.props.layout,l=G.a;if("ScatterChart"===e)u=o,l=X.a;else if("BarChart"===e)u=n.getCursorRectangle(),l=Q.a;else if("radial"===c){var h=n.getCursorPoints(),p=h.cx,d=h.cy,g=h.radius,v=h.startAngle,y=h.endAngle;u={cx:p,cy:d,
startAngle:v,endAngle:y,innerRadius:g,outerRadius:g},l=K.a}else u={points:n.getCursorPoints()},l=G.a;var m=t.key||"_recharts-cursor",b=f({stroke:"#ccc",pointerEvents:"none"},s,u,Object(J.k)(t.props.cursor),{payload:a,key:m,className:"recharts-tooltip-cursor"});return Object(L.isValidElement)(t.props.cursor)?Object(L.cloneElement)(t.props.cursor,b):Object(L.createElement)(l,b)},n.renderPolarAxis=function(t,e,r){var i=t.type.axisType,o=n.state["".concat(i,"Map")],a=o[t.props["".concat(i,"Id")]]
;return Object(L.cloneElement)(t,f({},a,{className:i,key:t.key||"".concat(e,"-").concat(r),ticks:Object(rt.u)(a,!0)}))},n.renderXAxis=function(t,e,r){var i=n.state.xAxisMap,o=i[t.props.xAxisId];return n.renderAxis(o,t,e,r)},n.renderYAxis=function(t,e,r){var i=n.state.yAxisMap,o=i[t.props.yAxisId];return n.renderAxis(o,t,e,r)},n.renderGrid=function(t){var e=n.state,r=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=n.props,s=a.width,u=a.height,c=Object(nt.b)(r),l=E()(i,function(t){return T()(t.domain,x.a)
}),f=l||Object(nt.b)(i),h=t.props||{};return Object(L.cloneElement)(t,{key:t.key||"grid",x:Object(nt.h)(h.x)?h.x:o.left,y:Object(nt.h)(h.y)?h.y:o.top,width:Object(nt.h)(h.width)?h.width:o.width,height:Object(nt.h)(h.height)?h.height:o.height,xAxis:c,yAxis:f,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},
n.renderPolarGrid=function(t){var e=n.state,r=e.radiusAxisMap,i=e.angleAxisMap,o=Object(nt.b)(r),a=Object(nt.b)(i),s=a.cx,u=a.cy,c=a.innerRadius,l=a.outerRadius;return Object(L.cloneElement)(t,{polarAngles:Object(rt.u)(a,!0).map(function(t){return t.coordinate}),polarRadius:Object(rt.u)(o,!0).map(function(t){return t.coordinate}),cx:s,cy:u,innerRadius:c,outerRadius:l,key:t.key||"polar-grid"})},n.renderBrush=function(t){
var e=n.props,r=e.margin,i=e.data,o=n.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,c=o.updateId;return Object(L.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Object(rt.d)(n.handleBrushChange,null,t.props.onChange),data:i,x:Object(nt.h)(t.props.x)?t.props.x:a.left,y:Object(nt.h)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(nt.h)(t.props.width)?t.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})},
n.renderReferenceElement=function(t,e,r){if(!t)return null;var i=w(w(n)),o=i.clipPathId,a=n.state,s=a.xAxisMap,u=a.yAxisMap,c=a.offset,l=t.props,f=l.xAxisId,h=l.yAxisId;return Object(L.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:s[f],yAxis:u[h],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})},n.renderGraphicChild=function(t,e,r){var i=n.filterFormatItem(t,e,r);if(!i)return null
;var o=Object(L.cloneElement)(t,i.props),a=n.state,u=a.isTooltipActive,c=a.tooltipAxis,l=a.activeTooltipIndex,f=a.activeLabel,h=n.props.children,p=Object(J.i)(h,V.a),d=i.props,g=d.points,v=d.isRange,y=d.baseLine,m=i.item.props,b=m.activeDot;if(!m.hide&&u&&p&&b&&l>=0){var w,_;if(c.dataKey&&!c.allowDuplicatedCategory?(w=Object(nt.a)(g,"payload.".concat(c.dataKey),f),_=v&&y&&Object(nt.a)(y,"payload.".concat(c.dataKey),f)):(w=g[l],_=v&&y&&y[l]),!R()(w))return[o].concat(s(n.renderActivePoints({
item:i,activePoint:w,basePoint:_,childIndex:l,isRange:v})))}return v?[o,null,null]:[o,null]};var i=n.constructor.createDefaultState(t);return n.state=f({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(f({props:t},i,{updateId:0}))),n.uniqueChartId=R()(t.id)?Object(nt.k)("recharts"):t.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),t.throttleDelay&&(n.triggeredAfterMouseMove=I()(n.triggeredAfterMouseMove,t.throttleDelay)),n}return m(r,t),g(r,[{key:"componentDidMount",
value:function(){R()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.children,o=n.width,a=n.height,s=n.layout,u=n.stackOffset,c=n.margin,l=this.state.updateId;if(t.data===r&&t.width===o&&t.height===a&&t.layout===s&&t.stackOffset===u&&Object(ot.b)(t.margin,c)){if(!Object(J.m)(t.children,i)){var h=!R()(t.data),p=h?l:l+1;this.setState(function(n){return f({updateId:p},e.updateStateOfAxisMapsOffsetAndStackGroups(f({
props:t},n,{updateId:p})))})}}else{var d=this.constructor.createDefaultState(t);this.setState(f({},d,{updateId:l+1},this.updateStateOfAxisMapsOffsetAndStackGroups(f({props:t},d,{updateId:l+1}))))}R()(this.props.syncId)&&!R()(t.syncId)&&this.addListener(),!R()(this.props.syncId)&&R()(t.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){R()(this.props.syncId)||this.removeListener(),
"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.children,l="".concat(r,"Id"),f=Object(J.h)(c,i),h={};return f&&f.length?h=this.getAxisMapByAxes(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(h=this.getAxisMapByItems(t,{
Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),h}},{key:"getAxisMapByAxes",value:function(t,e){var n=this,r=e.axes,i=e.graphicalItems,o=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,p=t.layout,d=t.children,g=t.stackOffset,v=Object(rt.y)(p,o);return r.reduce(function(e,r){
var y=r.props,m=y.type,b=y.dataKey,w=y.allowDataOverflow,_=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,T=r.props[a],S=n.constructor.getDisplayedData(t,{graphicalItems:i.filter(function(t){return t.props[a]===T}),dataStartIndex:c,dataEndIndex:l}),E=S.length;if(!e[T]){var j,k,C;if(b){if(j=Object(rt.n)(S,b,m),"category"===m&&v){var A=Object(nt.e)(j);_&&A?(k=j,j=M()(0,E)):_||(j=Object(rt.z)(r.props.domain,j,r).reduce(function(t,e){return t.indexOf(e)>=0?t:s(t).concat([e])},[]))
}else if("category"===m)j=_?j.filter(function(t){return""!==t&&!R()(t)}):Object(rt.z)(r.props.domain,j,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||R()(e)?t:s(t).concat([e])},[]);else if("number"===m){var P=Object(rt.A)(S,i.filter(function(t){return t.props[a]===T&&!t.props.hide}),b,o);P&&(j=P)}!v||"number"!==m&&"auto"===x||(C=Object(rt.n)(S,b,"category"))
}else j=v?M()(0,E):u&&u[T]&&u[T].hasStack&&"number"===m?"expand"===g?[0,1]:Object(rt.p)(u[T].stackGroups,c,l):Object(rt.o)(S,i.filter(function(t){return t.props[a]===T&&!t.props.hide}),m,!0);return"number"===m&&(j=Object(rt.e)(d,j,T,o,O),r.props.domain&&(j=Object(rt.C)(r.props.domain,j,w))),f({},e,h({},T,f({},r.props,{axisType:o,domain:j,categoricalDomain:C,duplicateDomain:k,originalDomain:r.props.domain,isCategorial:v,layout:p})))}return e},{})}},{key:"getAxisMapByItems",value:function(t,e){
var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,l=t.children,p=this.constructor.getDisplayedData(t,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),d=p.length,g=Object(rt.y)(c,i),v=-1;return n.reduce(function(t,e){var y=e.props[o];if(!t[y]){v++;var m;return g?m=M()(0,d):a&&a[y]&&a[y].hasStack?(m=Object(rt.p)(a[y].stackGroups,s,u),
m=Object(rt.e)(l,m,y,i)):(m=Object(rt.C)(r.defaultProps.domain,Object(rt.o)(p,n.filter(function(t){return t.props[o]===y&&!t.props.hide}),"number"),r.defaultProps.allowDataOverflow),m=Object(rt.e)(l,m,y,i)),f({},t,h({},y,f({axisType:i},r.defaultProps,{hide:!0,orientation:st[i]&&st[i][v%2],domain:m,originalDomain:r.defaultProps.domain,isCategorial:g,layout:c})))}return t},{})}},{key:"getActiveCoordinate",value:function(t,e,n){var r=this.props.layout,i=t.find(function(t){return t&&t.index===e})
;if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return f({},n,Object(it.e)(n.cx,n.cy,a,o),{angle:o,radius:a})}var s=i.coordinate,u=n.angle;return f({},n,Object(it.e)(n.cx,n.cy,s,u),{angle:u,radius:s})}return ut}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=Object(et.b)(this.container),n=Object(et.a)(t,e),r=this.inRange(n.chartX,n.chartY);if(!r)return null
;var i=this.state,a=i.xAxisMap,s=i.yAxisMap;if("axis"!==o&&a&&s){var u=Object(nt.b)(a).scale,c=Object(nt.b)(s).scale;return f({},n,{xValue:u&&u.invert?u.invert(n.chartX):null,yValue:c&&c.invert?c.invert(n.chartY):null})}var l=this.state,h=l.orderedTooltipTicks,p=l.tooltipAxis,d=l.tooltipTicks,g=this.calculateTooltipPos(r),v=Object(rt.b)(g,h,d,p);if(v>=0&&d){var y=d[v]&&d[v].value;return f({},n,{activeTooltipIndex:v,activeLabel:y,activePayload:this.getTooltipContent(v,y),
activeCoordinate:this.getActiveCoordinate(h,v,r)})}return null}},{key:"getTooltipContent",value:function(t,e){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return t<0||!r||!r.length||t>=o.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,u=r.props,c=u.dataKey,l=u.name,h=u.unit,p=u.formatter,d=u.data;return a=i.dataKey&&!i.allowDuplicatedCategory?Object(nt.a)(d||o,i.dataKey,e):o[t],
a?s(n).concat([f({},Object(J.k)(r),{dataKey:c,unit:h,formatter:p,name:l||c,color:Object(rt.r)(r),value:Object(rt.w)(a,c),payload:a})]):n},[])}},{key:"getFormatItems",value:function(t,e){var n=this,r=e.graphicalItems,i=e.stackGroups,o=e.offset,a=e.updateId,s=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,p=t.layout,d=t.barGap,g=t.barCategoryGap,v=t.maxBarSize,y=this.constructor.getAxisNameByLayout(p),m=y.numericAxisName,b=y.cateAxisName,w=this.constructor.hasBar(r),_=w&&Object(rt.i)({barSize:l,
stackGroups:i}),x=[];return r.forEach(function(r,l){var y=n.constructor.getDisplayedData(t,{dataStartIndex:s,dataEndIndex:c},r),O=r.props,T=O.dataKey,S=O.maxBarSize,E=r.props["".concat(m,"Id")],j=r.props["".concat(b,"Id")],k=u.reduce(function(t,n){var i,o=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=o&&o[a];return f({},t,(i={},h(i,n.axisType,s),h(i,"".concat(n.axisType,"Ticks"),Object(rt.u)(s)),i))
},{}),C=k[b],A=k["".concat(b,"Ticks")],P=i&&i[E]&&i[E].hasStack&&Object(rt.t)(r,i[E].stackGroups),M=Object(rt.g)(C,A),D=R()(S)?v:S,I=w&&Object(rt.h)({barGap:d,barCategoryGap:g,bandSize:M,sizeList:_[j],maxBarSize:D}),N=r&&r.type&&r.type.getComposedData;if(N){var L;x.push({props:f({},N(f({},k,{displayedData:y,props:t,dataKey:T,item:r,bandSize:M,barPosition:I,offset:o,stackedData:P,layout:p,dataStartIndex:s,dataEndIndex:c,
onItemMouseLeave:Object(rt.d)(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Object(rt.d)(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(L={key:r.key||"item-".concat(l)},h(L,m,k[m]),h(L,b,k[b]),h(L,"animationId",a),L)),childIndex:Object(J.o)(r,t.children),item:r})}}),x}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",
x:"horizontal"===t?n.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-o,width:"horizontal"===t?i:r.width-1,height:"horizontal"===t?r.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)t=a.x,n=t,e=s.top,r=s.top+s.height;else if("vertical"===i)e=a.y,r=e,t=s.left,n=s.left+s.width;else if(!R()(a.cx)||!R()(a.cy)){if("centric"!==i){
var u=a.cx,c=a.cy,l=a.radius,f=a.startAngle,h=a.endAngle,p=Object(it.e)(u,c,l,f),d=Object(it.e)(u,c,l,h);return{points:[p,d],cx:u,cy:c,radius:l,startAngle:f,endAngle:h}}var g=a.cx,v=a.cy,y=a.innerRadius,m=a.outerRadius,b=a.angle,w=Object(it.e)(g,v,y,b),_=Object(it.e)(g,v,m,b);t=w.x,e=w.y,n=_.x,r=_.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(t){var e=this.props.layout;return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}},{key:"inRange",
value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Object(nt.b)(o);return Object(it.d)({x:t,y:e},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=Object(J.i)(t,V.a),n=e&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,
onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return f({},Object(J.e)(this.props,this.handleOuterEvent),n)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(t){var r=this,i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,s=t.updateId;if(!Object(J.q)({props:i}))return null
;var c=i.children,p=i.layout,d=i.stackOffset,g=i.data,v=i.reverseStackOrder,y=this.constructor.getAxisNameByLayout(p),m=y.numericAxisName,b=y.cateAxisName,w=Object(J.h)(c,n),_=Object(rt.s)(g,w,"".concat(m,"Id"),"".concat(b,"Id"),d,v),x=u.reduce(function(t,e){return f({},t,h({},"".concat(e.axisType,"Map"),r.getAxisMap(i,f({},e,{graphicalItems:w,stackGroups:e.axisType===m&&_,dataStartIndex:o,dataEndIndex:a}))))},{}),O=this.calculateOffset(f({},x,{props:i,graphicalItems:w}))
;Object.keys(x).forEach(function(t){x[t]=l(i,x[t],O,t.replace("Map",""),e)});var T=x["".concat(b,"Map")],S=this.tooltipTicksGenerator(T);return f({formatedGraphicalItems:this.getFormatItems(i,f({},x,{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:w,stackGroups:_,offset:O})),graphicalItems:w,offset:O,stackGroups:_},S,x)}},{key:"addListener",value:function(){at.b.on(at.a,this.handleReceiveSyncEvent),at.b.setMaxListeners&&at.b._maxListeners&&at.b.setMaxListeners(at.b._maxListeners+1)}},{
key:"removeListener",value:function(){at.b.removeListener(at.a,this.handleReceiveSyncEvent),at.b.setMaxListeners&&at.b._maxListeners&&at.b.setMaxListeners(at.b._maxListeners-1)}},{key:"calculateOffset",value:function(t){var e=t.props,n=t.graphicalItems,r=t.xAxisMap,i=void 0===r?{}:r,o=t.yAxisMap,a=void 0===o?{}:o,s=e.width,u=e.height,c=e.children,l=e.margin||{},p=Object(J.i)(c,tt.a),d=Object(J.i)(c,Y.a),g=Object.keys(a).reduce(function(t,e){var n=a[e],r=n.orientation
;return n.mirror||n.hide?t:f({},t,h({},r,t[r]+n.width))},{left:l.left||0,right:l.right||0}),v=Object.keys(i).reduce(function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:f({},t,h({},r,t[r]+n.height))},{top:l.top||0,bottom:l.bottom||0}),y=f({},v,g),m=y.bottom;if(p&&(y.bottom+=p.props.height||tt.a.defaultProps.height),d&&this.legendInstance){var b=this.legendInstance.getBBox();y=Object(rt.a)(y,n,e,b)}return f({brushBottom:m},y,{width:s-y.left-y.right,height:u-y.top-y.bottom})}},{
key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;R()(e)||at.b.emit(at.a,e,this.uniqueChartId,t)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===t||a.props.key===t.key||e===Object(J.j)(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,o=i.width,s=i.height;return U.a.createElement(Z.a,a({},t,{
className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var t=this,e=this.state.formatedGraphicalItems,n=this.props,r=n.children,o=n.width,a=n.height,s=this.props.margin||{},u=o-(s.left||0)-(s.right||0),l=a-(s.top||0)-(s.bottom||0),h=Object(rt.q)({children:r,formatedGraphicalItems:e,legendWidth:u,legendHeight:l,legendContent:c})
;if(!h)return null;var p=h.item,d=i(h,["item"]);return Object(L.cloneElement)(p,f({},d,{chartWidth:o,chartHeight:a,margin:s,ref:function(e){t.legendInstance=e},onBBoxUpdate:this.handleLegendBBoxUpdate}))}},{key:"renderTooltip",value:function(){var t=this.props.children,e=Object(J.i)(t,V.a);if(!e)return null;var n=this.state,r=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,a=n.activeLabel,s=n.offset;return Object(L.cloneElement)(e,{viewBox:f({},s,{x:s.left,y:s.top}),active:r,label:a,
payload:r?o:[],coordinate:i})}},{key:"renderActivePoints",value:function(t){var e=t.item,n=t.activePoint,r=t.basePoint,i=t.childIndex,o=t.isRange,a=[],s=e.props.key,u=e.item.props,c=u.activeDot,l=u.dataKey,h=f({index:i,dataKey:l,cx:n.x,cy:n.y,r:4,fill:Object(rt.r)(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},Object(J.k)(c),Object(J.e)(c));return a.push(this.constructor.renderActiveDot(c,h,i)),
r?a.push(this.constructor.renderActiveDot(c,f({},h,{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}),i)):o&&a.push(null),a}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,o=e.width;return U.a.createElement("clipPath",{id:t},U.a.createElement("rect",{x:n,y:r,height:i,width:o}))}},{key:"render",value:function(){var t=this;if(!Object(J.q)(this))return null
;var e=this.props,n=e.children,r=e.className,o=e.width,s=e.height,u=e.style,c=e.compact,l=i(e,["children","className","width","height","style","compact"]),h=Object(J.k)(l),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{
handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis
}};if(c)return U.a.createElement(H.a,a({},h,{width:o,height:s}),this.renderClipPath(),Object(J.p)(n,p));var d=this.parseEventsOfWrapper();return U.a.createElement("div",a({className:q()("recharts-wrapper",r),style:f({position:"relative",cursor:"default",width:o,height:s},u)},d,{ref:function(e){t.container=e}}),U.a.createElement(H.a,a({},h,{width:o,height:s}),this.renderClipPath(),Object(J.p)(n,p)),this.renderLegend(),this.renderTooltip())}}],[{key:"getAxisNameByLayout",value:function(t){
return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(t,e){var n;return n=Object(L.isValidElement)(t)?Object(L.cloneElement)(t,e):A()(t)?t(e):U.a.createElement($.a,e),U.a.createElement(W.a,{className:"recharts-active-dot",key:e.key},n)}}]),r}(L.Component)
;return _.displayName=e,_.propTypes=f({syncId:B.a.oneOfType([B.a.string,B.a.number]),compact:B.a.bool,width:B.a.number,height:B.a.number,data:B.a.arrayOf(B.a.object),layout:B.a.oneOf(["horizontal","vertical"]),stackOffset:B.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:B.a.number,margin:B.a.shape({top:B.a.number,right:B.a.number,bottom:B.a.number,left:B.a.number}),barCategoryGap:B.a.oneOfType([B.a.number,B.a.string]),barGap:B.a.oneOfType([B.a.number,B.a.string]),
barSize:B.a.oneOfType([B.a.number,B.a.string]),maxBarSize:B.a.number,style:B.a.object,className:B.a.string,children:B.a.oneOfType([B.a.arrayOf(B.a.node),B.a.node]),defaultShowTooltip:B.a.bool,onClick:B.a.func,onMouseLeave:B.a.func,onMouseEnter:B.a.func,onMouseMove:B.a.func,onMouseDown:B.a.func,onMouseUp:B.a.func,reverseStackOrder:B.a.bool,id:B.a.string},b),_.defaultProps=f({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},
reverseStackOrder:!1},d),_.createDefaultState=function(t){var e=t.children,n=t.defaultShowTooltip,r=Object(J.i)(e,tt.a);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!R()(n)&&n}},_.hasBar=function(t){return!(!t||!t.length)&&t.some(function(t){var e=Object(J.j)(t&&t.type);return e&&e.indexOf("Bar")>=0})},_.getDisplayedData=function(t,e,n){
var r=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,a=(r||[]).reduce(function(t,e){var n=e.props.data;return n&&n.length?s(t).concat(s(n)):t},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var u=t.data;return u&&u.length&&Object(nt.h)(i)&&Object(nt.h)(o)?u.slice(i,o+1):[]},_};e.a=ct},,,,,,,,,,,,,,,function(t,e,n){var r=n(298);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){
t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,,,,,,,,,,,,,,,function(t,e,n){function r(t){return null==t?void 0===t?u:s:c&&c in Object(t)?o(t):a(t)}var i=n(442),o=n(2437),a=n(2438),s="[object Null]",u="[object Undefined]",c=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){
throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},
s.apply(this,arguments)}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=t.viewBox,n=t.position,r=t.value,i=t.children,o=t.content,a=t.className,u=void 0===a?"":a;if(!e||g()(r)&&g()(i)&&!Object(v.isValidElement)(o)&&!p()(o))return null;if(Object(v.isValidElement)(o))return Object(v.cloneElement)(o,t);var c;if(p()(o)){if(c=o(t),Object(v.isValidElement)(c))return c}else c=A(t);var l=N(e),f=Object(O.k)(t)
;if(l&&("insideStart"===n||"insideEnd"===n||"end"===n))return M(t,c,f);var h=l?D(t):I(t);return y.a.createElement(x.a,s({className:_()("recharts-label",u)},f,h),c)}var l=n(200),f=n.n(l),h=n(82),p=n.n(h),d=n(199),g=n.n(d),v=n(0),y=n.n(v),m=n(49),b=n.n(m),w=n(66),_=n.n(w),x=n(381),O=n(55),T=n(83),S=n(235),E=b.a.shape({x:b.a.number,y:b.a.number,width:b.a.number,height:b.a.number}),j=b.a.shape({cx:b.a.number,cy:b.a.number,innerRadius:b.a.number,outerRadius:b.a.number,startAngle:b.a.number,
endAngle:b.a.number}),k=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){u(t,e,n[e])})}return t}({},O.c,{viewBox:b.a.oneOfType([E,j]),formatter:b.a.func,value:b.a.oneOfType([b.a.number,b.a.string]),offset:b.a.number,
position:b.a.oneOf(["top","left","right","bottom","inside","outside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","insideStart","insideEnd","end","center","centerTop","centerBottom"]),children:b.a.oneOfType([b.a.arrayOf(b.a.node),b.a.node]),className:b.a.string,content:b.a.oneOfType([b.a.element,b.a.func])}),C={offset:5},A=function(t){var e=t.value,n=t.formatter,r=g()(t.children)?e:t.children;return p()(n)?n(r):r
},P=function(t,e){return Object(T.j)(e-t)*Math.min(Math.abs(e-t),360)},M=function(t,e,n){var r,i,o=t.position,a=t.viewBox,u=t.offset,c=t.className,l=a.cx,f=a.cy,h=a.innerRadius,p=a.outerRadius,d=a.startAngle,v=a.endAngle,m=a.clockWise,b=(h+p)/2,w=P(d,v),x=w>=0?1:-1;"insideStart"===o?(r=d+x*u,i=m):"insideEnd"===o?(r=v-x*u,i=!m):"end"===o&&(r=v+x*u,i=m),i=w<=0?i:!i
;var O=Object(S.e)(l,f,b,r),E=Object(S.e)(l,f,b,r+359*(i?1:-1)),j="M".concat(O.x,",").concat(O.y,"\n    A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n    ").concat(E.x,",").concat(E.y),k=g()(t.id)?Object(T.k)("recharts-radial-line-"):t.id;return y.a.createElement("text",s({},n,{dominantBaseline:"central",className:_()("recharts-radial-bar-label",c)}),y.a.createElement("defs",null,y.a.createElement("path",{id:k,d:j})),y.a.createElement("textPath",{xlinkHref:"#".concat(k)},e))
},D=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,s=e.outerRadius,u=e.startAngle,c=e.endAngle,l=(u+c)/2;if("outside"===r){var f=Object(S.e)(i,o,s+n,l),h=f.x;return{x:h,y:f.y,textAnchor:h>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"}
;var p=(a+s)/2,d=Object(S.e)(i,o,p,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},I=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.x,o=e.y,a=e.width,s=e.height,u=s>=0?1:-1;return"top"===r?{x:i+a/2,y:o-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+s+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+s/2,textAnchor:"start",
verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+s-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+u*n,textAnchor:"end",verticalAnchor:"start"
}:"insideBottomLeft"===r?{x:i+n,y:o+s-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+s-u*n,textAnchor:"end",verticalAnchor:"end"}:f()(r)&&(Object(T.h)(r.x)||Object(T.i)(r.x))&&(Object(T.h)(r.y)||Object(T.i)(r.y))?{x:i+Object(T.d)(r.x,a),y:o+Object(T.d)(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}},N=function(t){return Object(T.h)(t.cx)};c.displayName="Label",c.defaultProps=C,c.propTypes=k
;var R=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,f=t.y,h=t.top,p=t.left,d=t.width,g=t.height,v=t.clockWise;if(Object(T.h)(d)&&Object(T.h)(g)){if(Object(T.h)(l)&&Object(T.h)(f))return{x:l,y:f,width:d,height:g};if(Object(T.h)(h)&&Object(T.h)(p))return{x:h,y:p,width:d,height:g}}return Object(T.h)(l)&&Object(T.h)(f)?{x:l,y:f,width:0,height:0}:Object(T.h)(e)&&Object(T.h)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,
innerRadius:u||0,outerRadius:c||s||a||0,clockWise:v}:t.viewBox?t.viewBox:{}},L=function(t,e){return t?!0===t?y.a.createElement(c,{key:"label-implicit",viewBox:e}):Object(T.g)(t)?y.a.createElement(c,{key:"label-implicit",viewBox:e,value:t}):Object(v.isValidElement)(t)||p()(t)?y.a.createElement(c,{key:"label-implicit",content:t,viewBox:e}):f()(t)?y.a.createElement(c,s({viewBox:e},t,{key:"label-implicit"})):null:null},U=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=R(t),a=Object(O.h)(i,c).map(function(t,n){return Object(v.cloneElement)(t,{viewBox:e||o,key:"label-".concat(n)})});return n?[L(t.label,e||o)].concat(r(a)):a};c.parseViewBox=R,c.renderCallByParent=U,e.a=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,
"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){s(t,e,n[e])})}return t}function s(t,e,n){
return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"b",function(){return p}),n.d(e,"d",function(){return d}),n.d(e,"c",function(){return g}),n.d(e,"a",function(){return y});var u=n(1362),c=n.n(u),l=n(2753),f=n.n(l),h=n(135),p=function(t,e,n,r,i){var o=t.width,u=t.height,c=t.layout,l=Object.keys(e),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom}
;return l.reduce(function(t,o){var u,l,p,d,g=e[o],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,_=g.reversed,x="".concat(v).concat(w?"Mirror":"");u="xAxis"===r?[n.left+(b.left||0),n.left+n.width-(b.right||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0),n.top+n.height-(b.bottom||0)]:g.range,_&&(u=[u[1],u[0]]);var O=Object(h.B)(g,i),T=O.scale,S=O.realScaleType;T.domain(y).range(u),Object(h.c)(T);var E=Object(h.v)(T,a({},g,{
realScaleType:S}));"xAxis"===r?(d="top"===v&&!w||"bottom"===v&&w,l=n.left,p=f[x]-d*g.height):"yAxis"===r&&(d="left"===v&&!w||"right"===v&&w,l=f[x]-d*g.width,p=n.top);var j=a({},g,E,{realScaleType:S,x:l,y:p,scale:T,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return j.bandSize=Object(h.g)(j,E),g.hide||"xAxis"!==r?g.hide||(f[x]+=(d?-1:1)*j.width):f[x]+=(d?-1:1)*j.height,a({},t,s({},o,j))},{})},d=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),
y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},g=function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return d({x:e,y:n},{x:r,y:i})},v=function(){function t(e){r(this,t),this.scale=e}return o(t,null,[{key:"create",value:function(e){return new t(e)}}]),o(t,[{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware;if(void 0!==t){if(n){var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+r}return this.scale(t)}}},{key:"isInRange",
value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),t}();v.EPS=1e-4;var y=function(){function t(e){r(this,t),this.scales=f()(e,v.create),Object.assign(this,this.scales)}
return o(t,null,[{key:"create",value:function(t){return new this(t)}}]),o(t,[{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=this.scales;return f()(t,function(t,e){return r[e].apply(t,{bandAware:n})})}},{key:"isInRange",value:function(t){var e=this.scales;return c()(t,function(t,n){return e[n].isInRange(t)})}}]),t}()},,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,s=null==a?0:Object(i.a)(a),u=null==n.weekStartsOn?s:Object(i.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(o.a)(t,n),l=c.getDay(),f=(l<u?7:0)+l-u;return c.setDate(c.getDate()-f),c.setHours(0,0,0,0),c}e.a=r;var i=n(44),o=n(23)},,,,,,,,,,,,,function(t,e){
var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(594)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(344),i=n(768);t.exports=n(342)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(297),i=n(1815),o=n(1089),a=Object.defineProperty;e.f=n(342)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}
if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getDate()}e.a=r;var i=n(23)},,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present")
;var r=Object(i.a)(e),a=7*r;return Object(o.a)(t,a,n)}e.a=r;var i=n(44),o=n(234)},,function(t,e,n){function r(t,e){var n=o(t,e);return i(n)?n:void 0}var i=n(2445),o=n(2448);t.exports=r},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){function r(t,e){var n=o(t,e);return i(n)?n:void 0}var i=n(2502),o=n(2507);t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?u:s:c&&c in Object(t)?o(t):a(t)}
var i=n(656),o=n(2503),a=n(2504),s="[object Null]",u="[object Undefined]",c=i?i.toStringTag:void 0;t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t,e,n){
return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){if(null==t)return{};var n,r,i=s(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function s(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function u(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var v=n(199),y=n.n(v),m=n(0),b=n.n(m),w=n(49),_=n.n(w),x=n(2617),O=n.n(x),T=n(66),S=n.n(T),E=n(83),j=n(55),k=n(661),C=/[ \f\n\r\t\v\u2028\u2029]+/,A=function(t){try{return{wordsWithComputedWidth:(y()(t.children)?[]:t.children.toString().split(C)).map(function(e){return{word:e,width:Object(k.c)(e,t.style).width}}),spaceWidth:Object(k.c)("\xa0",t.style).width}}catch(t){return null}},P=function(t){function e(){var t,n;u(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o]
;return n=f(this,(t=p(e)).call.apply(t,[this].concat(i))),n.state={wordsByLines:[]},n}return d(e,t),l(e,[{key:"componentWillMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.children!==t.children||this.props.style!==t.style;this.updateWordsByLines(t,e)}},{key:"updateWordsByLines",value:function(t,e){if(!t.width&&!t.scaleToFit||Object(j.n)())this.updateWordsWithoutCalculate(t);else{if(e){var n=A(t)
;if(!n)return void this.updateWordsWithoutCalculate(t);var r=n.wordsWithComputedWidth,i=n.spaceWidth;this.wordsWithComputedWidth=r,this.spaceWidth=i}var o=this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,t.width);this.setState({wordsByLines:o})}}},{key:"updateWordsWithoutCalculate",value:function(t){var e=y()(t.children)?[]:t.children.toString().split(C);this.setState({wordsByLines:[{words:e}]})}},{key:"calculateWordsByLines",value:function(t,e,n){
var r=this.props.scaleToFit;return t.reduce(function(t,i){var o=i.word,a=i.width,s=t[t.length-1];if(s&&(null==n||r||s.width+a+e<n))s.words.push(o),s.width+=a+e;else{var u={words:[o],width:a};t.push(u)}return t},[])}},{key:"render",value:function(){
var t=this.props,e=t.dx,n=t.dy,r=t.textAnchor,i=t.verticalAnchor,s=t.scaleToFit,u=t.angle,c=t.lineHeight,l=t.capHeight,f=t.className,h=a(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),p=this.state.wordsByLines;if(!Object(E.g)(h.x)||!Object(E.g)(h.y))return null;var d,g=h.x+(Object(E.h)(e)?e:0),v=h.y+(Object(E.h)(n)?n:0);switch(i){case"start":d=O()("calc(".concat(l,")"));break;case"middle":
d=O()("calc(".concat((p.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:d=O()("calc(".concat(p.length-1," * -").concat(c,")"))}var y=[];if(s){var m=p[0].width;y.push("scale(".concat(this.props.width/m,")"))}return u&&y.push("rotate(".concat(u,", ").concat(g,", ").concat(v,")")),y.length&&(h.transform=y.join(" ")),b.a.createElement("text",o({},Object(j.k)(h),{x:g,y:v,className:S()("recharts-text",f),textAnchor:r}),p.map(function(t,e){return b.a.createElement("tspan",{x:g,
dy:0===e?d:c,key:e},t.words.join(" "))}))}}]),e}(m.Component);P.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},j.c,{scaleToFit:_.a.bool,angle:_.a.number,textAnchor:_.a.oneOf(["start","middle","end","inherit"]),
verticalAnchor:_.a.oneOf(["start","middle","end"]),style:_.a.object}),P.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"},e.a=P},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=Array.prototype,i=r.map,o=r.slice},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,
r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var p,d,g,v=n(0),y=n.n(v),m=n(49),b=n.n(m),w=n(66),_=n.n(w),x=n(60),O=n(55),T=Object(x.a)((g=d=function(t){function e(){return o(this,e),u(this,l(e).apply(this,arguments))}return f(e,t),s(e,[{
key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.r,o=t.className,a=_()("recharts-dot",o);return e===+e&&n===+n&&r===+r?y.a.createElement("circle",i({},Object(O.k)(this.props),Object(O.e)(this.props,null,!0),{className:a,cx:e,cy:n,r:r})):null}}]),e}(v.Component),d.displayName="Dot",d.propTypes={className:b.a.string,cx:b.a.number,cy:b.a.number,r:b.a.number},p=g))||p;e.a=T},,,,,,,,,,,,,,,,,,,,,,function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict"
;function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return new a.default(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getEmptyImage=e.NativeTypes=void 0,e.default=i;var o=n(3891),a=r(o),s=n(3912),u=r(s),c=n(1026),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c);e.NativeTypes=l,e.getEmptyImage=u.default},,,,,,,function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}e.a=r;var i=n(23)},,function(t,e,n){var r=n(195),i=n(228),o=n(343),a=n(416),s=n(417),u=function(t,e,n){var c,l,f,h,p=t&u.F,d=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,m=d?r:g?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?i:i[e]||(i[e]={}),w=b.prototype||(b.prototype={});d&&(n=e);for(c in n)l=!p&&m&&void 0!==m[c],
f=(l?m:n)[c],h=y&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,m&&a(m,c,f,t&u.U),b[c]!=f&&o(b,c,h),v&&w[c]!=f&&(w[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(195),i=n(343),o=n(341),a=n(595)("src"),s=Function.toString,u=(""+s).split("toString");n(228).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),
t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(1090);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){
return t.apply(e,arguments)}}},function(t,e,n){var r=n(1818),i=n(771);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(o.a)(e);return n.weekStartsOn=1,Object(i.a)(t,n)}e.a=r;var i=n(328),o=n(500)},,,,,function(t,e,n){(function(r){var i,o;!function(a){var s="object"==typeof self&&self.self==self&&self||"object"==typeof r&&r.global==r&&r
;i=[n(10),n(13),e],void 0!==(o=function(t,e,n){s.Backbone=a(s,n,t,e)}.apply(e,i))&&(t.exports=o)}(function(t,e,n,r){var i=t.Backbone,o=Array.prototype.slice;e.VERSION="1.2.3",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=function(t,e,r){switch(t){case 1:return function(){return n[e](this[r])};case 2:return function(t){return n[e](this[r],t)};case 3:return function(t,i){return n[e](this[r],u(t,this),i)};case 4:return function(t,i,o){
return n[e](this[r],u(t,this),i,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[r]),n[e].apply(n,t)}}},s=function(t,e,r){n.each(e,function(e,i){n[i]&&(t.prototype[i]=a(e,i,r))})},u=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?c(t):n.isString(t)?function(e){return e.get(t)}:t},c=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}},l=e.Events={},f=/\s+/,h=function(t,e,r,i,o){var a,s=0;if(r&&"object"==typeof r){
void 0!==i&&"context"in o&&void 0===o.context&&(o.context=i);for(a=n.keys(r);s<a.length;s++)e=h(t,e,a[s],r[a[s]],o)}else if(r&&f.test(r))for(a=r.split(f);s<a.length;s++)e=t(e,a[s],i,o);else e=t(e,r,i,o);return e};l.on=function(t,e,n){return p(this,t,e,n)};var p=function(t,e,n,r,i){if(t._events=h(d,t._events||{},e,n,{context:r,ctx:t,listening:i}),i){(t._listeners||(t._listeners={}))[i.id]=i}return t};l.listenTo=function(t,e,r){if(!t)return this
;var i=t._listenId||(t._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),a=o[i];if(!a){var s=this._listenId||(this._listenId=n.uniqueId("l"));a=o[i]={obj:t,objId:i,id:s,listeningTo:o,count:0}}return p(t,e,r,this,a),this};var d=function(t,e,n,r){if(n){var i=t[e]||(t[e]=[]),o=r.context,a=r.ctx,s=r.listening;s&&s.count++,i.push({callback:n,context:o,ctx:o||a,listening:s})}return t};l.off=function(t,e,n){return this._events?(this._events=h(g,this._events,t,e,{context:n,
listeners:this._listeners}),this):this},l.stopListening=function(t,e,r){var i=this._listeningTo;if(!i)return this;for(var o=t?[t._listenId]:n.keys(i),a=0;a<o.length;a++){var s=i[o[a]];if(!s)break;s.obj.off(e,r,this)}return n.isEmpty(i)&&(this._listeningTo=void 0),this};var g=function(t,e,r,i){if(t){var o,a=0,s=i.context,u=i.listeners;if(e||r||s){for(var c=e?[e]:n.keys(t);a<c.length;a++){e=c[a];var l=t[e];if(!l)break;for(var f=[],h=0;h<l.length;h++){var p=l[h]
;r&&r!==p.callback&&r!==p.callback._callback||s&&s!==p.context?f.push(p):(o=p.listening)&&0==--o.count&&(delete u[o.id],delete o.listeningTo[o.objId])}f.length?t[e]=f:delete t[e]}return n.size(t)?t:void 0}for(var d=n.keys(u);a<d.length;a++)o=u[d[a]],delete u[o.id],delete o.listeningTo[o.objId]}};l.once=function(t,e,r){var i=h(v,{},t,e,n.bind(this.off,this));return this.on(i,void 0,r)},l.listenToOnce=function(t,e,r){var i=h(v,{},e,r,n.bind(this.stopListening,this,t));return this.listenTo(t,i)}
;var v=function(t,e,r,i){if(r){var o=t[e]=n.once(function(){i(e,o),r.apply(this,arguments)});o._callback=r}return t};l.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return h(y,this._events,t,void 0,n),this};var y=function(t,e,n,r){if(t){var i=t[e],o=t.all;i&&o&&(o=o.slice()),i&&m(i,r),o&&m(o,[e].concat(r))}return t},m=function(t,e){var n,r=-1,i=t.length,o=e[0],a=e[1],s=e[2];switch(e.length){case 0:
for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,a);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,a,s);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e);return}};l.bind=l.on,l.unbind=l.off,n.extend(e,l);var b=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),
e.parse&&(r=this.parse(r,e)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(b.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},
matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var i;if("object"==typeof t?(i=t,r=e):(i={})[t]=e,r||(r={}),!this._validate(i,r))return!1;var o=r.unset,a=r.silent,s=[],u=this._changing;this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,l=this.changed,f=this._previousAttributes;for(var h in i)e=i[h],n.isEqual(c[h],e)||s.push(h),n.isEqual(f[h],e)?delete l[h]:l[h]=e,
o?delete c[h]:c[h]=e;if(this.id=this.get(this.idAttribute),!a){s.length&&(this._pending=r);for(var p=0;p<s.length;p++)this.trigger("change:"+s[p],this,c[s[p]],r)}if(u)return this;if(!a)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0
}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,r={};for(var i in t){var o=t[i];n.isEqual(e[i],o)||(r[i]=o)}return!!n.size(r)&&r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},
fetch:function(t){t=n.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(n){var i=t.parse?e.parse(n,t):n;if(!e.set(i,t))return!1;r&&r.call(t.context,e,n,t),e.trigger("sync",e,n,t)},F(this,t),this.sync("read",this,t)},save:function(t,e,r){var i;null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e,r=n.extend({validate:!0,parse:!0},r);var o=r.wait;if(i&&!o){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var a=this,s=r.success,u=this.attributes
;r.success=function(t){a.attributes=u;var e=r.parse?a.parse(t,r):t;if(o&&(e=n.extend({},i,e)),e&&!a.set(e,r))return!1;s&&s.call(r.context,a,t,r),a.trigger("sync",a,t,r)},F(this,r),i&&o&&(this.attributes=n.extend({},u,i));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=i);var l=this.sync(c,this,r);return this.attributes=u,l},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)
};t.success=function(n){i&&o(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var a=!1;return this.isNew()?n.defer(t.success):(F(this,t),a=this.sync("delete",this,t)),i||o(),a},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||U();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},
isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}}),s(b,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var w=e.Collection=function(t,e){e||(e={}),
e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},_={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},O=function(t,e,n){n=Math.min(Math.max(n,0),t.length);for(var r=Array(t.length-n),i=e.length,o=0;o<r.length;o++)r[o]=t[o+n];for(o=0;o<i;o++)t[o+n]=e[o];for(o=0;o<r.length;o++)t[o+i+n]=r[o]};n.extend(w.prototype,l,{model:b,initialize:function(){},toJSON:function(t){
return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,x))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:n.clone(t);var i=this._removeModels(t,e);return!e.silent&&i&&this.trigger("update",this,e),r?i[0]:i},set:function(t,e){if(null!=t){e=n.defaults({},e,_),e.parse&&!this._isModel(t)&&(t=this.parse(t,e));var r=!n.isArray(t);t=r?t?[t]:[]:t.slice();var i=e.at
;null!=i&&(i=+i),i<0&&(i+=this.length+1);for(var o,a=[],s=[],u=[],c={},l=e.add,f=e.merge,h=e.remove,p=!1,d=this.comparator&&null==i&&!1!==e.sort,g=n.isString(this.comparator)?this.comparator:null,v=0;v<t.length;v++){o=t[v];var y=this.get(o);if(y){if(f&&o!==y){var m=this._isModel(o)?o.attributes:o;e.parse&&(m=y.parse(m,e)),y.set(m,e),d&&!p&&(p=y.hasChanged(g))}c[y.cid]||(c[y.cid]=!0,a.push(y)),t[v]=y}else l&&(o=t[v]=this._prepareModel(o,e))&&(s.push(o),this._addReference(o,e),c[o.cid]=!0,
a.push(o))}if(h){for(v=0;v<this.length;v++)o=this.models[v],c[o.cid]||u.push(o);u.length&&this._removeModels(u,e)}var b=!1,w=!d&&l&&h;if(a.length&&w?(b=this.length!=a.length||n.some(this.models,function(t,e){return t!==a[e]}),this.models.length=0,O(this.models,a,0),this.length=this.models.length):s.length&&(d&&(p=!0),O(this.models,s,null==i?this.length:i),this.length=this.models.length),p&&this.sort({silent:!0}),!e.silent){for(v=0;v<s.length;v++)null!=i&&(e.index=i+v),o=s[v],
o.trigger("add",o,this,e);(p||b)&&this.trigger("sort",this,e),(s.length||u.length)&&this.trigger("update",this,e)}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1)
;return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t){var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]}},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)
},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=n.bind(e,this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=n.extend({parse:!0},t);var e=t.success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),
e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},F(this,t),this.sync("read",this,t)},create:function(t,e){e=e?n.clone(e):{};var r=e.wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var i=this,o=e.success;return e.success=function(t,e,n){r&&i.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){
return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=this.get(t[r]);if(i){var o=this.indexOf(i);this.models.splice(o,1),this.length--,
e.silent||(e.index=o,i.trigger("remove",i,this,e)),n.push(i),this._removeReference(i,e)}}return!!n.length&&n},_isModel:function(t){return t instanceof b},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},
_onModelEvent:function(t,e,n,r){if("add"!==t&&"remove"!==t||n===this){if("destroy"===t&&this.remove(e,r),"change"===t){var i=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);i!==o&&(null!=i&&delete this._byId[i],null!=o&&(this._byId[o]=e))}this.trigger.apply(this,arguments)}}}),s(w,{forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,
min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3},"models");var T=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,E)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,E=["model","collection","el","id","attributes","className","tagName","events"];n.extend(T.prototype,l,{
tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this
;this.undelegateEvents();for(var e in t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var i=e.match(S);this.delegate(i[1],i[2],n.bind(r,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},
_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,r,i){var o=j[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:o,dataType:"json"}
;if(i.url||(a.url=n.result(r,"url")||U()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){a.type="POST",i.emulateJSON&&(a.data._method=o);var s=i.beforeSend;i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),
s)return s.apply(this,arguments)}}"GET"===a.type||i.emulateJSON||(a.processData=!1);var u=i.error;i.error=function(t,e,n){i.textStatus=e,i.errorThrown=n,u&&u.call(i.context,t,e,n)};var c=i.xhr=e.ajax(n.extend(a,i));return r.trigger("request",r,c,i),c};var j={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var k=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),
this.initialize.apply(this,arguments)},C=/\((.*?)\)/g,A=/(\(\?)?:\w+/g,P=/\*\w+/g,M=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(k.prototype,l,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return e.history.route(t,function(n){var a=o._extractParameters(t,n);!1!==o.execute(i,a,r)&&(o.trigger.apply(o,["route:"+r].concat(a)),o.trigger("route",r,a),e.history.trigger("route",o,r,a))}),this},
execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(M,"\\$&").replace(C,"(?:$1)?").replace(A,function(t,e){return e?t:"([^/?]+)"}).replace(P,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){
var r=t.exec(e).slice(1);return n.map(r,function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null})}});var D=e.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},I=/^[#\/]|\s+$/g,N=/^\/+|\/+$/g,R=/#.*$/;D.started=!1,n.extend(D.prototype,l,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},
matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1)
;return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(I,"")},start:function(t){if(D.started)throw new Error("Backbone.history has already been started");if(D.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,
this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(N,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){
var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),
i.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)}
;this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),D.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1
;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!D.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;t=t.replace(R,"");var i=this.decodeFragment(t);if(this.fragment!==i){if(this.fragment=i,
this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var o=this.iframe.contentWindow;e.replace||(o.document.open(),o.document.close()),this._updateHash(o.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){
var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new D;var L=function(t,e){var r,i=this;r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,t&&n.extend(r.prototype,t),r.__super__=i.prototype,r};b.extend=w.extend=k.extend=T.extend=D.extend=L;var U=function(){
throw new Error('A "url" property or function must be specified')},F=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e})}).call(e,n(158))},,,,,,,,function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),
"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=r(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)o.call(n,l)&&(u[l]=n[l]);if(i){s=i(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},,,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e)
;return n.setHours(0,0,0,0),n}e.a=r;var i=n(23)},function(t,e,n){var r=n(213),i=r.Symbol;t.exports=i},function(t,e,n){function r(t){return"symbol"==typeof t||o(t)&&i(t)==a}var i=n(314),o=n(252),a="[object Symbol]";t.exports=r},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return null}var o=n(55);i.propTypes=function(t){for(var e=1;e<arguments.length;e++){
var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},o.c),i.displayName="Cell",e.a=i},function(t,e,n){function r(t){return a(t)?i(t):o(t)}var i=n(1313),o=n(2643),a=n(446);t.exports=r},function(t,e,n){function r(t){return null!=t&&o(t.length)&&!i(t)}var i=n(82),o=n(892)
;t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){"use strict";function r(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(o.h)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Object(u.a)(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,s=i.length-1,u=i[a],c=i[s];return c<u&&(r=u,u=c,c=r,r=a,a=s,s=r),r=Object(o.f)(u,c,n),
r>0?(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,r=Object(o.f)(u,c,n)):r<0&&(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,r=Object(o.f)(u,c,n)),r>0?(i[a]=Math.floor(u/r)*r,i[s]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[s]=Math.floor(c*r)/r,e(i)),t},t}function i(){var t=Object(s.b)(s.c,a.b);return t.copy=function(){return Object(s.a)(t,i())},r(t)}e.b=r,e.a=i;var o=n(279),a=n(899),s=n(667),u=n(2717)},function(t,e,n){"use strict";var r=n(901);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){
return r.g}),n.d(e,"d",function(){return r.f});var i=n(2702);n.d(e,"e",function(){return i.a}),n.d(e,"c",function(){return i.b});var o=n(2703);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function i(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(u.a)(isNaN(t)?e:t)}function a(t){
return 1==(t=+t)?s:function(e,n){return n-e?i(e,n,t):Object(u.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?r(t,n):Object(u.a)(isNaN(t)?e:t)}e.c=o,e.b=a,e.a=s;var u=n(1346)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{
value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),
Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(66),x=n.n(_),O=n(214),T=n(60),S=n(55),E=function(t,e,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=r>=0?1:0
;if(a>0&&i instanceof Array){for(var c=[],l=0;l<4;l++)c[l]=i[l]>a?a:i[l];o="M".concat(t,",").concat(e+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+c[0],",").concat(e)),o+="L ".concat(t+n-c[1],",").concat(e),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,",\n        ").concat(t+n,",").concat(e+s*c[1])),o+="L ".concat(t+n,",").concat(e+r-s*c[2]),
c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,",\n        ").concat(t+n-c[2],",").concat(e+r)),o+="L ".concat(t+c[3],",").concat(e+r),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,",\n        ").concat(t,",").concat(e+r-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var f=Math.min(a,i)
;o="M ".concat(t,",").concat(e+s*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(t+f,",").concat(e,"\n            L ").concat(t+n-f,",").concat(e,"\n            A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(t+n,",").concat(e+s*f,"\n            L ").concat(t+n,",").concat(e+r-s*f,"\n            A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(t+n-f,",").concat(e+r,"\n            L ").concat(t+f,",").concat(e+r,"\n            A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(t,",").concat(e+r-s*f," Z")
}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},j=Object(T.a)((v=g=function(t){function e(){var t,n;a(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=c(this,(t=f(e)).call.apply(t,[this].concat(i))),n.state={totalLength:-1},n}return h(e,t),u(e,[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var t=this.node.getTotalLength();t&&this.setState({totalLength:t})}catch(t){}
}},{key:"render",value:function(){var t=this,e=this.props,n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius,u=e.className,c=this.state.totalLength,l=this.props,f=l.animationEasing,h=l.animationDuration,p=l.animationBegin,d=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||0===i||0===a)return null;var v=x()("recharts-rectangle",u);return g?m.a.createElement(O.a,{canBegin:c>0,from:{width:i,height:a,x:n,y:r},to:{width:i,height:a,x:n,y:r},duration:h,animationEasing:f,
isActive:g},function(e){var n=e.width,r=e.height,i=e.x,a=e.y;return m.a.createElement(O.a,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:h,isActive:d,easing:f},m.a.createElement("path",o({},Object(S.k)(t.props),Object(S.e)(t.props),{className:v,d:E(i,a,n,r,s),ref:function(e){t.node=e}})))}):m.a.createElement("path",o({},Object(S.k)(this.props),Object(S.e)(this.props),{className:v,d:E(n,r,i,a,s)}))}}]),e}(y.Component),
g.displayName="Rectangle",g.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}({},S.c,S.a,{className:w.a.string,x:w.a.number,y:w.a.number,width:w.a.number,height:w.a.number,radius:w.a.oneOfType([w.a.number,w.a.array]),
isAnimationActive:w.a.bool,isUpdateAnimationActive:w.a.bool,animationBegin:w.a.number,animationDuration:w.a.number,animationEasing:w.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),g.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},d=v))||d;e.a=j},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){
return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g,v,y,m=n(104),b=n.n(m),w=n(82),_=n.n(w),x=n(0),O=n.n(x),T=n(49),S=n.n(T),E=n(869),j=n(66),k=n.n(j),C=n(60),A=n(55),P=n(83),M={curveBasisClosed:E.c,curveBasisOpen:E.d,
curveBasis:E.b,curveLinearClosed:E.f,curveLinear:E.e,curveMonotoneX:E.g,curveMonotoneY:E.h,curveNatural:E.i,curveStep:E.j,curveStepAfter:E.k,curveStepBefore:E.l},D=function(t){return t.x===+t.x&&t.y===+t.y},I=function(t){return t.x},N=function(t){return t.y},R=function(t,e){if(_()(t))return t;var n="curve".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return"curveMonotone"===n&&e?M["".concat(n).concat("vertical"===e?"Y":"X")]:M[n]||E.e},L=Object(C.a)((y=v=function(t){function e(){
return s(this,e),l(this,h(e).apply(this,arguments))}return p(e,t),c(e,[{key:"getPath",value:function(){var t,e=this.props,n=e.type,r=e.points,i=e.baseLine,a=e.layout,s=e.connectNulls,u=R(n,a),c=s?r.filter(function(t){return D(t)}):r;if(b()(i)){var l=s?i.filter(function(t){return D(t)}):i,f=c.map(function(t,e){return o({},t,{base:l[e]})});return t="vertical"===a?Object(E.a)().y(N).x1(I).x0(function(t){return t.base.x}):Object(E.a)().x(I).y1(N).y0(function(t){return t.base.y}),
t.defined(D).curve(u),t(f)}return t="vertical"===a&&Object(P.h)(i)?Object(E.a)().y(N).x1(I).x0(i):Object(P.h)(i)?Object(E.a)().x(I).y1(N).y0(i):Object(E.m)().x(I).y(N),t.defined(D).curve(u),t(c)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.points,r=t.path,o=t.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?this.getPath():r;return O.a.createElement("path",i({},Object(A.k)(this.props),Object(A.e)(this.props,null,!0),{className:k()("recharts-curve",e),d:a,ref:o}))}
}]),e}(x.Component),v.displayName="Curve",v.propTypes=o({},A.c,{className:S.a.string,type:S.a.oneOfType([S.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),S.a.func]),layout:S.a.oneOf(["horizontal","vertical"]),baseLine:S.a.oneOfType([S.a.number,S.a.array]),points:S.a.arrayOf(S.a.object),connectNulls:S.a.bool,path:S.a.string,pathRef:S.a.func}),v.defaultProps={type:"linear",points:[],connectNulls:!1},
g=y))||g;e.a=L},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),
Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h,p,d,g=n(0),v=(n.n(g),n(49)),y=n.n(v),m=n(60),b=n(55),w=Object(m.a)((d=p=function(t){function e(){return i(this,e),s(this,c(e).apply(this,arguments))}return l(e,t),a(e,[{key:"render",
value:function(){return null}}]),e}(g.Component),p.displayName="XAxis",p.propTypes={allowDecimals:y.a.bool,allowDuplicatedCategory:y.a.bool,hide:y.a.bool,name:y.a.oneOfType([y.a.string,y.a.number]),unit:y.a.oneOfType([y.a.string,y.a.number]),xAxisId:y.a.oneOfType([y.a.string,y.a.number]),domain:y.a.arrayOf(y.a.oneOfType([y.a.string,y.a.number,y.a.func,y.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:y.a.oneOfType([y.a.string,y.a.number,y.a.func]),width:y.a.number,height:y.a.number,
mirror:y.a.bool,orientation:y.a.oneOf(["top","bottom"]),type:y.a.oneOf(["number","category"]),ticks:y.a.array,tickCount:y.a.number,tickFormatter:y.a.func,padding:y.a.shape({left:y.a.number,right:y.a.number}),allowDataOverflow:y.a.bool,scale:y.a.oneOfType([y.a.oneOf(b.d),y.a.func]),tick:y.a.oneOfType([y.a.bool,y.a.func,y.a.object,y.a.element]),axisLine:y.a.oneOfType([y.a.bool,y.a.object]),tickLine:y.a.oneOfType([y.a.bool,y.a.object]),minTickGap:y.a.number,tickSize:y.a.number,
interval:y.a.oneOfType([y.a.number,y.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:y.a.bool},p.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0},h=d))||h;e.a=w},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){
return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h,p,d,g=n(0),v=(n.n(g),n(49)),y=n.n(v),m=n(60),b=Object(m.a)((d=p=function(t){function e(){return i(this,e),s(this,c(e).apply(this,arguments))}return l(e,t),a(e,[{key:"render",value:function(){return null}}]),e}(g.Component),p.displayName="YAxis",p.propTypes={allowDecimals:y.a.bool,
allowDuplicatedCategory:y.a.bool,hide:y.a.bool,name:y.a.oneOfType([y.a.string,y.a.number]),unit:y.a.oneOfType([y.a.string,y.a.number]),yAxisId:y.a.oneOfType([y.a.string,y.a.number]),domain:y.a.arrayOf(y.a.oneOfType([y.a.string,y.a.number,y.a.func,y.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:y.a.oneOfType([y.a.string,y.a.number,y.a.func]),ticks:y.a.array,tickCount:y.a.number,tickFormatter:y.a.func,width:y.a.number,height:y.a.number,mirror:y.a.bool,orientation:y.a.oneOf(["left","right"]),
type:y.a.oneOf(["number","category"]),padding:y.a.shape({top:y.a.number,bottom:y.a.number}),allowDataOverflow:y.a.bool,scale:y.a.oneOfType([y.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),y.a.func]),tick:y.a.oneOfType([y.a.bool,y.a.func,y.a.object,y.a.element]),axisLine:y.a.oneOfType([y.a.bool,y.a.object]),tickLine:y.a.oneOfType([y.a.bool,y.a.object]),minTickGap:y.a.number,tickSize:y.a.number,
interval:y.a.oneOfType([y.a.number,y.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:y.a.bool},p.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1},h=d))||h;e.a=b},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(o.a)(e,n),u=r.getTime()-Object(i.a)(r),c=s.getTime()-Object(i.a)(s);return Math.round((u-c)/a)}e.a=r;var i=n(269),o=n(441),a=864e5},,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear(),a=new Date(0);a.setFullYear(r+1,0,4),
a.setHours(0,0,0,0);var s=Object(o.a)(a,e),u=new Date(0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);var c=Object(o.a)(u,e);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}e.a=r;var i=n(23),o=n(419)},function(t,e,n){"use strict";function r(t){t=t||{};var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}e.a=r},,,,,,,,,,function(t,e,n){"use strict";var r=n(1995),i=n(1996),o=n(1998),a=n(1999),s=n(2001),u={formatDistance:r.a,formatLong:i.a,formatRelative:o.a,
localize:a.a,match:s.a,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.a=u},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n).getTime(),a=Object(i.a)(e);return new Date(r+a)}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;return Object(i.a)(t,e).getMonth()}e.a=r;var i=n(23)},,,,,,,,,,,,,function(t,e,n){var r=n(1214),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},,,,,,function(t,e,n){(function(n){var r,i;/*!
 * VERSION: 1.20.0
 * DATE: 2017-06-13
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
!function(n,o){"use strict";var a={},s=n.document,u=n.GreenSockGlobals=n.GreenSockGlobals||n;if(!u.TweenLite){var c,l,f,h,p,d=function(t){var e,n=t.split("."),r=u;for(e=0;e<n.length;e++)r[n[e]]=r=r[n[e]]||{};return r},g=d("com.greensock"),v=function(t){var e,n=[],r=t.length;for(e=0;e!==r;n.push(t[e++]));return n},y=function(){},m=function(){var t=Object.prototype.toString,e=t.call([]);return function(n){return null!=n&&(n instanceof Array||"object"==typeof n&&!!n.push&&t.call(n)===e)}
}(),b={},w=function(n,o,s,c){this.sc=b[n]?b[n].sc:[],b[n]=this,this.gsClass=null,this.func=s;var l=[];this.check=function(f){for(var h,p,g,v,y=o.length,m=y;--y>-1;)(h=b[o[y]]||new w(o[y],[])).gsClass?(l[y]=h.gsClass,m--):f&&h.sc.push(this);if(0===m&&s){if(p=("com.greensock."+n).split("."),g=p.pop(),v=d(p.join("."))[g]=this.gsClass=s.apply(s,l),c)if(u[g]=a[g]=v,void 0!==t&&t.exports)if("TweenLite"===n){t.exports=a.TweenLite=v;for(y in a)v[y]=a[y]}else a.TweenLite&&(a.TweenLite[g]=v);else r=[],
void 0!==(i=function(){return v}.apply(e,r))&&(t.exports=i);for(y=0;y<this.sc.length;y++)this.sc[y].check()}},this.check(!0)},_=n._gsDefine=function(t,e,n,r){return new w(t,e,n,r)},x=g._class=function(t,e,n){return e=e||function(){},_(t,[],function(){return e},n),e};_.globals=u;var O=[0,0,1,1],T=x("easing.Ease",function(t,e,n,r){this._func=t,this._type=n||0,this._power=r||0,this._params=e?O.concat(e):O},!0),S=T.map={},E=T.register=function(t,e,n,r){
for(var i,o,a,s,u=e.split(","),c=u.length,l=(n||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(o=u[c],i=r?x("easing."+o,null,!0):g.easing[o]||{},a=l.length;--a>-1;)s=l[a],S[o+"."+s]=S[s+o]=i[s]=t.getRatio?t:t[s]||new t};for(f=T.prototype,f._calcEnd=!1,f.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,n=this._power,r=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===n?r*=r:2===n?r*=r*r:3===n?r*=r*r*r:4===n&&(r*=r*r*r*r),
1===e?1-r:2===e?r:t<.5?r/2:1-r/2},c=["Linear","Quad","Cubic","Quart","Quint,Strong"],l=c.length;--l>-1;)f=c[l]+",Power"+l,E(new T(null,null,1,l),f,"easeOut",!0),E(new T(null,null,2,l),f,"easeIn"+(0===l?",easeNone":"")),E(new T(null,null,3,l),f,"easeInOut");S.linear=g.easing.Linear.easeIn,S.swing=g.easing.Quad.easeInOut;var j=x("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});f=j.prototype,f.addEventListener=function(t,e,n,r,i){i=i||0
;var o,a,s=this._listeners[t],u=0;for(this!==h||p||h.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;--a>-1;)o=s[a],o.c===e&&o.s===n?s.splice(a,1):0===u&&o.pr<i&&(u=a+1);s.splice(u,0,{c:e,s:n,up:r,pr:i})},f.removeEventListener=function(t,e){var n,r=this._listeners[t];if(r)for(n=r.length;--n>-1;)if(r[n].c===e)return void r.splice(n,1)},f.dispatchEvent=function(t){var e,n,r,i=this._listeners[t];if(i)for(e=i.length,e>1&&(i=i.slice(0)),
n=this._eventTarget;--e>-1;)(r=i[e])&&(r.up?r.c.call(r.s||n,{type:t,target:n}):r.c.call(r.s||n))};var k=n.requestAnimationFrame,C=n.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},P=A();for(c=["ms","moz","webkit","o"],l=c.length;--l>-1&&!k;)k=n[c[l]+"RequestAnimationFrame"],C=n[c[l]+"CancelAnimationFrame"]||n[c[l]+"CancelRequestAnimationFrame"];x("Ticker",function(t,e){var n,r,i,o,a,u=this,c=A(),l=!(!1===e||!k)&&"auto",f=500,d=33,g=function(t){var e,s,l=A()-P
;l>f&&(c+=l-d),P+=l,u.time=(P-c)/1e3,e=u.time-a,(!n||e>0||!0===t)&&(u.frame++,a+=e+(e>=o?.004:o-e),s=!0),!0!==t&&(i=r(g)),s&&u.dispatchEvent("tick")};j.call(u),u.time=u.frame=0,u.tick=function(){g(!0)},u.lagSmoothing=function(t,e){f=t||1e10,d=Math.min(e,f,0)},u.sleep=function(){null!=i&&(l&&C?C(i):clearTimeout(i),r=y,i=null,u===h&&(p=!1))},u.wake=function(t){null!==i?u.sleep():t?c+=-P+(P=A()):u.frame>10&&(P=A()-f+5),r=0===n?y:l&&k?k:function(t){return setTimeout(t,1e3*(a-u.time)+1|0)},
u===h&&(p=!0),g(2)},u.fps=function(t){if(!arguments.length)return n;n=t,o=1/(n||60),a=this.time+o,u.wake()},u.useRAF=function(t){if(!arguments.length)return l;u.sleep(),l=t,u.fps(n)},u.fps(t),setTimeout(function(){"auto"===l&&u.frame<5&&"hidden"!==s.visibilityState&&u.useRAF(!1)},1500)}),f=g.Ticker.prototype=new g.events.EventDispatcher,f.constructor=g.Ticker;var M=x("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,
this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,J){p||h.wake();var n=this.vars.useFrames?Q:J;n.add(this,n._time),this.vars.paused&&this.paused(!0)}});h=M.ticker=new g.Ticker,f=M.prototype,f._dirty=f._gc=f._initted=f._paused=!1,f._totalTime=f._time=0,f._rawPrevTime=-1,f._next=f._last=f._onUpdate=f._timeline=f.timeline=null,f._paused=!1;var D=function(){p&&A()-P>2e3&&"hidden"!==s.visibilityState&&h.wake();var t=setTimeout(D,2e3)
;t.unref&&t.unref()};D(),f.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},f.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},f.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},f.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},f.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},f.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),
this.reversed(!0).paused(!1)},f.render=function(t,e,n){},f.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},f.isActive=function(){var t,e=this._timeline,n=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<n+this.totalDuration()/this._timeScale-1e-7},f._enabled=function(t,e){return p||h.wake(),this._gc=!t,this._active=this.isActive(),
!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},f._kill=function(t,e){return this._enabled(!1,!1)},f.kill=function(t,e){return this._kill(t,e),this},f._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},f._swapSelfInParams=function(t){for(var e=t.length,n=t.concat();--e>-1;)"{self}"===t[e]&&(n[e]=this);return n},f._callback=function(t){
var e=this.vars,n=e[t],r=e[t+"Params"],i=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:n.call(i);break;case 1:n.call(i,r[0]);break;case 2:n.call(i,r[0],r[1]);break;default:n.apply(i,r)}},f.eventCallback=function(t,e,n,r){if("on"===(t||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[t];null==e?delete i[t]:(i[t]=e,i[t+"Params"]=m(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,i[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},
f.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},f.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},f.totalDuration=function(t){return this._dirty=!1,
arguments.length?this.duration(t):this._totalDuration},f.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},f.totalTime=function(t,e,n){if(p||h.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,i=this._timeline;if(t>r&&!n&&(t=r),
this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?r-t:t)/this._timeScale,i._dirty||this._uncache(!1),i._timeline)for(;i._timeline;)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(U.length&&tt(),this.render(t,e,!1),U.length&&tt())}return this},f.progress=f.totalProgress=function(t,e){var n=this.duration()
;return arguments.length?this.totalTime(n*t,e):n?this._time/n:this.ratio},f.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},f.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},f.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||1e-10,
this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,n=e||0===e?e:this._timeline.totalTime();this._startTime=n-(n-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},f.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},f.paused=function(t){
if(!arguments.length)return this._paused;var e,n,r=this._timeline;return t!=this._paused&&r&&(p||t||h.wake(),e=r.rawTime(),n=e-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==n&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this}
;var I=x("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});f=I.prototype=new M,f.constructor=I,f.kill()._gc=!1,f._first=f._last=f._recent=null,f._sortChildren=!1,f.add=f.insert=function(t,e,n,r){var i,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,
this._sortChildren)for(o=t._startTime;i&&i._startTime>o;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},f._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,
t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},f.render=function(t,e,n){var r,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;i;)r=i._next,(i._active||t>=i._startTime&&!i._paused&&!i._gc)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)),i=r},f.rawTime=function(){return p||h.wake(),this._totalTime};var N=x("TweenLite",function(t,e,r){
if(M.call(this,e,r),this.render=N.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:N.selector(t)||t;var i,o,a,s=t.jquery||t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType),u=this.vars.overwrite;if(this._overwrite=u=null==u?$[N.defaultOverwrite]:"number"==typeof u?u>>0:$[u],(s||t instanceof Array||t.push&&m(t))&&"number"!=typeof t[0])for(this._targets=a=v(t),this._propLookup=[],this._siblings=[],i=0;i<a.length;i++)o=a[i],
o?"string"!=typeof o?o.length&&o!==n&&o[0]&&(o[0]===n||o[0].nodeType&&o[0].style&&!o.nodeType)?(a.splice(i--,1),this._targets=a=a.concat(v(o))):(this._siblings[i]=et(o,this,!1),1===u&&this._siblings[i].length>1&&rt(o,this,null,1,this._siblings[i])):"string"==typeof(o=a[i--]=N.selector(o))&&a.splice(i+1,1):a.splice(i--,1);else this._propLookup={},this._siblings=et(t,this,!1),1===u&&this._siblings.length>1&&rt(t,this,null,1,this._siblings)
;(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))},!0),R=function(t){return t&&t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType)},L=function(t,e){var n,r={};for(n in t)K[n]||n in e&&"transform"!==n&&"x"!==n&&"y"!==n&&"width"!==n&&"height"!==n&&"className"!==n&&"border"!==n||!(!Y[n]||Y[n]&&Y[n]._autoCSS)||(r[n]=t[n],delete t[n]);t.css=r};f=N.prototype=new M,f.constructor=N,
f.kill()._gc=!1,f.ratio=0,f._firstPT=f._targets=f._overwrittenProps=f._startAt=null,f._notifyPluginsOfEnabled=f._lazy=!1,N.version="1.20.0",N.defaultEase=f._ease=new T(null,null,1,1),N.defaultOverwrite="auto",N.ticker=h,N.autoSleep=120,N.lagSmoothing=function(t,e){h.lagSmoothing(t,e)},N.selector=n.$||n.jQuery||function(t){var e=n.$||n.jQuery;return e?(N.selector=e,e(t)):void 0===s?t:s.querySelectorAll?s.querySelectorAll(t):s.getElementById("#"===t.charAt(0)?t.substr(1):t)}
;var U=[],F={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,q=function(t){for(var e,n=this._firstPT;n;)e=n.blob?1===t&&this.end?this.end:t?this.join(""):this.start:n.c*t+n.s,n.m?e=n.m(e,this._target||n.t):e<1e-6&&e>-1e-6&&!n.blob&&(e=0),n.f?n.fp?n.t[n.p](n.fp,e):n.t[n.p](e):n.t[n.p]=e,n=n._next},H=function(t,e,n,r){var i,o,a,s,u,c,l,f=[],h=0,p="",d=0;for(f.start=t,f.end=e,t=f[0]=t+"",e=f[1]=e+"",n&&(n(f),t=f[0],e=f[1]),f.length=0,i=t.match(B)||[],o=e.match(B)||[],
r&&(r._next=null,r.blob=1,f._firstPT=f._applyPT=r),u=o.length,s=0;s<u;s++)l=o[s],c=e.substr(h,e.indexOf(l,h)-h),p+=c||!s?c:",",h+=c.length,d?d=(d+1)%5:"rgba("===c.substr(-5)&&(d=1),l===i[s]||i.length<=s?p+=l:(p&&(f.push(p),p=""),a=parseFloat(i[s]),f.push(a),f._firstPT={_next:f._firstPT,t:f,p:f.length-1,s:a,c:("="===l.charAt(1)?parseInt(l.charAt(0)+"1",10)*parseFloat(l.substr(2)):parseFloat(l)-a)||0,f:0,m:d&&d<4?Math.round:0}),h+=l.length;return p+=e.substr(h),p&&f.push(p),f.setRatio=q,
z.test(e)&&(f.end=0),f},W=function(t,e,n,r,i,o,a,s,u){"function"==typeof r&&(r=r(u||0,t));var c,l=typeof t[e],f="function"!==l?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),h="get"!==n?n:f?a?t[f](a):t[f]():t[e],p="string"==typeof r&&"="===r.charAt(1),d={t:t,p:e,s:h,f:"function"===l,pg:0,n:i||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:p?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-h||0}
;if(("number"!=typeof h||"number"!=typeof r&&!p)&&(a||isNaN(h)||!p&&isNaN(r)||"boolean"==typeof h||"boolean"==typeof r?(d.fp=a,c=H(h,p?parseFloat(d.s)+d.c:r,s||N.defaultStringFilter,d),d={t:c,p:"setRatio",s:0,c:1,f:2,pg:0,n:i||e,pr:0,m:0}):(d.s=parseFloat(h),p||(d.c=parseFloat(r)-d.s||0))),d.c)return(d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d,d},V=N._internals={isArray:m,isSelector:R,lazyTweens:U,blobDif:H},Y=N._plugins={},G=V.tweenLookup={},X=0,K=V.reservedProps={ease:1,delay:1,
overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},$={none:0,all:1,auto:2,
concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Q=M._rootFramesTimeline=new I,J=M._rootTimeline=new I,Z=30,tt=V.lazyRender=function(){var t,e=U.length;for(F={};--e>-1;)(t=U[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);U.length=0};J._startTime=h.time,Q._startTime=h.frame,J._active=Q._active=!0,setTimeout(tt,1),M._updateRoot=N.render=function(){var t,e,n;if(U.length&&tt(),J.render((h.time-J._startTime)*J._timeScale,!1,!1),
Q.render((h.frame-Q._startTime)*Q._timeScale,!1,!1),U.length&&tt(),h.frame>=Z){Z=h.frame+(parseInt(N.autoSleep,10)||120);for(n in G){for(e=G[n].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete G[n]}if((!(n=J._first)||n._paused)&&N.autoSleep&&!Q._first&&1===h._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||h.sleep()}}},h.addEventListener("tick",M._updateRoot);var et=function(t,e,n){var r,i,o=t._gsTweenID;if(G[o||(t._gsTweenID=o="t"+X++)]||(G[o]={target:t,tweens:[]}),
e&&(r=G[o].tweens,r[i=r.length]=e,n))for(;--i>-1;)r[i]===e&&r.splice(i,1);return G[o].tweens},nt=function(t,e,n,r){var i,o,a=t.vars.onOverwrite;return a&&(i=a(t,e,n,r)),a=N.onOverwrite,a&&(o=a(t,e,n,r)),!1!==i&&!1!==o},rt=function(t,e,n,r,i){var o,a,s,u;if(1===r||r>=4){for(u=i.length,o=0;o<u;o++)if((s=i[o])!==e)s._gc||s._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var c,l=e._startTime+1e-10,f=[],h=0,p=0===e._duration
;for(o=i.length;--o>-1;)(s=i[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(c=c||it(e,0,p),0===it(s,c,p)&&(f[h++]=s)):s._startTime<=l&&s._startTime+s.totalDuration()/s._timeScale>l&&((p||!s._initted)&&l-s._startTime<=2e-10||(f[h++]=s)));for(o=h;--o>-1;)if(s=f[o],2===r&&s._kill(n,t,e)&&(a=!0),2!==r||!s._firstPT&&s._initted){if(2!==r&&!nt(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},it=function(t,e,n){for(var r=t._timeline,i=r._timeScale,o=t._startTime;r._timeline;){
if(o+=r._startTime,i*=r._timeScale,r._paused)return-100;r=r._timeline}return o/=i,o>e?o-e:n&&o===e||!t._initted&&o-e<2e-10?1e-10:(o+=t.totalDuration()/t._timeScale/i)>e+1e-10?0:o-e-1e-10};f._init=function(){var t,e,n,r,i,o,a=this.vars,s=this._overwrittenProps,u=this._duration,c=!!a.immediateRender,l=a.ease;if(a.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),i={};for(r in a.startAt)i[r]=a.startAt[r];if(i.overwrite=!1,i.immediateRender=!0,i.lazy=c&&!1!==a.lazy,
i.startAt=i.delay=null,i.onUpdate=a.onUpdate,i.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=N.to(this.target,0,i),c)if(this._time>0)this._startAt=null;else if(0!==u)return}else if(a.runBackwards&&0!==u)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(c=!1),n={};for(r in a)K[r]&&"autoCSS"!==r||(n[r]=a[r]);if(n.overwrite=0,n.data="isFromStart",n.lazy=c&&!1!==a.lazy,n.immediateRender=c,
this._startAt=N.to(this.target,0,n),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=l=l?l instanceof T?l:"function"==typeof l?new T(l,a.easeParams):S[l]||N.defaultEase:N.defaultEase,a.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,
t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&N._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=a.onUpdate,this._initted=!0},f._initProps=function(t,e,r,i,o){var a,s,u,c,l,f;if(null==t)return!1
;F[t._gsTweenID]&&tt(),this.vars.css||t.style&&t!==n&&t.nodeType&&Y.css&&!1!==this.vars.autoCSS&&L(this.vars,t);for(a in this.vars)if(f=this.vars[a],K[a])f&&(f instanceof Array||f.push&&m(f))&&-1!==f.join("").indexOf("{self}")&&(this.vars[a]=f=this._swapSelfInParams(f,this));else if(Y[a]&&(c=new Y[a])._onInitTween(t,this.vars[a],this,o)){for(this._firstPT=l={_next:this._firstPT,t:c,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:c._priority,m:0},
s=c._overwriteProps.length;--s>-1;)e[c._overwriteProps[s]]=this._firstPT;(c._priority||c._onInitAllProps)&&(u=!0),(c._onDisable||c._onEnable)&&(this._notifyPluginsOfEnabled=!0),l._next&&(l._next._prev=l)}else e[a]=W.call(this,t,a,"get",f,a,0,null,this.vars.stringFilter,o);return i&&this._kill(i,t)?this._initProps(t,e,r,i,o):this._overwrite>1&&this._firstPT&&r.length>1&&rt(t,this,e,this._overwrite,r)?(this._kill(e,t),
this._initProps(t,e,r,i,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(F[t._gsTweenID]=!0),u)},f.render=function(t,e,n){var r,i,o,a,s=this._time,u=this._duration,c=this._rawPrevTime;if(t>=u-1e-7&&t>=0)this._totalTime=this._time=u,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,i="onComplete",n=n||this._timeline.autoRemoveChildren),
0===u&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(c<0||t<=0&&t>=-1e-7||1e-10===c&&"isPause"!==this.data)&&c!==t&&(n=!0,c>1e-10&&(i="onReverseComplete")),this._rawPrevTime=a=!e||t||c===t?t:1e-10);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===u&&c>0)&&(i="onReverseComplete",r=this._reversed),t<0&&(this._active=!1,
0===u&&(this._initted||!this.vars.lazy||n)&&(c>=0&&(1e-10!==c||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=a=!e||t||c===t?t:1e-10)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0);else if(this._totalTime=this._time=t,this._easeType){var l=t/u,f=this._easeType,h=this._easePower;(1===f||3===f&&l>=.5)&&(l=1-l),3===f&&(l*=2),1===h?l*=l:2===h?l*=l*l:3===h?l*=l*l*l:4===h&&(l*=l*l*l*l),this.ratio=1===f?1-l:2===f?l:t/u<.5?l/2:1-l/2}else this.ratio=this._ease.getRatio(t/u)
;if(this._time!==s||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=c,U.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/u):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),
this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,e,n):i||(i="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==u||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,n),e||(this._time!==s||r||n)&&this._callback("onUpdate")),
i&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[i]&&this._callback(i),0===u&&1e-10===this._rawPrevTime&&1e-10!==a&&(this._rawPrevTime=0)))}},f._kill=function(t,e,n){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:N.selector(e)||e
;var r,i,o,a,s,u,c,l,f,h=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline;if((m(e)||R(e))&&"number"!=typeof e[0])for(r=e.length;--r>-1;)this._kill(t,e[r],n)&&(u=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(e===this._targets[r]){s=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],i=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,
i=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(c=t||s,l=t!==i&&"all"!==i&&t!==s&&("object"!=typeof t||!t._tempKill),n&&(N.onOverwrite||this.vars.onOverwrite)){for(o in c)s[o]&&(f||(f=[]),f.push(o));if((f||!t)&&!nt(this,n,e,f))return!1}for(o in c)(a=s[o])&&(h&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,u=!0),a.pg&&a.t._kill(c)&&(u=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),
a._next=a._prev=null),delete s[o]),l&&(i[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return u},f.invalidate=function(){return this._notifyPluginsOfEnabled&&N._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},
f._enabled=function(t,e){if(p||h.wake(),t&&this._gc){var n,r=this._targets;if(r)for(n=r.length;--n>-1;)this._siblings[n]=et(r[n],this,!0);else this._siblings=et(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&N._onPluginEvent(t?"_onEnable":"_onDisable",this)},N.to=function(t,e,n){return new N(t,e,n)},N.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new N(t,e,n)},N.fromTo=function(t,e,n,r){
return r.startAt=n,r.immediateRender=0!=r.immediateRender&&0!=n.immediateRender,new N(t,e,r)},N.delayedCall=function(t,e,n,r,i){return new N(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},N.set=function(t,e){return new N(t,0,e)},N.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:N.selector(t)||t;var n,r,i,o;if((m(t)||R(t))&&"number"!=typeof t[0]){for(n=t.length,
r=[];--n>-1;)r=r.concat(N.getTweensOf(t[n],e));for(n=r.length;--n>-1;)for(o=r[n],i=n;--i>-1;)o===r[i]&&r.splice(n,1)}else if(t._gsTweenID)for(r=et(t).concat(),n=r.length;--n>-1;)(r[n]._gc||e&&!r[n].isActive())&&r.splice(n,1);return r||[]},N.killTweensOf=N.killDelayedCallsTo=function(t,e,n){"object"==typeof e&&(n=e,e=!1);for(var r=N.getTweensOf(t,e),i=r.length;--i>-1;)r[i]._kill(n,t)};var ot=x("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),
this._propName=this._overwriteProps[0],this._priority=e||0,this._super=ot.prototype},!0);if(f=ot.prototype,ot.version="1.19.0",ot.API=2,f._firstPT=null,f._addTween=W,f.setRatio=q,f._kill=function(t){var e,n=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=n.length;--e>-1;)null!=t[n[e]]&&n.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),
r=r._next;return!1},f._mod=f._roundProps=function(t){for(var e,n=this._firstPT;n;)e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},N._onPluginEvent=function(t,e){var n,r,i,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:o)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:o=s,s=a}s=e._firstPT=i}
for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(n=!0),s=s._next;return n},ot.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===ot.API&&(Y[(new t[e])._propName]=t[e]);return!0},_.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,n=t.propName,r=t.priority||0,i=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"
},a=x("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",function(){ot.call(this,n,r),this._overwriteProps=i||[]},!0===t.global),s=a.prototype=new ot(n);s.constructor=a,a.API=t.API;for(e in o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,ot.activate([a]),a},c=n._gsQueue){for(l=0;l<c.length;l++)c[l]();for(f in b)b[f].func||n.console.log("GSAP encountered missing dependency: "+f)}p=!1}}(void 0!==t&&t.exports&&void 0!==n?n:this||window)}).call(e,n(158))
},,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(234)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(i.a)(e),u=r.getMonth()+s,c=new Date(0);c.setFullYear(r.getFullYear(),u,1),
c.setHours(0,0,0,0);var l=Object(a.a)(c,n);return r.setMonth(u,Math.min(l,r.getDate())),r}e.a=r;var i=n(44),o=n(23),a=n(853)},function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t,e){if(null==t)return{};var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t)
;for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function a(t){var e=t.children,n=t.width,o=t.height,a=t.viewBox,s=t.className,c=t.style,l=i(t,["children","width","height","viewBox","className","style"]),f=a||{width:n,height:o,x:0,y:0},d=h()("recharts-surface",s),g=Object(p.k)(l)
;return u.a.createElement("svg",r({},g,{className:d,width:n,height:o,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),version:"1.1"}),e)}var s=n(0),u=n.n(s),c=n(49),l=n.n(c),f=n(66),h=n.n(f),p=n(55),d={width:l.a.number.isRequired,height:l.a.number.isRequired,viewBox:l.a.shape({x:l.a.number,y:l.a.number,width:l.a.number,height:l.a.number}),className:l.a.string,style:l.a.object,children:l.a.oneOfType([l.a.arrayOf(l.a.node),l.a.node])};a.propTypes=d,e.a=a
},function(t,e,n){function r(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}var i=n(862);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}var i=n(443),o=1/0;t.exports=r},function(t,e,n){"use strict";var r=n(2467);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?p:Math.acos(t)}function i(t){return t>=1?d:t<=-1?-d:Math.asin(t)}n.d(e,"a",function(){return o}),
n.d(e,"d",function(){return a}),n.d(e,"e",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"i",function(){return c}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return h}),n.d(e,"j",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"m",function(){return g}),e.b=r,e.c=i;var o=Math.abs,a=Math.atan2,s=Math.cos,u=Math.max,c=Math.min,l=Math.sin,f=Math.sqrt,h=1e-12,p=Math.PI,d=p/2,g=2*p},function(t,e,n){"use strict";e.a=function(t,e){
if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}},function(t,e,n){t.exports=n(2599)()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t,e,n,r,i,o,a,s){}},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){return u(t)||s(t,e)||a()}function a(){
throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function u(t){if(Array.isArray(t))return t}function c(t,e){if(null==t)return{};var n,r,i=l(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t)
;for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),
Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function d(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var b=n(0),w=n.n(b),_=n(49),x=n.n(_),O=n(113),T=n(55),S=function(t){function e(){return f(this,e),d(this,v(e).apply(this,arguments))}return y(e,t),p(e,[{key:"renderErrorBars",value:function(){
var t=this.props,e=t.offset,n=t.layout,r=t.width,a=t.dataKey,s=t.data,u=t.dataPointFormatter,l=t.xAxis,f=t.yAxis,h=c(t,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),p=Object(T.k)(h);return s.map(function(t,s){var c=u(t,a),h=c.x,d=c.y,g=c.value,v=c.errorVal;if(!v)return null;var y,m,b,_,x,T,S,E,j,k,C,A;if(Array.isArray(v)){var P=o(v,2);C=P[0],A=P[1]}else C=A=v;return"vertical"===n?(S=l.scale,y=g,m=d+e,b=S(y-C),_=m+r,x=S(y+A),T=m-r,E={x1:x,y1:_,x2:x,y2:T},j={
x1:b,y1:m,x2:x,y2:m},k={x1:b,y1:_,x2:b,y2:T}):"horizontal"===n&&(S=f.scale,y=h+e,m=g,b=y-r,x=y+r,_=S(m-C),T=S(m+A),E={x1:b,y1:T,x2:x,y2:T},j={x1:y,y1:_,x2:y,y2:T},k={x1:b,y1:_,x2:x,y2:_}),w.a.createElement(O.a,i({className:"recharts-errorBar",key:"bar-".concat(s)},p),w.a.createElement("line",E),w.a.createElement("line",j),w.a.createElement("line",k))})}},{key:"render",value:function(){return w.a.createElement(O.a,{className:"recharts-errorBars"},this.renderErrorBars())}}]),e}(b.Component)
;S.propTypes={dataKey:x.a.oneOfType([x.a.string,x.a.number,x.a.func]).isRequired,data:x.a.array,xAxis:x.a.object,yAxis:x.a.object,layout:x.a.string,dataPointFormatter:x.a.func,stroke:x.a.string,strokeWidth:x.a.number,width:x.a.number,offset:x.a.number},S.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},e.a=S},function(t,e,n){function r(t,e,n,r){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=r?r(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),
a?o(n,c,l):i(n,c,l)}return n}var i=n(1376),o=n(908);t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t,e){return a(o(t,e,i),t+"")}var i=n(1577),o=n(3846),a=n(3848);t.exports=r},,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n)
;return r.getTime()-o.getTime()}e.a=r;var i=n(23)},,,,,,function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(344).f,i=n(341),o=n(168)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}
},function(t,e){t.exports={}},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=new Date(0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Object(o.a)(r,e)}e.a=r;var i=n(499),o=n(419)},function(t,e,n){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},,,function(t,e,n){var r=n(1873),i=n(1874);t.exports={stringify:r,parse:i}
},,,,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return!isNaN(n)}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getUTCDay(),o=(r<1?7:0)+r-1;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}e.a=r
;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,s=null==a?0:Object(i.a)(a),u=null==n.weekStartsOn?s:Object(i.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(o.a)(t,n),l=c.getUTCDay(),f=(l<u?7:0)+l-u;return c.setUTCDate(c.getUTCDate()-f),
c.setUTCHours(0,0,0,0),c}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(511)},,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.compose=e.applyMiddleware=e.bindActionCreators=e.combineReducers=e.createStore=void 0
;var i=n(1213),o=r(i),a=n(2251),s=r(a),u=n(2252),c=r(u),l=n(2253),f=r(l),h=n(1216),p=r(h),d=n(1215);r(d);e.createStore=o.default,e.combineReducers=s.default,e.bindActionCreators=c.default,e.applyMiddleware=f.default,e.compose=p.default},function(t,e,n){function r(t){return null==t?void 0===t?u:s:c&&c in Object(t)?o(t):a(t)}var i=n(839),o=n(2247),a=n(2248),s="[object Null]",u="[object Undefined]",c=i?i.toStringTag:void 0;t.exports=r},,function(t,e,n){var r,i;/**!
 * Sortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @license MIT
 */
!function(o){"use strict";r=o,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i)}(function(){"use strict";function t(t,e){this.el=t,this.options=e=v({},e),t[D]=this;var r={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",ignore:"a, img",filter:null,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,
dataIdAttr:"data-id",delay:0};for(var i in r)!(i in e)&&(e[i]=r[i]);var a=e.group;a&&"object"==typeof a||(a=e.group={name:a}),["pull","put"].forEach(function(t){t in a||(a[t]=!0)}),e.groups=" "+a.name+(a.put.join?" "+a.put.join(" "):"")+" ";for(var s in this)"_"===s.charAt(0)&&(this[s]=n(this,this[s]));o(t,"mousedown",this._onTapStart),o(t,"touchstart",this._onTapStart),o(t,"dragover",this),o(t,"dragenter",this),q.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function e(t){
b&&b.state!==t&&(u(b,"display",t?"none":""),!t&&b.state&&w.insertBefore(b,y),b.state=t)}function n(t,e){var n=z.call(arguments,2);return e.bind?e.bind.apply(e,[t].concat(n)):function(){return e.apply(t,n.concat(z.call(arguments)))}}function r(t,e,n){if(t){n=n||N,e=e.split(".");var r=e.shift().toUpperCase(),i=new RegExp("\\s("+e.join("|")+")\\s","g");do{if(">*"===r&&t.parentNode===n||(""===r||t.nodeName.toUpperCase()==r)&&(!e.length||((" "+t.className+" ").match(i)||[]).length==e.length))return t
}while(t!==n&&(t=t.parentNode))}return null}function i(t){t.dataTransfer.dropEffect="move",t.preventDefault()}function o(t,e,n){t.addEventListener(e,n,!1)}function a(t,e,n){t.removeEventListener(e,n,!1)}function s(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(M," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(M," ")}}function u(t,e,n){var r=t&&t.style;if(r){
if(void 0===n)return N.defaultView&&N.defaultView.getComputedStyle?n=N.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function c(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function l(t){t.draggable=!1}function f(){U=!1}function h(t,e){var n=t.lastElementChild,r=n.getBoundingClientRect();return e.clientY-(r.top+r.height)>5&&n}
function p(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function d(t){for(var e=0;t&&(t=t.previousElementSibling);)"TEMPLATE"!==t.nodeName.toUpperCase()&&e++;return e}function g(t,e){var n,r;return function(){void 0===n&&(n=arguments,r=this,setTimeout(function(){1===n.length?t.call(r,n[0]):t.apply(r,n),n=void 0},e))}}function v(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}
var y,m,b,w,_,x,O,T,S,E,j,k,C,A,P={},M=/\s+/g,D="Sortable"+(new Date).getTime(),I=window,N=I.document,R=I.parseInt,L=!!("draggable"in N.createElement("div")),U=!1,F=function(t,e,n,r,i,o,a){var s=N.createEvent("Event"),u=(t||e[D]).options,c="on"+n.charAt(0).toUpperCase()+n.substr(1);s.initEvent(n,!0,!0),s.item=r||e,s.from=i||e,s.clone=b,s.oldIndex=o,s.newIndex=a,u[c]&&u[c].call(t,s),e.dispatchEvent(s)},B=Math.abs,z=[].slice,q=[],H=g(function(t,e,n){if(n&&e.scroll){
var r,i,o,a,s=e.scrollSensitivity,u=e.scrollSpeed,c=t.clientX,l=t.clientY,f=window.innerWidth,h=window.innerHeight;if(O!==n&&(x=e.scroll,O=n,!0===x)){x=n;do{if(x.offsetWidth<x.scrollWidth||x.offsetHeight<x.scrollHeight)break}while(x=x.parentNode)}x&&(r=x,i=x.getBoundingClientRect(),o=(B(i.right-c)<=s)-(B(i.left-c)<=s),a=(B(i.bottom-l)<=s)-(B(i.top-l)<=s)),o||a||(o=(f-c<=s)-(c<=s),a=(h-l<=s)-(l<=s),(o||a)&&(r=I)),P.vx===o&&P.vy===a&&P.el===r||(P.el=r,P.vx=o,P.vy=a,clearInterval(P.pid),
r&&(P.pid=setInterval(function(){r===I?I.scrollTo(I.pageXOffset+o*u,I.pageYOffset+a*u):(a&&(r.scrollTop+=a*u),o&&(r.scrollLeft+=o*u))},24)))}},30);return t.prototype={constructor:t,_onTapStart:function(t){var e=this,n=this.el,i=this.options,o=t.type,a=t.touches&&t.touches[0],s=(a||t).target,u=s,c=i.filter;if(!("mousedown"===o&&0!==t.button||i.disabled)&&(s=r(s,i.draggable,n))){if(E=d(s),"function"==typeof c){if(c.call(this,t,s,this))return F(e,u,"filter",s,n,E),void t.preventDefault()
}else if(c&&(c=c.split(",").some(function(t){if(t=r(u,t.trim(),n))return F(e,t,"filter",s,n,E),!0})))return void t.preventDefault();i.handle&&!r(u,i.handle,n)||this._prepareDragStart(t,a,s)}},_prepareDragStart:function(t,e,n){var r,i=this,a=i.el,s=i.options,u=a.ownerDocument;n&&!y&&n.parentNode===a&&(C=t,w=a,y=n,_=y.nextSibling,k=s.group,r=function(){i._disableDelayedDrag(),y.draggable=!0,s.ignore.split(",").forEach(function(t){c(y,t.trim(),l)}),i._triggerDragStart(e)},o(u,"mouseup",i._onDrop),
o(u,"touchend",i._onDrop),o(u,"touchcancel",i._onDrop),s.delay?(o(u,"mousemove",i._disableDelayedDrag),o(u,"touchmove",i._disableDelayedDrag),i._dragStartTimer=setTimeout(r,s.delay)):r())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),a(t,"mousemove",this._disableDelayedDrag),a(t,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(t){t?(C={target:y,clientX:t.clientX,clientY:t.clientY},
this._onDragStart(C,"touch")):L?(o(y,"dragend",this),o(w,"dragstart",this._onDragStart)):this._onDragStart(C,!0);try{N.selection?N.selection.empty():window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){w&&y&&(s(y,this.options.ghostClass,!0),t.active=this,F(this,w,"start",y,w,E))},_emulateDragOver:function(){if(A){u(m,"display","none");var t=N.elementFromPoint(A.clientX,A.clientY),e=t,n=" "+this.options.group.name,r=q.length;if(e)do{
if(e[D]&&e[D].options.groups.indexOf(n)>-1){for(;r--;)q[r]({clientX:A.clientX,clientY:A.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);u(m,"display","")}},_onTouchMove:function(t){if(C){var e=t.touches?t.touches[0]:t,n=e.clientX-C.clientX,r=e.clientY-C.clientY,i=t.touches?"translate3d("+n+"px,"+r+"px,0)":"translate("+n+"px,"+r+"px)";A=e,u(m,"webkitTransform",i),u(m,"mozTransform",i),u(m,"msTransform",i),u(m,"transform",i),t.preventDefault()}},_onDragStart:function(t,e){
var n=t.dataTransfer,r=this.options;if(this._offUpEvents(),"clone"==k.pull&&(b=y.cloneNode(!0),u(b,"display","none"),w.insertBefore(b,y)),e){var i,a=y.getBoundingClientRect(),s=u(y);m=y.cloneNode(!0),u(m,"top",a.top-R(s.marginTop,10)),u(m,"left",a.left-R(s.marginLeft,10)),u(m,"width",a.width),u(m,"height",a.height),u(m,"opacity","0.8"),u(m,"position","fixed"),u(m,"zIndex","100000"),w.appendChild(m),i=m.getBoundingClientRect(),u(m,"width",2*a.width-i.width),u(m,"height",2*a.height-i.height),
"touch"===e?(o(N,"touchmove",this._onTouchMove),o(N,"touchend",this._onDrop),o(N,"touchcancel",this._onDrop)):(o(N,"mousemove",this._onTouchMove),o(N,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,150)}else n&&(n.effectAllowed="move",r.setData&&r.setData.call(this,n,y)),o(N,"drop",this);setTimeout(this._dragStarted,0)},_onDragOver:function(t){var n,i,o,a=this.el,s=this.options,c=s.group,l=c.put,p=k===c,d=s.sort;if(void 0!==t.preventDefault&&(t.preventDefault(),
!s.dragoverBubble&&t.stopPropagation()),k&&!s.disabled&&(p?d||(o=!w.contains(y)):k.pull&&l&&(k.name===c.name||l.indexOf&&~l.indexOf(k.name)))&&(void 0===t.rootEl||t.rootEl===this.el)){if(H(t,s,this.el),U)return;if(n=r(t.target,s.draggable,a),i=y.getBoundingClientRect(),o)return e(!0),void(b||_?w.insertBefore(y,b||_):d||w.appendChild(y));if(0===a.children.length||a.children[0]===m||a===t.target&&(n=h(a,t))){if(n){if(n.animated)return;v=n.getBoundingClientRect()}e(p),a.appendChild(y),
this._animate(i,y),n&&this._animate(v,n)}else if(n&&!n.animated&&n!==y&&void 0!==n.parentNode[D]){T!==n&&(T=n,S=u(n));var g,v=n.getBoundingClientRect(),x=v.right-v.left,O=v.bottom-v.top,E=/left|right|inline/.test(S.cssFloat+S.display),j=n.offsetWidth>y.offsetWidth,C=n.offsetHeight>y.offsetHeight,A=(E?(t.clientX-v.left)/x:(t.clientY-v.top)/O)>.5,P=n.nextElementSibling;U=!0,setTimeout(f,30),e(p),g=E?n.previousElementSibling===y&&!j||A&&j:P!==y&&!C||A&&C,
g&&!P?a.appendChild(y):n.parentNode.insertBefore(y,g?P:n),this._animate(i,y),this._animate(v,n)}}},_animate:function(t,e){var n=this.options.animation;if(n){var r=e.getBoundingClientRect();u(e,"transition","none"),u(e,"transform","translate3d("+(t.left-r.left)+"px,"+(t.top-r.top)+"px,0)"),e.offsetWidth,u(e,"transition","all "+n+"ms"),u(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=setTimeout(function(){u(e,"transition",""),u(e,"transform",""),e.animated=!1},n)}},
_offUpEvents:function(){var t=this.el.ownerDocument;a(N,"touchmove",this._onTouchMove),a(t,"mouseup",this._onDrop),a(t,"touchend",this._onDrop),a(t,"touchcancel",this._onDrop)},_onDrop:function(e){var n=this.el,r=this.options;clearInterval(this._loopId),clearInterval(P.pid),clearTimeout(this.dragStartTimer),a(N,"drop",this),a(N,"mousemove",this._onTouchMove),a(n,"dragstart",this._onDragStart),this._offUpEvents(),e&&(e.preventDefault(),!r.dropBubble&&e.stopPropagation(),
m&&m.parentNode.removeChild(m),y&&(a(y,"dragend",this),l(y),s(y,this.options.ghostClass,!1),w!==y.parentNode?(j=d(y),F(null,y.parentNode,"sort",y,w,E,j),F(this,w,"sort",y,w,E,j),F(null,y.parentNode,"add",y,w,E,j),F(this,w,"remove",y,w,E,j)):(b&&b.parentNode.removeChild(b),y.nextSibling!==_&&(j=d(y),F(this,w,"update",y,w,E,j),F(this,w,"sort",y,w,E,j))),t.active&&F(this,w,"end",y,w,E,j)),w=y=m=_=b=x=O=C=A=T=S=k=t.active=null,this.save())},handleEvent:function(t){var e=t.type
;"dragover"===e||"dragenter"===e?y&&(this._onDragOver(t),i(t)):"drop"!==e&&"dragend"!==e||this._onDrop(t)},toArray:function(){for(var t,e=[],n=this.el.children,i=0,o=n.length,a=this.options;i<o;i++)t=n[i],r(t,a.draggable,this.el)&&e.push(t.getAttribute(a.dataIdAttr)||p(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,i){var o=n.children[i];r(o,this.options.draggable,n)&&(e[t]=o)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},
save:function(){var t=this.options.store;t&&t.set(this)},closest:function(t,e){return r(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e},destroy:function(){var t=this.el;t[D]=null,a(t,"mousedown",this._onTapStart),a(t,"touchstart",this._onTapStart),a(t,"dragover",this),a(t,"dragenter",this),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),
q.splice(q.indexOf(this._onDragOver),1),this._onDrop(),this.el=t=null}},t.utils={on:o,off:a,css:u,find:c,bind:n,is:function(t,e){return!!r(t,e,t)},extend:v,throttle:g,closest:r,toggleClass:s,index:d},t.version="1.2.0",t.create=function(e,n){return new t(e,n)},t})},,,,,,function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){function r(t){return"string"==typeof t||!o(t)&&a(t)&&i(t)==s}var i=n(314),o=n(104),a=n(252),s="[object String]";t.exports=r},function(t,e,n){
function r(t,e){return i(t)?t:o(t,e)?[t]:a(s(t))}var i=n(104),o=n(863),a=n(2439),s=n(2463);t.exports=r},function(t,e,n){var r=n(376),i=r(Object,"create");t.exports=i},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(2453),o=n(2454),a=n(2455),s=n(2456),u=n(2457);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(t,e){
for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}var i=n(645);t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}var i=n(2459);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}t.exports=n},function(t,e,n){function r(t){return i(t)&&t!=+t}var i=n(866);t.exports=r},function(t,e,n){
"use strict";function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.a=function(t){
return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function i(t){this._context=t}e.c=r,e.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:
r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,
this._y1=e}},e.b=function(t){return new i(t)}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}e.b=r,e.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){
case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,
this._y2=e}};!function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(199),m=n.n(y),b=n(82),w=n.n(b),_=n(0),x=n.n(_),O=n(49),T=n.n(O),S=n(214),E=n(66),j=n.n(E),k=n(2609),C=n(55),A=n(83),P=n(60),M="recharts-tooltip-wrapper",D={
content:T.a.oneOfType([T.a.element,T.a.func]),viewBox:T.a.shape({x:T.a.number,y:T.a.number,width:T.a.number,height:T.a.number}),active:T.a.bool,separator:T.a.string,formatter:T.a.func,offset:T.a.number,itemStyle:T.a.object,labelStyle:T.a.object,wrapperStyle:T.a.object,contentStyle:T.a.object,cursor:T.a.oneOfType([T.a.bool,T.a.element,T.a.object]),coordinate:T.a.shape({x:T.a.number,y:T.a.number}),position:T.a.shape({x:T.a.number,y:T.a.number}),label:T.a.any,payload:T.a.arrayOf(T.a.shape({
name:T.a.any,value:T.a.oneOfType([T.a.number,T.a.string,T.a.array]),unit:T.a.any})),isAnimationActive:T.a.bool,animationDuration:T.a.number,animationEasing:T.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),itemSorter:T.a.func,filterNull:T.a.bool,useTranslate3d:T.a.bool},I={active:!1,offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!Object(C.n)(),
animationEasing:"ease",animationDuration:400,itemSorter:function(){return-1},filterNull:!0,useTranslate3d:!1},N=function(t,e){return x.a.isValidElement(t)?x.a.cloneElement(t,e):w()(t)?t(e):x.a.createElement(k.a,e)},R=Object(P.a)((v=g=function(t){function e(){var t,n;a(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=c(this,(t=f(e)).call.apply(t,[this].concat(i))),n.state={boxWidth:-1,boxHeight:-1},n}return h(e,t),u(e,[{key:"componentDidMount",
value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){
var t,e,n,r=this,a=this.props,s=a.payload,u=a.isAnimationActive,c=a.animationDuration,l=a.animationEasing,f=a.filterNull,h=f&&s&&s.length?s.filter(function(t){return!m()(t.value)}):s,p=h&&h.length,d=this.props,g=d.content,v=d.viewBox,y=d.coordinate,b=d.position,w=d.active,_=d.offset,O=d.wrapperStyle,T=i({pointerEvents:"none",visibility:w&&p?"visible":"hidden",position:"absolute",top:0},O);if(b&&Object(A.h)(b.x)&&Object(A.h)(b.y))e=b.x,n=b.y;else{var E=this.state,k=E.boxWidth,C=E.boxHeight
;k>0&&C>0&&y?(e=b&&Object(A.h)(b.x)?b.x:Math.max(y.x+k+_>v.x+v.width?y.x-k-_:y.x+_,v.x),n=b&&Object(A.h)(b.y)?b.y:Math.max(y.y+C+_>v.y+v.height?y.y-C-_:y.y+_,v.y)):T.visibility="hidden"}T=i({},T,Object(S.b)({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})),u&&w&&(T=i({},T,Object(S.b)({transition:"transform ".concat(c,"ms ").concat(l)})));var P=j()(M,(t={},
o(t,"".concat(M,"-right"),Object(A.h)(e)&&y&&Object(A.h)(y.x)&&e>=y.x),o(t,"".concat(M,"-left"),Object(A.h)(e)&&y&&Object(A.h)(y.x)&&e<y.x),o(t,"".concat(M,"-bottom"),Object(A.h)(n)&&y&&Object(A.h)(y.y)&&n>=y.y),o(t,"".concat(M,"-top"),Object(A.h)(n)&&y&&Object(A.h)(y.y)&&n<y.y),t));return x.a.createElement("div",{className:P,style:T,ref:function(t){r.wrapperNode=t}},N(g,i({},this.props,{payload:h})))}}]),e}(_.Component),g.displayName="Tooltip",g.propTypes=D,g.defaultProps=I,d=v))||d;e.a=R
},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(2492),o=n(2493),a=n(2494),s=n(2495),u=n(2496);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}var i=n(1279);t.exports=r},function(t,e,n){var r=n(277),i=r.Symbol;t.exports=i},function(t,e,n){var r=n(378),i=r(Object,"create")
;t.exports=i},function(t,e,n){function r(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}var i=n(2516);t.exports=r},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}
function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return l}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return g}),n.d(e,"b",function(){return v}),n.d(e,"f",function(){return y});var o=n(2554),a=n.n(o),s=["Webkit","Moz","O","ms"],u=["-webkit-","-moz-","-o-","-ms-"],c=["transform","transformOrigin","transition"],l=function(t,e){
return a()(Object.keys(t),Object.keys(e))},f=function(t){return t},h=function(t){return t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})},p=function(t,e){if(-1===c.indexOf(t))return i({},t,e);var n="transition"===t,o=t.replace(/(\w)/,function(t){return t.toUpperCase()}),a=e;return s.reduce(function(t,s,c){return n&&(a=e.replace(/(transform|transform-origin)/gim,"".concat(u[c],"$1"))),r({},t,i({},s+o,a))},{})},d=function(t,e){return Object.keys(e).reduce(function(n,o){
return r({},n,i({},o,t(o,e[o])))},{})},g=function(t){return Object.keys(t).reduce(function(t,e){return r({},t,p(e,t[e]))},t)},v=function(t,e,n){return t.map(function(t){return"".concat(h(t)," ").concat(e,"ms ").concat(n)}).join(",")},y=function(t,e,n,r,i,o,a,s){}},function(t,e,n){function r(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}var i=n(884),o=1/0;t.exports=r},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){
var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return u(t)||s(t)||a()}function a(){
throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e){return d.indexOf(t)>=0&&e===+e?"".concat(e,"px"):e}function l(t){return t.split("").reduce(function(t,e){return e===e.toUpperCase()?o(t).concat(["-",e.toLowerCase()]):o(t).concat([e])
},[]).join("")}n.d(e,"c",function(){return v}),n.d(e,"b",function(){return y}),n.d(e,"a",function(){return m});var f=n(55),h={widthCache:{},cacheCount:0},p={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},d=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],g=function(t){
return Object.keys(t).reduce(function(e,n){return"".concat(e).concat(l(n),":").concat(c(n,t[n]),";")},"")},v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||Object(f.n)())return{width:0,height:0};var n="".concat(t),i=g(e),o="".concat(n,"-").concat(i);if(h.widthCache[o])return h.widthCache[o];try{var a=document.getElementById("recharts_measurement_span");a||(a=document.createElement("span"),a.setAttribute("id","recharts_measurement_span"),
document.body.appendChild(a));var s=r({},p,e);Object.keys(s).map(function(t){return a.style[t]=s[t],t}),a.textContent=n;var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return h.widthCache[o]=c,++h.cacheCount>2e3&&(h.cacheCount=0,h.widthCache={}),c}catch(t){return{width:0,height:0}}},y=function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return void 0!==t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,
left:n.left+window.pageXOffset-e.clientLeft}},m=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){var r=n(2645),i=n(865),o=n(2646),a=n(2647),s=n(2648),u=n(314),c=n(1261),l=c(r),f=c(i),h=c(o),p=c(a),d=c(s),g=u
;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){function r(t,e,n){
if(!s(n))return!1;var r=typeof e;return!!("number"==r?o(n)&&a(e,n.length):"string"==r&&e in n)&&i(n[e],t)}var i=n(645),o=n(446),a=n(891),s=n(200);t.exports=r},function(t,e,n){function r(t,e,n){for(var r=-1,o=t.length;++r<o;){var a=t[r],s=e(a);if(null!=s&&(void 0===u?s===s&&!i(s):n(s,u)))var u=s,c=a}return c}var i=n(443);t.exports=r},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){"use strict";function r(t,e){return(e-=t=+t)?function(n){
return(n-t)/e}:Object(p.a)(e)}function i(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function o(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function a(t,e,n,r){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(t){return a(i(t))}}function s(t,e,n,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),
e=e.slice().reverse());++s<i;)o[s]=n(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(e){var n=Object(l.b)(t,e,1,i)-1;return a[n](o[n](e))}}function u(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function c(t,e){function n(){return c=Math.min(v.length,y.length)>2?s:a,l=p=null,u}function u(e){return(l||(l=c(v,y,b?i(t):t,m)))(+e)}var c,l,p,v=g,y=g,m=f.a,b=!1;return u.invert=function(t){return(p||(p=c(y,v,r,b?o(e):e)))(+t)},u.domain=function(t){
return arguments.length?(v=h.a.call(t,d.a),n()):v.slice()},u.range=function(t){return arguments.length?(y=h.b.call(t),n()):y.slice()},u.rangeRound=function(t){return y=h.b.call(t),m=f.c,n()},u.clamp=function(t){return arguments.length?(b=!!t,n()):b},u.interpolate=function(t){return arguments.length?(m=t,n()):m},n()}e.c=r,e.a=u,e.b=c;var l=n(279),f=n(899),h=n(382),p=n(904),d=n(1351),g=[0,1]},function(t,e,n){"use strict";var r=n(905);e.a=function(t){return t=Object(r.a)(Math.abs(t)),t?t[1]:NaN}
},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}
function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){
return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(66),x=n.n(_),O=n(60),T=n(55),S=n(235),E=n(83),j=function(t,e){return Object(E.j)(e-t)*Math.min(Math.abs(e-t),359.999)},k=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,a=t.isExternal,s=t.cornerRadius,u=s*(a?1:-1)+r,c=Math.asin(s/u)/S.a,l=i+o*c;return{center:Object(S.e)(e,n,u,l),circleTangency:Object(S.e)(e,n,r,l),
lineTangency:Object(S.e)(e,n,u*Math.cos(c*S.a),i),theta:c}},C=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=t.endAngle,s=j(o,a),u=o+s,c=Object(S.e)(e,n,i,o),l=Object(S.e)(e,n,i,u),f="M ".concat(c.x,",").concat(c.y,"\n    A ").concat(i,",").concat(i,",0,\n    ").concat(+(Math.abs(s)>180),",").concat(+(o>u),",\n    ").concat(l.x,",").concat(l.y,"\n  ");if(r>0){var h=Object(S.e)(e,n,r,o),p=Object(S.e)(e,n,r,u)
;f+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(s)>180),",").concat(+(o<=u),",\n            ").concat(h.x,",").concat(h.y," Z")}else f+="L ".concat(e,",").concat(n," Z");return f},A=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,u=Object(E.j)(s-a),c=k({cx:e,cy:n,radius:i,angle:a,sign:u,cornerRadius:o}),l=c.circleTangency,f=c.lineTangency,h=c.theta,p=k({cx:e,cy:n,
radius:i,angle:s,sign:-u,cornerRadius:o}),d=p.circleTangency,g=p.lineTangency,v=p.theta,y=Math.abs(a-s)-h-v;if(y<0)return C({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:s})
;var m="M ".concat(f.x,",").concat(f.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(l.x,",").concat(l.y,"\n    A").concat(i,",").concat(i,",0,").concat(+(y>180),",").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n  ");if(r>0){var b=k({cx:e,cy:n,radius:r,angle:a,sign:u,isExternal:!0,cornerRadius:o}),w=b.circleTangency,_=b.lineTangency,x=b.theta,O=k({cx:e,cy:n,radius:r,angle:s,
sign:-u,isExternal:!0,cornerRadius:o}),T=O.circleTangency,S=O.lineTangency,j=O.theta,A=Math.abs(a-s)-x-j;if(A<0)return"".concat(m,"L").concat(e,",").concat(n,"Z");m+="L".concat(S.x,",").concat(S.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(T.x,",").concat(T.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(_.x,",").concat(_.y,"Z")
}else m+="L".concat(e,",").concat(n,"Z");return m},P=Object(O.a)((v=g=function(t){function e(){return a(this,e),c(this,f(e).apply(this,arguments))}return h(e,t),u(e,[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.startAngle,u=t.endAngle,c=t.className;if(i<r||s===u)return null;var l,f=x()("recharts-sector",c),h=i-r,p=Object(E.d)(a,h,0,!0);return l=p>0&&Math.abs(s-u)<360?A({cx:e,cy:n,innerRadius:r,outerRadius:i,
cornerRadius:Math.min(p,h/2),startAngle:s,endAngle:u}):C({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:u}),m.a.createElement("path",o({},Object(T.k)(this.props),Object(T.e)(this.props),{className:f,d:l}))}}]),e}(y.Component),g.displayName="Sector",g.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){
return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}({},T.c,{className:w.a.string,cx:w.a.number,cy:w.a.number,innerRadius:w.a.number,outerRadius:w.a.number,startAngle:w.a.number,endAngle:w.a.number,cornerRadius:w.a.oneOfType([w.a.number,w.a.string])}),g.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0},d=v))||d;e.a=P},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}
function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){
return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(66),x=n.n(_),O=n(60),T=n(55),S=function(t){return t.reduce(function(t,e){return e.x===+e.x&&e.y===+e.y&&t.push([e.x,e.y]),t},[]).join(" ")},E=Object(O.a)((v=g=function(t){function e(){return a(this,e),c(this,f(e).apply(this,arguments))}return h(e,t),u(e,[{key:"render",value:function(){var t=this.props,e=t.points,n=t.className;if(!e||!e.length)return null
;var r=x()("recharts-polygon",n);return m.a.createElement("polygon",o({},Object(T.k)(this.props),Object(T.e)(this.props),{className:r,points:S(e)}))}}]),e}(y.Component),g.displayName="Polygon",g.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),
r.forEach(function(e){i(t,e,n[e])})}return t}({},T.c,{className:w.a.string,points:w.a.arrayOf(w.a.shape({x:w.a.number,y:w.a.number}))}),d=v))||d;e.a=E},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){
var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){
return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(null==t)return{};var n,r,i=u(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function c(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function h(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var y,m,b,w=n(82),_=n.n(w),x=n(2757),O=n.n(x),T=n(1367),S=n.n(T),E=n(0),j=n.n(E),k=n(49),C=n.n(k),A=n(60),P=n(381),M=n(316),D=n(113),I=n(55),N=n(235),R=Object(A.a)((b=m=function(t){function e(){return c(this,e),h(this,d(e).apply(this,arguments))}return g(e,t),f(e,[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return Object(N.e)(i,o,e,r)}},{key:"getTickTextAnchor",value:function(){var t,e=this.props.orientation;switch(e){case"left":t="end"
;break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.angle,i=t.ticks,o=S()(i,function(t){return t.coordinate||0});return{cx:e,cy:n,startAngle:r,endAngle:r,innerRadius:O()(i,function(t){return t.coordinate||0}).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){
var t=this.props,e=t.cx,n=t.cy,r=t.angle,a=t.ticks,u=t.axisLine,c=s(t,["cx","cy","angle","ticks","axisLine"]),l=a.reduce(function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]},[1/0,-1/0]),f=Object(N.e)(e,n,l[0],r),h=Object(N.e)(e,n,l[1],r),p=o({},Object(I.k)(c),{fill:"none"},Object(I.k)(u),{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return j.a.createElement("line",i({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){
var t=this,e=this.props,n=e.ticks,r=e.tick,a=e.angle,u=e.tickFormatter,c=e.stroke,l=s(e,["ticks","tick","angle","tickFormatter","stroke"]),f=this.getTickTextAnchor(),h=Object(I.k)(l),p=Object(I.k)(r),d=n.map(function(e,n){var s=t.getTickValueCoord(e),l=o({textAnchor:f,transform:"rotate(".concat(90-a,", ").concat(s.x,", ").concat(s.y,")")},h,{stroke:"none",fill:c},p,{index:n},s,{payload:e});return j.a.createElement(D.a,i({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)
},Object(I.f)(t.props,e,n)),t.constructor.renderTickItem(r,l,u?u(e.value):e.value))});return j.a.createElement(D.a,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.axisLine,r=t.tick;return e&&e.length?j.a.createElement(D.a,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),M.a.renderCallByParent(this.props,this.getViewBox())):null}}],[{key:"renderTickItem",value:function(t,e,n){
return j.a.isValidElement(t)?j.a.cloneElement(t,e):_()(t)?t(e):j.a.createElement(P.a,i({},e,{className:"recharts-polar-radius-axis-tick-value"}),n)}}]),e}(E.Component),m.displayName="PolarRadiusAxis",m.axisType="radiusAxis",m.propTypes=o({},I.c,I.a,{type:C.a.oneOf(["number","category"]),cx:C.a.number,cy:C.a.number,hide:C.a.bool,radiusAxisId:C.a.oneOfType([C.a.string,C.a.number]),angle:C.a.number,tickCount:C.a.number,ticks:C.a.arrayOf(C.a.shape({value:C.a.any,coordinate:C.a.number})),
orientation:C.a.oneOf(["left","right","middle"]),axisLine:C.a.oneOfType([C.a.bool,C.a.object]),tick:C.a.oneOfType([C.a.bool,C.a.object,C.a.element,C.a.func]),stroke:C.a.string,tickFormatter:C.a.func,domain:C.a.arrayOf(C.a.oneOfType([C.a.number,C.a.oneOf(["auto","dataMin","dataMax"])])),scale:C.a.oneOfType([C.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),C.a.func]),allowDataOverflow:C.a.bool,
allowDuplicatedCategory:C.a.bool}),m.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0},y=b))||y;e.a=R},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g,v,y,m=n(82),b=n.n(m),w=n(0),_=n.n(w),x=n(49),O=n.n(x),T=n(60),S=n(113),E=n(55),j=n(383),k=n(670),C=n(381),A=n(235),P=Math.PI/180,M=Object(T.a)((y=v=function(t){function e(){
return s(this,e),l(this,h(e).apply(this,arguments))}return p(e,t),c(e,[{key:"getTickLineCoord",value:function(t){var e=this.props,n=e.cx,r=e.cy,i=e.radius,o=e.orientation,a=e.tickLine,s=a&&a.size||8,u=Object(A.e)(n,r,i,t.coordinate),c=Object(A.e)(n,r,i+("inner"===o?-1:1)*s,t.coordinate);return{x1:u.x,y1:u.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,n=Math.cos(-t.coordinate*P)
;return n>1e-5?"outer"===e?"start":"end":n<-1e-5?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.radius,a=t.axisLine,s=t.axisLineType,u=o({},Object(E.k)(this.props),{fill:"none"},Object(E.k)(a));if("circle"===s)return _.a.createElement(j.a,i({className:"recharts-polar-angle-axis-line"},u,{cx:e,cy:n,r:r}));var c=this.props.ticks,l=c.map(function(t){return Object(A.e)(e,n,r,t.coordinate)});return _.a.createElement(k.a,i({
className:"recharts-polar-angle-axis-line"},u,{points:l}))}},{key:"renderTicks",value:function(){var t=this,e=this.props,n=e.ticks,r=e.tick,a=e.tickLine,s=e.tickFormatter,u=e.stroke,c=Object(E.k)(this.props),l=Object(E.k)(r),f=o({},c,{fill:"none"},Object(E.k)(a)),h=n.map(function(e,n){var h=t.getTickLineCoord(e),p=t.getTickTextAnchor(e),d=o({textAnchor:p},c,{stroke:"none",fill:u},l,{index:n,payload:e,x:h.x2,y:h.y2});return _.a.createElement(S.a,i({className:"recharts-polar-angle-axis-tick",
key:"tick-".concat(n)},Object(E.f)(t.props,e,n)),a&&_.a.createElement("line",i({className:"recharts-polar-angle-axis-tick-line"},f,h)),r&&t.constructor.renderTickItem(r,d,s?s(e.value):e.value))});return _.a.createElement(S.a,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.radius,r=t.axisLine;return n<=0||!e||!e.length?null:_.a.createElement(S.a,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}
}],[{key:"renderTickItem",value:function(t,e,n){return _.a.isValidElement(t)?_.a.cloneElement(t,e):b()(t)?t(e):_.a.createElement(C.a,i({},e,{className:"recharts-polar-angle-axis-tick-value"}),n)}}]),e}(w.Component),v.displayName="PolarAngleAxis",v.axisType="angleAxis",v.propTypes=o({},E.c,E.a,{type:O.a.oneOf(["number","category"]),angleAxisId:O.a.oneOfType([O.a.string,O.a.number]),dataKey:O.a.oneOfType([O.a.number,O.a.string,O.a.func]),cx:O.a.number,cy:O.a.number,
radius:O.a.oneOfType([O.a.number,O.a.string]),hide:O.a.bool,scale:O.a.oneOfType([O.a.oneOf(E.d),O.a.func]),axisLine:O.a.oneOfType([O.a.bool,O.a.object]),axisLineType:O.a.oneOf(["polygon","circle"]),tickLine:O.a.oneOfType([O.a.bool,O.a.object]),tick:O.a.oneOfType([O.a.bool,O.a.func,O.a.object,O.a.element]),ticks:O.a.arrayOf(O.a.shape({value:O.a.any,coordinate:O.a.number})),stroke:O.a.string,orientation:O.a.oneOf(["inner","outer"]),tickFormatter:O.a.func,allowDuplicatedCategory:O.a.bool}),
v.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0},g=y))||g;e.a=M},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h,p,d,g=n(0),v=(n.n(g),
n(49)),y=n.n(v),m=n(60),b=Object(m.a)((d=p=function(t){function e(){return i(this,e),s(this,c(e).apply(this,arguments))}return l(e,t),a(e,[{key:"render",value:function(){return null}}]),e}(g.Component),p.displayName="ZAxis",p.propTypes={type:y.a.oneOf(["number","category"]),name:y.a.oneOfType([y.a.string,y.a.number]),unit:y.a.oneOfType([y.a.string,y.a.number]),zAxisId:y.a.oneOfType([y.a.string,y.a.number]),dataKey:y.a.oneOfType([y.a.string,y.a.number,y.a.func]),range:y.a.arrayOf(y.a.number),
scale:y.a.oneOfType([y.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),y.a.func])},p.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"},h=d))||h;e.a=b},,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,1e3*r,n)}e.a=r;var i=n(44),o=n(511)
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},n=e.publishSource,r=e.clientOffset,i=e.getSourceClientOffset;(0,f.default)((0,p.default)(t),"Expected sourceIds to be an array.");var o=this.getMonitor(),a=this.getRegistry();(0,f.default)(!o.isDragging(),"Cannot call beginDrag while dragging.")
;for(var s=0;s<t.length;s++)(0,f.default)(a.getSource(t[s]),"Expected sourceIds to be registered.");for(var u=null,c=t.length-1;c>=0;c--)if(o.canDragSource(t[c])){u=t[c];break}if(null!==u){var l=null;r&&((0,f.default)("function"==typeof i,"When clientOffset is provided, getSourceClientOffset must be a function."),l=i(u));var h=a.getSource(u),d=h.beginDrag(o,u);(0,f.default)((0,g.default)(d),"Item must be an object."),a.pinSource(u);var v=a.getSourceType(u);return{type:m,itemType:v,item:d,
sourceId:u,clientOffset:r,sourceClientOffset:l,isSourcePublic:n}}}function o(){if(this.getMonitor().isDragging())return{type:b}}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.clientOffset,r=void 0===n?null:n;(0,f.default)((0,p.default)(t),"Expected targetIds to be an array.");var i=t.slice(0),o=this.getMonitor(),a=this.getRegistry();(0,f.default)(o.isDragging(),"Cannot call hover while not dragging."),(0,f.default)(!o.didDrop(),"Cannot call hover after drop.")
;for(var s=0;s<i.length;s++){var u=i[s];(0,f.default)(i.lastIndexOf(u)===s,"Expected targetIds to be unique in the passed array.");var c=a.getTarget(u);(0,f.default)(c,"Expected targetIds to be registered.")}for(var l=o.getItemType(),h=i.length-1;h>=0;h--){var d=i[h],g=a.getTargetType(d);(0,y.default)(g,l)||i.splice(h,1)}for(var v=0;v<i.length;v++){var m=i[v];a.getTarget(m).hover(o,m)}return{type:w,targetIds:i,clientOffset:r}}function s(){
var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getMonitor(),r=this.getRegistry();(0,f.default)(n.isDragging(),"Cannot call drop while not dragging."),(0,f.default)(!n.didDrop(),"Cannot call drop twice during one drag operation.");var i=n.getTargetIds().filter(n.canDropOnTarget,n);i.reverse(),i.forEach(function(i,o){var a=r.getTarget(i),s=a.drop(n,i);(0,f.default)(void 0===s||(0,g.default)(s),"Drop result must either be an object or undefined."),
void 0===s&&(s=0===o?{}:n.getDropResult()),t.store.dispatch({type:_,dropResult:c({},e,s)})})}function u(){var t=this.getMonitor(),e=this.getRegistry();(0,f.default)(t.isDragging(),"Cannot call endDrag while not dragging.");var n=t.getSourceId();return e.getSource(n,!0).endDrag(t,n),e.unpinSource(),{type:x}}Object.defineProperty(e,"__esModule",{value:!0}),e.END_DRAG=e.DROP=e.HOVER=e.PUBLISH_DRAG_SOURCE=e.BEGIN_DRAG=void 0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){
var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.beginDrag=i,e.publishDragSource=o,e.hover=a,e.drop=s,e.endDrag=u;var l=n(183),f=r(l),h=n(405),p=r(h),d=n(577),g=r(d),v=n(1572),y=r(v),m=e.BEGIN_DRAG="dnd-core/BEGIN_DRAG",b=e.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",w=e.HOVER="dnd-core/HOVER",_=e.DROP="dnd-core/DROP",x=e.END_DRAG="dnd-core/END_DRAG"},function(t,e,n){var r=n(723),i=r(Object,"create");t.exports=i},function(t,e,n){
function r(t,e){var n=o(t,e);return i(n)?n:void 0}var i=n(3819),o=n(3823);t.exports=r},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}var i=n(1016);t.exports=r},function(t,e,n){function r(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}var i=n(3836);t.exports=r},function(t,e,n){function r(t){return o(t)&&i(t)}var i=n(1022),o=n(526);t.exports=r},function(t,e,n){"use strict";function r(t){return{type:s,sourceId:t}}
function i(t){return{type:u,targetId:t}}function o(t){return{type:c,sourceId:t}}function a(t){return{type:l,targetId:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.addSource=r,e.addTarget=i,e.removeSource=o,e.removeTarget=a;var s=e.ADD_SOURCE="dnd-core/ADD_SOURCE",u=e.ADD_TARGET="dnd-core/ADD_TARGET",c=e.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",l=e.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},function(t,e,n){"use strict";function r(t,e){}Object.defineProperty(e,"__esModule",{value:!0}),
e.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!1},function(t,e,n){var r=n(1817),i=n(1096);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){"use strict";var r=n(1099),i={};i[n(168)("toStringTag")]="z",
i+""!="[object z]"&&n(416)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(168)("unscopables"),i=Array.prototype;void 0==i[r]&&n(343)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return n.setDate(1),n.setHours(0,0,0,0),n}e.a=r;var i=n(23)
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(o.a)(t,e),r=n.getUTCFullYear(),s=e||{},u=s.locale,c=u&&u.options&&u.options.firstWeekContainsDate,l=null==c?1:Object(i.a)(c),f=null==s.firstWeekContainsDate?l:Object(i.a)(s.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")
;var h=new Date(0);h.setUTCFullYear(r+1,0,f),h.setUTCHours(0,0,0,0);var p=Object(a.a)(h,e),d=new Date(0);d.setUTCFullYear(r,0,f),d.setUTCHours(0,0,0,0);var g=Object(a.a)(d,e);return n.getTime()>=p.getTime()?r+1:n.getTime()>=g.getTime()?r:r-1}e.a=r;var i=n(44),o=n(23),a=n(615)},,,,,,,,function(t,e,n){"use strict";function r(t,e){this.helpers=t||{},this.partials=e||{},i(this)}function i(t){t.registerHelper("helperMissing",function(t){if(2!==arguments.length)throw new s("Missing helper: '"+t+"'")
}),t.registerHelper("blockHelperMissing",function(e,n){var r=n.inverse||function(){},i=n.fn;return l(e)&&(e=e.call(this)),!0===e?i(this):!1===e||null==e?r(this):c(e)?e.length>0?t.helpers.each(e,n):r(this):i(e)}),t.registerHelper("each",function(t,e){var n,r=e.fn,i=e.inverse,o=0,a="";if(l(t)&&(t=t.call(this)),e.data&&(n=p(e.data)),t&&"object"==typeof t)if(c(t))for(var s=t.length;o<s;o++)n&&(n.index=o,n.first=0===o,n.last=o===t.length-1),a+=r(t[o],{data:n
});else for(var u in t)t.hasOwnProperty(u)&&(n&&(n.key=u,n.index=o,n.first=0===o),a+=r(t[u],{data:n}),o++);return 0===o&&(a=i(this)),a}),t.registerHelper("if",function(t,e){return l(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||a.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),t.registerHelper("with",function(t,e){if(l(t)&&(t=t.call(this)),!a.isEmpty(t))return e.fn(t)}),
t.registerHelper("log",function(e,n){var r=n.data&&null!=n.data.level?parseInt(n.data.level,10):1;t.log(r,e)})}function o(t,e){h.log(t,e)}var a=n(814),s=n(815).default;e.VERSION="1.3.0";e.COMPILER_REVISION=4;var u={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};e.REVISION_CHANGES=u;var c=a.isArray,l=a.isFunction,f=a.toString;e.HandlebarsEnvironment=r,r.prototype={constructor:r,logger:h,log:o,registerHelper:function(t,e,n){if("[object Object]"===f.call(t)){
if(n||e)throw new s("Arg not supported with multiple helpers");a.extend(this.helpers,t)}else n&&(e.not=n),this.helpers[t]=e},registerPartial:function(t,e){"[object Object]"===f.call(t)?a.extend(this.partials,t):this.partials[t]=e}};var h={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(t,e){if(h.level<=t){var n=h.methodMap[t];"undefined"!=typeof console&&console[n]&&console[n].call(console,e)}}};e.logger=h,e.log=o;var p=function(t){var e={}
;return a.extend(e,t),e};e.createFrame=p},function(t,e,n){"use strict";function r(t){return u[t]||"&amp;"}function i(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function o(t){return t instanceof s?t.toString():t||0===t?(t=""+t,l.test(t)?t.replace(c,r):t):""}function a(t){return!t&&0!==t||!(!p(t)||0!==t.length)}var s=n(1174).default,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/[&<>"'`]/g,l=/[&<>"'`]/;e.extend=i
;var f=Object.prototype.toString;e.toString=f;var h=function(t){return"function"==typeof t};h(/x/)&&(h=function(t){return"function"==typeof t&&"[object Function]"===f.call(t)});var h;e.isFunction=h;var p=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===f.call(t)};e.isArray=p,e.escapeExpression=o,e.isEmpty=a},function(t,e,n){"use strict";function r(t,e){var n;e&&e.firstLine&&(n=e.firstLine,t+=" - "+n+":"+e.firstColumn)
;for(var r=Error.prototype.constructor.call(this,t),o=0;o<i.length;o++)this[i[o]]=r[i[o]];n&&(this.lineNumber=n,this.column=e.firstColumn)}var i=["description","fileName","lineNumber","message","name","number","stack"];r.prototype=new Error,e.default=r},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n,r,o,a,s,u){if(i(e),!t){var c
;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,s,u],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var i=function(t){};t.exports=r},function(t,e,n){"use strict";function r(t){return function(){return t}}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(t){return t},t.exports=i},,,,function(t,e,n){"use strict";function r(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.a=r},function(t,e,n){var r=n(525),i=r.Symbol;t.exports=i},,,,,,,,,,,function(t,e,n){(function(r){var i,o,a,s=void 0!==t&&t.exports&&void 0!==r?r:this||window;(s._gsQueue||(s._gsQueue=[])).push(function(){
"use strict";s._gsDefine("easing.Back",["easing.Ease"],function(t){var e,n,r,i=s.GreenSockGlobals||s,o=i.com.greensock,a=2*Math.PI,u=Math.PI/2,c=o._class,l=function(e,n){var r=c("easing."+e,function(){},!0),i=r.prototype=new t;return i.constructor=r,i.getRatio=n,r},f=t.register||function(){},h=function(t,e,n,r,i){var o=c("easing."+t,{easeOut:new e,easeIn:new n,easeInOut:new r},!0);return f(o,t),o},p=function(t,e,n){this.t=t,this.v=e,n&&(this.next=n,n.prev=this,this.c=n.v-e,this.gap=n.t-t)
},d=function(e,n){var r=c("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),i=r.prototype=new t;return i.constructor=r,i.getRatio=n,i.config=function(t){return new r(t)},r},g=h("Back",d("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),d("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),d("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)
})),v=c("easing.SlowMo",function(t,e,n){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===n},!0),y=v.prototype=new t;return y.constructor=v,y.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},v.ease=new v(.7,.7),
y.config=v.config=function(t,e,n){return new v(t,e,n)},e=c("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0),y=e.prototype=new t,y.constructor=e,y.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},y.config=e.config=function(t,n){return new e(t,n)},n=c("easing.RoughEase",function(e){e=e||{}
;for(var n,r,i,o,a,s,u=e.taper||"none",c=[],l=0,f=0|(e.points||20),h=f,d=!1!==e.randomize,g=!0===e.clamp,v=e.template instanceof t?e.template:null,y="number"==typeof e.strength?.4*e.strength:.4;--h>-1;)n=d?Math.random():1/f*h,r=v?v.getRatio(n):n,"none"===u?i=y:"out"===u?(o=1-n,i=o*o*y):"in"===u?i=n*n*y:n<.5?(o=2*n,i=o*o*.5*y):(o=2*(1-n),i=o*o*.5*y),d?r+=Math.random()*i-.5*i:h%2?r+=.5*i:r-=.5*i,g&&(r>1?r=1:r<0&&(r=0)),c[l++]={x:n,y:r};for(c.sort(function(t,e){return t.x-e.x}),s=new p(1,1,null),
h=f;--h>-1;)a=c[h],s=new p(a.x,a.y,s);this._prev=new p(0,0,0!==s.t?s:s.next)},!0),y=n.prototype=new t,y.constructor=n,y.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},y.config=function(t){return new n(t)},n.ease=new n,h("Bounce",l("BounceOut",function(t){
return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=t<.5;return t=e?1-2*t:2*t-1,
t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),h("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),r=function(e,n,r){var i=c("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||r)/(t<1?t:1),
this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),o=i.prototype=new t;return o.constructor=i,o.getRatio=n,o.config=function(t,e){return new i(t,e)},i},h("Elastic",r("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),r("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),r("ElasticInOut",function(t){
return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),h("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),h("Sine",l("SineOut",function(t){return Math.sin(t*u)}),l("SineIn",function(t){return 1-Math.cos(t*u)
}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),c("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),f(i.SlowMo,"SlowMo","ease,"),f(n,"RoughEase","ease,"),f(e,"SteppedEase","ease,"),g},!0)}),s._gsDefine&&s._gsQueue.pop()(),function(){"use strict";var r=function(){return s.GreenSockGlobals||s};void 0!==t&&t.exports?(n(532),t.exports=r()):(o=[n(532)],i=r,void 0!==(a="function"==typeof i?i.apply(e,o):i)&&(t.exports=a))}()}).call(e,n(158))},,function(t,e,n){"use strict"
;function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,r*a,n)}e.a=r;var i=n(44),o=n(511),a=36e5},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear(),o=n.getMonth(),a=new Date(0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}e.a=r
;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,12*r,n)}e.a=r;var i=n(44),o=n(537)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(2404),n(538));n.d(e,"Surface",function(){return r.a});var i=n(113);n.d(e,"Layer",function(){return i.a});var o=n(867);n.d(e,"Legend",function(){return o.a});var a=n(653)
;n.d(e,"Tooltip",function(){return a.a});var s=n(2610);n.d(e,"ResponsiveContainer",function(){return s.a});var u=n(444);n.d(e,"Cell",function(){return u.a});var c=n(381);n.d(e,"Text",function(){return c.a});var l=n(316);n.d(e,"Label",function(){return l.a});var f=n(281);n.d(e,"LabelList",function(){return f.a});var h=n(669);n.d(e,"Sector",function(){return h.a});var p=n(453);n.d(e,"Curve",function(){return p.a});var d=n(452);n.d(e,"Rectangle",function(){return d.a});var g=n(670)
;n.d(e,"Polygon",function(){return g.a});var v=n(383);n.d(e,"Dot",function(){return v.a});var y=n(1366);n.d(e,"Cross",function(){return y.a});var m=n(868);n.d(e,"Symbols",function(){return m.a});var b=n(2756);n.d(e,"PolarGrid",function(){return b.a});var w=n(671);n.d(e,"PolarRadiusAxis",function(){return w.a});var _=n(672);n.d(e,"PolarAngleAxis",function(){return _.a});var x=n(1368);n.d(e,"Pie",function(){return x.a});var O=n(1369);n.d(e,"Radar",function(){return O.a});var T=n(1370)
;n.d(e,"RadialBar",function(){return T.a});var S=n(1371);n.d(e,"Brush",function(){return S.a});var E=n(1363);n.d(e,"ReferenceLine",function(){return E.a});var j=n(1361);n.d(e,"ReferenceDot",function(){return j.a});var k=n(1364);n.d(e,"ReferenceArea",function(){return k.a});var C=n(1374);n.d(e,"CartesianAxis",function(){return C.a});var A=n(2761);n.d(e,"CartesianGrid",function(){return A.a});var P=n(911);n.d(e,"Line",function(){return P.a});var M=n(912);n.d(e,"Area",function(){return M.a})
;var D=n(913);n.d(e,"Bar",function(){return D.a});var I=n(914);n.d(e,"Scatter",function(){return I.a});var N=n(454);n.d(e,"XAxis",function(){return N.a});var R=n(455);n.d(e,"YAxis",function(){return R.a});var L=n(673);n.d(e,"ZAxis",function(){return L.a});var U=n(548);n.d(e,"ErrorBar",function(){return U.a});var F=n(2762);n.d(e,"LineChart",function(){return F.a});var B=n(2772);n.d(e,"BarChart",function(){return B.a});var z=n(2773);n.d(e,"PieChart",function(){return z.a});var q=n(2774)
;n.d(e,"Treemap",function(){return q.a});var H=n(2804);n.d(e,"Sankey",function(){return H.a});var W=n(2807);n.d(e,"RadarChart",function(){return W.a});var V=n(2808);n.d(e,"ScatterChart",function(){return V.a});var Y=n(2809);n.d(e,"AreaChart",function(){return Y.a});var G=n(2810);n.d(e,"RadialBarChart",function(){return G.a});var X=n(2811);n.d(e,"ComposedChart",function(){return X.a});var K=n(1380);n.d(e,"Funnel",function(){return K.a});var $=n(2812);n.d(e,"FunnelChart",function(){return $.a})
;var Q=n(1381);n.d(e,"Trapezoid",function(){return Q.a})},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(639)(function(){
return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){function r(t,e){e=i(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[o(e[n++])];return n&&n==r?t:void 0}var i=n(641),o=n(540);t.exports=r
},function(t,e,n){function r(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(s.test(t)||!a.test(t)||null!=e&&t in Object(e))}var i=n(104),o=n(443),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(2442),o=n(2458),a=n(2460),s=n(2461),u=n(2462);r.prototype.clear=i,r.prototype.delete=o,
r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){var r=n(376),i=n(213),o=r(i,"Map");t.exports=o},function(t,e,n){function r(t){return"number"==typeof t||o(t)&&i(t)==a}var i=n(314),o=n(252),a="[object Number]";t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,
enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){
if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){
return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(82),m=n.n(y),b=n(0),w=n.n(b),_=n(49),x=n.n(_),O=n(60),T=n(2465),S=n(83),E=n(55),j=function(t,e){return w.a.isValidElement(t)?w.a.cloneElement(t,e):m()(t)?t(e):w.a.createElement(T.a,e)},k=E.b.filter(function(t){return"none"!==t}),C=Object(O.a)((v=g=function(t){function e(){var t,n;a(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o]
;return n=c(this,(t=f(e)).call.apply(t,[this].concat(i))),n.state={boxWidth:-1,boxHeight:-1},n}return h(e,t),u(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;return e>=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){
var e,n,r=this.props,o=r.layout,a=r.align,s=r.verticalAlign,u=r.margin,c=r.chartWidth,l=r.chartHeight;if(!t||(void 0===t.left||null===t.left)&&(void 0===t.right||null===t.right))if("center"===a&&"vertical"===o){var f=this.getBBox()||{width:0};e={left:((c||0)-f.width)/2}}else e="right"===a?{right:u&&u.right||0}:{left:u&&u.left||0};if(!t||(void 0===t.top||null===t.top)&&(void 0===t.bottom||null===t.bottom))if("middle"===s){var h=this.getBBox()||{height:0};n={top:((l||0)-h.height)/2}
}else n="bottom"===s?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return i({},e,n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},function(){r&&r(i)})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)
})}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,o=e.height,a=e.wrapperStyle,s=i({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a),a);return w.a.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(e){t.wrapperNode=e}},j(n,this.props))}}],[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&Object(S.h)(t.props.height)?{height:t.props.height}:"horizontal"===n?{
width:t.props.width||e}:null}}]),e}(b.Component),g.displayName="Legend",g.propTypes={content:x.a.oneOfType([x.a.element,x.a.func]),wrapperStyle:x.a.object,chartWidth:x.a.number,chartHeight:x.a.number,width:x.a.number,height:x.a.number,iconSize:x.a.number,iconType:x.a.oneOf(k),layout:x.a.oneOf(["horizontal","vertical"]),align:x.a.oneOf(["center","left","right"]),verticalAlign:x.a.oneOf(["top","bottom","middle"]),margin:x.a.shape({top:x.a.number,left:x.a.number,bottom:x.a.number,right:x.a.number
}),payload:x.a.arrayOf(x.a.shape({value:x.a.any,id:x.a.any,type:x.a.oneOf(E.b)})),formatter:x.a.func,onMouseEnter:x.a.func,onMouseLeave:x.a.func,onClick:x.a.func,onBBoxUpdate:x.a.func},g.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},d=v))||d;e.a=C},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(869),x=n(66),O=n.n(x),T=n(60),S=n(55),E={symbolCircle:_.u,symbolCross:_.v,symbolDiamond:_.w,symbolSquare:_.x,symbolStar:_.y,symbolTriangle:_.z,symbolWye:_.A},j=Math.PI/180,k=function(t){var e="symbol".concat(t.slice(0,1).toUpperCase()).concat(t.slice(1));return E[e]||_.u},C=function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*j
;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},A=Object(T.a)((v=g=function(t){function e(){return a(this,e),c(this,f(e).apply(this,arguments))}return h(e,t),u(e,[{key:"getPath",value:function(){var t=this.props,e=t.size,n=t.sizeType,r=t.type,i=k(r);return Object(_.t)().type(i).size(C(e,n,r))()}},{key:"render",value:function(){
var t=this.props,e=t.className,n=t.cx,r=t.cy,i=t.size;return n===+n&&r===+r&&i===+i?m.a.createElement("path",o({},Object(S.k)(this.props),Object(S.e)(this.props),{className:O()("recharts-symbols",e),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}]),e}(y.Component),g.displayName="Symbols",g.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}({},S.c,{className:w.a.string,type:w.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),cx:w.a.number,cy:w.a.number,size:w.a.number,sizeType:w.a.oneOf(["area","diameter"])}),g.defaultProps={type:"circle",size:64,sizeType:"area"},d=v))||d;e.a=A},function(t,e,n){
"use strict";var r=(n(2466),n(1262));n.d(e,"a",function(){return r.a});var i=n(870);n.d(e,"m",function(){return i.a});var o=(n(2468),n(2471),n(1264),n(1265),n(2472),n(2473));n.d(e,"t",function(){return o.a});var a=n(1267);n.d(e,"u",function(){return a.a});var s=n(1268);n.d(e,"v",function(){return s.a});var u=n(1269);n.d(e,"w",function(){return u.a});var c=n(1271);n.d(e,"x",function(){return c.a});var l=n(1270);n.d(e,"y",function(){return l.a});var f=n(1272);n.d(e,"z",function(){return f.a})
;var h=n(1273);n.d(e,"A",function(){return h.a});var p=n(2474);n.d(e,"c",function(){return p.a});var d=n(2475);n.d(e,"d",function(){return d.a});var g=n(651);n.d(e,"b",function(){return g.b});var v=(n(2476),n(1274),n(1275),n(652),n(2477),n(2478),n(872),n(2479));n.d(e,"f",function(){return v.a});var y=n(649);n.d(e,"e",function(){return y.a});var m=n(2480);n.d(e,"g",function(){return m.a}),n.d(e,"h",function(){return m.b});var b=n(2481);n.d(e,"i",function(){return b.a});var w=n(2482)
;n.d(e,"j",function(){return w.a}),n.d(e,"k",function(){return w.b}),n.d(e,"l",function(){return w.c});var _=n(2483);n.d(e,"n",function(){return _.a});var x=n(2484);n.d(e,"o",function(){return x.a});var O=(n(2485),n(543));n.d(e,"p",function(){return O.a});var T=n(2486);n.d(e,"q",function(){return T.a});var S=n(2487);n.d(e,"r",function(){return S.a});var E=(n(873),n(2488),n(2489),n(544));n.d(e,"s",function(){return E.a});n(2490)},function(t,e,n){"use strict"
;var r=n(541),i=n(377),o=n(649),a=n(871);e.a=function(){function t(t){var i,o,a,f=t.length,h=!1;for(null==u&&(l=c(a=Object(r.a)())),i=0;i<=f;++i)!(i<f&&s(o=t[i],i,t))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&l.point(+e(o,i,t),+n(o,i,t));if(a)return l=null,a+""||null}var e=a.a,n=a.b,s=Object(i.a)(!0),u=null,c=o.a,l=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(i.a)(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),
t):n},t.defined=function(e){return arguments.length?(s="function"==typeof e?e:Object(i.a)(!!e),t):s},t.curve=function(e){return arguments.length?(c=e,null!=u&&(l=c(u)),t):c},t.context=function(e){return arguments.length?(null==e?u=l=null:l=c(u=e),t):u},t}},function(t,e,n){"use strict";function r(t){return t[0]}function i(t){return t[1]}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t,e,n){var r=t._x1,i=t._y1,a=t._x2,s=t._y2;if(t._l01_a>o.f){
var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>o.f){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,a,s,t._x2,t._y2)}function i(t,e){this._context=t,this._alpha=e}e.a=r;var o=n(542),a=n(652);i.prototype={areaStart:function(){
this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){
var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){
return e?new i(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}e.b=r;var i=n(544);e.a=function(t){var e=t.map(r);return Object(i.a)(t).sort(function(t,n){return e[t]-e[n]})}},function(t,e,n){function r(t,e,n,a,s){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!==t&&e!==e:i(t,e,n,a,r,s))}var i=n(2491),o=n(315);t.exports=r},function(t,e,n){
var r=n(378),i=n(277),o=r(i,"Map");t.exports=o},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(2508),o=n(2515),a=n(2517),s=n(2518),u=n(2519);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(t){return a(t)?i(t):o(t)}
var i=n(2533),o=n(2539),a=n(880);t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t){return null!=t&&o(t.length)&&!i(t)}var i=n(1280),o=n(879);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e){if(i(t))return!1;var n=typeof t
;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(s.test(t)||!a.test(t)||null!=e&&t in Object(e))}var i=n(253),o=n(884),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},function(t,e,n){function r(t){return"symbol"==typeof t||o(t)&&i(t)==a}var i=n(379),o=n(315),a="[object Symbol]";t.exports=r},function(t,e,n){function r(t,e,n,a,s){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!==t&&e!==e:i(t,e,n,a,r,s))}var i=n(2624),o=n(252);t.exports=r
},function(t,e,n){function r(t){var e=this.__data__=new i(t);this.size=e.size}var i=n(643),o=n(2625),a=n(2626),s=n(2627),u=n(2628),c=n(2629);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(2638),i=n(1312),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){
return null==t?[]:(t=Object(t),r(s(t),function(e){return a.call(t,e)}))}:i;t.exports=u},function(t,e,n){var r=n(2640),i=n(252),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(t){
var r=n(213),i=n(2641),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i;t.exports=l}).call(e,n(380)(t))},function(t,e){function n(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n
},function(t,e,n){(function(t){var r=n(1260),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=u}).call(e,n(380)(t))},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}var r=Object.prototype;t.exports=n},function(t,e,n){function r(t,e,n,a,s){
var u=-1,c=t.length;for(n||(n=o),s||(s=[]);++u<c;){var l=t[u];e>0&&n(l)?e>1?r(l,e-1,n,a,s):i(s,l):a||(s[s.length]=l)}return s}var i=n(887),o=n(2649);t.exports=r},function(t,e,n){var r=n(1320),i=n(2663),o=i(r);t.exports=o},function(t,e,n){"use strict";var r=n(547);e.a=function(t,e,n){if(null==n&&(n=r.a),i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,o=(i-1)*e,a=Math.floor(o),s=+n(t[a],a,t);return s+(+n(t[a+1],a+1,t)-s)*(o-a)}}},function(t,e,n){"use strict"
;function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)for(;++o<a;)n.set(o,t[o]);else for(;++o<a;)n.set(e(i=t[o],o,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}n.d(e,"b",function(){return o});var o="$";r.prototype=i.prototype={constructor:r,has:function(t){return o+t in this},get:function(t){return this[o+t]},set:function(t,e){return this[o+t]=e,this},remove:function(t){var e=o+t
;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===o&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===o&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===o&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===o&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===o&&++t;return t},empty:function(){for(var t in this)if(t[0]===o)return!1;return!0},
each:function(t){for(var e in this)e[0]===o&&t(this[e],e.slice(1),this)}},e.a=i},function(t,e,n){"use strict";var r=n(900);n.d(e,"a",function(){return r.a});var i=(n(1347),n(903),n(1345),n(1348),n(2704),n(2705),n(666));n.d(e,"b",function(){return i.a});var o=(n(1349),n(2706));n.d(e,"c",function(){return o.a});n(1350),n(2707),n(2710),n(1344),n(2711),n(2712),n(2713),n(2714),n(2715),n(2716)},function(t,e,n){"use strict"
;var r=n(450),i=n(1344),o=n(1347),a=n(1348),s=n(666),u=n(1349),c=n(1350),l=n(1346);e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?s.a:"string"===f?(n=Object(r.a)(e))?(e=n,i.a):c.a:e instanceof r.a?i.a:e instanceof Date?a.a:Array.isArray(e)?o.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(){}function i(t){var e;return t=(t+"").trim().toLowerCase(),
(e=x.exec(t))?(e=parseInt(e[1],16),new c(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=O.exec(t))?o(parseInt(e[1],16)):(e=T.exec(t))?new c(e[1],e[2],e[3],1):(e=S.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=E.exec(t))?a(e[1],e[2],e[3],e[4]):(e=j.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=k.exec(t))?f(e[1],e[2]/100,e[3]/100,1):(e=C.exec(t))?f(e[1],e[2]/100,e[3]/100,e[4]):A.hasOwnProperty(t)?o(A[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function o(t){
return new c(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function s(t){return t instanceof r||(t=i(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function u(t,e,n,r){return 1===arguments.length?s(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function f(t,e,n,r){
return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new d(t,e,n,r)}function h(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new d;if(t instanceof d)return t;t=t.rgb();var e=t.r/255,n=t.g/255,o=t.b/255,a=Math.min(e,n,o),s=Math.max(e,n,o),u=NaN,c=s-a,l=(s+a)/2;return c?(u=e===s?(n-o)/c+6*(n<o):n===s?(o-e)/c+2:(e-n)/c+4,c/=l<.5?s+a:2-s-a,u*=60):c=l>0&&l<1?0:u,new d(u,c,l,t.opacity)}function p(t,e,n,r){
return 1===arguments.length?h(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function g(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return y}),n.d(e,"c",function(){return m}),e.e=i,e.h=s,e.g=u,e.b=c,e.f=p
;var v=n(902),y=.7,m=1/y,b="\\s*([+-]?\\d+)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x=/^#([0-9a-f]{3})$/,O=/^#([0-9a-f]{6})$/,T=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),S=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),E=new RegExp("^rgba\\("+[b,b,b,w]+"\\)$"),j=new RegExp("^rgba\\("+[_,_,_,w]+"\\)$"),k=new RegExp("^hsl\\("+[w,_,_]+"\\)$"),C=new RegExp("^hsla\\("+[w,_,_,w]+"\\)$"),A={aliceblue:15792383,antiquewhite:16444375,aqua:65535,
aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,
darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,
hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,
limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,
palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,
tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(v.a)(r,i,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Object(v.a)(c,u,Object(v.b)(r,{brighter:function(t){return t=null==t?m:Math.pow(m,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){
return t=null==t?y:Math.pow(y,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+l(this.r)+l(this.g)+l(this.b)},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),
(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(v.a)(d,p,Object(v.b)(r,{brighter:function(t){return t=null==t?m:Math.pow(m,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?y:Math.pow(y,t),new d(this.h,this.s,this.l*t,this.opacity)},rgb:function(){
var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new c(g(t>=240?t-240:t+120,i,r),g(t,i,r),g(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}
},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e){
if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";var r=(n(175),n(2733));n.d(e,"c",function(){return r.a}),n.d(e,"n",function(){return r.a});var i=n(2734);n.d(e,"g",function(){return i.a}),n.d(e,"r",function(){return i.a});var o=n(2735);n.d(e,"d",function(){return o.a});var a=n(2736);n.d(e,"b",function(){return a.a});var s=n(2737);n.d(e,"a",function(){return s.a})
;var u=n(2738);n.d(e,"j",function(){return u.b}),n.d(e,"h",function(){return u.b}),n.d(e,"e",function(){return u.a}),n.d(e,"i",function(){return u.c});var c=n(2739);n.d(e,"f",function(){return c.a});var l=n(2740);n.d(e,"k",function(){return l.a});var f=n(2741);n.d(e,"o",function(){return f.a});var h=n(2742);n.d(e,"m",function(){return h.a});var p=n(2743);n.d(e,"l",function(){return p.a});var d=n(2744);n.d(e,"u",function(){return d.b}),n.d(e,"s",function(){return d.b}),n.d(e,"p",function(){
return d.a}),n.d(e,"t",function(){return d.c});var g=n(2745);n.d(e,"q",function(){return g.a});var v=n(2746);n.d(e,"v",function(){return v.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s});var r,i,o,a,s,u=n(1359);!function(t){r=Object(u.a)(t),i=r.format,o=r.parse,a=r.utcFormat,s=r.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],
days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(t,e,n){function r(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var i=n(1323);t.exports=r
},function(t,e,n){function r(t){if(!a(t)||i(t)!=s)return!1;var e=o(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var i=n(314),o=n(910),a=n(252),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=l.call(Object);t.exports=r},function(t,e,n){var r=n(1315),i=r(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){
var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return l(t)||c(t)||u()}function u(){
throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,
"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function d(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var b,w,_,x=n(278),O=n.n(x),T=n(82),S=n.n(T),E=n(199),j=n.n(E),k=n(0),C=n.n(k),A=n(49),P=n.n(A),M=n(214),D=n(66),I=n.n(D),N=n(60),R=n(453),L=n(383),U=n(113),F=n(281),B=n(548),z=n(83),q=n(55),H=n(135),W=Object(N.a)((_=w=function(t){function e(){var t,n;f(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=d(this,(t=v(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!0,totalLength:0},n.id=Object(z.k)("recharts-line-"),
n.cachePrevData=function(t){n.setState({prevPoints:t})},n.pathRef=function(t){n.mainCurve=t},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}return y(e,t),p(e,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentWillReceiveProps",value:function(t){
var e=this.props,n=e.animationId,r=e.points;t.animationId!==n&&this.cachePrevData(r)}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"getStrokeDasharray",value:function(t,e,n){for(var r=n.reduce(function(t,e){return t+e}),i=parseInt(t/r,10),o=t%r,a=e-t,u=[],c=0,l=0;;l+=n[c],++c)if(l+n[c]>o){u=s(n.slice(0,c)).concat([o-l]);break}var f=u.length%2==0?[0,a]:[a]
;return s(this.constructor.repeat(n,i)).concat(s(u),f).map(function(t){return"".concat(t,"px")}).join(", ")}},{key:"renderErrorBar",value:function(){function t(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Object(H.w)(t.payload,e)}}if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,i=e.yAxis,o=e.layout,a=e.children,s=Object(q.h)(a,B.a);return s?s.map(function(e,a){return C.a.cloneElement(e,{key:a,data:n,xAxis:r,yAxis:i,layout:o,
dataPointFormatter:t})}):null}},{key:"renderDots",value:function(t,e){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.dot,s=r.points,u=r.dataKey,c=Object(q.k)(this.props),l=Object(q.k)(a),f=Object(q.e)(a),h=s.map(function(t,e){var r=o({key:"dot-".concat(e),r:3},c,l,f,{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:e,payload:t.payload});return n.constructor.renderDotItem(a,r)}),p={clipPath:t?"url(#clipPath-".concat(e,")"):null}
;return C.a.createElement(U.a,i({className:"recharts-line-dots",key:"dots"},p),h)}},{key:"renderCurveStatically",value:function(t,e,n,r){var a=this.props,s=a.type,u=a.layout,c=a.connectNulls,l=o({},Object(q.k)(this.props),Object(q.e)(this.props),{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r,{type:s,layout:u,connectNulls:c});return C.a.createElement(R.a,i({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){
var n=this,r=this.props,i=r.points,a=r.strokeDasharray,s=r.isAnimationActive,u=r.animationBegin,c=r.animationDuration,l=r.animationEasing,f=r.animationId,h=r.width,p=r.height,d=this.state,g=d.prevPoints,v=d.totalLength;return C.a.createElement(M.a,{begin:u,duration:c,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var s=r.t;if(g){var u=i.map(function(t,e){if(g[e]){
var r=g[e],i=Object(z.f)(r.x,t.x),a=Object(z.f)(r.y,t.y);return o({},t,{x:i(s),y:a(s)})}if(n.animateNewValues){var u=Object(z.f)(2*h,t.x),c=Object(z.f)(p/2,t.y);return o({},t,{x:u(s),y:c(s)})}return o({},t,{x:t.x,y:t.y})});return n.renderCurveStatically(u,t,e)}var c,l=Object(z.f)(0,v),f=l(s);if(a){var d=a.split(/[,\s]+/gim).map(function(t){return parseFloat(t)});c=n.getStrokeDasharray(f,v,d)}else c="".concat(f,"px ").concat(v-f,"px");return n.renderCurveStatically(i,t,e,{strokeDasharray:c})})}
},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!O()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.xAxis,a=t.yAxis,s=t.top,u=t.left,c=t.width,l=t.height,f=t.isAnimationActive,h=t.id;if(e||!r||!r.length)return null
;var p=this.state.isAnimationFinished,d=1===r.length,g=I()("recharts-line",i),v=o&&o.allowDataOverflow||a&&a.allowDataOverflow,y=j()(h)?this.id:h;return C.a.createElement(U.a,{className:g},v?C.a.createElement("defs",null,C.a.createElement("clipPath",{id:"clipPath-".concat(y)},C.a.createElement("rect",{x:u,y:s,width:c,height:l}))):null,!d&&this.renderCurve(v,y),this.renderErrorBar(),(d||n)&&this.renderDots(v,y),(!f||p)&&F.a.renderCallByParent(this.props,r))}}],[{key:"repeat",value:function(t,e){
for(var n=t.length%2!=0?s(t).concat([0]):t,r=[],i=0;i<e;++i)r=s(r).concat(s(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(C.a.isValidElement(t))n=C.a.cloneElement(t,e);else if(S()(t))n=t(e);else{var r=I()("recharts-line-dot",t?t.className:"");n=C.a.createElement(L.a,i({},e,{className:r}))}return n}}]),e}(k.Component),w.displayName="Line",w.propTypes=o({},q.c,q.a,{className:P.a.string,
type:P.a.oneOfType([P.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),P.a.func]),unit:P.a.oneOfType([P.a.string,P.a.number]),name:P.a.oneOfType([P.a.string,P.a.number]),yAxisId:P.a.oneOfType([P.a.string,P.a.number]),xAxisId:P.a.oneOfType([P.a.string,P.a.number]),yAxis:P.a.object,xAxis:P.a.object,legendType:P.a.oneOf(q.b),layout:P.a.oneOf(["horizontal","vertical"]),connectNulls:P.a.bool,
hide:P.a.bool,activeDot:P.a.oneOfType([P.a.object,P.a.element,P.a.func,P.a.bool]),dot:P.a.oneOfType([P.a.object,P.a.element,P.a.func,P.a.bool]),top:P.a.number,left:P.a.number,width:P.a.number,height:P.a.number,points:P.a.arrayOf(P.a.shape({x:P.a.number,y:P.a.number,value:P.a.value})),onAnimationStart:P.a.func,onAnimationEnd:P.a.func,isAnimationActive:P.a.bool,animateNewValues:P.a.bool,animationBegin:P.a.number,animationDuration:P.a.number,
animationEasing:P.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:P.a.number,id:P.a.string}),w.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Object(q.n)(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},w.getComposedData=function(t){
var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,a=t.yAxisTicks,s=t.dataKey,u=t.bandSize,c=t.displayedData,l=t.offset,f=e.layout;return o({points:c.map(function(t,e){var o=Object(H.w)(t,s);return"horizontal"===f?{x:Object(H.l)({axis:n,ticks:i,bandSize:u,entry:t,index:e}),y:j()(o)?null:r.scale(o),value:o,payload:t}:{x:j()(o)?null:n.scale(o),y:Object(H.l)({axis:r,ticks:a,bandSize:u,entry:t,index:e}),value:o,payload:t}}),layout:f},l)},b=_))||b;e.a=W},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){
var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){
return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var g,v,y,m=n(278),b=n.n(m),w=n(648),_=n.n(w),x=n(82),O=n.n(x),T=n(539),S=n.n(T),E=n(199),j=n.n(E),k=n(104),C=n.n(k),A=n(0),P=n.n(A),M=n(49),D=n.n(M),I=n(66),N=n.n(I),R=n(214),L=n(453),U=n(383),F=n(113),B=n(281),z=n(60),q=n(55),H=n(83),W=n(135),V=Object(z.a)((y=v=function(t){function e(){var t,n;s(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l(this,(t=h(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!0},
n.id=Object(H.k)("recharts-area-"),n.cachePrevData=function(t,e){n.setState({prevPoints:t,prevBaseLine:e})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),O()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),O()(t)&&t()},n}return p(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points,i=e.baseLine
;t.animationId!==n&&this.cachePrevData(r,i)}},{key:"renderDots",value:function(){var t=this,e=this.props.isAnimationActive,n=this.state.isAnimationFinished;if(e&&!n)return null;var r=this.props,i=r.dot,a=r.points,s=r.dataKey,u=Object(q.k)(this.props),c=Object(q.k)(i),l=Object(q.e)(i),f=a.map(function(e,n){var r=o({key:"dot-".concat(n),r:3},u,c,l,{dataKey:s,cx:e.x,cy:e.y,index:n,value:e.value,payload:e.payload});return t.constructor.renderDotItem(i,r)});return P.a.createElement(F.a,{
className:"recharts-area-dots"},f)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].x,a=r[r.length-1].x,s=t*Math.abs(o-a),u=Math.max.apply(null,r.map(function(t){return t.y||0}));return Object(H.h)(n)?u=Math.max(n,u):n&&C()(n)&&n.length&&(u=Math.max(Math.max.apply(null,n.map(function(t){return t.y||0})),u)),Object(H.h)(u)?P.a.createElement("rect",{x:o<a?o:o-s,y:0,width:s,height:parseInt(u+(i||1),10)}):null}},{
key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].y,a=r[r.length-1].y,s=t*Math.abs(o-a),u=Math.max.apply(null,r.map(function(t){return t.x||0}));return Object(H.h)(n)?u=Math.max(n,u):n&&C()(n)&&n.length&&(u=Math.max(Math.max.apply(null,n.map(function(t){return t.x||0})),u)),Object(H.h)(u)?P.a.createElement("rect",{x:0,y:o<a?o:o-s,width:u+(i||1),height:parseInt(s,10)}):null}},{key:"renderClipRect",value:function(t){
return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n){var r=this.props,o=r.layout,a=r.type,s=r.stroke,u=r.connectNulls,c=r.isRange;return P.a.createElement(F.a,{clipPath:n?"url(#clipPath-".concat(this.id,")"):null},P.a.createElement(L.a,i({},this.props,{points:t,baseLine:e,stroke:"none",className:"recharts-area-area"})),"none"!==s&&P.a.createElement(L.a,i({},Object(q.k)(this.props),{
className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==s&&c&&P.a.createElement(L.a,i({},Object(q.k)(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t){
var e=this,n=this.props,r=n.points,i=n.baseLine,a=n.isAnimationActive,s=n.animationBegin,u=n.animationDuration,c=n.animationEasing,l=n.animationId,f=n.id,h=this.state,p=h.prevPoints,d=h.prevBaseLine,g=j()(f)?this.id:f;return P.a.createElement(R.a,{begin:s,duration:u,isActive:a,easing:c,from:{t:0},to:{t:1},key:"area-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var a=n.t;if(p){var s,u=r.map(function(t,e){if(p[e]){
var n=p[e],r=Object(H.f)(n.x,t.x),i=Object(H.f)(n.y,t.y);return o({},t,{x:r(a),y:i(a)})}return t});if(Object(H.h)(i)){s=Object(H.f)(d,i)(a)}else if(j()(i)||_()(i)){var c=Object(H.f)(d,0);s=c(a)}else s=i.map(function(t,e){if(d[e]){var n=d[e],r=Object(H.f)(n.x,t.x),i=Object(H.f)(n.y,t.y);return o({},t,{x:r(a),y:i(a)})}return t});return e.renderAreaStatically(u,s,t)}return P.a.createElement(F.a,null,P.a.createElement("defs",null,P.a.createElement("clipPath",{id:"animationClipPath-".concat(g)
},e.renderClipRect(a))),P.a.createElement(F.a,{clipPath:"url(#animationClipPath-".concat(g,")")},e.renderAreaStatically(r,i,t)))})}},{key:"renderArea",value:function(t){var e=this.props,n=e.points,r=e.baseLine,i=e.isAnimationActive,o=this.state,a=o.prevPoints,s=o.prevBaseLine,u=o.totalLength;return i&&n&&n.length&&(!a&&u>0||!b()(a,n)||!b()(s,r))?this.renderAreaWithAnimation(t):this.renderAreaStatically(n,r,t)}},{key:"render",value:function(){
var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.top,a=t.left,s=t.xAxis,u=t.yAxis,c=t.width,l=t.height,f=t.isAnimationActive,h=t.id;if(e||!r||!r.length)return null;var p=this.state.isAnimationFinished,d=1===r.length,g=N()("recharts-area",i),v=s&&s.allowDataOverflow||u&&u.allowDataOverflow,y=j()(h)?this.id:h;return P.a.createElement(F.a,{className:g},v?P.a.createElement("defs",null,P.a.createElement("clipPath",{id:"clipPath-".concat(y)},P.a.createElement("rect",{x:a,y:o,width:c,
height:parseInt(l,10)}))):null,d?null:this.renderArea(v),(n||d)&&this.renderDots(),(!f||p)&&B.a.renderCallByParent(this.props,r))}}]),e}(A.Component),v.displayName="Area",v.propTypes=o({},q.c,q.a,{className:D.a.string,dataKey:D.a.oneOfType([D.a.string,D.a.number,D.a.func]).isRequired,type:D.a.oneOfType([D.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),D.a.func]),
unit:D.a.oneOfType([D.a.string,D.a.number]),name:D.a.oneOfType([D.a.string,D.a.number]),yAxisId:D.a.oneOfType([D.a.string,D.a.number]),xAxisId:D.a.oneOfType([D.a.string,D.a.number]),yAxis:D.a.object,xAxis:D.a.object,stackId:D.a.oneOfType([D.a.number,D.a.string]),legendType:D.a.oneOf(q.b),connectNulls:D.a.bool,activeDot:D.a.oneOfType([D.a.object,D.a.element,D.a.func,D.a.bool]),dot:D.a.oneOfType([D.a.func,D.a.element,D.a.object,D.a.bool]),
label:D.a.oneOfType([D.a.func,D.a.element,D.a.object,D.a.bool]),hide:D.a.bool,layout:D.a.oneOf(["horizontal","vertical"]),baseLine:D.a.oneOfType([D.a.number,D.a.array]),isRange:D.a.bool,points:D.a.arrayOf(D.a.shape({x:D.a.number,y:D.a.number,value:D.a.oneOfType([D.a.number,D.a.array])})),onAnimationStart:D.a.func,onAnimationEnd:D.a.func,animationId:D.a.number,isAnimationActive:D.a.bool,animationBegin:D.a.number,animationDuration:D.a.number,
animationEasing:D.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:D.a.string}),v.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Object(q.n)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},v.getBaseValue=function(t,e,n){var r=t.layout,i=t.baseValue;if(Object(H.h)(i))return i;var o="horizontal"===r?n:e,a=o.scale.domain()
;if("number"===o.type){var s=Math.max(a[0],a[1]),u=Math.min(a[0],a[1]);return"dataMin"===i?u:"dataMax"===i?s:s<0?s:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},v.getComposedData=function(t){var e,n=t.props,r=t.xAxis,i=t.yAxis,a=t.xAxisTicks,s=t.yAxisTicks,u=t.bandSize,c=t.dataKey,l=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=n.layout,g=l&&l.length,v=V.getBaseValue(n,r,i),y=!1,m=h.map(function(t,e){var n
;return g?n=l[f+e]:(n=Object(W.w)(t,c),C()(n)?y=!0:n=[v,n]),"horizontal"===d?{x:Object(W.l)({axis:r,ticks:a,bandSize:u,entry:t,index:e}),y:j()(n[1])?null:i.scale(n[1]),value:n,payload:t}:{x:j()(n[1])?null:r.scale(n[1]),y:Object(W.l)({axis:i,ticks:s,bandSize:u,entry:t,index:e}),value:n,payload:t}});return e=g||y?m.map(function(t){return"horizontal"===d?{x:t.x,y:j()(S()(t,"value[0]"))?null:i.scale(S()(t,"value[0]"))}:{x:j()(S()(t,"value[0]"))?null:r.scale(S()(t,"value[0]")),y:t.y}
}):"horizontal"===d?i.scale(v):r.scale(v),o({points:m,baseLine:e,layout:d,isRange:y},p)},v.renderDotItem=function(t,e){return P.a.isValidElement(t)?P.a.cloneElement(t,e):O()(t)?t(e):P.a.createElement(U.a,i({},e,{className:"recharts-area-dot"}))},g=y))||g;e.a=V},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(null==t)return{};var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function a(){
return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){
u(t,e,n[e])})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function h(t,e){
return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,
writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y,m,b,w=n(199),_=n.n(w),x=n(278),O=n.n(x),T=n(82),S=n.n(T),E=n(104),j=n.n(E),k=n(0),C=n.n(k),A=n(49),P=n.n(A),M=n(66),D=n.n(M),I=n(214),N=n(452),R=n(113),L=n(548),U=n(444),F=n(281),B=n(60),z=n(83),q=n(55),H=n(135),W=Object(B.a)((b=m=function(t){function e(){var t,n;c(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o]
;return n=h(this,(t=d(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!1},n.id=Object(z.k)("recharts-bar-"),n.cachePrevData=function(t){n.setState({prevData:t})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}return g(e,t),f(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.data
;t.animationId!==n&&this.cachePrevData(r)}},{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props.shape,r=Object(q.k)(this.props);return t&&t.map(function(t,i){var o=s({},r,t,{index:i});return C.a.createElement(R.a,a({className:"recharts-bar-rectangle"},Object(q.f)(e.props,t,i),{key:"rectangle-".concat(i)}),e.constructor.renderRectangle(n,o))})}},{key:"renderRectanglesWithAnimation",value:function(){
var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,l=this.state.prevData;return C.a.createElement(I.a,{begin:o,duration:a,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var i=e.t,o=n.map(function(t,e){var n=l&&l[e];if(n){
var o=Object(z.f)(n.x,t.x),a=Object(z.f)(n.y,t.y),u=Object(z.f)(n.width,t.width),c=Object(z.f)(n.height,t.height);return s({},t,{x:o(i),y:a(i),width:u(i),height:c(i)})}if("horizontal"===r){var f=Object(z.f)(0,t.height),h=f(i);return s({},t,{y:t.y+t.height-h,height:h})}return s({},t,{width:Object(z.f)(0,t.width)(i)})});return C.a.createElement(R.a,null,t.renderRectanglesStatically(o))})}},{key:"renderRectangles",value:function(){
var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&O()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props.data,n=Object(q.k)(this.props.background);return e.map(function(e,r){var o=(e.value,e.background),a=i(e,["value","background"]);if(!o)return null;var u=s({},a,{fill:"#eee"},o,n,Object(q.f)(t.props,e,r),{index:r,key:"background-bar-".concat(r),
className:"recharts-bar-background-rectangle"});return t.constructor.renderRectangle(t.props.background,u)})}},{key:"renderErrorBar",value:function(){function t(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Object(H.w)(t,e)}}if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.data,r=e.xAxis,i=e.yAxis,o=e.layout,a=e.children,s=Object(q.h)(a,L.a);if(!s)return null;var u="vertical"===o?n[0].height/2:n[0].width/2;return s.map(function(e,a){
return C.a.cloneElement(e,{key:"error-bar-".concat(a),data:n,xAxis:r,yAxis:i,layout:o,offset:u,dataPointFormatter:t})})}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,o=t.yAxis,a=t.left,s=t.top,u=t.width,c=t.height,l=t.isAnimationActive,f=t.background,h=t.id;if(e||!n||!n.length)return null;var p=this.state.isAnimationFinished,d=D()("recharts-bar",r),g=i&&i.allowDataOverflow||o&&o.allowDataOverflow,v=_()(h)?this.id:h;return C.a.createElement(R.a,{
className:d},g?C.a.createElement("defs",null,C.a.createElement("clipPath",{id:"clipPath-".concat(v)},C.a.createElement("rect",{x:a,y:s,width:u,height:c}))):null,C.a.createElement(R.a,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(v,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!l||p)&&F.a.renderCallByParent(this.props,n))}}],[{key:"renderRectangle",value:function(t,e){
return C.a.isValidElement(t)?C.a.cloneElement(t,e):S()(t)?t(e):C.a.createElement(N.a,e)}}]),e}(k.Component),m.displayName="Bar",m.propTypes=s({},q.c,q.a,{className:P.a.string,layout:P.a.oneOf(["vertical","horizontal"]),xAxisId:P.a.oneOfType([P.a.number,P.a.string]),yAxisId:P.a.oneOfType([P.a.number,P.a.string]),yAxis:P.a.object,xAxis:P.a.object,stackId:P.a.oneOfType([P.a.number,P.a.string]),barSize:P.a.number,unit:P.a.oneOfType([P.a.string,P.a.number]),
name:P.a.oneOfType([P.a.string,P.a.number]),dataKey:P.a.oneOfType([P.a.string,P.a.number,P.a.func]).isRequired,legendType:P.a.oneOf(q.b),minPointSize:P.a.number,maxBarSize:P.a.number,hide:P.a.bool,shape:P.a.oneOfType([P.a.func,P.a.element]),data:P.a.arrayOf(P.a.shape({x:P.a.number,y:P.a.number,width:P.a.number,height:P.a.number,radius:P.a.oneOfType([P.a.number,P.a.array]),value:P.a.oneOfType([P.a.number,P.a.string,P.a.array])})),onAnimationStart:P.a.func,onAnimationEnd:P.a.func,
animationId:P.a.number,isAnimationActive:P.a.bool,animationBegin:P.a.number,animationDuration:P.a.number,animationEasing:P.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:P.a.string}),m.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Object(q.n)(),animationBegin:0,animationDuration:400,animationEasing:"ease",onAnimationStart:function(){},onAnimationEnd:function(){}},m.getComposedData=function(t){
var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=Object(H.f)(r,n);if(!d)return[];var g=e.layout,v=n.props,y=v.dataKey,m=v.children,b=v.minPointSize,w="horizontal"===g?a:o,_=l?w.scale.domain():null,x=Object(H.j)({props:e,numericAxis:w}),O=Object(q.h)(m,U.a);return s({data:h.map(function(t,e){var n,r,h,p,v,m;if(l?n=Object(H.D)(l[f+e],_):(n=Object(H.w)(t,y),j()(n)||(n=[x,n])),
"horizontal"===g){if(r=Object(H.k)({axis:o,ticks:u,bandSize:i,offset:d.offset,entry:t,index:e}),h=a.scale(n[1]),p=d.size,v=a.scale(n[0])-a.scale(n[1]),m={x:r,y:a.y,width:p,height:a.height},Math.abs(b)>0&&Math.abs(v)<Math.abs(b)){var w=Object(z.j)(v||b)*(Math.abs(b)-Math.abs(v));h-=w,v+=w}}else if(r=o.scale(n[0]),h=Object(H.k)({axis:a,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=o.scale(n[1])-o.scale(n[0]),v=d.size,m={x:o.x,y:h,width:o.width,height:v},
Math.abs(b)>0&&Math.abs(p)<Math.abs(b)){var T=Object(z.j)(p||b)*(Math.abs(b)-Math.abs(p));p+=T}return s({},t,{x:r,y:h,width:p,height:v,value:l?n:n[1],payload:t,background:m},O&&O[e]&&O[e].props)}),layout:g},p)},y=b))||y;e.a=W},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){
return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){
a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){
return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,
writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g,v,y,m=n(278),b=n.n(m),w=n(82),_=n.n(w),x=n(199),O=n.n(x),T=n(0),S=n.n(T),E=n(49),j=n.n(E),k=n(214),C=n(66),A=n.n(C),P=n(60),M=n(113),D=n(281),I=n(55),N=n(673),R=n(453),L=n(868),U=n(548),F=n(444),B=n(83),z=n(135),q=Object(P.a)((y=v=function(t){function e(){var t,n;s(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o]
;return n=l(this,(t=h(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!1},n.cachePrevPoints=function(t){n.setState({prevPoints:t})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0})},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1})},n.id=Object(B.k)("recharts-scatter-"),n}return p(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points;t.animationId!==n&&this.cachePrevPoints(r)}},{
key:"renderSymbolsStatically",value:function(t){var e=this,n=this.props,r=n.shape,a=n.activeShape,s=n.activeIndex,u=Object(I.k)(this.props);return t.map(function(t,n){var c=o({key:"symbol-".concat(n)},u,t);return S.a.createElement(M.a,i({className:"recharts-scatter-symbol"},Object(I.f)(e.props,t,n),{key:"symbol-".concat(n)}),e.constructor.renderSymbolItem(s===n?a:r,c))})}},{key:"renderSymbolsWithAnimation",value:function(){
var t=this,e=this.props,n=e.points,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,s=e.animationEasing,u=e.animationId,c=this.state.prevPoints;return S.a.createElement(k.a,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var r=e.t,i=n.map(function(t,e){var n=c&&c[e];if(n){var i=Object(B.f)(n.cx,t.cx),a=Object(B.f)(n.cy,t.cy),s=Object(B.f)(n.size,t.size)
;return o({},t,{cx:i(r),cy:a(r),size:s(r)})}return o({},t,{size:Object(B.f)(0,t.size)(r)})});return S.a.createElement(M.a,null,t.renderSymbolsStatically(i))})}},{key:"renderSymbols",value:function(){var t=this.props,e=t.points,n=t.isAnimationActive,r=this.state.prevPoints;return!(n&&e&&e.length)||r&&b()(r,e)?this.renderSymbolsStatically(e):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){function t(t,e){return{x:t.cx,y:t.cy,value:t.y,errorVal:Object(z.w)(t,e)}}
function e(t,e){return{x:t.cx,y:t.cy,value:t.x,errorVal:Object(z.w)(t,e)}}if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,a=n.children,s=Object(I.h)(a,U.a);return s?s.map(function(n,a){var s=n.props.direction;return S.a.cloneElement(n,{key:a,data:r,xAxis:i,yAxis:o,layout:"x"===s?"vertical":"horizontal",dataPointFormatter:"x"===s?e:t})}):null}},{key:"renderLine",value:function(){
var t,e,n=this.props,r=n.points,a=n.line,s=n.lineType,u=n.lineJointType,c=Object(I.k)(this.props),l=Object(I.k)(a);if("joint"===s)t=r.map(function(t){return{x:t.cx,y:t.cy}});else if("fitting"===s){var f=Object(B.c)(r),h=f.xmin,p=f.xmax,d=f.a,g=f.b,v=function(t){return d*t+g};t=[{x:h,y:v(h)},{x:p,y:v(p)}]}var y=o({},c,{fill:"none",stroke:c&&c.fill},l,{points:t});return e=S.a.isValidElement(a)?S.a.cloneElement(a,y):_()(a)?a(y):S.a.createElement(R.a,i({},y,{type:u})),S.a.createElement(M.a,{
className:"recharts-scatter-line",key:"recharts-scatter-line"},e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.points,r=t.line,i=t.className,o=t.xAxis,a=t.yAxis,s=t.left,u=t.top,c=t.width,l=t.height,f=t.id;if(e||!n||!n.length)return null;var h=this.state,p=h.isAnimationActive,d=h.isAnimationFinished,g=A()("recharts-scatter",i),v=o&&o.allowDataOverflow||a&&a.allowDataOverflow,y=O()(f)?this.id:f;return S.a.createElement(M.a,{className:g,
clipPath:v?"url(#clipPath-".concat(y,")"):null},v?S.a.createElement("defs",null,S.a.createElement("clipPath",{id:"clipPath-".concat(y)},S.a.createElement("rect",{x:s,y:u,width:c,height:l}))):null,r&&this.renderLine(),this.renderErrorBar(),S.a.createElement(M.a,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||d)&&D.a.renderCallByParent(this.props,n))}}],[{key:"renderSymbolItem",value:function(t,e){
return S.a.isValidElement(t)?S.a.cloneElement(t,e):_()(t)?t(e):S.a.createElement(L.a,i({},e,{type:t}))}}]),e}(T.Component),v.displayName="Scatter",v.propTypes=o({},I.a,I.c,{xAxisId:j.a.oneOfType([j.a.string,j.a.number]),yAxisId:j.a.oneOfType([j.a.string,j.a.number]),zAxisId:j.a.oneOfType([j.a.string,j.a.number]),line:j.a.oneOfType([j.a.bool,j.a.object,j.a.func,j.a.element]),lineType:j.a.oneOf(["fitting","joint"]),
lineJointType:j.a.oneOfType([j.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),j.a.func]),legendType:j.a.oneOf(I.b),className:j.a.string,name:j.a.oneOfType([j.a.string,j.a.number]),activeIndex:j.a.number,activeShape:j.a.oneOfType([j.a.object,j.a.func,j.a.element]),shape:j.a.oneOfType([j.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),j.a.element,j.a.func]),
points:j.a.arrayOf(j.a.shape({cx:j.a.number,cy:j.a.number,size:j.a.number,node:j.a.shape({x:j.a.oneOfType([j.a.number,j.a.string]),y:j.a.oneOfType([j.a.number,j.a.string]),z:j.a.oneOfType([j.a.number,j.a.string])}),payload:j.a.any})),hide:j.a.bool,isAnimationActive:j.a.bool,animationId:j.a.number,animationBegin:j.a.number,animationDuration:j.a.number,animationEasing:j.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),v.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,
legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Object(I.n)(),animationBegin:0,animationDuration:400,animationEasing:"linear"},v.getComposedData=function(t){
var e=t.xAxis,n=t.yAxis,r=t.zAxis,i=t.item,a=t.displayedData,s=t.onItemMouseLeave,u=t.onItemMouseEnter,c=t.offset,l=t.xAxisTicks,f=Object(I.h)(i.props.children,F.a),h=O()(e.dataKey)?i.props.dataKey:e.dataKey,p=O()(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,g=r?r.range:N.a.defaultProps.range,v=g&&g[0],y=e.scale.bandwidth?e.scale.bandwidth():0,m=n.scale.bandwidth?n.scale.bandwidth():0;return o({onMouseLeave:s,onMouseEnter:u,points:a.map(function(t,i){
var a=t[h],s=t[p],u=!O()(d)&&t[d]||"-",c=[{name:e.name||e.dataKey,unit:e.unit||"",value:a,payload:t},{name:n.name||n.dataKey,unit:n.unit||"",value:s,payload:t}];"-"!==u&&c.push({name:r.name||r.dataKey,unit:r.unit||"",value:u,payload:t});var g=Object(z.l)({axis:e,ticks:l,bandSize:y,entry:t,index:i}),b=Object(z.l)({axis:n,ticks:l,bandSize:m,entry:t,index:i}),w="-"!==u?r.scale(u):v,_=Math.sqrt(Math.max(w,0)/Math.PI);return o({},t,{cx:g,cy:b,x:g-_,y:b-_,xAxis:e,yAxis:n,zAxis:r,width:2*_,height:2*_,
size:w,node:{x:a,y:s,z:u},tooltipPayload:c,tooltipPosition:{x:g,y:b},payload:t},f&&f[i]&&f[i].props)})},c)},g=y))||g;e.a=q},function(t,e,n){function r(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}var i=n(1309);t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n)
;return r.getTime()>o.getTime()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()<o.getTime()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n,r){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var g=String(t),v=String(e),m=r||{},b=m.locale||l.a
;if(!b.match)throw new RangeError("locale must contain match property");var w=b.options&&b.options.firstWeekContainsDate,_=null==w?1:Object(a.a)(w),x=null==m.firstWeekContainsDate?_:Object(a.a)(m.firstWeekContainsDate);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=b.options&&b.options.weekStartsOn,T=null==O?0:Object(a.a)(O),S=null==m.weekStartsOn?T:Object(a.a)(m.weekStartsOn)
;if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===v)return""===g?Object(u.a)(n,m):new Date(NaN);var E,j={firstWeekContainsDate:x,weekStartsOn:S,locale:b},k=[{priority:p,set:i,index:0}],C=v.match(d);for(E=0;E<C.length;E++){var A=C[E];!m.awareOfUnicodeTokens&&Object(h.a)(A)&&Object(h.b)(A);var P=A[0],M=f.a[P];if(M){var D=M.parse(g,A,b.match,j);if(!D)return new Date(NaN);k.push({priority:M.priority,set:M.set,validate:M.validate,value:D.value,
index:k.length}),g=D.rest}else{if("''"===A?A="'":"'"===P&&(A=o(A)),0!==g.indexOf(A))return new Date(NaN);g=g.slice(A.length)}}if(g.length>0&&y.test(g))return new Date(NaN);var I=k.map(function(t){return t.priority}).sort(function(t,e){return e-t}).filter(function(t,e,n){return n.indexOf(t)===e}).map(function(t){return k.filter(function(e){return e.priority===t}).reverse()}).map(function(t){return t[0]}),N=Object(u.a)(n,m);if(isNaN(N))return new Date(NaN);var R=Object(c.a)(N,Object(s.a)(N))
;for(E=0;E<I.length;E++){var L=I[E];if(L.validate&&!L.validate(R,L.value,j))return new Date(NaN);R=L.set(R,L.value,j)}return R}function i(t){var e=new Date(0);return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}function o(t){return t.match(g)[1].replace(v,"'")}e.a=r
;var a=n(44),s=n(269),u=n(23),c=n(616),l=n(510),f=n(3124),h=n(1162),p=20,d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/^'(.*?)'?$/,v=/''/g,y=/\S/},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,r*a,n)}e.a=r;var i=n(44),o=n(511),a=6e4},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r;var i=n(328)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getMinutes()}e.a=r;var i=n(23)},,,,,,,,,,,,,function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}var i=n(1575),o=n(3840),a=n(3841);r.prototype.add=r.prototype.push=o,r.prototype.has=a,t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t,e){
return!!(null==t?0:t.length)&&i(t,e,0)>-1}var i=n(3842);t.exports=r},function(t,e){function n(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e){function n(t,e){return t.has(e)}t.exports=n},function(t,e,n){function r(t){
return null!=t&&o(t.length)&&!i(t)}var i=n(1576),o=n(1578);t.exports=r},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0
},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,o=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function u(c,l,f){if("string"!=typeof l){if(s){var h=a(l);h&&h!==s&&u(c,h,f)}var p=r(l);i&&(p=p.concat(i(l)));for(var d=0;d<p.length;++d){var g=p[d];if(!(t[g]||e[g]||f&&f[g])){var v=o(l,g);try{n(c,g,v)}catch(t){}}}return c}return c}})},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0
;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o+=1){if(!i.call(e,n[o])||t[n[o]]!==e[n[o]])return!1;if(t[n[o]]!==e[n[o]])return!1}return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t){return Boolean(t&&"function"==typeof t.dispose)}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})
;e.FILE="__NATIVE_FILE__",e.URL="__NATIVE_URL__",e.TEXT="__NATIVE_TEXT__"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return n.setMinutes(0,0,0),n}e.a=r;var i=n(23)},,function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t===e)return!1;var r=Object.keys(t),o=Object.keys(e)
;if(r.length!==o.length)return!0;var a={},s=void 0,u=void 0;for(s=0,u=n.length;s<u;s++)a[n[s]]=!0;for(s=0,u=r.length;s<u;s++){var c=r[s],l=t[c],f=e[c];if(l!==f){if(!a[c]||null===l||null===f||"object"!==(void 0===l?"undefined":i(l))||"object"!==(void 0===f?"undefined":i(f)))return!0;var h=Object.keys(l),p=Object.keys(f);if(h.length!==p.length)return!0;for(var d=0,g=h.length;d<g;d++){var v=h[d];if(l[v]!==f[v])return!0}}}return!1}Object.defineProperty(e,"__esModule",{value:!0})
;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=r},,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),s=Object(i.a)(e,n),u=Object(a.a)(r,s,n),c=Math.abs(Object(o.a)(r,s,n))
;r.setDate(r.getDate()-u*c);var l=Object(a.a)(r,s,n)===-u,f=u*(c-l);return 0===f?0:f}e.a=r;var i=n(23),o=n(497),a=n(413)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return n.setHours(23,59,59,999),n}e.a=r;var i=n(23)},,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(5107),i=window.Raven,o=new r;o.noConflict=function(){return window.Raven=i,o},o.afterLoad(),t.exports=o
},function(t,e,n){var r=n(298),i=n(195).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(298);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){
if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(595)("meta"),i=n(298),o=n(341),a=n(344).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(594)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!u(t))return!0
;if(!e)return!1;l(t)}return t[r].w},p=function(t){return c&&d.NEED&&u(t)&&!o(t,r)&&l(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:p}},function(t,e,n){var r=n(195),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(1094),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}
},function(t,e,n){var r=n(1092)("keys"),i=n(595);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(297),i=n(5151),o=n(1096),a=n(1095)("IE_PROTO"),s=function(){},u=function(){var t,e=n(1088)("iframe"),r=o.length;for(e.style.display="none",n(1822).appendChild(e),e.src="javascript:",
t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(597),i=n(168)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s
;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){"use strict";var r=n(5164)(!0);n(1101)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict"
;var r=n(769),i=n(415),o=n(416),a=n(343),s=n(341),u=n(598),c=n(5165),l=n(596),f=n(5166),h=n(168)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,g,v,y,m){c(n,e,g);var b,w,_,x=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}
},O=e+" Iterator",T="values"==v,S=!1,E=t.prototype,j=E[h]||E["@@iterator"]||v&&E[v],k=j||x(v),C=v?T?x("entries"):k:void 0,A="Array"==e?E.entries||j:j;if(A&&(_=f(A.call(new t)))!==Object.prototype&&(l(_,O,!0),r||s(_,h)||a(_,h,d)),T&&j&&"values"!==j.name&&(S=!0,k=function(){return j.call(this)}),r&&!m||!p&&!S&&E[h]||a(E,h,k),u[e]=k,u[O]=d,v)if(b={values:T?k:x("values"),keys:y?k:x("keys"),entries:C},m)for(w in b)w in E||o(E,w,b[w]);else i(i.P+i.F*(p||S),e,b);return b}},function(t,e,n){
for(var r=n(5167),i=n(416),o=n(195),a=n(343),s=n(598),u=n(168),c=u("iterator"),l=u("toStringTag"),f=s.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;p<5;p++){var d,g=h[p],v=o[g],y=v&&v.prototype;if(y){y[c]||a(y,c,f),y[l]||a(y,l,g),s[g]=f;for(d in r)y[d]||i(y,d,r[d],!0)}}},function(t,e,n){var r=n(416);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e){t.exports=function(t,e,n,r){
if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(417),i=n(5169),o=n(5170),a=n(297),s=n(1093),u=n(5171),c={},l={},e=t.exports=function(t,e,n,f,h){var p,d,g,v,y=h?function(){return t}:u(t),m=r(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(p=s(t.length);p>b;b++)if((v=e?m(a(d=t[b])[0],d[1]):m(t[b]))===c||v===l)return v
}else for(g=y.call(t);!(d=g.next()).done;)if((v=i(g,m,d.value,e))===c||v===l)return v};e.BREAK=c,e.RETURN=l},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),s=Object(i.a)(e,n),u=Object(a.a)(r,s,n),c=Math.abs(Object(o.a)(r,s,n));r.setMonth(r.getMonth()-u*c);var l=Object(a.a)(r,s,n)===-u,f=u*(c-l);return 0===f?0:f}e.a=r;var i=n(23),o=n(1838),a=n(413)},function(t,e,n){
"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,e,n)/1e3;return r>0?Math.floor(r):Math.ceil(r)}e.a=r;var i=n(588)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=e||{},r=n.locale,c=r&&r.options&&r.options.weekStartsOn,l=null==c?0:Object(o.a)(c),f=null==n.weekStartsOn?l:Object(o.a)(n.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=t||{},p=Object(i.a)(h.start,e),d=Object(i.a)(h.end,e),g=d.getTime();if(!(p.getTime()<=g))throw new RangeError("Invalid interval");for(var v=Object(a.a)(h),y=[],m=0;m++<v.length;){var b=v[m];Object(u.a)(b)&&(y.push(new Date(b)),Object(s.a)(b)&&(m+=5))}return y}
e.a=r;var i=n(23),o=n(44),a=n(1843),s=n(1844),u=n(1845)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=Object(i.a)(t,e),r=new Date(0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,s=r&&r.options&&r.options.firstWeekContainsDate,u=null==s?1:Object(i.a)(s),c=null==n.firstWeekContainsDate?u:Object(i.a)(n.firstWeekContainsDate),l=Object(o.a)(t,e),f=new Date(0);return f.setFullYear(l,0,c),
f.setHours(0,0,0,0),Object(a.a)(f,e)}e.a=r;var i=n(44),o=n(1852),a=n(328)},function(t,e,n){"use strict";var r,i=n(264),o=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=function(){var t;r.prototype.init.call(this),this.push=function(e){var n,r,i,a,s,u,c=0,l=0;if("audio"===e.type)for(t?(a=t,t=new Uint8Array(a.byteLength+e.data.byteLength),t.set(a),t.set(e.data,a.byteLength)):t=e.data;c+5<t.length;)if(255===t[c]&&240==(246&t[c+1])){if(r=2*(1&~t[c+1]),
n=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,s=1024*(1+(3&t[c+6])),u=9e4*s/o[(60&t[c+2])>>>2],i=c+n,t.byteLength<i)return;if(this.trigger("data",{pts:e.pts+l*u,dts:e.dts+l*u,sampleCount:s,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:o[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+r,i)}),t.byteLength===i)return void(t=void 0);l++,t=t.subarray(i)}else c++},this.flush=function(){this.trigger("done")}},
r.prototype=new i,t.exports=r},function(t,e,n){"use strict";var r,i,o,a=n(264),s=n(5261);i=function(){var t,e,n=0;i.prototype.init.call(this),this.push=function(r){var i;for(e?(i=new Uint8Array(e.byteLength+r.data.byteLength),i.set(e),i.set(r.data,e.byteLength),e=i):e=r.data;n<e.byteLength-3;n++)if(1===e[n+2]){t=n+5;break}for(;t<e.byteLength;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));do{t++
}while(1!==e[t]&&t<e.length);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3}e=e.subarray(n),t-=n,n=0},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")}},i.prototype=new a,o={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},r=function(){var t,e,n,a,u,c,l,f=new i;r.prototype.init.call(this),t=this,this.push=function(t){
"video"===t.type&&(e=t.trackId,n=t.pts,a=t.dts,f.push(t))},f.on("data",function(r){var i={trackId:e,pts:n,dts:a,data:r};switch(31&r[0]){case 5:i.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:i.nalUnitType="sei_rbsp",i.escapedRBSP=u(r.subarray(1));break;case 7:i.nalUnitType="seq_parameter_set_rbsp",i.escapedRBSP=u(r.subarray(1)),i.config=c(i.escapedRBSP);break;case 8:i.nalUnitType="pic_parameter_set_rbsp";break;case 9:i.nalUnitType="access_unit_delimiter_rbsp"}
t.trigger("data",i)}),f.on("done",function(){t.trigger("done")}),this.flush=function(){f.flush()},l=function(t,e){var n,r,i=8,o=8;for(n=0;n<t;n++)0!==o&&(r=e.readExpGolomb(),o=(i+r+256)%256),i=0===o?i:o},u=function(t){for(var e,n,r=t.byteLength,i=[],o=1;o<r-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return t;e=r-i.length,n=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=t[a];return n},c=function(t){
var e,n,r,i,a,u,c,f,h,p,d,g,v,y=0,m=0,b=0,w=0,_=1;if(e=new s(t),n=e.readUnsignedByte(),i=e.readUnsignedByte(),r=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),o[n]&&(a=e.readUnsignedExpGolomb(),3===a&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(d=3!==a?8:12,v=0;v<d;v++)e.readBoolean()&&(v<6?l(16,e):l(64,e));if(e.skipUnsignedExpGolomb(),0===(u=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===u)for(e.skipBits(1),
e.skipExpGolomb(),e.skipExpGolomb(),c=e.readUnsignedExpGolomb(),v=0;v<c;v++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),f=e.readUnsignedExpGolomb(),h=e.readUnsignedExpGolomb(),p=e.readBits(1),0===p&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(y=e.readUnsignedExpGolomb(),m=e.readUnsignedExpGolomb(),b=e.readUnsignedExpGolomb(),w=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:g=[1,1];break;case 2:g=[12,11];break;case 3:g=[10,11]
;break;case 4:g=[16,11];break;case 5:g=[40,33];break;case 6:g=[24,11];break;case 7:g=[20,11];break;case 8:g=[32,11];break;case 9:g=[80,33];break;case 10:g=[18,11];break;case 11:g=[15,11];break;case 12:g=[64,33];break;case 13:g=[160,99];break;case 14:g=[4,3];break;case 15:g=[3,2];break;case 16:g=[2,1];break;case 255:g=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}g&&(_=g[0]/g[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,
width:Math.ceil((16*(f+1)-2*y-2*m)*_),height:(2-p)*(h+1)*16-2*b-2*w}}},r.prototype=new a,t.exports={H264Stream:r,NalByteStream:i}},function(t,e,n){"use strict";var r,i,o,a,s,u=n(5263).toUnsigned;r=function(t,e){var n,o,a,s,c,l=[];if(!e.length)return null;for(n=0;n<t.byteLength;)o=u(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=i(t.subarray(n+4,n+8)),s=o>1?n+o:t.byteLength,a===e[0]&&(1===e.length?l.push(t.subarray(n+8,s)):(c=r(t.subarray(n+8,s),e.slice(1)),c.length&&(l=l.concat(c)))),n=s;return l},
i=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},o=function(t){var e={};return r(t,["moov","trak"]).reduce(function(t,e){var n,i,o,a,s;return(n=r(e,["tkhd"])[0])?(i=n[0],o=0===i?12:20,a=u(n[o]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3]),(s=r(e,["mdia","mdhd"])[0])?(i=s[0],o=0===i?12:20,t[a]=u(s[o]<<24|s[o+1]<<16|s[o+2]<<8|s[o+3]),t):null):null},e)},a=function(t,e){var n,i,o;return n=r(e,["moof","traf"]),
i=[].concat.apply([],n.map(function(e){return r(e,["tfhd"]).map(function(n){var i,o,a;return i=u(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),o=t[i]||9e4,a=r(e,["tfdt"]).map(function(t){var e,n;return e=t[0],n=u(t[4]<<24|t[5]<<16|t[6]<<8|t[7]),1===e&&(n*=Math.pow(2,32),n+=u(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),n})[0],(a=a||1/0)/o})})),o=Math.min.apply(null,i),isFinite(o)?o:0},s=function(t){var e=r(t,["moov","trak"]),n=[];return e.forEach(function(t){var e=r(t,["mdia","hdlr"]),o=r(t,["tkhd"])
;e.forEach(function(t,e){var r,a,s,u=i(t.subarray(8,12)),c=o[e];"vide"===u&&(r=new DataView(c.buffer,c.byteOffset,c.byteLength),a=r.getUint8(0),s=0===a?r.getUint32(12):r.getUint32(20),n.push(s))})}),n},t.exports={findBox:r,parseType:i,timescale:o,startTime:a,videoTrackIds:s}},function(t,e,n){"use strict"
;var r,i,o,a,s=n(264),u=n(1859),c=n(5264),l=n(5265),f=n(5268),h=n(1116),p=n(1112),d=n(1113).H264Stream,g=n(5270),v=n(1117).isLikelyAacData,y=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],m=["width","height","profileIdc","levelIdc","profileCompatibility"],b=function(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0};i=function(t,e){var n=[],r=0,o=0,a=0,s=1/0;e=e||{},i.prototype.init.call(this),
this.push=function(e){f.collectDtsInfo(t,e),t&&y.forEach(function(n){t[n]=e[n]}),n.push(e)},this.setEarliestDts=function(e){o=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){s=t},this.setAudioAppendStart=function(t){a=t},this.flush=function(){var i,c,h,p;if(0===n.length)return void this.trigger("done","AudioSegmentStream");i=l.trimAdtsFramesByEarliestDts(n,t,o),t.baseMediaDecodeTime=f.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),
l.prefixWithSilence(t,i,a,s),t.samples=l.generateSampleTable(i),h=u.mdat(l.concatenateFrameData(i)),n=[],c=u.moof(r,[t]),p=new Uint8Array(c.byteLength+h.byteLength),r++,p.set(c),p.set(h,c.byteLength),f.clearDtsInfo(t),this.trigger("data",{track:t,boxes:p}),this.trigger("done","AudioSegmentStream")}},i.prototype=new s,r=function(t,e){var n,i,o=0,a=[],s=[];e=e||{},r.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){f.collectDtsInfo(t,e),
"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],m.forEach(function(e){t[e]=n[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),a.push(e)},this.flush=function(){for(var n,r,i,l,h,p;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=c.groupNalsIntoFrames(a),i=c.groupFramesIntoGops(n),
i[0][0].keyFrame||(r=this.getGopForFusion_(a[0],t),r?(i.unshift(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.pts=r.pts,i.dts=r.dts,i.duration+=r.duration):i=c.extendFirstKeyFrame(i)),s.length){var d;if(!(d=e.alignGopsAtEnd?this.alignGopsAtEnd_(i):this.alignGopsAtStart_(i)))return this.gopCache_.unshift({gop:i.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");f.clearDtsInfo(t),i=d}
f.collectDtsInfo(t,i),t.samples=c.generateSampleTable(i),h=u.mdat(c.concatenateNalData(i)),t.baseMediaDecodeTime=f.calculateTrackBaseMediaDecodeTime(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",i.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),this.gopCache_.unshift({gop:i.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),
this.trigger("timelineStartInfo",t.timelineStartInfo),l=u.moof(o,[t]),p=new Uint8Array(l.byteLength+h.byteLength),o++,p.set(l),p.set(h,l.byteLength),this.trigger("data",{track:t,boxes:p}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){f.clearDtsInfo(t),n=void 0,i=void 0},this.getGopForFusion_=function(e){var n,r,i,o,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)o=this.gopCache_[a],i=o.gop,
t.pps&&b(t.pps[0],o.pps[0])&&t.sps&&b(t.sps[0],o.sps[0])&&(i.dts<t.timelineStartInfo.dts||(n=e.dts-i.dts-i.duration)>=-1e4&&n<=45e3&&(!r||s>n)&&(r=o,s=n));return r?r.gop:null},this.alignGopsAtStart_=function(t){var e,n,r,i,o,a,u,c;for(o=t.byteLength,a=t.nalCount,u=t.duration,e=n=0;e<s.length&&n<t.length&&(r=s[e],i=t[n],r.pts!==i.pts);)i.pts>r.pts?e++:(n++,o-=i.byteLength,a-=i.nalCount,u-=i.duration);return 0===n?t:n===t.length?null:(c=t.slice(n),c.byteLength=o,c.duration=u,c.nalCount=a,
c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(t){var e,n,r,i,o,a;for(e=s.length-1,n=t.length-1,o=null,a=!1;e>=0&&n>=0;){if(r=s[e],i=t[n],r.pts===i.pts){a=!0;break}r.pts>i.pts?e--:(e===s.length-1&&(o=n),n--)}if(!a&&null===o)return null;var u;if(0===(u=a?n:o))return t;var c=t.slice(u),l=c.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return c.byteLength=l.byteLength,
c.duration=l.duration,c.nalCount=l.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(t){s=t}},r.prototype=new s,a=function(t,e){this.numberOfTracks=0,this.metadataStream=e,t=t||{},void 0!==t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"==typeof t.keepOriginalTimestamps&&(this.keepOriginalTimestamps=t.keepOriginalTimestamps),this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,
this.emittedTracks=0,a.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBoxes.push(t.boxes),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track),void("audio"===t.track.type&&(this.audioTrack=t.track)))}},a.prototype=new s,a.prototype.flush=function(t){var e,n,r,i,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0
;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return void(++this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,m.forEach(function(t){a.info[t]=this.videoTrack[t]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,y.forEach(function(t){a.info[t]=this.audioTrack[t]
},this)),1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,r=u.initSegment(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++)e=this.pendingCaptions[i],e.startTime=e.startPts,
this.keepOriginalTimestamps||(e.startTime-=s),e.startTime/=9e4,e.endTime=e.endPts,this.keepOriginalTimestamps||(e.endTime-=s),e.endTime/=9e4,a.captionStreams[e.stream]=!0,a.captions.push(e);for(i=0;i<this.pendingMetadata.length;i++)n=this.pendingMetadata[i],n.cueTime=n.pts,this.keepOriginalTimestamps||(n.cueTime-=s),n.cueTime/=9e4,a.metadata.push(n);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),this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},o=function(t){var e,n,s=this,u=!0;o.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e,e.type="aac",e.metadataStream=new h.MetadataStream,e.aacStream=new g,
e.audioTimestampRolloverStream=new h.TimestampRolloverStream("audio"),e.timedMetadataTimestampRolloverStream=new h.TimestampRolloverStream("timed-metadata"),e.adtsStream=new p,e.coalesceStream=new a(t,e.metadataStream),e.headOfPipeline=e.aacStream,e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream),e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream),e.metadataStream.on("timestamp",function(t){e.aacStream.setTimestamp(t.timeStamp)
}),e.aacStream.on("data",function(r){"timed-metadata"!==r.type||e.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},e.coalesceStream.numberOfTracks++,e.audioSegmentStream=new i(n,t),e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream))}),e.coalesceStream.on("data",this.trigger.bind(this,"data")),e.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var o={};this.transmuxPipeline_=o,
o.type="ts",o.metadataStream=new h.MetadataStream,o.packetStream=new h.TransportPacketStream,o.parseStream=new h.TransportParseStream,o.elementaryStream=new h.ElementaryStream,o.videoTimestampRolloverStream=new h.TimestampRolloverStream("video"),o.audioTimestampRolloverStream=new h.TimestampRolloverStream("audio"),o.timedMetadataTimestampRolloverStream=new h.TimestampRolloverStream("timed-metadata"),o.adtsStream=new p,o.h264Stream=new d,o.captionStream=new h.CaptionStream,
o.coalesceStream=new a(t,o.metadataStream),o.headOfPipeline=o.packetStream,o.packetStream.pipe(o.parseStream).pipe(o.elementaryStream),o.elementaryStream.pipe(o.videoTimestampRolloverStream).pipe(o.h264Stream),o.elementaryStream.pipe(o.audioTimestampRolloverStream).pipe(o.adtsStream),o.elementaryStream.pipe(o.timedMetadataTimestampRolloverStream).pipe(o.metadataStream).pipe(o.coalesceStream),o.h264Stream.pipe(o.captionStream).pipe(o.coalesceStream),o.elementaryStream.on("data",function(a){var u
;if("metadata"===a.type){for(u=a.tracks.length;u--;)e||"video"!==a.tracks[u].type?n||"audio"!==a.tracks[u].type||(n=a.tracks[u],n.timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(e=a.tracks[u],e.timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime);e&&!o.videoSegmentStream&&(o.coalesceStream.numberOfTracks++,o.videoSegmentStream=new r(e,t),o.videoSegmentStream.on("timelineStartInfo",function(t){n&&(n.timelineStartInfo=t,o.audioSegmentStream.setEarliestDts(t.dts))}),
o.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),o.videoSegmentStream.on("baseMediaDecodeTime",function(t){n&&o.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),o.h264Stream.pipe(o.videoSegmentStream).pipe(o.coalesceStream)),n&&!o.audioSegmentStream&&(o.coalesceStream.numberOfTracks++,o.audioSegmentStream=new i(n,t),o.adtsStream.pipe(o.audioSegmentStream).pipe(o.coalesceStream))}}),o.coalesceStream.on("data",this.trigger.bind(this,"data")),
o.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,f.clearDtsInfo(n),t.keepOriginalTimestamps||(n.timelineStartInfo.baseMediaDecodeTime=r),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),e&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[],
i.videoTimestampRolloverStream.discontinuity()),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,f.clearDtsInfo(e),i.captionStream.reset(),t.keepOriginalTimestamps||(e.timelineStartInfo.baseMediaDecodeTime=r)),i.timedMetadataTimestampRolloverStream&&i.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.alignGopsWith=function(t){
e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(u){var e=v(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),u=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){u=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){
this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},o.prototype=new s,t.exports={Transmuxer:o,VideoSegmentStream:r,AudioSegmentStream:i,AUDIO_PROPERTIES:y,VIDEO_PROPERTIES:m}},function(t,e,n){"use strict";var r,i,o,a=n(264),s=n(1860),u=n(600),c=n(1862).TimestampRolloverStream,l=n(600);r=function(){var t=new Uint8Array(188),e=0;r.prototype.init.call(this),this.push=function(n){var r,i=0,o=188;for(e?(r=new Uint8Array(n.byteLength+e),r.set(t.subarray(0,e)),
r.set(n,e),e=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&&(t.set(r.subarray(i),0),e=r.byteLength-i)},this.flush=function(){188===e&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")}},r.prototype=new a,i=function(){var t,e,n,r;i.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,r){var i=0;r.payloadUnitStartIndicator&&(i+=t[i]+1),
"pat"===r.type?e(t.subarray(i),r):n(t.subarray(i),r)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],r.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=r.pmtPid},n=function(t,e){var n,i,o,a;if(1&t[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&t[1])<<8|t[2],i=3+n-4,o=(15&t[10])<<8|t[11],a=12+o;a<i;){var s=t[a],c=(31&t[a+1])<<8|t[a+2]
;s===u.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=c:s===u.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=c:s===u.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][c]=s),a+=5+((15&t[a+3])<<8|t[a+4])}e.programMapTable=r.programMapTable}},this.push=function(e){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(r+=e[r]+1),0===n.pid)n.type="pat",t(e.subarray(r),n),
this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(e.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([e,r,n]):this.processPes_(e,r,n)},this.processPes_=function(t,e,n){
n.pid===this.programMapTable.video?n.streamType=u.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=u.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}},i.prototype=new a,i.STREAM_TYPES={h264:27,adts:15},o=function(){var t=this,e={data:[],size:0},n={data:[],size:0},r={data:[],size:0},i=function(t,e){var n;e.packetLength=6+(t[4]<<8|t[5]),e.dataAlignmentIndicator=0!=(4&t[6]),n=t[7],
192&n&&(e.pts=(14&t[9])<<27|(255&t[10])<<20|(254&t[11])<<12|(255&t[12])<<5|(254&t[13])>>>3,e.pts*=4,e.pts+=(6&t[13])>>>1,e.dts=e.pts,64&n&&(e.dts=(14&t[14])<<27|(255&t[15])<<20|(254&t[16])<<12|(255&t[17])<<5|(254&t[18])>>>3,e.dts*=4,e.dts+=(6&t[18])>>>1)),e.data=t.subarray(9+t[8])},a=function(e,n,r){var o,a=new Uint8Array(e.size),s={type:n},u=0,c=0,l=!1;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;u<e.data.length;u++)o=e.data[u],a.set(o.data,c),c+=o.data.byteLength;i(a,s),
l="video"===n||s.packetLength<=e.size,(r||l)&&(e.size=0,e.data.length=0),l&&t.trigger("data",s)}};o.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var t,o;switch(i.streamType){case u.H264_STREAM_TYPE:case l.H264_STREAM_TYPE:t=e,o="video";break;case u.ADTS_STREAM_TYPE:t=n,o="audio";break;case u.METADATA_STREAM_TYPE:t=r,o="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&a(t,o,!0),t.data.push(i),t.size+=i.data.byteLength},pmt:function(){var e={
type:"metadata",tracks:[]},n=i.programMapTable;null!==n.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.video,codec:"avc",type:"video"}),null!==n.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[i.type]()},this.flush=function(){a(e,"video"),a(n,"audio"),a(r,"timed-metadata"),this.trigger("done")}},o.prototype=new a;var f={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:r,
TransportParseStream:i,ElementaryStream:o,TimestampRolloverStream:c,CaptionStream:s.CaptionStream,Cea608Stream:s.Cea608Stream,MetadataStream:n(5269)};for(var h in u)u.hasOwnProperty(h)&&(f[h]=u[h]);t.exports=f},function(t,e,n){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},o=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},a=function(t,e,n){var r,i=""
;for(r=e;r<n;r++)i+="%"+("00"+t[r].toString(16)).slice(-2);return i},s=function(t,e,n){return unescape(a(t,e,n))},u=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?n+20:n+10},c=function(t,e){var n=(224&t[e+5])>>5,r=t[e+4]<<3;return 6144&t[e+3]|r|n},l=function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},f=function(t){for(var e=0;e+5<t.length;){
if(255===t[e]&&240==(246&t[e+1]))return r[(60&t[e+2])>>>2];e++}return null},h=function(t){var e,n,r;e=10,64&t[5]&&(e+=4,e+=o(t.subarray(10,14)));do{if((n=o(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){r=t.subarray(e+10,e+n+10);for(var i=0;i<r.byteLength;i++)if(0===r[i]){var a=s(r,0,i);if("com.apple.streaming.transportStreamTimestamp"===a){var u=r.subarray(i+1),c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;return c*=4,c+=3&u[7]}break}}e+=10,
e+=n}while(e<t.byteLength);return null};t.exports={isLikelyAacData:i,parseId3TagSize:u,parseAdtsSize:c,parseType:l,parseSampleRate:f,parseAacTimestamp:h}},function(t,e,n){"use strict";var r;r=function(t,e){var n,i=0,o=16384,a=function(t,e){var n,r=t.position+e;r<t.bytes.byteLength||(n=new Uint8Array(2*r),n.set(t.bytes.subarray(0,t.position),0),t.bytes=n,t.view=new DataView(t.bytes.buffer))
},s=r.widthBytes||new Uint8Array("width".length),u=r.heightBytes||new Uint8Array("height".length),c=r.videocodecidBytes||new Uint8Array("videocodecid".length);if(!r.widthBytes){for(n=0;n<"width".length;n++)s[n]="width".charCodeAt(n);for(n=0;n<"height".length;n++)u[n]="height".charCodeAt(n);for(n=0;n<"videocodecid".length;n++)c[n]="videocodecid".charCodeAt(n);r.widthBytes=s,r.heightBytes=u,r.videocodecidBytes=c}switch(this.keyFrame=!1,t){case r.VIDEO_TAG:this.length=16,o*=6;break
;case r.AUDIO_TAG:this.length=13,this.keyFrame=!0;break;case r.METADATA_TAG:this.length=29,this.keyFrame=!0;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(o),this.view=new DataView(this.bytes.buffer),this.bytes[0]=t,this.position=this.length,this.keyFrame=e,this.pts=0,this.dts=0,this.writeBytes=function(t,e,n){var r,i=e||0;n=n||t.byteLength,r=i+n,a(this,n),this.bytes.set(t.subarray(i,r),this.position),this.position+=n,
this.length=Math.max(this.length,this.position)},this.writeByte=function(t){a(this,1),this.bytes[this.position]=t,this.position++,this.length=Math.max(this.length,this.position)},this.writeShort=function(t){a(this,2),this.view.setUint16(this.position,t),this.position+=2,this.length=Math.max(this.length,this.position)},this.negIndex=function(t){return this.bytes[this.length-t]},this.nalUnitSize=function(){return 0===i?0:this.length-(i+4)},this.startNalUnit=function(){
if(i>0)throw new Error("Attempted to create new NAL wihout closing the old one");i=this.length,this.length+=4,this.position=this.length},this.endNalUnit=function(t){var e,n;this.length===i+4?this.length-=4:i>0&&(e=i+4,n=this.length-e,this.position=i,this.view.setUint32(this.position,n),this.position=this.length,t&&t.push(this.bytes.subarray(e,e+n))),i=0},this.writeMetaDataDouble=function(t,e){var n;if(a(this,2+t.length+9),this.view.setUint16(this.position,t.length),this.position+=2,
"width"===t)this.bytes.set(s,this.position),this.position+=5;else if("height"===t)this.bytes.set(u,this.position),this.position+=6;else if("videocodecid"===t)this.bytes.set(c,this.position),this.position+=12;else for(n=0;n<t.length;n++)this.bytes[this.position]=t.charCodeAt(n),this.position++;this.position++,this.view.setFloat64(this.position,e),this.position+=8,this.length=Math.max(this.length,this.position),++i},this.writeMetaDataBoolean=function(t,e){var n;for(a(this,2),
this.view.setUint16(this.position,t.length),this.position+=2,n=0;n<t.length;n++)a(this,1),this.bytes[this.position]=t.charCodeAt(n),this.position++;a(this,2),this.view.setUint8(this.position,1),this.position++,this.view.setUint8(this.position,e?1:0),this.position++,this.length=Math.max(this.length,this.position),++i},this.finalize=function(){var t,n;switch(this.bytes[0]){case r.VIDEO_TAG:this.bytes[11]=7|(this.keyFrame||e?16:32),this.bytes[12]=e?0:1,t=this.pts-this.dts,
this.bytes[13]=(16711680&t)>>>16,this.bytes[14]=(65280&t)>>>8,this.bytes[15]=(255&t)>>>0;break;case r.AUDIO_TAG:this.bytes[11]=175,this.bytes[12]=e?0:1;break;case r.METADATA_TAG:this.position=11,this.view.setUint8(this.position,2),this.position++,this.view.setUint16(this.position,10),this.position+=2,this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position),this.position+=10,this.bytes[this.position]=8,this.position++,this.view.setUint32(this.position,i),this.position=this.length,
this.bytes.set([0,0,9],this.position),this.position+=3,this.length=this.position}return n=this.length-11,this.bytes[1]=(16711680&n)>>>16,this.bytes[2]=(65280&n)>>>8,this.bytes[3]=(255&n)>>>0,this.bytes[4]=(16711680&this.dts)>>>16,this.bytes[5]=(65280&this.dts)>>>8,this.bytes[6]=(255&this.dts)>>>0,this.bytes[7]=(4278190080&this.dts)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,a(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,
this.bytes=this.bytes.subarray(0,this.length),this.frameTime=r.frameTime(this.bytes),this}},r.AUDIO_TAG=8,r.VIDEO_TAG=9,r.METADATA_TAG=18,r.isAudioFrame=function(t){return r.AUDIO_TAG===t[0]},r.isVideoFrame=function(t){return r.VIDEO_TAG===t[0]},r.isMetaData=function(t){return r.METADATA_TAG===t[0]},r.isKeyFrame=function(t){return r.isVideoFrame(t)?23===t[11]:!!r.isAudioFrame(t)||!!r.isMetaData(t)},r.frameTime=function(t){var e=t[4]<<16;return e|=t[5]<<8,e|=t[6]<<0,e|=t[7]<<24},t.exports=r
},,,,,,function(t,e){var n={};n.hexTable=new Array(256);for(var r=0;r<256;++r)n.hexTable[r]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();e.arrayToObject=function(t,e){for(var n=e.plainObjects?Object.create(null):{},r=0,i=t.length;r<i;++r)void 0!==t[r]&&(n[r]=t[r]);return n},e.merge=function(t,n,r){if(!n)return t;if("object"!=typeof n)return Array.isArray(t)?t.push(n):"object"==typeof t?t[n]=!0:t=[t,n],t;if("object"!=typeof t)return t=[t].concat(n)
;Array.isArray(t)&&!Array.isArray(n)&&(t=e.arrayToObject(t,r));for(var i=Object.keys(n),o=0,a=i.length;o<a;++o){var s=i[o],u=n[s];Object.prototype.hasOwnProperty.call(t,s)?t[s]=e.merge(t[s],u,r):t[s]=u}return t},e.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},e.encode=function(t){if(0===t.length)return t;"string"!=typeof t&&(t=""+t);for(var e="",r=0,i=t.length;r<i;++r){var o=t.charCodeAt(r)
;45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?e+=t[r]:o<128?e+=n.hexTable[o]:o<2048?e+=n.hexTable[192|o>>6]+n.hexTable[128|63&o]:o<55296||o>=57344?e+=n.hexTable[224|o>>12]+n.hexTable[128|o>>6&63]+n.hexTable[128|63&o]:(++r,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),e+=n.hexTable[240|o>>18]+n.hexTable[128|o>>12&63]+n.hexTable[128|o>>6&63]+n.hexTable[128|63&o])}return e},e.compact=function(t,n){if("object"!=typeof t||null===t)return t;n=n||[];var r=n.indexOf(t)
;if(-1!==r)return n[r];if(n.push(t),Array.isArray(t)){for(var i=[],o=0,a=t.length;o<a;++o)void 0!==t[o]&&i.push(t[o]);return i}var s=Object.keys(t);for(o=0,a=s.length;o<a;++o){var u=s[o];t[u]=e.compact(t[u],n)}return t},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isBuffer=function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},,,,,,,,,,,,function(t,e,n){/*!
 * Includes BabySitter
 * https://github.com/marionettejs/backbone.babysitter/
 *
 * Includes Wreqr
 * https://github.com/marionettejs/backbone.wreqr/
 */
!function(e,r){var i=n(10),o=n(424);n(1902),n(1903);t.exports=r(i,o)}(0,function(t,e){!function(t,e,n){"use strict";function r(t,e){var n=new Error(t);throw n.name=e||"Error",n}var i={};e.Marionette=i,i.$=e.$;var o=Array.prototype.slice;i.extend=e.Model.extend,i.getOption=function(t,e){if(t&&e){return t.options&&e in t.options&&void 0!==t.options[e]?t.options[e]:t[e]}},i.normalizeMethods=function(t){var e,r={};return n.each(t,function(t,i){e=t,n.isFunction(e)||(e=this[e]),e&&(r[i]=e)},this),r},
i.triggerMethod=function(){function t(t,e,n){return n.toUpperCase()}var e=/(^|:)(\w)/gi;return function(r){var i="on"+r.replace(e,t),o=this[i];if(n.isFunction(this.trigger)&&this.trigger.apply(this,arguments),n.isFunction(o))return o.apply(this,n.tail(arguments))}}(),i.MonitorDOMRefresh=function(t){function e(t){t._isShown=!0,i(t)}function r(t){t._isRendered=!0,i(t)}function i(t){t._isShown&&t._isRendered&&o(t)&&n.isFunction(t.triggerMethod)&&t.triggerMethod("dom:refresh")}function o(e){
return t.contains(e.el)}return function(t){t.listenTo(t,"show",function(){e(t)}),t.listenTo(t,"render",function(){r(t)})}}(document.documentElement),function(t){function e(t,e,i,o){var a=o.split(/\s+/);n.each(a,function(n){var o=t[n];o||r("Method '"+n+"' was configured as an event handler, but does not exist."),t.listenTo(e,i,o)})}function i(t,e,n,r){t.listenTo(e,n,r)}function o(t,e,r,i){var o=i.split(/\s+/);n.each(o,function(n){var i=t[n];t.stopListening(e,r,i)})}function a(t,e,n,r){
t.stopListening(e,n,r)}function s(t,e,r,i,o){e&&r&&(n.isFunction(r)&&(r=r.call(t)),n.each(r,function(r,a){n.isFunction(r)?i(t,e,a,r):o(t,e,a,r)}))}t.bindEntityEvents=function(t,n,r){s(t,n,r,i,e)},t.unbindEntityEvents=function(t,e,n){s(t,e,n,a,o)}}(i),i.Callbacks=function(){this._deferred=i.$.Deferred(),this._callbacks=[]},n.extend(i.Callbacks.prototype,{add:function(t,e){this._callbacks.push({cb:t,ctx:e}),this._deferred.done(function(n,r){e&&(n=e),t.call(n,r)})},run:function(t,e){
this._deferred.resolve(e,t)},reset:function(){var t=this._callbacks;this._deferred=i.$.Deferred(),this._callbacks=[],n.each(t,function(t){this.add(t.cb,t.ctx)},this)}}),i.Controller=function(t){this.triggerMethod=i.triggerMethod,this.options=t||{},n.isFunction(this.initialize)&&this.initialize(this.options)},i.Controller.extend=i.extend,n.extend(i.Controller.prototype,e.Events,{close:function(){this.stopListening(),this.triggerMethod("close"),this.unbind()}}),i.Region=function(t){
if(this.options=t||{},this.el=i.getOption(this,"el"),this.el||r("An 'el' must be specified for a region.","NoElError"),this.initialize){var e=Array.prototype.slice.apply(arguments);this.initialize.apply(this,e)}},n.extend(i.Region,{buildRegion:function(t,e){var i=n.isString(t),o=n.isString(t.selector),a=n.isUndefined(t.regionType),s=n.isFunction(t);s||i||o||r("Region must be specified as a Region type, a selector string or an object with selector property");var u,c;i&&(u=t),
t.selector&&(u=t.selector,delete t.selector),s&&(c=t),!s&&a&&(c=e),t.regionType&&(c=t.regionType,delete t.regionType),(i||s)&&(t={}),t.el=u;var l=new c(t);return t.parentEl&&(l.getEl=function(e){var r=t.parentEl;return n.isFunction(r)&&(r=r()),r.find(e)}),l}}),n.extend(i.Region.prototype,e.Events,{show:function(t){this.ensureEl();var e=t.isClosed||n.isUndefined(t.$el),r=t!==this.currentView;r&&this.close(),t.render(),(r||e)&&this.open(t),this.currentView=t,i.triggerMethod.call(this,"show",t),
i.triggerMethod.call(t,"show")},ensureEl:function(){this.$el&&0!==this.$el.length||(this.$el=this.getEl(this.el))},getEl:function(t){return i.$(t)},open:function(t){this.$el.empty().append(t.el)},close:function(){var t=this.currentView;t&&!t.isClosed&&(t.close?t.close():t.remove&&t.remove(),i.triggerMethod.call(this,"close",t),delete this.currentView)},attachView:function(t){this.currentView=t},reset:function(){this.close(),delete this.$el}}),i.Region.extend=i.extend,i.RegionManager=function(t){
var e=t.Controller.extend({constructor:function(e){this._regions={},t.Controller.prototype.constructor.call(this,e)},addRegions:function(t,e){var r={};return n.each(t,function(t,i){n.isString(t)&&(t={selector:t}),t.selector&&(t=n.defaults({},t,e));var o=this.addRegion(i,t);r[i]=o},this),r},addRegion:function(e,r){var i,o=n.isObject(r),a=n.isString(r),s=!!r.selector;return i=a||o&&s?t.Region.buildRegion(r,t.Region):n.isFunction(r)?t.Region.buildRegion(r,t.Region):r,this._store(e,i),
this.triggerMethod("region:add",e,i),i},get:function(t){return this._regions[t]},removeRegion:function(t){var e=this._regions[t];this._remove(t,e)},removeRegions:function(){n.each(this._regions,function(t,e){this._remove(e,t)},this)},closeRegions:function(){n.each(this._regions,function(t,e){t.close()},this)},close:function(){this.removeRegions(),t.Controller.prototype.close.apply(this,arguments)},_store:function(t,e){this._regions[t]=e,this._setLength()},_remove:function(t,e){e.close(),
delete this._regions[t],this._setLength(),this.triggerMethod("region:remove",t,e)},_setLength:function(){this.length=n.size(this._regions)}}),r=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return n.each(r,function(t){e.prototype[t]=function(){var e=n.values(this._regions),r=[e].concat(n.toArray(arguments));return n[t].apply(n,r)}}),e}(i),
i.TemplateCache=function(t){this.templateId=t},n.extend(i.TemplateCache,{templateCaches:{},get:function(t){var e=this.templateCaches[t];return e||(e=new i.TemplateCache(t),this.templateCaches[t]=e),e.load()},clear:function(){var t,e=o.call(arguments),n=e.length;if(n>0)for(t=0;t<n;t++)delete this.templateCaches[e[t]];else this.templateCaches={}}}),n.extend(i.TemplateCache.prototype,{load:function(){if(this.compiledTemplate)return this.compiledTemplate;var t=this.loadTemplate(this.templateId)
;return this.compiledTemplate=this.compileTemplate(t),this.compiledTemplate},loadTemplate:function(t){var e=i.$(t).html();return e&&0!==e.length||r("Could not find template: '"+t+"'","NoTemplateError"),e},compileTemplate:function(t){return n.template(t)}}),i.Renderer={render:function(t,e){t||r("Cannot render the template since it's false, null or undefined.","TemplateNotFoundError");return("function"==typeof t?t:i.TemplateCache.get(t))(e)}},i.View=e.View.extend({constructor:function(t){
n.bindAll(this,"render"),this.options=n.extend({},n.result(this,"options"),n.isFunction(t)?t.call(this):t),this.events=this.normalizeUIKeys(n.result(this,"events")),e.View.prototype.constructor.apply(this,arguments),i.MonitorDOMRefresh(this),this.listenTo(this,"show",this.onShowCalled)},triggerMethod:i.triggerMethod,normalizeMethods:i.normalizeMethods,getTemplate:function(){return i.getOption(this,"template")},mixinTemplateHelpers:function(t){t=t||{};var e=i.getOption(this,"templateHelpers")
;return n.isFunction(e)&&(e=e.call(this)),n.extend(t,e)},normalizeUIKeys:function(t){var e=this;if(void 0!==t)return n.each(n.keys(t),function(r){var i=/@ui.[a-zA-Z_$0-9]*/g;r.match(i)&&(t[r.replace(i,function(t){return n.result(e,"ui")[t.slice(4)]})]=t[r],delete t[r])}),t},configureTriggers:function(){if(this.triggers){var t={},e=this.normalizeUIKeys(n.result(this,"triggers"));return n.each(e,function(e,r){var i=n.isObject(e),o=i?e.event:e;t[r]=function(t){if(t){
var n=t.preventDefault,r=t.stopPropagation,a=i?e.preventDefault:n,s=i?e.stopPropagation:r;a&&n&&n.apply(t),s&&r&&r.apply(t)}var u={view:this,model:this.model,collection:this.collection};this.triggerMethod(o,u)}},this),t}},delegateEvents:function(t){this._delegateDOMEvents(t),i.bindEntityEvents(this,this.model,i.getOption(this,"modelEvents")),i.bindEntityEvents(this,this.collection,i.getOption(this,"collectionEvents"))},_delegateDOMEvents:function(t){t=t||this.events,
n.isFunction(t)&&(t=t.call(this));var r={},i=this.configureTriggers();n.extend(r,t,i),e.View.prototype.delegateEvents.call(this,r)},undelegateEvents:function(){var t=Array.prototype.slice.call(arguments);e.View.prototype.undelegateEvents.apply(this,t),i.unbindEntityEvents(this,this.model,i.getOption(this,"modelEvents")),i.unbindEntityEvents(this,this.collection,i.getOption(this,"collectionEvents"))},onShowCalled:function(){},close:function(){if(!this.isClosed){
!1!==this.triggerMethod("before:close")&&(this.isClosed=!0,this.triggerMethod("close"),this.unbindUIElements(),this.remove())}},bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var t=n.result(this,"_uiBindings");this.ui={},n.each(n.keys(t),function(e){var n=t[e];this.ui[e]=this.$(n)},this)}},unbindUIElements:function(){this.ui&&this._uiBindings&&(n.each(this.ui,function(t,e){delete this.ui[e]},this),this.ui=this._uiBindings,delete this._uiBindings)}}),
i.ItemView=i.View.extend({constructor:function(){i.View.prototype.constructor.apply(this,arguments)},serializeData:function(){var t={};return this.model?t=this.model.toJSON():this.collection&&(t={items:this.collection.toJSON()}),t},render:function(){this.isClosed=!1,this.triggerMethod("before:render",this),this.triggerMethod("item:before:render",this);var t=this.serializeData();t=this.mixinTemplateHelpers(t);var e=this.getTemplate(),n=i.Renderer.render(e,t);return this.$el.html(n),
this.bindUIElements(),this.triggerMethod("render",this),this.triggerMethod("item:rendered",this),this},close:function(){this.isClosed||(this.triggerMethod("item:before:close"),i.View.prototype.close.apply(this,arguments),this.triggerMethod("item:closed"))}}),i.CollectionView=i.View.extend({itemViewEventPrefix:"itemview",constructor:function(t){this._initChildViewStorage(),i.View.prototype.constructor.apply(this,arguments),this._initialEvents(),this.initRenderBuffer()},
initRenderBuffer:function(){this.elBuffer=document.createDocumentFragment(),this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this.appendBuffer(this,this.elBuffer),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerShowBufferedChildren:function(){this._isShown&&(n.each(this._bufferedChildren,function(t){i.triggerMethod.call(t,"show")}),this._bufferedChildren=[])},
_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView),this.listenTo(this.collection,"remove",this.removeItemView),this.listenTo(this.collection,"reset",this.render))},addChildView:function(t,e,n){this.closeEmptyView();var r=this.getItemView(t),i=this.collection.indexOf(t);this.addItemView(t,r,i)},onShowCalled:function(){this.children.each(function(t){i.triggerMethod.call(t,"show")})},triggerBeforeRender:function(){
this.triggerMethod("before:render",this),this.triggerMethod("collection:before:render",this)},triggerRendered:function(){this.triggerMethod("render",this),this.triggerMethod("collection:rendered",this)},render:function(){return this.isClosed=!1,this.triggerBeforeRender(),this._renderChildren(),this.triggerRendered(),this},_renderChildren:function(){this.startBuffering(),this.closeEmptyView(),this.closeChildren(),this.isEmpty(this.collection)?this.showEmptyView():this.showCollection(),
this.endBuffering()},showCollection:function(){var t;this.collection.each(function(e,n){t=this.getItemView(e),this.addItemView(e,t,n)},this)},showEmptyView:function(){var t=this.getEmptyView();if(t&&!this._showingEmptyView){this._showingEmptyView=!0;var n=new e.Model;this.addItemView(n,t,0)}},closeEmptyView:function(){this._showingEmptyView&&(this.closeChildren(),delete this._showingEmptyView)},getEmptyView:function(){return i.getOption(this,"emptyView")},getItemView:function(t){
var e=i.getOption(this,"itemView");return e||r("An `itemView` must be specified","NoItemViewError"),e},addItemView:function(t,e,r){var o=i.getOption(this,"itemViewOptions");n.isFunction(o)&&(o=o.call(this,t,r));var a=this.buildItemView(t,e,o);return this.addChildViewEventForwarding(a),this.triggerMethod("before:item:added",a),this.children.add(a),this.renderItemView(a,r),this._isShown&&!this.isBuffering&&i.triggerMethod.call(a,"show"),this.triggerMethod("after:item:added",a),a},
addChildViewEventForwarding:function(t){var e=i.getOption(this,"itemViewEventPrefix");this.listenTo(t,"all",function(){var r=o.call(arguments),a=r[0],s=this.normalizeMethods(this.getItemEvents());r[0]=e+":"+a,r.splice(1,0,t),void 0!==s&&n.isFunction(s[a])&&s[a].apply(this,r),i.triggerMethod.apply(this,r)},this)},getItemEvents:function(){return n.isFunction(this.itemEvents)?this.itemEvents.call(this):this.itemEvents},renderItemView:function(t,e){t.render(),this.appendHtml(this,t,e)},
buildItemView:function(t,e,r){return new e(n.extend({model:t},r))},removeItemView:function(t){var e=this.children.findByModel(t);this.removeChildView(e),this.checkEmpty()},removeChildView:function(t){t&&(this.stopListening(t),t.close?t.close():t.remove&&t.remove(),this.children.remove(t)),this.triggerMethod("item:removed",t)},isEmpty:function(t){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},
appendBuffer:function(t,e){t.$el.append(e)},appendHtml:function(t,e,n){t.isBuffering?(t.elBuffer.appendChild(e.el),t._bufferedChildren.push(e)):t.$el.append(e.el)},_initChildViewStorage:function(){this.children=new e.ChildViewContainer},close:function(){this.isClosed||(this.triggerMethod("collection:before:close"),this.closeChildren(),this.triggerMethod("collection:closed"),i.View.prototype.close.apply(this,arguments))},closeChildren:function(){this.children.each(function(t){
this.removeChildView(t)},this),this.checkEmpty()}}),i.CompositeView=i.CollectionView.extend({constructor:function(){i.CollectionView.prototype.constructor.apply(this,arguments)},_initialEvents:function(){this.once("render",function(){this.collection&&(this.listenTo(this.collection,"add",this.addChildView),this.listenTo(this.collection,"remove",this.removeItemView),this.listenTo(this.collection,"reset",this._renderChildren))})},getItemView:function(t){
var e=i.getOption(this,"itemView")||this.constructor;return e||r("An `itemView` must be specified","NoItemViewError"),e},serializeData:function(){var t={};return this.model&&(t=this.model.toJSON()),t},render:function(){this.isRendered=!0,this.isClosed=!1,this.resetItemViewContainer(),this.triggerBeforeRender();var t=this.renderModel();return this.$el.html(t),this.bindUIElements(),this.triggerMethod("composite:model:rendered"),this._renderChildren(),this.triggerMethod("composite:rendered"),
this.triggerRendered(),this},_renderChildren:function(){this.isRendered&&(this.triggerMethod("composite:collection:before:render"),i.CollectionView.prototype._renderChildren.call(this),this.triggerMethod("composite:collection:rendered"))},renderModel:function(){var t={};t=this.serializeData(),t=this.mixinTemplateHelpers(t);var e=this.getTemplate();return i.Renderer.render(e,t)},appendBuffer:function(t,e){this.getItemViewContainer(t).append(e)},appendHtml:function(t,e,n){
if(t.isBuffering)t.elBuffer.appendChild(e.el),t._bufferedChildren.push(e);else{this.getItemViewContainer(t).append(e.el)}},getItemViewContainer:function(t){if("$itemViewContainer"in t)return t.$itemViewContainer;var e,o=i.getOption(t,"itemViewContainer");if(o){var a=n.isFunction(o)?o.call(this):o;e=t.$(a),e.length<=0&&r("The specified `itemViewContainer` was not found: "+t.itemViewContainer,"ItemViewContainerMissingError")}else e=t.$el;return t.$itemViewContainer=e,e},
resetItemViewContainer:function(){this.$itemViewContainer&&delete this.$itemViewContainer}}),i.Layout=i.ItemView.extend({regionType:i.Region,constructor:function(t){t=t||{},this._firstRender=!0,this._initializeRegions(t),i.ItemView.prototype.constructor.call(this,t)},render:function(){return this.isClosed&&this._initializeRegions(),this._firstRender?this._firstRender=!1:this.isClosed||this._reInitializeRegions(),i.ItemView.prototype.render.apply(this,arguments)},close:function(){
this.isClosed||(this.regionManager.close(),i.ItemView.prototype.close.apply(this,arguments))},addRegion:function(t,e){var n={};return n[t]=e,this._buildRegions(n)[t]},addRegions:function(t){return this.regions=n.extend({},this.regions,t),this._buildRegions(t)},removeRegion:function(t){return delete this.regions[t],this.regionManager.removeRegion(t)},_buildRegions:function(t){var e=this,n={regionType:i.getOption(this,"regionType"),parentEl:function(){return e.$el}}
;return this.regionManager.addRegions(t,n)},_initializeRegions:function(t){var e;this._initRegionManager(),e=n.isFunction(this.regions)?this.regions(t):this.regions||{},this.addRegions(e)},_reInitializeRegions:function(){this.regionManager.closeRegions(),this.regionManager.each(function(t){t.reset()})},_initRegionManager:function(){this.regionManager=new i.RegionManager,this.listenTo(this.regionManager,"region:add",function(t,e){this[t]=e,this.trigger("region:add",t,e)}),
this.listenTo(this.regionManager,"region:remove",function(t,e){delete this[t],this.trigger("region:remove",t,e)})}}),i.AppRouter=e.Router.extend({constructor:function(t){e.Router.prototype.constructor.apply(this,arguments),this.options=t||{};var n=i.getOption(this,"appRoutes"),r=this._getController();this.processAppRoutes(r,n)},appRoute:function(t,e){var n=this._getController();this._addAppRoute(n,t,e)},processAppRoutes:function(t,e){if(e){var r=n.keys(e).reverse();n.each(r,function(n){
this._addAppRoute(t,n,e[n])},this)}},_getController:function(){return i.getOption(this,"controller")},_addAppRoute:function(t,e,i){var o=t[i];o||r("Method '"+i+"' was not found on the controller"),this.route(e,i,n.bind(o,t))}}),i.Application=function(t){this._initRegionManager(),this._initCallbacks=new i.Callbacks,this.vent=new e.Wreqr.EventAggregator,this.commands=new e.Wreqr.Commands,this.reqres=new e.Wreqr.RequestResponse,this.submodules={},n.extend(this,t),this.triggerMethod=i.triggerMethod
},n.extend(i.Application.prototype,e.Events,{execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(t){this._initCallbacks.add(t)},start:function(t){this.triggerMethod("initialize:before",t),this._initCallbacks.run(t,this),this.triggerMethod("initialize:after",t),this.triggerMethod("start",t)},addRegions:function(t){return this._regionManager.addRegions(t)},
closeRegions:function(){this._regionManager.closeRegions()},removeRegion:function(t){this._regionManager.removeRegion(t)},getRegion:function(t){return this._regionManager.get(t)},module:function(t,e){var n=i.Module.getClass(e),r=o.call(arguments);return r.unshift(this),n.create.apply(n,r)},_initRegionManager:function(){this._regionManager=new i.RegionManager,this.listenTo(this._regionManager,"region:add",function(t,e){this[t]=e}),this.listenTo(this._regionManager,"region:remove",function(t,e){
delete this[t]})}}),i.Application.extend=i.extend,i.Module=function(t,e,r){this.moduleName=t,this.options=n.extend({},this.options,r),this.initialize=r.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=e,this.startWithParent=!0,this.triggerMethod=i.triggerMethod,n.isFunction(this.initialize)&&this.initialize(this.options,t,e)},i.Module.extend=i.extend,n.extend(i.Module.prototype,e.Events,{initialize:function(){},addInitializer:function(t){
this._initializerCallbacks.add(t)},addFinalizer:function(t){this._finalizerCallbacks.add(t)},start:function(t){this._isInitialized||(n.each(this.submodules,function(e){e.startWithParent&&e.start(t)}),this.triggerMethod("before:start",t),this._initializerCallbacks.run(t,this),this._isInitialized=!0,this.triggerMethod("start",t))},stop:function(){this._isInitialized&&(this._isInitialized=!1,i.triggerMethod.call(this,"before:stop"),n.each(this.submodules,function(t){t.stop()}),
this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),i.triggerMethod.call(this,"stop"))},addDefinition:function(t,e){this._runModuleDefinition(t,e)},_runModuleDefinition:function(t,r){if(t){var o=n.flatten([this,this.app,e,i,i.$,n,r]);t.apply(this,o)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new i.Callbacks,this._finalizerCallbacks=new i.Callbacks}}),n.extend(i.Module,{create:function(t,e,r){
var i=t,a=o.call(arguments);a.splice(0,3),e=e.split(".");var s=e.length,u=[];return u[s-1]=r,n.each(e,function(e,n){var o=i;i=this._getModule(o,e,t,r),this._addModuleDefinition(o,i,u[n],a)},this),i},_getModule:function(t,e,r,i,o){var a=n.extend({},i),s=this.getClass(i),u=t[e];return u||(u=new s(e,r,a),t[e]=u,t.submodules[e]=u),u},getClass:function(t){var e=i.Module;return t?t.prototype instanceof e?t:t.moduleClass||e:e},_addModuleDefinition:function(t,e,r,o){var a,s
;!n.isFunction(r)||r.prototype instanceof i.Module?n.isObject(r)?(a=r.define,s=!!n.isUndefined(r.startWithParent)||r.startWithParent):s=!0:(a=r,s=!0),a&&e.addDefinition(a,o),e.startWithParent=e.startWithParent&&s,e.startWithParent&&!e.startWithParentIsConfigured&&(e.startWithParentIsConfigured=!0,t.addInitializer(function(t){e.startWithParent&&e.start(t)}))}})}(0,e,t);return e.Marionette})},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=Object(o.a)(n,e).getTime()-Object(a.a)(n,e).getTime();return Math.round(r/s)+1}e.a=r;var i=n(23),o=n(614),a=n(2006),s=6048e5},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),
a.setUTCHours(0,0,0,0);var s=Object(o.a)(a,e),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var c=Object(o.a)(u,e);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}e.a=r;var i=n(23),o=n(614)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=Object(o.a)(n,e).getTime()-Object(a.a)(n,e).getTime();return Math.round(r/s)+1}e.a=r
;var i=n(23),o=n(615),a=n(2007),s=6048e5},function(t,e,n){"use strict";function r(t){return-1!==o.indexOf(t)}function i(t){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+t+"` token; see: https://git.io/fxCyr")}e.a=r,e.b=i;var o=["D","DD","YY","YYYY"]},,,,,,,,,,,,function(t,e,n){"use strict";function r(t){this.string=t}r.prototype.toString=function(){return""+this.string},e.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r;!function(i,o,a){
function s(t,e,n){if(t.addEventListener)return void t.addEventListener(e,n,!1);t.attachEvent("on"+e,n)}function u(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return _[t.which]?_[t.which]:x[t.which]?x[t.which]:String.fromCharCode(t.which).toLowerCase()}function c(t,e){return t.sort().join(",")===e.sort().join(",")}function l(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),
t.metaKey&&e.push("meta"),e}function f(t){if(t.preventDefault)return void t.preventDefault();t.returnValue=!1}function h(t){if(t.stopPropagation)return void t.stopPropagation();t.cancelBubble=!0}function p(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function d(){if(!w){w={};for(var t in _)t>95&&t<112||_.hasOwnProperty(t)&&(w[_[t]]=t)}return w}function g(t,e,n){return n||(n=d()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function v(t){
return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function y(t,e){var n,r,i,o=[];for(n=v(t),i=0;i<n.length;++i)r=n[i],T[r]&&(r=T[r]),e&&"keypress"!=e&&O[r]&&(r=O[r],o.push("shift")),p(r)&&o.push(r);return e=g(r,o,e),{key:r,modifiers:o,action:e}}function m(t,e){return null!==t&&t!==o&&(t===e||m(t.parentNode,e))}function b(t){function e(t){t=t||{};var e,n=!1;for(e in w)t[e]?n=!0:w[e]=0;n||(O=!1)}function n(t,e,n,r,i,o){var a,s,u=[],l=n.type;if(!v._callbacks[t])return[]
;for("keyup"==l&&p(t)&&(e=[t]),a=0;a<v._callbacks[t].length;++a)if(s=v._callbacks[t][a],(r||!s.seq||w[s.seq]==s.level)&&l==s.action&&("keypress"==l&&!n.metaKey&&!n.ctrlKey||c(e,s.modifiers))){var f=!r&&s.combo==i,h=r&&s.seq==r&&s.level==o;(f||h)&&v._callbacks[t].splice(a,1),u.push(s)}return u}function r(t,e,n,r){v.stopCallback(e,e.target||e.srcElement,n,r)||!1===t(e,n)&&(f(e),h(e))}function i(t){"number"!=typeof t.which&&(t.which=t.keyCode);var e=u(t)
;if(e)return"keyup"==t.type&&_===e?void(_=!1):void v.handleKey(e,l(t),t)}function a(){clearTimeout(m),m=setTimeout(e,1e3)}function d(t,n,i,o){function s(n){r(i,n,t),"keyup"!==o&&(_=u(n)),setTimeout(e,10)}w[t]=0;for(var c=0;c<n.length;++c){var l=c+1===n.length,f=l?s:function(e){return function(){O=e,++w[t],a()}}(o||y(n[c+1]).action);g(n[c],f,o,t,c)}}function g(t,e,r,i,o){v._directMap[t+":"+r]=e,t=t.replace(/\s+/g," ");var a,s=t.split(" ");if(s.length>1)return void d(t,s,e,r);a=y(t,r),
v._callbacks[a.key]=v._callbacks[a.key]||[],n(a.key,a.modifiers,{type:a.action},i,t,o),v._callbacks[a.key][i?"unshift":"push"]({callback:e,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:t})}var v=this;if(t=t||o,!(v instanceof b))return new b(t);v.target=t,v._callbacks={},v._directMap={};var m,w={},_=!1,x=!1,O=!1;v._handleKey=function(t,i,o){var a,s=n(t,i,o),u={},c=0,l=!1;for(a=0;a<s.length;++a)s[a].seq&&(c=Math.max(c,s[a].level));for(a=0;a<s.length;++a)if(s[a].seq){
if(s[a].level!=c)continue;l=!0,u[s[a].seq]=1,r(s[a].callback,o,s[a].combo,s[a].seq)}else l||r(s[a].callback,o,s[a].combo);var f="keypress"==o.type&&x;o.type!=O||p(t)||f||e(u),x=l&&"keydown"==o.type},v._bindMultiple=function(t,e,n){for(var r=0;r<t.length;++r)g(t[r],e,n)},s(t,"keypress",i),s(t,"keydown",i),s(t,"keyup",i)}for(var w,_={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",
39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},x={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},O={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},T={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"
},S=1;S<20;++S)_[111+S]="f"+S;for(S=0;S<=9;++S)_[S+96]=S;b.prototype.bind=function(t,e,n){var r=this;return t=t instanceof Array?t:[t],r._bindMultiple.call(r,t,e,n),r},b.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},b.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},b.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},b.prototype.stopCallback=function(t,e){var n=this
;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!m(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},b.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},b.init=function(){var t=b(o);for(var e in t)"_"!==e.charAt(0)&&(b[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},b.init(),i.Mousetrap=b,void 0!==t&&t.exports&&(t.exports=b),void 0!==(r=function(){return b
}.call(e,n,e,t))&&(t.exports=r)}(window,document)},,,,,function(t,e,n){"use strict";var r={};t.exports=r},,,,function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a});var r=n(1),i=n.n(r),o=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),a=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired})},function(t,e,n){
"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,
configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function s(){}function u(t,e){var n={run:function(r){try{var i=t(e.getState(),r);(i!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=i,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}function c(t){
var e,n,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=c.getDisplayName,h=void 0===l?function(t){return"ConnectAdvanced("+t+")"}:l,w=c.methodName,_=void 0===w?"connectAdvanced":w,x=c.renderCountProp,O=void 0===x?void 0:x,T=c.shouldHandleStateChanges,S=void 0===T||T,E=c.storeKey,j=void 0===E?"store":E,k=c.withRef,C=void 0!==k&&k,A=a(c,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),P=j+"Subscription",M=m++,D=(e={},e[j]=v.a,
e[P]=v.b,e),I=(n={},n[P]=v.b,n);return function(e){p()("function"==typeof e,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",a=h(n),c=y({},A,{getDisplayName:h,methodName:_,renderCountProp:O,shouldHandleStateChanges:S,storeKey:j,withRef:C,displayName:a,wrappedComponentName:n,WrappedComponent:e}),l=function(n){function l(t,e){r(this,l);var o=i(this,n.call(this,t,e));return o.version=M,o.state={},
o.renderCount=0,o.store=t[j]||e[j],o.propsMode=Boolean(t[j]),o.setWrappedInstance=o.setWrappedInstance.bind(o),p()(o.store,'Could not find "'+j+'" in either the context or props of "'+a+'". Either wrap the root component in a <Provider>, or explicitly pass "'+j+'" as a prop to "'+a+'".'),o.initSelector(),o.initSubscription(),o}return o(l,n),l.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return t={},t[P]=e||this.context[P],t},
l.prototype.componentDidMount=function(){S&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},l.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,
this.selector.run=s,this.selector.shouldComponentUpdate=!1},l.prototype.getWrappedInstance=function(){return p()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},l.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},l.prototype.initSelector=function(){var e=t(this.store.dispatch,c);this.selector=u(e,this.store),this.selector.run(this.props)},l.prototype.initSubscription=function(){if(S){
var t=(this.propsMode?this.props:this.context)[P];this.subscription=new g.a(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},l.prototype.notifyNestedSubsOnComponentDidUpdate=function(){
this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.prototype.addExtraProps=function(t){if(!(C||O||this.propsMode&&this.subscription))return t;var e=y({},t);return C&&(e.ref=this.setWrappedInstance),O&&(e[O]=this.renderCount++),this.propsMode&&this.subscription&&(e[P]=this.subscription),e},l.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,
t.error)throw t.error;return Object(d.createElement)(e,this.addExtraProps(t.props))},l}(d.Component);return l.WrappedComponent=e,l.displayName=a,l.childContextTypes=I,l.contextTypes=D,l.propTypes=D,f()(l,e)}}e.a=c;var l=n(2242),f=n.n(l),h=n(183),p=n.n(h),d=n(0),g=(n.n(d),n(2243)),v=n(1211),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m=0,b={}},function(t,e,n){"use strict"
;function r(t,e,n){function i(){d===p&&(d=p.slice())}function s(){return h}function u(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return i(),d.push(t),function(){if(e){e=!1,i();var n=d.indexOf(t);d.splice(n,1)}}}function c(t){if(!(0,o.default)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.")
;if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,h=f(h,t)}finally{g=!1}for(var e=p=d,n=0;n<e.length;n++)e[n]();return t}function l(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");f=t,c({type:a.INIT})}if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){
if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var f=t,h=e,p=[],d=p,g=!1;return c({type:a.INIT}),{dispatch:c,subscribe:u,getState:s,replaceReducer:l}}e.__esModule=!0,e.ActionTypes=void 0,e.default=r;var i=n(273),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=e.ActionTypes={INIT:"@@redux/INIT"}},function(t,e,n){(function(e){
var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(158))},function(t,e,n){"use strict";function r(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.__esModule=!0,e.default=r},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){if(0===e.length)return arguments.length<=0?void 0:arguments[0];var t=e[e.length-1]
;return e.slice(0,-1).reduceRight(function(t,e){return e(t)},t.apply(void 0,arguments))}}e.__esModule=!0,e.default=r},function(t,e,n){"use strict";function r(t){return function(e,n){function r(){return i}var i=t(e,n);return r.dependsOnOwnProps=!1,r}}function i(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function o(t,e){return function(e,n){var r=(n.displayName,function(t,e){
return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)});return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=i(t);var o=r(e,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=i(o),o=r(e,n)),o},r}}e.a=r,e.b=o;n(1218)},function(t,e,n){"use strict";n(2254),n(838)},function(t,e,n){"use strict";var r=n(2256),i=r.a.Symbol;e.a=i},,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";/**
 * @license shallow-diff https://github.com/cosmosio/shallow-diff
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
 */
function r(t,e){if(t)throw new TypeError("simple-loop: "+e)}var i=n(2369);t.exports=function(t,e){r("object"!=typeof t,"the first object to compare with shallowDiff needs to be an object"),r("object"!=typeof e,"the second object to compare with shallowDiff needs to be an object");var n=[],o=[],a=[],s=[];return i(e,function(e,r){r in t?e!==t[r]?o.push(r):e===t[r]&&n.push(r):s.push(r)}),i(t,function(t,n){n in e||a.push(n)}),{updated:o,unchanged:n,added:s,deleted:a}}},function(t,e,n){"use strict"
;function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{
constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=n(0),c=r(u),l=n(1),f=r(l),h=n(1241),p=r(h),d=n(2374),g=r(d),v=n(1243),y={transitionName:v.nameShape.isRequired,transitionAppear:f.default.bool,transitionEnter:f.default.bool,
transitionLeave:f.default.bool,transitionAppearTimeout:(0,v.transitionTimeout)("Appear"),transitionEnterTimeout:(0,v.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,v.transitionTimeout)("Leave")},m={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},b=function(t){function e(){var n,r,a;i(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=o(this,t.call.apply(t,[this].concat(u))),r._wrapChild=function(t){return c.default.createElement(g.default,{
name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},t)},a=n,o(r,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(p.default,s({},this.props,{childFactory:this._wrapChild}))},e}(c.default.Component);b.displayName="CSSTransitionGroup",b.propTypes=y,b.defaultProps=m,
e.default=b,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t
},u=n(2371),c=r(u),l=n(0),f=r(l),h=n(1),p=r(h),d=n(2372),g=(r(d),n(2373)),v={component:p.default.any,childFactory:p.default.func,children:p.default.node},y={component:"span",childFactory:function(t){return t}},m=function(t){function e(n,r){i(this,e);var a=o(this,t.call(this,n,r));return a.performAppear=function(t){a.currentlyTransitioningKeys[t]=!0;var e=a.childRefs[t];e.componentWillAppear?e.componentWillAppear(a._handleDoneAppearing.bind(a,t)):a._handleDoneAppearing(t)},
a._handleDoneAppearing=function(t){var e=a.childRefs[t];e&&e.componentDidAppear&&e.componentDidAppear(),delete a.currentlyTransitioningKeys[t];var n=(0,g.getChildMapping)(a.props.children);n&&n.hasOwnProperty(t)||a.performLeave(t)},a.performEnter=function(t){a.currentlyTransitioningKeys[t]=!0;var e=a.childRefs[t];e.componentWillEnter?e.componentWillEnter(a._handleDoneEntering.bind(a,t)):a._handleDoneEntering(t)},a._handleDoneEntering=function(t){var e=a.childRefs[t]
;e&&e.componentDidEnter&&e.componentDidEnter(),delete a.currentlyTransitioningKeys[t];var n=(0,g.getChildMapping)(a.props.children);n&&n.hasOwnProperty(t)||a.performLeave(t)},a.performLeave=function(t){a.currentlyTransitioningKeys[t]=!0;var e=a.childRefs[t];e.componentWillLeave?e.componentWillLeave(a._handleDoneLeaving.bind(a,t)):a._handleDoneLeaving(t)},a._handleDoneLeaving=function(t){var e=a.childRefs[t];e&&e.componentDidLeave&&e.componentDidLeave(),delete a.currentlyTransitioningKeys[t]
;var n=(0,g.getChildMapping)(a.props.children);n&&n.hasOwnProperty(t)?a.performEnter(t):a.setState(function(e){var n=s({},e.children);return delete n[t],{children:n}})},a.childRefs=Object.create(null),a.state={children:(0,g.getChildMapping)(n.children)},a}return a(e,t),e.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},e.prototype.componentDidMount=function(){var t=this.state.children;for(var e in t)t[e]&&this.performAppear(e)},
e.prototype.componentWillReceiveProps=function(t){var e=(0,g.getChildMapping)(t.children),n=this.state.children;this.setState({children:(0,g.mergeChildMappings)(n,e)});for(var r in e){var i=n&&n.hasOwnProperty(r);!e[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=e&&e.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},e.prototype.componentDidUpdate=function(){var t=this.keysToEnter;this.keysToEnter=[],
t.forEach(this.performEnter);var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)},e.prototype.render=function(){var t=this,e=[];for(var n in this.state.children)!function(n){var r=t.state.children[n];if(r){var i="string"!=typeof r.ref,o=t.props.childFactory(r),a=function(e){t.childRefs[n]=e};o===r&&i&&(a=(0,c.default)(r.ref,a)),e.push(f.default.cloneElement(o,{key:n,ref:a}))}}(n);var r=s({},this.props);return delete r.transitionLeave,delete r.transitionName,
delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,f.default.createElement(this.props.component,r,e)},e}(f.default.Component);m.displayName="TransitionGroup",m.propTypes=v,m.defaultProps=y,e.default=m,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),
e.default=!("undefined"==typeof window||!window.document||!window.document.createElement),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){
if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}}e.__esModule=!0,e.nameShape=void 0,e.transitionTimeout=i;var o=n(0),a=(r(o),n(1)),s=r(a);e.nameShape=s.default.oneOfType([s.default.string,s.default.shape({
enter:s.default.string,leave:s.default.string,active:s.default.string}),s.default.shape({enter:s.default.string,enterActive:s.default.string,leave:s.default.string,leaveActive:s.default.string,appear:s.default.string,appearActive:s.default.string})])},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function n(t){var e=!1,n=0,r=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(r,{attributes:!0}),function(){
e||(e=!0,r.setAttribute("x-index",n),n+=1)}}function r(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},ut))}}function i(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function o(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&i(e[n])&&(r="px"),t.style[n]=e[n]+r})}function a(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[]
;var n=window.getComputedStyle(t,null);return e?n[e]:n}function u(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var e=s(t),n=e.overflow,r=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+r)?t:c(u(t))}function l(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||t.firstElementChild.offsetParent===t)}function f(t){return null!==t.parentNode?f(t.parentNode):t}function h(t){
var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?e:window.document.documentElement}function p(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||r.contains(i))return l(a)?a:h(a);var s=f(t);return s.host?p(s.host,e):p(t,f(e).host)}function d(t){
var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=window.document.documentElement;return(window.document.scrollingElement||i)[n]}return t[n]}function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(e,"top"),i=d(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function v(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom"
;return+t["border"+n+"Width"].split("px")[0]+ +t["border"+r+"Width"].split("px")[0]}function y(t,e,n,r){return Math.max(e["offset"+t],n["client"+t],n["offset"+t],pt()?n["offset"+t]+r["margin"+("Height"===t?"Top":"Left")]+r["margin"+("Height"===t?"Bottom":"Right")]:0)}function m(){var t=window.document.body,e=window.document.documentElement,n=pt()&&window.getComputedStyle(e);return{height:y("Height",t,e,n),width:y("Width",t,e,n)}}function b(t){return yt({},t,{right:t.left+t.width,
bottom:t.top+t.height})}function w(t){var e={};if(pt())try{e=t.getBoundingClientRect();var n=d(t,"top"),r=d(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}catch(t){}else e=t.getBoundingClientRect();var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?m():{},a=o.width||t.clientWidth||i.right-i.left,u=o.height||t.clientHeight||i.bottom-i.top,c=t.offsetWidth-a,l=t.offsetHeight-u;if(c||l){var f=s(t);c-=v(f,"x"),l-=v(f,"y"),i.width-=c,i.height-=l}
return b(i)}function _(t,e){var n=pt(),r="HTML"===e.nodeName,i=w(t),o=w(e),a=c(t),u=b({top:i.top-o.top,left:i.left-o.left,width:i.width,height:i.height});if(r||"BODY"===e.nodeName){var l=s(e),f=n&&r?0:+l.borderTopWidth.split("px")[0],h=n&&r?0:+l.borderLeftWidth.split("px")[0],p=n&&r?0:+l.marginTop.split("px")[0],d=n&&r?0:+l.marginLeft.split("px")[0];u.top-=f-p,u.bottom-=f-p,u.left-=h-d,u.right-=h-d,u.marginTop=p,u.marginLeft=d}return(n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=g(u,e)),u}
function x(t){var e=window.document.documentElement,n=_(t,e),r=Math.max(e.clientWidth,window.innerWidth||0),i=Math.max(e.clientHeight,window.innerHeight||0),o=d(e),a=d(e,"left");return b({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:r,height:i})}function O(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===s(t,"position")||O(u(t)))}function T(t,e,n,r){var i={top:0,left:0},o=p(t,e);if("viewport"===r)i=x(o);else{var a=void 0;"scrollParent"===r?(a=c(u(t)),
"BODY"===a.nodeName&&(a=window.document.documentElement)):a="window"===r?window.document.documentElement:r;var s=_(a,o);if("HTML"!==a.nodeName||O(o))i=s;else{var l=m(),f=l.height,h=l.width;i.top+=s.top-s.marginTop,i.bottom=f+s.top,i.left+=s.left-s.marginLeft,i.right=h+s.left}}return i.left+=n,i.top+=n,i.right-=n,i.bottom-=n,i}function S(t){return t.width*t.height}function E(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t
;var a=T(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map(function(t){return yt({key:t},s[t],{area:S(s[t])})}).sort(function(t,e){return e.area-t.area}),c=u.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),l=c.length>0?c[0].key:u[0].key,f=t.split("-")[1];return l+(f?"-"+f:"")}function j(t,e,n){
return _(n,p(e,n))}function k(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),r=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function C(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function A(t,e,n){n=n.split("-")[0];var r=k(t),i={width:r.width,height:r.height
},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[c]:e[C(s)],i}function P(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function M(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=P(t,function(t){return t[e]===n});return t.indexOf(r)}function D(t,e,n){return(void 0===n?t:t.slice(0,M(t,"name",n))).forEach(function(t){
t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&a(n)&&(e=n(e,t))}),e}function I(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=j(this.state,this.popper,this.reference),t.placement=E(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),
t.originalPlacement=t.placement,t.offsets.popper=A(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=D(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function N(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function R(t){for(var e=[!1,"ms","webkit","moz","o"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length-1;r++){var i=e[r],o=i?""+i+n:t
;if(void 0!==window.document.body.style[o])return o}return null}function L(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(t,e,n,r){var i="BODY"===t.nodeName,o=i?window:t;o.addEventListener(e,n,{
passive:!0}),i||U(c(o.parentNode),e,n,r),r.push(o)}function F(t,e,n,r){n.updateBound=r,window.addEventListener("resize",n.updateBound,{passive:!0});var i=c(t);return U(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function B(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function z(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){
t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=z(this.reference,this.state))}function H(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function W(t,e){var n={position:t.offsets.popper.position},r={"x-placement":t.placement
},i=Math.round(t.offsets.popper.left),a=Math.round(t.offsets.popper.top),s=R("transform");return e.gpuAcceleration&&s?(n[s]="translate3d("+i+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=i,n.top=a,n.willChange="top, left"),o(t.instance.popper,yt({},n,t.styles)),H(t.instance.popper,yt({},r,t.attributes)),t.offsets.arrow&&o(t.arrowElement,t.offsets.arrow),t}function V(t,e,n,r,i){var o=j(i,e,t),a=E(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding)
;return e.setAttribute("x-placement",a),n}function Y(t,e,n){var r=P(t,function(t){return t.name===e}),i=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function G(t,e){if(!Y(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t
}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],i=b(t.offsets.popper),o=t.offsets.reference,a=-1!==["left","right"].indexOf(r),s=a?"height":"width",u=a?"top":"left",c=a?"left":"top",l=a?"bottom":"right",f=k(n)[s];o[l]-f<i[u]&&(t.offsets.popper[u]-=i[u]-(o[l]-f)),o[u]+f>i[l]&&(t.offsets.popper[u]+=o[u]+f-i[l]);var h=o[u]+o[s]/2-f/2,p=h-b(t.offsets.popper)[u]
;return p=Math.max(Math.min(i[s]-f,p),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[u]=Math.floor(p),t.offsets.arrow[c]="",t}function X(t){return"end"===t?"start":"start"===t?"end":t}function K(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.indexOf(t),r=bt.slice(n+1).concat(bt.slice(0,n));return e?r.reverse():r}function $(t,e){if(N(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t
;var n=T(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),r=t.placement.split("-")[0],i=C(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case wt.FLIP:a=[r,i];break;case wt.CLOCKWISE:a=K(r);break;case wt.COUNTERCLOCKWISE:a=K(r,!0);break;default:a=e.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=C(r)
;var c=b(t.offsets.popper),l=t.offsets.reference,f=Math.floor,h="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),d=f(c.right)>f(n.right),g=f(c.top)<f(n.top),v=f(c.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&d||"top"===r&&g||"bottom"===r&&v,m=-1!==["top","bottom"].indexOf(r),w=!!e.flipVariations&&(m&&"start"===o&&p||m&&"end"===o&&d||!m&&"start"===o&&g||!m&&"end"===o&&v)
;(h||y||w)&&(t.flipped=!0,(h||y)&&(r=a[u+1]),w&&(o=X(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=yt({},t.offsets.popper,A(t.instance.popper,t.offsets.reference,t.placement)),t=D(t.instance.modifiers,t,"flip"))}),t}function Q(t){var e=b(t.offsets.popper),n=t.offsets.reference,r=t.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",s=o?"left":"top",u=o?"width":"height";return e[a]<i(n[s])&&(t.offsets.popper[s]=i(n[s])-e[u]),
e[s]>i(n[a])&&(t.offsets.popper[s]=i(n[a])),t}function J(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return b(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function Z(t,e,n,r){
var o=[0,0],a=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),u=s.indexOf(P(s,function(t){return-1!==t.search(/,|\s/)}));s[u]&&-1===s[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==u?[s.slice(0,u).concat([s[u].split(c)[0]]),[s[u].split(c)[1]].concat(s.slice(u+1))]:[s];return l=l.map(function(t,r){var i=(1===r?!a:a)?"height":"width",o=!1;return t.reduce(function(t,e){
return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)},[]).map(function(t){return J(t,i,e,n)})}),l.forEach(function(t,e){t.forEach(function(n,r){i(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))})}),o}function tt(t,e){var n=e.offset,r=t.placement,o=t.offsets,a=o.popper,s=o.reference,u=r.split("-")[0],c=void 0;return c=i(+n)?[+n,0]:Z(n,a,s,u),"left"===u?(a.top+=c[0],a.left-=c[1]):"right"===u?(a.top+=c[0],a.left+=c[1]):"top"===u?(a.left+=c[0],
a.top-=c[1]):"bottom"===u&&(a.left+=c[0],a.top+=c[1]),t.popper=a,t}function et(t,e){var n=e.boundariesElement||h(t.instance.popper),r=T(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=r;var i=e.priority,o=b(t.offsets.popper),a={primary:function(t){var n=o[t];return o[t]<r[t]&&!e.escapeWithReference&&(n=Math.max(o[t],r[t])),vt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=o[n]
;return o[t]>r[t]&&!e.escapeWithReference&&(i=Math.min(o[n],r[t]-("right"===t?o.width:o.height))),vt({},n,i)}};return i.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=yt({},o,a[e](t))}),t.offsets.popper=o,t}function nt(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets.reference,o=b(t.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",u=a?"width":"height",c={start:vt({},s,i[s]),end:vt({},s,i[s]+i[u]-o[u])}
;t.offsets.popper=yt({},o,c[r])}return t}function rt(t){if(!Y(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=P(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function it(t){
var e=t.placement,n=e.split("-")[0],r=b(t.offsets.popper),i=b(t.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=i[e]-(a?r[o?"width":"height"]:0),t.placement=C(e),t.offsets.popper=b(r),t}for(var ot=["native code","[object MutationObserverConstructor]"],at="undefined"!=typeof window,st=["Edge","Trident","Firefox"],ut=0,ct=0;ct<st.length;ct+=1)if(at&&navigator.userAgent.indexOf(st[ct])>=0){ut=1;break}var lt=at&&function(t){
return ot.some(function(e){return(t||"").toString().indexOf(e)>-1})}(window.MutationObserver),ft=lt?n:r,ht=void 0,pt=function(){return void 0===ht&&(ht=-1!==navigator.appVersion.indexOf("MSIE 10")),ht},dt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},gt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),vt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t
},mt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],bt=mt.slice(3),wt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},_t={shift:{order:100,enabled:!0,fn:nt},offset:{order:200,enabled:!0,fn:tt,offset:0},preventOverflow:{order:300,enabled:!0,fn:et,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,
enabled:!0,fn:Q},arrow:{order:500,enabled:!0,fn:G,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:$,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:it},hide:{order:800,enabled:!0,fn:rt},applyStyle:{order:900,enabled:!0,fn:W,onLoad:V,gpuAcceleration:!0}},xt={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:_t},Ot=function(){function t(e,n){
var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};dt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ft(this.update.bind(this)),this.options=yt({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,o(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(yt({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){
r.options.modifiers[e]=yt({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return yt({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&a(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return gt(t,[{key:"update",
value:function(){return I.call(this)}},{key:"destroy",value:function(){return L.call(this)}},{key:"enableEventListeners",value:function(){return B.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),t}();Ot.Utils=("undefined"!=typeof window?window:t).PopperUtils,Ot.placements=mt,Ot.Defaults=xt,e.default=Ot}.call(e,n(158))},,,function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getTime()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(852)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(537)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(374)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(854)},,function(t,e,n){var r=n(2407),i=n(2412);t.exports=n(859)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e
;t.exports=n}).call(e,n(158))},function(t,e){function n(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,i=r.toString;t.exports=n},function(t,e,n){"use strict";var r=n(541),i=n(377),o=n(649),a=n(870),s=n(871);e.a=function(){function t(t){var e,i,o,a,s,g=t.length,v=!1,y=new Array(g),m=new Array(g);for(null==h&&(d=p(s=Object(r.a)())),e=0;e<=g;++e){if(!(e<g&&f(a=t[e],e,t))===v)if(v=!v)i=e,d.areaStart(),d.lineStart();else{for(d.lineEnd(),
d.lineStart(),o=e-1;o>=i;--o)d.point(y[o],m[o]);d.lineEnd(),d.areaEnd()}v&&(y[e]=+n(a,e,t),m[e]=+c(a,e,t),d.point(u?+u(a,e,t):y[e],l?+l(a,e,t):m[e]))}if(s)return d=null,s+""||null}function e(){return Object(a.a)().defined(f).curve(p).context(h)}var n=s.a,u=null,c=Object(i.a)(0),l=s.b,f=Object(i.a)(!0),h=null,p=o.a,d=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),u=null,t):n},t.x0=function(e){
return arguments.length?(n="function"==typeof e?e:Object(i.a)(+e),t):n},t.x1=function(e){return arguments.length?(u=null==e?null:"function"==typeof e?e:Object(i.a)(+e),t):u},t.y=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),l=null,t):c},t.y0=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),t):c},t.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:Object(i.a)(+e),t):l},t.lineX0=t.lineY0=function(){
return e().x(n).y(c)},t.lineY1=function(){return e().x(n).y(l)},t.lineX1=function(){return e().x(u).y(c)},t.defined=function(e){return arguments.length?(f="function"==typeof e?e:Object(i.a)(!!e),t):f},t.curve=function(e){return arguments.length?(p=e,null!=h&&(d=p(h)),t):p},t.context=function(e){return arguments.length?(null==e?h=d=null:d=p(h=e),t):h},t}},function(t,e,n){"use strict";function r(t){this._curve=t}function i(t){function e(e){return new r(t(e))}return e._curve=t,e}
n.d(e,"a",function(){return a}),e.b=i;var o=n(649),a=i(o.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";function r(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){
return arguments.length?e(Object(i.b)(t)):e()._curve},t}e.a=r;var i=n(1263);n(870)},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(542);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),
t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),i=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/i),o=n*r;t.moveTo(0,-n),t.lineTo(o,0),t.lineTo(0,n),t.lineTo(-o,0),t.closePath()}}},function(t,e,n){"use strict";var r=n(542),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),o=Math.sin(r.m/10)*i,a=-Math.cos(r.m/10)*i
;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=o*n,s=a*n;t.moveTo(0,-n),t.lineTo(i,s);for(var u=1;u<5;++u){var c=r.m*u/5,l=Math.cos(c),f=Math.sin(c);t.lineTo(f*n,-l*n),t.lineTo(l*i-f*s,f*i+l*s)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}
},function(t,e,n){"use strict";var r=-.5,i=Math.sqrt(3)/2,o=1/Math.sqrt(12),a=3*(o/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/a),s=n/2,u=n*o,c=s,l=n*o+n,f=-c,h=l;t.moveTo(s,u),t.lineTo(c,l),t.lineTo(f,h),t.lineTo(r*s-i*u,i*s+r*u),t.lineTo(r*c-i*l,i*c+r*l),t.lineTo(r*f-i*h,i*f+r*h),t.lineTo(r*s+i*u,r*u-i*s),t.lineTo(r*c+i*l,r*l-i*c),t.lineTo(r*f+i*h,r*h-i*f),t.closePath()}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var i=n(650),o=n(652);r.prototype={
areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){
switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}
e.a=r;var i=n(652);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,
this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(null==t)return{};var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function a(t){
return c(t)||u(t)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function u(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){f(t,e,n[e])})}return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}function g(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?b(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var w,_,x,O=n(1277),T=n.n(O),S=n(0),E=n.n(S),j=n(1),k=n.n(j),C=n(2547),A=n(2551),P=n(1294),M=n(2572),D=n(659),I=Object(A.a)((x=_=function(t){function e(t,n){var r;h(this,e),
r=g(this,v(e).call(this,t,n));var i=r.props,o=i.isActive,a=i.attributeName,s=i.from,u=i.to,c=i.steps,l=i.children;if(r.handleStyleChange=r.handleStyleChange.bind(b(b(r))),r.changeStyle=r.changeStyle.bind(b(b(r))),!o)return r.state={style:{}},"function"==typeof l&&(r.state={style:u}),g(r);if(c&&c.length)r.state={style:c[0].style};else if(s){if("function"==typeof l)return r.state={style:s},g(r);r.state={style:a?f({},a,s):s}}else r.state={style:{}};return r}return y(e,t),d(e,[{
key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=t.isActive,n=t.canBegin,r=t.attributeName,i=t.shouldReAnimate;if(n){if(!e)return void this.setState({style:r?f({},r,t.to):t.to});if(!(T()(this.props.to,t.to)&&this.props.canBegin&&this.props.isActive)){var o=!this.props.canBegin||!this.props.isActive;this.manager&&this.manager.stop(),
this.stopJSAnimation&&this.stopJSAnimation();var a=o||i?t.from:this.props.to;this.setState({style:r?f({},r,a):a}),this.runAnimation(l({},t,{from:a,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(t){
var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,a=t.begin,s=t.onAnimationEnd,u=t.onAnimationStart,c=Object(M.a)(n,r,Object(P.a)(o),i,this.changeStyle),l=function(){e.stopJSAnimation=c()};this.manager.start([u,a,l,i,s])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],s=o.style,u=o.duration,c=void 0===u?0:u,f=function(t,r,i){if(0===i)return t
;var o=r.duration,s=r.easing,u=void 0===s?"ease":s,c=r.style,f=r.properties,h=r.onAnimationEnd,p=i>0?n[i-1]:r,d=f||Object.keys(c);if("function"==typeof u||"spring"===u)return a(t).concat([e.runJSAnimation.bind(e,{from:p.style,to:c,duration:o,easing:u}),o]);var g=Object(D.b)(d,o,u),v=l({},p.style,c,{transition:g});return a(t).concat([v,o,h]).filter(D.c)};return this.manager.start([i].concat(a(n.reduce(f,[s,Math.max(c,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){
this.manager||(this.manager=Object(C.a)());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,u=t.steps,c=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof o||"function"==typeof c||"spring"===o)return void this.runJSAnimation(t);if(u.length>1)return void this.runStepAnimation(t);var p=r?f({},r,i):i,d=Object(D.b)(Object.keys(p),n,o);h.start([a,e,l({},p,{transition:d}),n,s])}},{
key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),r=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,
i(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=S.Children.count(e),a=Object(D.e)(this.state.style);if("function"==typeof e)return e(a);if(!n||0===o)return e;var s=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,o=e.className;return Object(S.cloneElement)(t,l({},r,{style:l({},i,a),className:o}))}
;return 1===o?s(S.Children.only(e)):E.a.createElement("div",null,S.Children.map(e,function(t){return s(t)}))}}]),e}(S.Component),_.displayName="Animate",_.propTypes={from:k.a.oneOfType([k.a.object,k.a.string]),to:k.a.oneOfType([k.a.object,k.a.string]),attributeName:k.a.string,duration:k.a.number,begin:k.a.number,easing:k.a.oneOfType([k.a.string,k.a.func]),steps:k.a.arrayOf(k.a.shape({duration:k.a.number.isRequired,style:k.a.object.isRequired,
easing:k.a.oneOfType([k.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),k.a.func]),properties:k.a.arrayOf("string"),onAnimationEnd:k.a.func})),children:k.a.oneOfType([k.a.node,k.a.func]),isActive:k.a.bool,canBegin:k.a.bool,onAnimationEnd:k.a.func,shouldReAnimate:k.a.bool,onAnimationStart:k.a.func,onAnimationReStart:k.a.func},_.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},
onAnimationStart:function(){}},w=x))||w;e.a=I},function(t,e,n){function r(t,e){return i(t,e)}var i=n(874);t.exports=r},function(t,e,n){function r(t){var e=this.__data__=new i(t);this.size=e.size}var i=n(654),o=n(2497),a=n(2498),s=n(2499),u=n(2500),c=n(2501);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t)
;return e==s||e==u||e==a||e==c}var i=n(379),o=n(876),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(158))},function(t,e){function n(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,i=r.toString;t.exports=n},function(t,e,n){function r(t,e,n,r,c,l){
var f=n&s,h=t.length,p=e.length;if(h!=p&&!(f&&p>h))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var g=-1,v=!0,y=n&u?new i:void 0;for(l.set(t,e),l.set(e,t);++g<h;){var m=t[g],b=e[g];if(r)var w=f?r(b,m,g,e,t,l):r(m,b,g,t,e,l);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,function(t,e){if(!a(y,e)&&(m===t||c(m,t,n,r,l)))return y.push(e)})){v=!1;break}}else if(m!==b&&!c(m,b,n,r,l)){v=!1;break}}return l.delete(t),l.delete(e),v}var i=n(1284),o=n(2522),a=n(1285),s=1,u=2;t.exports=r
},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}var i=n(877),o=n(2520),a=n(2521);r.prototype.add=r.prototype.push=o,r.prototype.has=a,t.exports=r},function(t,e){function n(t,e){return t.has(e)}t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}t.exports=n},function(t,e,n){
var r=n(2535),i=n(315),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(t){var r=n(277),i=n(2536),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i;t.exports=l}).call(e,n(380)(t))},function(t,e){function n(t,e){var n=typeof t
;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){var r=n(2537),i=n(1291),o=n(2538),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){(function(e){
for(var r=n(2549),i="undefined"==typeof window?e:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,h=[];s=function(t){if(0===h.length){var e=r(),n=Math.max(0,1e3/60-(e-l));l=n+e,setTimeout(function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(t){setTimeout(function(){throw t
},0)}},Math.round(n))}return h.push({handle:++f,callback:t,cancelled:!1}),f},u=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}t.exports=function(t){return s.call(i,t)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=u}}).call(e,n(158))},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){
throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}n.d(e,"a",function(){return d});var s=n(659),u=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},c=function(t,e){return t.map(function(t,n){return t*Math.pow(e,n)}).reduce(function(t,e){return t+e})
},l=function(t,e){return function(n){var r=u(t,e);return c(r,n)}},f=function(t,e){return function(n){var i=u(t,e),o=r(i.map(function(t,e){return t*e}).slice(1)).concat([0]);return c(o,n)}},h=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break
;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:Object(s.f)(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', instead received %s",e)}Object(s.f)([r,o,i,a].every(function(t){return"number"==typeof t&&t>=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var u=l(r,o),c=l(i,a),h=f(r,o),p=function(t){return t>1?1:t<0?0:t},d=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i=u(n)-e,o=h(n)
;if(Math.abs(i-e)<1e-4||o<1e-4)return c(n);n=p(n-i/o)}return c(n)};return d.isStepper=!1,d},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,s=function(t,e,r){var o=-(t-e)*n,s=r*i,u=r+(o-s)*a/1e3,c=r*a/1e3+t;return Math.abs(c-e)<1e-4&&Math.abs(u)<1e-4?[e,0]:[c,u]};return s.isStepper=!0,s.dt=a,s},d=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n]
;var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return h(r);case"spring":return p();default:Object(s.f)(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear' and 'spring', instead  received %s",e)}return"function"==typeof r?r:(Object(s.f)(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)}},function(t,e,n){function r(t){
return t===t&&!i(t)}var i=n(876);t.exports=r},function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},function(t,e,n){function r(t,e){e=i(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[o(e[n++])];return n&&n==r?t:void 0}var i=n(1298),o=n(660);t.exports=r},function(t,e,n){function r(t,e){return i(t)?t:o(t,e)?[t]:a(s(t))}var i=n(253),o=n(883),a=n(2586),s=n(2589);t.exports=r},function(t,e,n){"use strict";function r(t){
return t&&t.__esModule?t:{default:t}}var i=r(n(2598)),o=r(n(2605)),a=r(n(1303)),s=r(n(1300));t.exports={Transition:s.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:i.default}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,
t.__proto__=e}function a(){}e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(545)),u=r(n(0)),c=r(n(129)),l=n(1301),f=(n(1302),"unmounted");e.UNMOUNTED=f
;var h="exited";e.EXITED=h;var p="entering";e.ENTERING=p;var d="entered";e.ENTERED=d;e.EXITING="exiting";var g=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(i=h,r.appearStatus=p):i=d:i=e.unmountOnExit||e.mountOnEnter?f:h,r.state={status:i},r.nextCallback=null,r}o(e,t);var n=e.prototype;return n.getChildContext=function(){return{transitionGroup:null}},
e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===f?{status:h}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==d&&(e=p):n!==p&&n!==d||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,
null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=r.appear),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=c.default.findDOMNode(this);e===p?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:f})},n.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts()
;if(!e&&!r)return void this.safeSetState({status:d},function(){n.props.onEntered(t)});this.props.onEnter(t,i),this.safeSetState({status:p},function(){n.props.onEntering(t,i),n.onTransitionEnd(t,o.enter,function(){n.safeSetState({status:d},function(){n.props.onEntered(t,i)})})})},n.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:h},function(){e.props.onExited(t)});this.props.onExit(t),this.safeSetState({status:"exiting"
},function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,function(){e.safeSetState({status:h},function(){e.props.onExited(t)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback
},n.onTransitionEnd=function(t,e,n){this.setNextCallback(n),t?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===f)return null;var e=this.props,n=e.children,r=i(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,
delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var o=u.default.Children.only(n);return u.default.cloneElement(o,r)},e}(u.default.Component);g.contextTypes={transitionGroup:s.object},g.childContextTypes={transitionGroup:function(){}},g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:a,onEntering:a,onEntered:a,onExit:a,onExiting:a,onExited:a},g.UNMOUNTED=0,
g.EXITED=1,g.ENTERING=2,g.ENTERED=3,g.EXITING=4;var v=(0,l.polyfill)(g);e.default=v},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){function e(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}this.setState(e.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,
this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),
"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()"
;throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),
"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"polyfill",function(){return a}),
r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(t,e,n){"use strict";function r(t){var e="transition"+t+"Timeout",n="transition"+t;return function(t){if(t[n]){if(null==t[e])return new Error(e+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.")
;if("number"!=typeof t[e])return new Error(e+" must be a number (in milliseconds)")}return null}}e.__esModule=!0,e.transitionTimeout=r,e.classNamesShape=e.timeoutsShape=void 0;var i=function(t){return t&&t.__esModule?t:{default:t}}(n(545)),o=i.default.oneOfType([i.default.number,i.default.shape({enter:i.default.number,exit:i.default.number}).isRequired]);e.timeoutsShape=o;var a=i.default.oneOfType([i.default.string,i.default.shape({enter:i.default.string,exit:i.default.string,
active:i.default.string}),i.default.shape({enter:i.default.string,enterDone:i.default.string,enterActive:i.default.string,exit:i.default.string,exitDone:i.default.string,exitActive:i.default.string})]);e.classNamesShape=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function o(){return o=Object.assign||function(t){
for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.__esModule=!0,e.default=void 0;var u=r(n(545)),c=r(n(0)),l=n(1301),f=n(2606),h=Object.values||function(t){
return Object.keys(t).map(function(e){return t[e]})},p={component:"div",childFactory:function(t){return t}},d=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i=r.handleExited.bind(s(s(r)));return r.state={handleExited:i,firstRender:!0},r}a(e,t);var n=e.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0},e.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{
children:e.firstRender?(0,f.getInitialChildMapping)(t,r):(0,f.getNextChildMapping)(t,n,r),firstRender:!1}},n.handleExited=function(t,e){var n=(0,f.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.setState(function(e){var n=o({},e.children);return delete n[t.key],{children:n}}))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=i(t,["component","childFactory"]),o=h(this.state.children).map(n);return delete r.appear,delete r.enter,
delete r.exit,null===e?o:c.default.createElement(e,r,o)},e}(c.default.Component);d.childContextTypes={transitionGroup:u.default.object.isRequired},d.propTypes={},d.defaultProps=p;var g=(0,l.polyfill)(d);e.default=g,t.exports=e.default},function(t,e,n){function r(t,e,n){function r(e){var n=m,r=b;return m=b=void 0,T=e,_=t.apply(r,n)}function l(t){return T=t,x=setTimeout(p,e),S?r(t):_}function f(t){var n=t-O,r=t-T,i=e-n;return E?c(i,w-r):i}function h(t){var n=t-O,r=t-T
;return void 0===O||n>=e||n<0||E&&r>=w}function p(){var t=o();if(h(t))return d(t);x=setTimeout(p,f(t))}function d(t){return x=void 0,j&&m?r(t):(m=b=void 0,_)}function g(){void 0!==x&&clearTimeout(x),T=0,m=O=b=x=void 0}function v(){return void 0===x?_:d(o())}function y(){var t=o(),n=h(t);if(m=arguments,b=this,O=t,n){if(void 0===x)return l(O);if(E)return x=setTimeout(p,e),r(O)}return void 0===x&&(x=setTimeout(p,e)),_}var m,b,w,_,x,O,T=0,S=!1,E=!1,j=!0;if("function"!=typeof t)throw new TypeError(s)
;return e=a(e)||0,i(n)&&(S=!!n.leading,E="maxWait"in n,w=E?u(a(n.maxWait)||0,e):w,j="trailing"in n?!!n.trailing:j),y.cancel=g,y.flush=v,y}var i=n(200),o=n(2611),a=n(1305),s="Expected a function",u=Math.max,c=Math.min;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=c.test(t)
;return n||l.test(t)?f(t.slice(2),n?2:8):u.test(t)?a:+t}var i=n(200),o=n(443),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;t.exports=r},function(t,e){function n(t,e,n){t instanceof RegExp&&(t=r(t,n)),e instanceof RegExp&&(e=r(e,n));var o=i(t,e,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+t.length,o[1]),post:n.slice(o[1]+e.length)}}function r(t,e){var n=e.match(t);return n?n[0]:null}function i(t,e,n){
var r,i,o,a,s,u=n.indexOf(t),c=n.indexOf(e,u+1),l=u;if(u>=0&&c>0){for(r=[],o=n.length;l>=0&&!s;)l==u?(r.push(l),u=n.indexOf(t,l+1)):1==r.length?s=[r.pop(),c]:(i=r.pop(),i<o&&(o=i,a=c),c=n.indexOf(e,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[o,a])}return s}t.exports=n,n.range=i},function(t,e,n){function r(t,e,n,r,c,l){var f=n&s,h=t.length,p=e.length;if(h!=p&&!(f&&p>h))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var g=-1,v=!0,y=n&u?new i:void 0;for(l.set(t,e),l.set(e,t);++g<h;){var m=t[g],b=e[g]
;if(r)var w=f?r(b,m,g,e,t,l):r(m,b,g,t,e,l);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!o(e,function(t,e){if(!a(y,e)&&(m===t||c(m,t,n,r,l)))return y.push(e)})){v=!1;break}}else if(m!==b&&!c(m,b,n,r,l)){v=!1;break}}return l.delete(t),l.delete(e),v}var i=n(2630),o=n(1308),a=n(2633),s=1,u=2;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}t.exports=n},function(t,e,n){var r=n(213),i=r.Uint8Array;t.exports=i},function(t,e,n){
function r(t){return i(t,a,o)}var i=n(1311),o=n(888),a=n(445);t.exports=r},function(t,e,n){function r(t,e,n){var r=e(t);return o(t)?r:i(r,n(t))}var i=n(887),o=n(104);t.exports=r},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),h=!n&&!r&&!l&&c(t),p=n||r||l||h,d=p?i(t.length,String):[],g=d.length
;for(var v in t)!e&&!f.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||d.push(v);return d}var i=n(2639),o=n(889),a=n(104),s=n(890),u=n(891),c=n(1314),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(2642),i=n(662),o=n(893),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){
var r=n(895),i=n(2650),o=n(2667),a=n(664),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},function(t,e,n){function r(t){return t===t&&!i(t)}var i=n(200);t.exports=r},function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},function(t,e,n){function r(t,e){var n=-1,r=o(t)?Array(t.length):[];return i(t,function(t,i,o){r[++n]=e(t,i,o)}),
r}var i=n(896),o=n(446);t.exports=r},function(t,e,n){function r(t,e){return t&&i(t,e,o)}var i=n(2661),o=n(445);t.exports=r},function(t,e,n){function r(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=o(r.length-e,0),u=Array(s);++a<s;)u[a]=r[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=r[a];return c[e]=n(u),i(t,this,c)}}var i=n(2668),o=Math.max;t.exports=r},function(t,e,n){var r=n(2669),i=n(2671),o=i(r);t.exports=o},function(t,e,n){var r=n(376),i=function(){try{
var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e){function n(t,e){return t>e}t.exports=n},function(t,e,n){function r(t){return t&&t.length?i(t,a,o):void 0}var i=n(665),o=n(1326),a=n(447);t.exports=r},function(t,e){function n(t,e){return t<e}t.exports=n},function(t,e,n){var r;!function(i){"use strict";function o(t,e){var n,r,i,o,a,s,u,c,l=t.constructor,f=l.precision;if(!t.s||!e.s)return e.s||(e=new l(t)),O?d(e,f):e;if(u=t.d,c=e.d,a=t.e,i=e.e,
u=u.slice(),o=a-i){for(o<0?(r=u,o=-o,s=c.length):(r=c,i=a,s=u.length),a=Math.ceil(f/P),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=u.length,o=c.length,s-o<0&&(o=s,r=c,c=u,u=r),n=0;o;)n=(u[--o]=u[o]+c[o]+n)/A|0,u[o]%=A;for(n&&(u.unshift(n),++i),s=u.length;0==u[--s];)u.pop();return e.d=u,e.e=i,O?d(e,f):e}function a(t,e,n){if(t!==~~t||t<e||t>n)throw Error(S+t)}function s(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",n=P-r.length,
n&&(o+=f(n)),o+=r;a=t[e],r=a+"",n=P-r.length,n&&(o+=f(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function u(t,e){var n,r,i,o,a,u,l=0,f=0,h=t.constructor,p=h.precision;if(c(t)>16)throw Error(E+c(t));if(!t.s)return new h(w);for(null==e?(O=!1,u=p):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(r=Math.log(k(2,f))/Math.LN10*2+5|0,u+=r,n=i=o=new h(w),h.precision=u;;){if(i=d(i.times(t),u),n=n.times(++l),a=o.plus(I(i,n,u)),s(a.d).slice(0,u)===s(o.d).slice(0,u)){
for(;f--;)o=d(o.times(o),u);return h.precision=p,null==e?(O=!0,d(o,p)):o}o=a}}function c(t){for(var e=t.e*P,n=t.d[0];n>=10;n/=10)e++;return e}function l(t,e,n){if(e>t.LN10.sd())throw O=!0,n&&(t.precision=n),Error(T+"LN10 precision limit exceeded");return d(new t(t.LN10),e)}function f(t){for(var e="";t--;)e+="0";return e}function h(t,e){var n,r,i,o,a,u,f,p,g,v=1,y=t,m=y.d,b=y.constructor,_=b.precision;if(y.s<1)throw Error(T+(y.s?"NaN":"-Infinity"));if(y.eq(w))return new b(0);if(null==e?(O=!1,
p=_):p=e,y.eq(10))return null==e&&(O=!0),l(b,p);if(p+=10,b.precision=p,n=s(m),r=n.charAt(0),o=c(y),!(Math.abs(o)<15e14))return f=l(b,p+2,_).times(o+""),y=h(new b(r+"."+n.slice(1)),p-10).plus(f),b.precision=_,null==e?(O=!0,d(y,_)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)y=y.times(t),n=s(y.d),r=n.charAt(0),v++;for(o=c(y),r>1?(y=new b("0."+n),o++):y=new b(r+"."+n.slice(1)),u=a=y=I(y.minus(w),y.plus(w),p),g=d(y.times(y),p),i=3;;){if(a=d(a.times(g),p),f=u.plus(I(a,new b(i),p)),
s(f.d).slice(0,p)===s(u.d).slice(0,p))return u=u.times(2),0!==o&&(u=u.plus(l(b,p+2,_).times(o+""))),u=I(u,new b(v),p),b.precision=_,null==e?(O=!0,d(u,_)):u;u=f,i+=2}}function p(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=j(n/P),t.d=[],r=(n+1)%P,n<0&&(r+=P),r<i){
for(r&&t.d.push(+e.slice(0,r)),i-=P;r<i;)t.d.push(+e.slice(r,r+=P));e=e.slice(r),r=P-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),O&&(t.e>M||t.e<-M))throw Error(E+n)}else t.s=0,t.e=0,t.d=[0];return t}function d(t,e,n){var r,i,o,a,s,u,l,f,h=t.d;for(a=1,o=h[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=P,i=e,l=h[f=0];else{if(f=Math.ceil((r+1)/P),o=h.length,f>=o)return t;for(l=o=h[f],a=1;o>=10;o/=10)a++;r%=P,i=r-P+a}if(void 0!==n&&(o=k(10,a-i-1),s=l/o%10|0,u=e<0||void 0!==h[f+1]||l%o,
u=n<4?(s||u)&&(0==n||n==(t.s<0?3:2)):s>5||5==s&&(4==n||u||6==n&&(r>0?i>0?l/k(10,a-i):0:h[f-1])%10&1||n==(t.s<0?8:7))),e<1||!h[0])return u?(o=c(t),h.length=1,e=e-o-1,h[0]=k(10,(P-e%P)%P),t.e=j(-e/P)||0):(h.length=1,h[0]=t.e=t.s=0),t;if(0==r?(h.length=f,o=1,f--):(h.length=f+1,o=k(10,P-r),h[f]=i>0?(l/k(10,a-i)%k(10,i)|0)*o:0),u)for(;;){if(0==f){(h[0]+=o)==A&&(h[0]=1,++t.e);break}if(h[f]+=o,h[f]!=A)break;h[f--]=0,o=1}for(r=h.length;0===h[--r];)h.pop();if(O&&(t.e>M||t.e<-M))throw Error(E+c(t))
;return t}function g(t,e){var n,r,i,o,a,s,u,c,l,f,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),O?d(e,p):e;if(u=t.d,f=e.d,r=e.e,c=t.e,u=u.slice(),a=c-r){for(l=a<0,l?(n=u,a=-a,s=f.length):(n=f,r=c,s=u.length),i=Math.max(Math.ceil(p/P),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=u.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){l=u[i]<f[i];break}a=0}for(l&&(n=u,u=f,f=n,e.s=-e.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0
;for(i=f.length;i>a;){if(u[--i]<f[i]){for(o=i;o&&0===u[--o];)u[o]=A-1;--u[o],u[i]+=A}u[i]-=f[i]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=r,O?d(e,p):e):new h(0)}function v(t,e,n){var r,i=c(t),o=s(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+f(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+f(-i-1)+o,n&&(r=n-a)>0&&(o+=f(r))):i>=a?(o+=f(i+1-a),
n&&(r=n-i-1)>0&&(o=o+"."+f(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=f(r))),t.s<0?"-"+o:o}function y(t,e){if(t.length>e)return t.length=e,!0}function m(t){function e(t){var n=this;if(!(n instanceof e))return new e(t);if(n.constructor=e,t instanceof e)return n.s=t.s,n.e=t.e,void(n.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(S+t);if(t>0)n.s=1;else{if(!(t<0))return n.s=0,n.e=0,void(n.d=[0]);t=-t,n.s=-1}return t===~~t&&t<1e7?(n.e=0,
void(n.d=[t])):p(n,t.toString())}if("string"!=typeof t)throw Error(S+t);if(45===t.charCodeAt(0)?(t=t.slice(1),n.s=-1):n.s=1,!C.test(t))throw Error(S+t);p(n,t)}var n,r,i;if(e.prototype=D,e.ROUND_UP=0,e.ROUND_DOWN=1,e.ROUND_CEIL=2,e.ROUND_FLOOR=3,e.ROUND_HALF_UP=4,e.ROUND_HALF_DOWN=5,e.ROUND_HALF_EVEN=6,e.ROUND_HALF_CEIL=7,e.ROUND_HALF_FLOOR=8,e.clone=m,e.config=e.set=b,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],
n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return e.config(t),e}function b(t){if(!t||"object"!=typeof t)throw Error(T+"Object expected");var e,n,r,i=["precision",1,_,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(j(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(S+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(S+n+": "+r);this[n]=new this(r)}return this}var w,_=1e9,x={precision:20,rounding:4,
toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},O=!0,T="[DecimalError] ",S=T+"Invalid argument: ",E=T+"Exponent out of range: ",j=Math.floor,k=Math.pow,C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=1e7,P=7,M=j(9007199254740991/P),D={};D.absoluteValue=D.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},D.comparedTo=D.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),
o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(r=o.d.length,i=t.d.length,e=0,n=r<i?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},D.decimalPlaces=D.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*P;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},D.dividedBy=D.div=function(t){return I(this,new this.constructor(t))},D.dividedToIntegerBy=D.idiv=function(t){var e=this,n=e.constructor;return d(I(e,new n(t),0,1),n.precision)},
D.equals=D.eq=function(t){return!this.cmp(t)},D.exponent=function(){return c(this)},D.greaterThan=D.gt=function(t){return this.cmp(t)>0},D.greaterThanOrEqualTo=D.gte=function(t){return this.cmp(t)>=0},D.isInteger=D.isint=function(){return this.e>this.d.length-2},D.isNegative=D.isneg=function(){return this.s<0},D.isPositive=D.ispos=function(){return this.s>0},D.isZero=function(){return 0===this.s},D.lessThan=D.lt=function(t){return this.cmp(t)<0},D.lessThanOrEqualTo=D.lte=function(t){
return this.cmp(t)<1},D.logarithm=D.log=function(t){var e,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===t)t=new r(10);else if(t=new r(t),t.s<1||t.eq(w))throw Error(T+"NaN");if(n.s<1)throw Error(T+(n.s?"NaN":"-Infinity"));return n.eq(w)?new r(0):(O=!1,e=I(h(n,o),h(t,o),o),O=!0,d(e,i))},D.minus=D.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?g(e,t):o(e,(t.s=-t.s,t))},D.modulo=D.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(t=new r(t),
!t.s)throw Error(T+"NaN");return n.s?(O=!1,e=I(n,t,0,1).times(t),O=!0,n.minus(e)):d(new r(n),i)},D.naturalExponential=D.exp=function(){return u(this)},D.naturalLogarithm=D.ln=function(){return h(this)},D.negated=D.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},D.plus=D.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?o(e,t):g(e,(t.s=-t.s,t))},D.precision=D.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(S+t);if(e=c(i)+1,
r=i.d.length-1,n=r*P+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},D.squareRoot=D.sqrt=function(){var t,e,n,r,i,o,a,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(T+"NaN")}for(t=c(u),O=!1,i=Math.sqrt(+u),0==i||i==1/0?(e=s(u.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=j((t+1)/2)-(t<0||t%2),i==1/0?e="1e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),r=new l(e)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,
r=o.plus(I(u,o,a+2)).times(.5),s(o.d).slice(0,a)===(e=s(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(d(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if("9999"!=e)break;a+=4}return O=!0,d(r,n)},D.times=D.mul=function(t){var e,n,r,i,o,a,s,u,c,l=this,f=l.constructor,h=l.d,p=(t=new f(t)).d;if(!l.s||!t.s)return new f(0);for(t.s*=l.s,n=l.e+t.e,u=h.length,c=p.length,u<c&&(o=h,h=p,p=o,a=u,u=c,c=a),o=[],a=u+c,r=a;r--;)o.push(0);for(r=c;--r>=0;){for(e=0,i=u+r;i>r;)s=o[i]+p[r]*h[i-r-1]+e,
o[i--]=s%A|0,e=s/A|0;o[i]=(o[i]+e)%A|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,O?d(t,f.precision):t},D.toDecimalPlaces=D.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(a(t,0,_),void 0===e?e=r.rounding:a(e,0,8),d(n,t+c(n)+1,e))},D.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=v(r,!0):(a(t,0,_),void 0===e?e=i.rounding:a(e,0,8),r=d(new i(r),t+1,e),n=v(r,!0,t+1)),n},D.toFixed=function(t,e){var n,r,i=this,o=i.constructor
;return void 0===t?v(i):(a(t,0,_),void 0===e?e=o.rounding:a(e,0,8),r=d(new o(i),t+c(i)+1,e),n=v(r.abs(),!1,t+c(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},D.toInteger=D.toint=function(){var t=this,e=t.constructor;return d(new e(t),c(t)+1,e.rounding)},D.toNumber=function(){return+this},D.toPower=D.pow=function(t){var e,n,r,i,o,a,s=this,c=s.constructor,l=+(t=new c(t));if(!t.s)return new c(w);if(s=new c(s),!s.s){if(t.s<1)throw Error(T+"Infinity");return s}if(s.eq(w))return s;if(r=c.precision,
t.eq(w))return d(s,r);if(e=t.e,n=t.d.length-1,a=e>=n,o=s.s,a){if((n=l<0?-l:l)<=9007199254740991){for(i=new c(w),e=Math.ceil(r/P+4),O=!1;n%2&&(i=i.times(s),y(i.d,e)),0!==(n=j(n/2));)s=s.times(s),y(s.d,e);return O=!0,t.s<0?new c(w).div(i):d(i,r)}}else if(o<0)throw Error(T+"NaN");return o=o<0&&1&t.d[Math.max(e,n)]?-1:1,s.s=1,O=!1,i=t.times(h(s,r+12)),O=!0,i=u(i),i.s=o,i},D.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?(n=c(i),
r=v(i,n<=o.toExpNeg||n>=o.toExpPos)):(a(t,1,_),void 0===e?e=o.rounding:a(e,0,8),i=d(new o(i),t,e),n=c(i),r=v(i,t<=n||n<=o.toExpNeg,t)),r},D.toSignificantDigits=D.tosd=function(t,e){var n=this,r=n.constructor;return void 0===t?(t=r.precision,e=r.rounding):(a(t,1,_),void 0===e?e=r.rounding:a(e,0,8)),d(new r(n),t,e)},D.toString=D.valueOf=D.val=D.toJSON=function(){var t=this,e=c(t),n=t.constructor;return v(t,e<=n.toExpNeg||e>=n.toExpPos)};var I=function(){function t(t,e){var n,r=0,i=t.length
;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%A|0,r=n/A|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*A+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a){var s,u,l,f,h,p,g,v,y,m,b,w,_,x,O,S,E,j,k=r.constructor,C=r.s==i.s?1:-1,M=r.d,D=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(T+"Division by zero");for(u=r.e-i.e,
E=D.length,O=M.length,g=new k(C),v=g.d=[],l=0;D[l]==(M[l]||0);)++l;if(D[l]>(M[l]||0)&&--u,(w=null==o?o=k.precision:a?o+(c(r)-c(i))+1:o)<0)return new k(0);if(w=w/P+2|0,l=0,1==E)for(f=0,D=D[0],w++;(l<O||f)&&w--;l++)_=f*A+(M[l]||0),v[l]=_/D|0,f=_%D|0;else{for(f=A/(D[0]+1)|0,f>1&&(D=t(D,f),M=t(M,f),E=D.length,O=M.length),x=E,y=M.slice(0,E),m=y.length;m<E;)y[m++]=0;j=D.slice(),j.unshift(0),S=D[0],D[1]>=A/2&&++S;do{f=0,s=e(D,y,E,m),s<0?(b=y[0],E!=m&&(b=b*A+(y[1]||0)),f=b/S|0,f>1?(f>=A&&(f=A-1),
h=t(D,f),p=h.length,m=y.length,1==(s=e(h,y,p,m))&&(f--,n(h,E<p?j:D,p))):(0==f&&(s=f=1),h=D.slice()),p=h.length,p<m&&h.unshift(0),n(y,h,m),-1==s&&(m=y.length,(s=e(D,y,E,m))<1&&(f++,n(y,E<m?j:D,m))),m=y.length):0===s&&(f++,y=[0]),v[l++]=f,s&&y[0]?y[m++]=M[x]||0:(y=[M[x]],m=1)}while((x++<O||void 0!==y[0])&&w--)}return v[0]||v.shift(),g.e=u,d(g,a?o+c(g)+1:o)}}();x=m(x),x.default=x.Decimal=x,w=new x(1),void 0!==(r=function(){return x}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){"use strict"
;function r(t){return a(t)||o(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}Object.defineProperty(e,"__esModule",{value:!0}),e.memoize=e.reverse=e.compose=e.map=e.range=e.curry=e.PLACE_HOLDER=void 0;var s=function(t){return t
},u={"@@functional/placeholder":!0};e.PLACE_HOLDER=u;var c=function(t){return t===u},l=function(t){return function e(){return 0===arguments.length||1===arguments.length&&c(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},f=function t(e,n){return 1===e?n:l(function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o.filter(function(t){return t!==u}).length;return s>=e?n.apply(void 0,o):t(e-s,l(function(){
for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var a=o.map(function(t){return c(t)?e.shift():t});return n.apply(void 0,r(a).concat(e))}))})},h=function(t){return f(t.length,t)};e.curry=h;var p=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n};e.range=p;var d=h(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)});e.map=d;var g=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n]
;if(!e.length)return s;var r=e.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce(function(t,e){return e(t)},i.apply(void 0,arguments))}};e.compose=g;var v=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")};e.reverse=v;var y=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every(function(t,n){return t===e[n]})?n:(e=i,n=t.apply(void 0,i))}};e.memoize=y},function(t,e,n){
"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2678);n.d(e,"scaleBand",function(){return r.a}),n.d(e,"scalePoint",function(){return r.b});var i=n(2701);n.d(e,"scaleIdentity",function(){return i.a});var o=n(449);n.d(e,"scaleLinear",function(){return o.a});var a=n(2728);n.d(e,"scaleLog",function(){return a.a});var s=n(1342);n.d(e,"scaleOrdinal",function(){return s.a}),n.d(e,"scaleImplicit",function(){return s.b});var u=n(2729);n.d(e,"scalePow",function(){return u.a}),
n.d(e,"scaleSqrt",function(){return u.b});var c=n(2730);n.d(e,"scaleQuantile",function(){return c.a});var l=n(2731);n.d(e,"scaleQuantize",function(){return l.a});var f=n(2732);n.d(e,"scaleThreshold",function(){return f.a});var h=n(1357);n.d(e,"scaleTime",function(){return h.b});var p=n(2748);n.d(e,"scaleUtc",function(){return p.a});var d=n(2749);n.d(e,"scaleSequential",function(){return d.a});var g=n(2750);n.d(e,"scaleDiverging",function(){return g.a})},function(t,e,n){"use strict"
;var r=n(448),i=n(1331),o=Object(i.a)(r.a),a=o.right;o.left;e.a=a},function(t,e,n){"use strict";function r(t){return function(e,n){return Object(i.a)(t(e),n)}}var i=n(448);e.a=function(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}},function(t,e,n){"use strict";function r(t,e){
return[t,e]}e.a=r},function(t,e,n){"use strict";var r=n(1334);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var r=n(547);e.a=function(t,e){var n,i,o=t.length,a=0,s=-1,u=0,c=0;if(null==e)for(;++s<o;)isNaN(n=Object(r.a)(t[s]))||(i=n-u,u+=i/++a,c+=i*(n-u));else for(;++s<o;)isNaN(n=Object(r.a)(e(t[s],s,t)))||(i=n-u,u+=i/++a,c+=i*(n-u));if(a>1)return c/(a-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){
for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=Array.prototype,i=r.slice,o=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n
;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}},function(t,e,n){"use strict";function r(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,i);return i>=0?(u>=o?10:u>=a?5:u>=s?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=o?10:u>=a?5:u>=s?2:1)}function i(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=o?i*=10:u>=a?i*=5:u>=s&&(i*=2),e<t?-i:i}e.b=r,e.c=i
;var o=Math.sqrt(50),a=Math.sqrt(10),s=Math.sqrt(2);e.a=function(t,e,n){var i,o,a,s,u=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(o=t,t=e,e=o),0===(s=r(t,e,n))||!isFinite(s))return[];if(s>0)for(t=Math.ceil(t/s),e=Math.floor(e/s),a=new Array(o=Math.ceil(e-t+1));++u<o;)a[u]=(t+u)*s;else for(t=Math.floor(t*s),e=Math.ceil(e*s),a=new Array(o=Math.ceil(t-e+1));++u<o;)a[u]=(t-u)/s;return i&&a.reverse(),a}},function(t,e,n){"use strict";e.a=function(t){
return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r}},function(t,e,n){"use strict";function r(t){return t.length}var i=n(1340);e.a=function(t){if(!(a=t.length))return[]
;for(var e=-1,n=Object(i.a)(t,r),o=new Array(n);++e<n;)for(var a,s=-1,u=o[e]=new Array(a);++s<a;)u[s]=t[s][e];return o}},function(t,e,n){"use strict";function r(t){function e(e){var r=e+"",i=n.get(r);if(!i){if(u!==a)return u;n.set(r,i=s.push(e))}return t[(i-1)%t.length]}var n=Object(i.a)(),s=[],u=a;return t=null==t?[]:o.b.call(t),e.domain=function(t){if(!arguments.length)return s.slice();s=[],n=Object(i.a)();for(var r,o,a=-1,u=t.length;++a<u;)n.has(o=(r=t[a])+"")||n.set(o,s.push(r));return e},
e.range=function(n){return arguments.length?(t=o.b.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(u=t,e):u},e.copy=function(){return r().domain(s).range(t).unknown(u)},e}n.d(e,"b",function(){return a}),e.a=r;var i=n(2695),o=n(382),a={name:"implicit"}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){
var n,r,o=e.length,a=new Array(o),s=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=Object(i.f)(e[n]),a[n]=r.r||0,s[n]=r.g||0,u[n]=r.b||0;return a=t(a),s=t(s),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=s(t),r.b=u(t),r+""}}}var i=n(450),o=n(903),a=n(1345),s=n(451);e.a=function t(e){function n(t,e){var n=r((t=Object(i.f)(t)).r,(e=Object(i.f)(e)).r),o=r(t.g,e.g),a=r(t.b,e.b),u=Object(s.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=a(e),t.opacity=u(e),t+""}}
var r=Object(s.b)(e);return n.gamma=t,n}(1);r(o.b),r(a.a)},function(t,e,n){"use strict";var r=n(903);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r.a)((n-i/e)*e,o,a,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(900);e.a=function(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i)
;for(n=0;n<o;++n)a[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(900);e.a=function(t,e){var n,i={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?i[n]=Object(r.a)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t)
;return o}}},function(t,e,n){"use strict";function r(t){return function(){return t}}function i(t){return function(e){return t(e)+""}}var o=n(666),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s=new RegExp(a.source,"g");e.a=function(t,e){var n,u,c,l=a.lastIndex=s.lastIndex=0,f=-1,h=[],p=[];for(t+="",e+="";(n=a.exec(t))&&(u=s.exec(e));)(c=u.index)>l&&(c=e.slice(l,c),h[f]?h[f]+=c:h[++f]=c),(n=n[0])===(u=u[0])?h[f]?h[f]+=u:h[++f]=u:(h[++f]=null,p.push({i:f,x:Object(o.a)(n,u)})),l=s.lastIndex
;return l<e.length&&(c=e.slice(l),h[f]?h[f]+=c:h[++f]=c),h.length<2?p[0]?i(p[0].x):r(e):(e=p.length,function(t){for(var n,r=0;r<e;++r)h[(n=p[r]).i]=n.x(t);return h.join("")})}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";var r=n(2718);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var i=(n(1353),n(1354));n.d(e,"c",function(){return i.a});var o=n(2725);n.d(e,"d",function(){return o.a});var a=n(2726);n.d(e,"e",function(){return a.a})
;var s=n(2727);n.d(e,"f",function(){return s.a})},function(t,e,n){"use strict";var r=n(668),i=n(2719),o=n(2720),a=n(1354),s=n(2721),u=n(2722),c=n(1355),l=n(2724),f=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){function e(t){function e(t){var e,o,a,u=x,p=O;if("c"===_)p=T(t)+p,t="";else{t=+t;var v=t<0;if(t=T(Math.abs(t),b),w&&(t=Object(s.a)(t)),v&&0==+t&&(v=!1),u=(v?"("===i?i:"-":"-"===i||"("===i?"":i)+u,p=("s"===_?f[8+c.b/3]:"")+p+(v&&"("===i?")":""),
S)for(e=-1,o=t.length;++e<o;)if(48>(a=t.charCodeAt(e))||a>57){p=(46===a?d+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}m&&!l&&(t=h(t,1/0));var E=u.length+t.length+p.length,j=E<y?new Array(y-E+1).join(n):"";switch(m&&l&&(t=h(j+t,j.length?y-p.length:1/0),j=""),r){case"<":t=u+t+p+j;break;case"=":t=u+j+t+p;break;case"^":t=j.slice(0,E=j.length>>1)+u+t+p+j.slice(E);break;default:t=j+u+t+p}return g(t)}t=Object(a.a)(t)
;var n=t.fill,r=t.align,i=t.sign,o=t.symbol,l=t.zero,y=t.width,m=t.comma,b=t.precision,w=t.trim,_=t.type;"n"===_?(m=!0,_="g"):u.a[_]||(null==b&&(b=12),w=!0,_="g"),(l||"0"===n&&"="===r)&&(l=!0,n="0",r="=");var x="$"===o?p[0]:"#"===o&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O="$"===o?p[1]:/[%p]/.test(_)?v:"",T=u.a[_],S=/[defgprs%]/.test(_);return b=null==b?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),e.toString=function(){return t+""},e}function n(t,n){
var i=e((t=Object(a.a)(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),s=Math.pow(10,-o),u=f[8+o/3];return function(t){return i(s*t)+u}}var h=t.grouping&&t.thousands?Object(i.a)(t.grouping,t.thousands):l.a,p=t.currency,d=t.decimal,g=t.numerals?Object(o.a)(t.numerals):l.a,v=t.percent||"%";return{format:e,formatPrefix:n}}},function(t,e,n){"use strict";function r(t){return new i(t)}function i(t){if(!(e=o.exec(t)))throw new Error("invalid format: "+t);var e
;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}e.a=r;var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;r.prototype=i.prototype,i.prototype.toString=function(){
return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r,i=n(905);e.a=function(t,e){var n=Object(i.a)(t,e);if(!n)return t+"";var o=n[0],a=n[1],s=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=o.length
;return s===u?o:s>u?o+new Array(s-u+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+Object(i.a)(t,Math.max(0,e+s-1))[0]}},function(t,e,n){"use strict";e.a=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}},function(t,e,n){"use strict";function r(t){return new Date(t)}function i(t){return t instanceof Date?+t:+new Date(+t)}function o(t,e,n,u,c,w,_,x,O){function T(r){
return(_(r)<r?C:w(r)<r?A:c(r)<r?P:u(r)<r?M:e(r)<r?n(r)<r?D:I:t(r)<r?N:R)(r)}function S(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,s=Object(a.c)(function(t){return t[2]}).right(L,o);s===L.length?(i=Object(a.g)(n/b,r/b,e),e=t):s?(s=L[o/L[s-1][2]<L[s][2]/o?s-1:s],i=s[1],e=s[0]):(i=Math.max(Object(a.g)(n,r,e),1),e=x)}return null==i?e:e.every(i)}
var E=Object(f.b)(f.c,s.b),j=E.invert,k=E.domain,C=O(".%L"),A=O(":%S"),P=O("%I:%M"),M=O("%I %p"),D=O("%a %d"),I=O("%b %d"),N=O("%B"),R=O("%Y"),L=[[_,1,p],[_,5,5*p],[_,15,15*p],[_,30,30*p],[w,1,d],[w,5,5*d],[w,15,15*d],[w,30,30*d],[c,1,g],[c,3,3*g],[c,6,6*g],[c,12,12*g],[u,1,v],[u,2,2*v],[n,1,y],[e,1,m],[e,3,3*m],[t,1,b]];return E.invert=function(t){return new Date(j(t))},E.domain=function(t){return arguments.length?k(l.a.call(t,i)):k().map(r)},E.ticks=function(t,e){
var n,r=k(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=S(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},E.tickFormat=function(t,e){return null==e?T:O(e)},E.nice=function(t,e){var n=k();return(t=S(t,n[0],n[n.length-1],e))?k(Object(h.a)(n,t)):E},E.copy=function(){return Object(f.a)(E,o(t,e,n,u,c,w,_,x,O))},E}e.a=o;var a=n(279),s=n(899),u=n(906),c=n(1358),l=n(382),f=n(667),h=n(1356),p=1e3,d=60*p,g=60*d,v=24*g,y=7*v,m=30*v,b=365*v;e.b=function(){
return o(u.k,u.f,u.j,u.a,u.b,u.d,u.g,u.c,c.a).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}},function(t,e,n){"use strict";var r=n(907);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(1359),n(1360),n(2747)},function(t,e,n){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function i(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L))
;return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function a(t){function e(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=dt[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function n(t,e){return function(n){
var r,s,u=o(1900),c=a(u,t,n+="",0);if(c!=n.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(r=i(o(u.y)),s=r.getUTCDay(),r=s>4||0===s?pt.p.ceil(r):Object(pt.p)(r),r=pt.l.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(r=e(o(u.y)),s=r.getDay(),r=s>4||0===s?pt.e.ceil(r):Object(pt.e)(r),r=pt.a.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),
u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),s="Z"in u?i(o(u.y)).getUTCDay():e(o(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(s+5)%7:u.w+7*u.U-(s+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,i(u)):e(u)}}function a(t,e,n,r){for(var i,o,a=0,s=e.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Qt[i in dt?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}
function s(t,e,n){var r=Ft.exec(e.slice(n));return r?(t.p=Bt[r[0].toLowerCase()],n+r[0].length):-1}function u(t,e,n){var r=Ht.exec(e.slice(n));return r?(t.w=Wt[r[0].toLowerCase()],n+r[0].length):-1}function gt(t,e,n){var r=zt.exec(e.slice(n));return r?(t.w=qt[r[0].toLowerCase()],n+r[0].length):-1}function vt(t,e,n){var r=Gt.exec(e.slice(n));return r?(t.m=Xt[r[0].toLowerCase()],n+r[0].length):-1}function yt(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.m=Yt[r[0].toLowerCase()],n+r[0].length):-1}
function mt(t,e,n){return a(t,Pt,e,n)}function bt(t,e,n){return a(t,Mt,e,n)}function wt(t,e,n){return a(t,Dt,e,n)}function _t(t){return Rt[t.getDay()]}function xt(t){return Nt[t.getDay()]}function Ot(t){return Ut[t.getMonth()]}function Tt(t){return Lt[t.getMonth()]}function St(t){return It[+(t.getHours()>=12)]}function Et(t){return Rt[t.getUTCDay()]}function jt(t){return Nt[t.getUTCDay()]}function kt(t){return Ut[t.getUTCMonth()]}function Ct(t){return Lt[t.getUTCMonth()]}function At(t){
return It[+(t.getUTCHours()>=12)]}var Pt=t.dateTime,Mt=t.date,Dt=t.time,It=t.periods,Nt=t.days,Rt=t.shortDays,Lt=t.months,Ut=t.shortMonths,Ft=c(It),Bt=l(It),zt=c(Nt),qt=l(Nt),Ht=c(Rt),Wt=l(Rt),Vt=c(Lt),Yt=l(Lt),Gt=c(Ut),Xt=l(Ut),Kt={a:_t,A:xt,b:Ot,B:Tt,c:null,d:A,e:A,f:N,H:P,I:M,j:D,L:I,m:R,M:L,p:St,Q:ft,s:ht,S:U,u:F,U:B,V:z,w:q,W:H,x:null,X:null,y:W,Y:V,Z:Y,"%":lt},$t={a:Et,A:jt,b:kt,B:Ct,c:null,d:G,e:G,f:J,H:X,I:K,j:$,L:Q,m:Z,M:tt,p:At,Q:ft,s:ht,S:et,u:nt,U:rt,V:it,w:ot,W:at,x:null,X:null,
y:st,Y:ut,Z:ct,"%":lt},Qt={a:u,A:gt,b:vt,B:yt,c:mt,d:w,e:w,f:E,H:x,I:x,j:_,L:S,m:b,M:O,p:s,Q:k,s:C,S:T,u:h,U:p,V:d,w:f,W:g,x:bt,X:wt,y:y,Y:v,Z:m,"%":j};return Kt.x=e(Mt,Kt),Kt.X=e(Dt,Kt),Kt.c=e(Pt,Kt),$t.x=e(Mt,$t),$t.X=e(Dt,$t),$t.c=e(Pt,$t),{format:function(t){var n=e(t+="",Kt);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",$t);return n.toString=function(){return t},n},
utcParse:function(t){var e=n(t,i);return e.toString=function(){return t},e}}}function s(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function u(t){return t.replace(yt,"\\$&")}function c(t){return new RegExp("^(?:"+t.map(u).join("|")+")","i")}function l(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function f(t,e,n){var r=gt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function h(t,e,n){
var r=gt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function p(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function d(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function g(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function v(t,e,n){var r=gt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function y(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),
n+r[0].length):-1}function m(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function b(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function w(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function _(t,e,n){var r=gt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function x(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.H=+r[0],
n+r[0].length):-1}function O(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function T(t,e,n){var r=gt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function S(t,e,n){var r=gt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function E(t,e,n){var r=gt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function j(t,e,n){var r=vt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function k(t,e,n){var r=gt.exec(e.slice(n))
;return r?(t.Q=+r[0],n+r[0].length):-1}function C(t,e,n){var r=gt.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function A(t,e){return s(t.getDate(),e,2)}function P(t,e){return s(t.getHours(),e,2)}function M(t,e){return s(t.getHours()%12||12,e,2)}function D(t,e){return s(1+pt.a.count(Object(pt.k)(t),t),e,3)}function I(t,e){return s(t.getMilliseconds(),e,3)}function N(t,e){return I(t,e)+"000"}function R(t,e){return s(t.getMonth()+1,e,2)}function L(t,e){return s(t.getMinutes(),e,2)}
function U(t,e){return s(t.getSeconds(),e,2)}function F(t){var e=t.getDay();return 0===e?7:e}function B(t,e){return s(pt.h.count(Object(pt.k)(t),t),e,2)}function z(t,e){var n=t.getDay();return t=n>=4||0===n?Object(pt.i)(t):pt.i.ceil(t),s(pt.i.count(Object(pt.k)(t),t)+(4===Object(pt.k)(t).getDay()),e,2)}function q(t){return t.getDay()}function H(t,e){return s(pt.e.count(Object(pt.k)(t),t),e,2)}function W(t,e){return s(t.getFullYear()%100,e,2)}function V(t,e){return s(t.getFullYear()%1e4,e,4)}
function Y(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+s(e/60|0,"0",2)+s(e%60,"0",2)}function G(t,e){return s(t.getUTCDate(),e,2)}function X(t,e){return s(t.getUTCHours(),e,2)}function K(t,e){return s(t.getUTCHours()%12||12,e,2)}function $(t,e){return s(1+pt.l.count(Object(pt.v)(t),t),e,3)}function Q(t,e){return s(t.getUTCMilliseconds(),e,3)}function J(t,e){return Q(t,e)+"000"}function Z(t,e){return s(t.getUTCMonth()+1,e,2)}function tt(t,e){return s(t.getUTCMinutes(),e,2)}
function et(t,e){return s(t.getUTCSeconds(),e,2)}function nt(t){var e=t.getUTCDay();return 0===e?7:e}function rt(t,e){return s(pt.s.count(Object(pt.v)(t),t),e,2)}function it(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(pt.t)(t):pt.t.ceil(t),s(pt.t.count(Object(pt.v)(t),t)+(4===Object(pt.v)(t).getUTCDay()),e,2)}function ot(t){return t.getUTCDay()}function at(t,e){return s(pt.p.count(Object(pt.v)(t),t),e,2)}function st(t,e){return s(t.getUTCFullYear()%100,e,2)}function ut(t,e){
return s(t.getUTCFullYear()%1e4,e,4)}function ct(){return"+0000"}function lt(){return"%"}function ft(t){return+t}function ht(t){return Math.floor(+t/1e3)}e.a=a;var pt=n(906),dt={"-":"",_:" ",0:"0"},gt=/^\s*\d+/,vt=/^%/,yt=/[\\^$*+?|[\]().{}]/g},function(t,e,n){"use strict";function r(t){return t.toISOString()}n.d(e,"a",function(){return o});var i=n(907),o="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(i.b)(o)},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){
var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){
return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var g,v,y,m=n(82),b=n.n(m),w=n(0),_=n.n(w),x=n(49),O=n.n(x),T=n(66),S=n.n(T),E=n(60),j=n(113),k=n(383),C=n(55),A=n(316),P=n(83),M=n(135),D=n(317),I=n(546),N=Object(E.a)((y=v=function(t){function e(){return s(this,e),l(this,h(e).apply(this,arguments))}return p(e,t),c(e,[{key:"getCoordinate",value:function(){var t=this.props,e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=D.a.create({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return Object(M.x)(this.props,"discard")&&!o.isInRange(a)?null:a}},{
key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.r,i=t.alwaysShow,a=t.clipPathId,s=Object(P.g)(e),u=Object(P.g)(n);if(Object(I.a)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!u)return null;var c=this.getCoordinate();if(!c)return null;var l=c.x,f=c.y,h=this.props,p=h.shape,d=h.className,g=Object(M.x)(this.props,"hidden")?"url(#".concat(a,")"):void 0,v=o({clipPath:g},Object(C.k)(this.props),Object(C.e)(this.props),{cx:l,cy:f})
;return _.a.createElement(j.a,{className:S()("recharts-reference-dot",d)},this.constructor.renderDot(p,v),A.a.renderCallByParent(this.props,{x:l-r,y:f-r,width:2*r,height:2*r}))}}],[{key:"renderDot",value:function(t,e){return _.a.isValidElement(t)?_.a.cloneElement(t,e):b()(t)?t(e):_.a.createElement(k.a,i({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}}]),e}(w.Component),v.displayName="ReferenceDot",v.propTypes=o({},C.c,C.a,{r:O.a.number,xAxis:O.a.shape({scale:O.a.func}),
yAxis:O.a.shape({scale:O.a.func}),isFront:O.a.bool,alwaysShow:O.a.bool,ifOverflow:O.a.oneOf(["hidden","visible","discard","extendDomain"]),x:O.a.oneOfType([O.a.number,O.a.string]),y:O.a.oneOfType([O.a.number,O.a.string]),className:O.a.oneOfType([O.a.number,O.a.string]),yAxisId:O.a.oneOfType([O.a.string,O.a.number]),xAxisId:O.a.oneOfType([O.a.string,O.a.number]),shape:O.a.oneOfType([O.a.func,O.a.element]),clipPathId:O.a.string}),v.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,
r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},g=y))||g;e.a=N},function(t,e,n){function r(t,e,n){var r=s(t)?i:o;return n&&u(t,e,n)&&(e=void 0),r(t,a(e,3))}var i=n(2751),o=n(2752),a=n(254),s=n(104),u=n(664);t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return c(t)||u(t,e)||s()}function s(){
throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function c(t){if(Array.isArray(t))return t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){
var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function p(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)
})(t)}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(){return m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}
return t},m.apply(this,arguments)}var b,w,_,x=n(2754),O=n.n(x),T=n(82),S=n.n(T),E=n(0),j=n.n(E),k=n(49),C=n.n(k),A=n(66),P=n.n(A),M=n(60),D=n(113),I=n(55),N=n(316),R=n(135),L=n(83),U=n(317),F=n(546),B=function(t,e){return j.a.isValidElement(t)?j.a.cloneElement(t,e):S()(t)?t(e):j.a.createElement("line",m({},e,{className:"recharts-reference-line-line"}))},z=Object(M.a)((_=w=function(t){function e(){return l(this,e),p(this,g(e).apply(this,arguments))}return v(e,t),h(e,[{key:"getEndPoints",
value:function(t,e,n,r){var i=this.props.viewBox,o=i.x,a=i.y,s=i.width,u=i.height;if(n){var c=this.props,l=c.y,f=c.yAxis.orientation,h=t.y.apply(l);if(Object(R.x)(this.props,"discard")&&!t.y.isInRange(h))return null;var p=[{x:o+s,y:h},{x:o,y:h}];return"left"===f?p.reverse():p}if(e){var d=this.props,g=d.x,v=d.xAxis.orientation,y=t.x.apply(g);if(Object(R.x)(this.props,"discard")&&!t.x.isInRange(y))return null;var m=[{x:y,y:a+u},{x:y,y:a}];return"top"===v?m.reverse():m}if(r){
var b=this.props.segment,w=b.map(function(e){return t.apply(e)});return Object(R.x)(this.props,"discard")&&O()(w,function(e){return!t.isInRange(e)})?null:w}return null}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.segment,o=t.xAxis,s=t.yAxis,u=t.shape,c=t.className,l=t.alwaysShow,f=t.clipPathId;Object(F.a)(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=U.a.create({x:o.scale,y:s.scale
}),p=Object(L.g)(e),d=Object(L.g)(n),g=r&&2===r.length,v=this.getEndPoints(h,p,d,g);if(!v)return null;var y=a(v,2),m=y[0],b=m.x,w=m.y,_=y[1],x=_.x,O=_.y,T=Object(R.x)(this.props,"hidden")?"url(#".concat(f,")"):void 0,S=i({clipPath:T},Object(I.k)(this.props),Object(I.e)(this.props),{x1:b,y1:w,x2:x,y2:O});return j.a.createElement(D.a,{className:P()("recharts-reference-line",c)},B(u,S),N.a.renderCallByParent(this.props,Object(U.c)({x1:b,y1:w,x2:x,y2:O})))}}]),e}(E.Component),
w.displayName="ReferenceLine",w.propTypes=i({},I.c,{viewBox:C.a.shape({x:C.a.number,y:C.a.number,width:C.a.number,height:C.a.number}),xAxis:C.a.object,yAxis:C.a.object,isFront:C.a.bool,alwaysShow:C.a.bool,ifOverflow:C.a.oneOf(["hidden","visible","discard","extendDomain"]),x:C.a.oneOfType([C.a.number,C.a.string]),y:C.a.oneOfType([C.a.number,C.a.string]),segment:C.a.arrayOf(C.a.shape({x:C.a.oneOfType([C.a.number,C.a.string]),y:C.a.oneOfType([C.a.number,C.a.string])})),
className:C.a.oneOfType([C.a.number,C.a.string]),yAxisId:C.a.oneOfType([C.a.string,C.a.number]),xAxisId:C.a.oneOfType([C.a.string,C.a.number]),shape:C.a.func}),w.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1},b=_))||b;e.a=z},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var g,v,y,m=n(82),b=n.n(m),w=n(0),_=n.n(w),x=n(49),O=n.n(x),T=n(66),S=n.n(T),E=n(60),j=n(113),k=n(316),C=n(317),A=n(135),P=n(83),M=n(546),D=n(55),I=n(452),N=Object(E.a)((y=v=function(t){function e(){return s(this,e),l(this,h(e).apply(this,arguments))}return p(e,t),c(e,[{key:"getRect",value:function(t,e,n,r){var i=this.props,o=i.x1,a=i.x2,s=i.y1,u=i.y2,c=i.xAxis,l=i.yAxis,f=C.a.create({x:c.scale,y:l.scale}),h={x:t?f.x.apply(o):f.x.rangeMin,y:n?f.y.apply(s):f.y.rangeMin},p={
x:e?f.x.apply(a):f.x.rangeMax,y:r?f.y.apply(u):f.y.rangeMax};return!Object(A.x)(this.props,"discard")||f.isInRange(h)&&f.isInRange(p)?Object(C.d)(h,p):null}},{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,r=t.y1,i=t.y2,a=t.className,s=t.alwaysShow,u=t.clipPathId;Object(M.a)(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Object(P.g)(e),l=Object(P.g)(n),f=Object(P.g)(r),h=Object(P.g)(i);if(!(c||l||f||h))return null
;var p=this.getRect(c,l,f,h);if(!p)return null;var d=this.props.shape,g=Object(A.x)(this.props,"hidden")?"url(#".concat(u,")"):void 0;return _.a.createElement(j.a,{className:S()("recharts-reference-area",a)},this.constructor.renderRect(d,o({clipPath:g},this.props,p)),k.a.renderCallByParent(this.props,p))}}],[{key:"renderRect",value:function(t,e){return _.a.isValidElement(t)?_.a.cloneElement(t,e):b()(t)?t(e):_.a.createElement(I.a,i({},e,{className:"recharts-reference-area-rect"}))}}]),e
}(w.Component),v.displayName="ReferenceArea",v.propTypes=o({},D.c,{viewBox:O.a.shape({x:O.a.number,y:O.a.number,width:O.a.number,height:O.a.number}),xAxis:O.a.object,yAxis:O.a.object,isFront:O.a.bool,alwaysShow:O.a.bool,ifOverflow:O.a.oneOf(["hidden","visible","discard","extendDomain"]),x1:O.a.oneOfType([O.a.number,O.a.string]),x2:O.a.oneOfType([O.a.number,O.a.string]),y1:O.a.oneOfType([O.a.number,O.a.string]),y2:O.a.oneOfType([O.a.number,O.a.string]),
className:O.a.oneOfType([O.a.number,O.a.string]),yAxisId:O.a.oneOfType([O.a.string,O.a.number]),xAxisId:O.a.oneOfType([O.a.string,O.a.number]),shape:O.a.oneOfType([O.a.func,O.a.element])}),v.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},g=y))||g;e.a=N},function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},function(t,e,n){"use strict";function r(t){
return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}
function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){
return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(66),x=n.n(_),O=n(60),T=n(83),S=n(55),E=Object(O.a)((v=g=function(t){function e(){return a(this,e),c(this,f(e).apply(this,arguments))}return h(e,t),u(e,[{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.top,s=t.left,u=t.className
;return Object(T.h)(e)&&Object(T.h)(n)&&Object(T.h)(r)&&Object(T.h)(i)&&Object(T.h)(a)&&Object(T.h)(s)?m.a.createElement("path",o({},Object(S.k)(this.props),{className:x()("recharts-cross",u),d:this.constructor.getPath(e,n,r,i,a,s)})):null}}],[{key:"getPath",value:function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)}}]),e}(y.Component),g.displayName="Cross",g.propTypes=function(t){for(var e=1;e<arguments.length;e++){
var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}({},S.c,{x:w.a.number,y:w.a.number,width:w.a.number,height:w.a.number,top:w.a.number,left:w.a.number,className:w.a.string}),g.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0},d=v))||d;e.a=E},function(t,e,n){
function r(t,e){return t&&t.length?i(t,a(e,2),o):void 0}var i=n(665),o=n(1324),a=n(254);t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,
enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){
if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){
return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g,v,y,m=n(278),b=n.n(m),w=n(909),_=n.n(w),x=n(82),O=n.n(x),T=n(199),S=n.n(T),E=n(0),j=n.n(E),k=n(49),C=n.n(k),A=n(214),P=n(66),M=n.n(P),D=n(60),I=n(113),N=n(669),R=n(453),L=n(381),U=n(316),F=n(281),B=n(444),z=n(55),q=n(235),H=n(83),W=n(135),V=n(546),Y=Object(D.a)((y=v=function(t){function e(){var t,n;s(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o]
;return n=l(this,(t=h(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!1},n.id=Object(H.k)("recharts-pie-"),n.cachePrevData=function(t){n.setState({prevSectors:t})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),O()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),O()(t)&&t()},n}return p(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){
var e=this.props,n=e.animationId,r=e.sectors;t.isAnimationActive!==this.props.isAnimationActive?this.cachePrevData([]):t.animationId!==n&&this.cachePrevData(r)}},{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderLabels",value:function(t){var e=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null
;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,s=n.valueKey,u=Object(z.k)(this.props),c=Object(z.k)(r),l=Object(z.k)(i),f=r&&r.offsetRadius||20,h=t.map(function(t,n){var h=(t.startAngle+t.endAngle)/2,p=Object(q.e)(t.cx,t.cy,t.outerRadius+f,h),d=o({},u,t,{stroke:"none"},c,{index:n,textAnchor:e.constructor.getTextAnchor(p.x,t.cx)},p),g=o({},u,t,{fill:"none",stroke:t.fill},l,{index:n,points:[Object(q.e)(t.cx,t.cy,t.outerRadius,h),p]}),v=a;return S()(a)&&S()(s)?v="value":S()(a)&&(v=s),
j.a.createElement(I.a,{key:"label-".concat(n)},i&&e.constructor.renderLabelLineItem(i,g),e.constructor.renderLabelItem(r,d,Object(W.w)(t,v)))});return j.a.createElement(I.a,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,r=n.activeShape,a=n.blendStroke;return t.map(function(t,n){var s=e.isActiveIndex(n)?r:null,u=o({},t,{stroke:a?t.fill:t.stroke});return j.a.createElement(I.a,i({className:"recharts-pie-sector"
},Object(z.f)(e.props,t,n),{key:"sector-".concat(n)}),e.constructor.renderSectorItem(s,u))})}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.sectors,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,s=e.animationEasing,u=e.animationId,c=this.state.prevSectors;return j.a.createElement(A.a,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd
},function(e){var r=e.t,i=[],a=n&&n[0],s=a.startAngle;return n.forEach(function(t,e){var n=c&&c[e],a=e>0?t.paddingAngle:0;if(n){var u=Object(H.f)(n.endAngle-n.startAngle,t.endAngle-t.startAngle),l=o({},t,{startAngle:s+a,endAngle:s+u(r)+a});i.push(l),s=l.endAngle}else{var f=t.endAngle,h=t.startAngle,p=Object(H.f)(0,f-h),d=p(r),g=o({},t,{startAngle:s+a,endAngle:s+d+a});i.push(g),s=g.endAngle}}),j.a.createElement(I.a,null,t.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){
var t=this.props,e=t.sectors,n=t.isAnimationActive,r=this.state.prevSectors;return!(n&&e&&e.length)||r&&b()(r,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.sectors,r=t.className,i=t.label,o=t.cx,a=t.cy,s=t.innerRadius,u=t.outerRadius,c=t.isAnimationActive,l=t.prevSectors,f=t.id;if(e||!n||!n.length||!Object(H.h)(o)||!Object(H.h)(a)||!Object(H.h)(s)||!Object(H.h)(u))return null;var h=M()("recharts-pie",r)
;return j.a.createElement(I.a,{className:h},j.a.createElement("g",{clipPath:"url(#".concat(S()(f)?this.id:f,")")},this.renderSectors()),i&&this.renderLabels(n),U.a.renderCallByParent(this.props,null,!1),(!c||l&&b()(l,n))&&F.a.renderCallByParent(this.props,n,!1))}}],[{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e){return j.a.isValidElement(t)?j.a.cloneElement(t,e):O()(t)?t(e):j.a.createElement(R.a,i({},e,{
type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,e,n){if(j.a.isValidElement(t))return j.a.cloneElement(t,e);var r=n;return O()(t)&&(r=t(e),j.a.isValidElement(r))?r:j.a.createElement(L.a,i({},e,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(t,e){return j.a.isValidElement(t)?j.a.cloneElement(t,e):O()(t)?t(e):_()(t)?j.a.createElement(N.a,i({},e,t)):j.a.createElement(N.a,e)}}]),e
}(E.Component),v.displayName="Pie",v.propTypes=o({},z.c,z.a,{className:C.a.string,animationId:C.a.number,cx:C.a.oneOfType([C.a.number,C.a.string]),cy:C.a.oneOfType([C.a.number,C.a.string]),startAngle:C.a.number,endAngle:C.a.number,paddingAngle:C.a.number,innerRadius:C.a.oneOfType([C.a.number,C.a.string]),outerRadius:C.a.oneOfType([C.a.number,C.a.string]),cornerRadius:C.a.oneOfType([C.a.number,C.a.string]),dataKey:C.a.oneOfType([C.a.string,C.a.number,C.a.func]).isRequired,
nameKey:C.a.oneOfType([C.a.string,C.a.number,C.a.func]),valueKey:C.a.oneOfType([C.a.string,C.a.number,C.a.func]),data:C.a.arrayOf(C.a.object),blendStroke:C.a.bool,minAngle:C.a.number,legendType:C.a.oneOf(z.b),maxRadius:C.a.number,sectors:C.a.arrayOf(C.a.object),hide:C.a.bool,labelLine:C.a.oneOfType([C.a.object,C.a.func,C.a.element,C.a.bool]),label:C.a.oneOfType([C.a.shape({offsetRadius:C.a.number}),C.a.func,C.a.element,C.a.bool]),activeShape:C.a.oneOfType([C.a.object,C.a.func,C.a.element]),
activeIndex:C.a.oneOfType([C.a.number,C.a.arrayOf(C.a.number)]),isAnimationActive:C.a.bool,animationBegin:C.a.number,animationDuration:C.a.number,animationEasing:C.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:C.a.string}),v.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Object(z.n)(),animationBegin:400,
animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},v.parseDeltaAngle=function(t){var e=t.startAngle,n=t.endAngle;return Object(H.j)(n-e)*Math.min(Math.abs(n-e),360)},v.getRealPieData=function(t){var e=t.props,n=e.data,r=e.children,i=Object(z.k)(t.props),a=Object(z.h)(r,B.a);return n&&n.length?n.map(function(t,e){return o({payload:t},i,t,a&&a[e]&&a[e].props)}):a&&a.length?a.map(function(t){return o({},i,t.props)}):[]},v.parseCoordinateOfPie=function(t,e){
var n=e.top,r=e.left,i=e.width,o=e.height,a=Object(q.c)(i,o);return{cx:r+Object(H.d)(t.props.cx,i,i/2),cy:n+Object(H.d)(t.props.cy,o,o/2),innerRadius:Object(H.d)(t.props.innerRadius,a,0),outerRadius:Object(H.d)(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(i*i+o*o)/2}},v.getComposedData=function(t){var e=t.item,n=t.offset,r=t.onItemMouseLeave,i=t.onItemMouseEnter,a=Y.getRealPieData(e);if(!a||!a.length)return[]
;var s=e.props,u=s.cornerRadius,c=s.startAngle,l=s.endAngle,f=s.paddingAngle,h=s.dataKey,p=s.nameKey,d=s.valueKey,g=Math.abs(e.props.minAngle),v=Y.parseCoordinateOfPie(e,n),y=a.length,m=Y.parseDeltaAngle({startAngle:c,endAngle:l}),b=Math.abs(m),w=(b>=360?y:y-1)*f,_=b-y*g-w,x=h;S()(h)&&S()(d)?(Object(V.a)(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),
x="value"):S()(h)&&(Object(V.a)(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),x=d);var O,T=a.reduce(function(t,e){var n=Object(W.w)(e,x,0);return t+(Object(H.h)(n)?n:0)},0);if(T>0){var E;O=a.map(function(t,e){var n,r=Object(W.w)(t,x,0),i=Object(W.w)(t,p,e),a=(Object(H.h)(r)?r:0)/T;n=e?E.endAngle+Object(H.j)(m)*f:c;var s=n+Object(H.j)(m)*(g+a*_),l=(n+s)/2,h=(v.innerRadius+v.outerRadius)/2,d=[{name:i,value:r,payload:t
}],y=Object(q.e)(v.cx,v.cy,h,l);return E=o({percent:a,cornerRadius:u,name:i,tooltipPayload:d,midAngle:l,middleRadius:h,tooltipPosition:y},t,v,{value:Object(W.w)(t,x),startAngle:n,endAngle:s,payload:t,paddingAngle:Object(H.j)(m)*f})})}return o({},v,{sectors:O,data:a,onMouseLeave:r,onMouseEnter:i})},g=y))||g;e.a=Y},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var g,v,y,m=n(278),b=n.n(m),w=n(82),_=n.n(w),x=n(0),O=n.n(x),T=n(49),S=n.n(T),E=n(214),j=n(66),k=n.n(j),C=n(83),A=n(60),P=n(55),M=n(235),D=n(135),I=n(670),N=n(383),R=n(113),L=n(281),U=Object(A.a)((y=v=function(t){function e(){var t,n;s(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l(this,(t=h(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!1},n.cachePrevData=function(t){n.setState({prevPoints:t})},n.handleAnimationEnd=function(){
n.setState({isAnimationFinished:!0})},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1})},n.handleMouseEnter=function(t){var e=n.props.onMouseEnter;e&&e(n.props,t)},n.handleMouseLeave=function(t){var e=n.props.onMouseLeave;e&&e(n.props,t)},n}return p(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.points;t.animationId!==n&&this.cachePrevData(r)}},{key:"renderDots",value:function(t){
var e=this,n=this.props,r=n.dot,i=n.dataKey,a=Object(P.k)(this.props),s=Object(P.k)(r),u=t.map(function(t,n){var u=o({key:"dot-".concat(n),r:3},a,s,{dataKey:i,cx:t.x,cy:t.y,index:n,payload:t});return e.constructor.renderDotItem(r,u)});return O.a.createElement(R.a,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(t){var e,n=this.props,r=n.shape,a=n.dot;return e=O.a.isValidElement(r)?O.a.cloneElement(r,o({},this.props,{points:t})):_()(r)?r(o({},this.props,{
points:t})):O.a.createElement(I.a,i({},Object(P.e)(this.props),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Object(P.k)(this.props),{points:t})),O.a.createElement(R.a,{className:"recharts-radar-polygon"},e,a?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,e=this.props,n=e.points,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,s=e.animationEasing,u=e.animationId,c=this.state.prevPoints
;return O.a.createElement(E.a,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var r=e.t,i=n.map(function(t,e){var n=c&&c[e];if(n){var i=Object(C.f)(n.x,t.x),a=Object(C.f)(n.y,t.y);return o({},t,{x:i(r),y:a(r)})}var s=Object(C.f)(t.cx,t.x),u=Object(C.f)(t.cy,t.y);return o({},t,{x:s(r),y:u(r)})});return t.renderPolygonStatically(i)})}},{key:"renderPolygon",
value:function(){var t=this.props,e=t.points,n=t.isAnimationActive,r=this.state.prevPoints;return!(n&&e&&e.length)||r&&b()(r,e)?this.renderPolygonStatically(e):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.className,r=t.points,i=t.isAnimationActive;if(e||!r||!r.length)return null;var o=this.state.isAnimationFinished,a=k()("recharts-radar",n);return O.a.createElement(R.a,{className:a
},this.renderPolygon(),(!i||o)&&L.a.renderCallByParent(this.props,r))}}],[{key:"renderDotItem",value:function(t,e){return O.a.isValidElement(t)?O.a.cloneElement(t,e):_()(t)?t(e):O.a.createElement(N.a,i({},e,{className:"recharts-radar-dot"}))}}]),e}(x.Component),v.displayName="Radar",v.propTypes=o({},P.c,{className:S.a.string,dataKey:S.a.oneOfType([S.a.number,S.a.string,S.a.func]).isRequired,angleAxisId:S.a.oneOfType([S.a.string,S.a.number]),radiusAxisId:S.a.oneOfType([S.a.string,S.a.number]),
points:S.a.arrayOf(S.a.shape({x:S.a.number,y:S.a.number,cx:S.a.number,cy:S.a.number,angle:S.a.number,radius:S.a.number,value:S.a.number,payload:S.a.object})),shape:S.a.oneOfType([S.a.element,S.a.func]),activeDot:S.a.oneOfType([S.a.object,S.a.element,S.a.func,S.a.bool]),dot:S.a.oneOfType([S.a.object,S.a.element,S.a.func,S.a.bool]),label:S.a.oneOfType([S.a.element,S.a.func,S.a.object,S.a.bool]),legendType:S.a.oneOf(P.b),hide:S.a.bool,onMouseEnter:S.a.func,onMouseLeave:S.a.func,onClick:S.a.func,
isAnimationActive:S.a.bool,animationId:S.a.number,animationBegin:S.a.number,animationDuration:S.a.number,animationEasing:S.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),v.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Object(P.n)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},v.getComposedData=function(t){var e=t.radiusAxis,n=t.angleAxis,r=t.displayedData,i=t.dataKey,a=t.bandSize,s=n.cx,u=n.cy
;return{points:r.map(function(t,r){var c=Object(D.w)(t,n.dataKey,r),l=Object(D.w)(t,i,0),f=n.scale(c)+(a||0),h=e.scale(l);return o({},Object(M.e)(s,u,h,f),{name:c,value:l,cx:s,cy:u,radius:h,angle:f,payload:t})})}},g=y))||g;e.a=U},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(null==t)return{};var n,r,i=s(t,e)
;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function s(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var v,y,m,b=n(278),w=n.n(b),_=n(82),x=n.n(_),O=n(104),T=n.n(O),S=n(0),E=n.n(S),j=n(49),k=n.n(j),C=n(66),A=n.n(C),P=n(214),M=n(669),D=n(113),I=n(55),N=n(60),R=n(281),L=n(444),U=n(83),F=n(135),B=Object(N.a)((m=y=function(t){function e(){var t,n;u(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=f(this,(t=p(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!1},n.cachePrevData=function(t){n.setState({prevData:t})},
n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0})},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1})},n}return d(e,t),l(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.data;t.animationId!==n&&this.cachePrevData(r)}},{key:"getDeltaAngle",value:function(){var t=this.props,e=t.startAngle,n=t.endAngle;return Object(U.j)(n-e)*Math.min(Math.abs(n-e),360)}},{key:"renderSectorsStatically",value:function(t){
var e=this,n=this.props,r=n.shape,o=n.activeShape,s=n.activeIndex,u=n.cornerRadius,c=a(n,["shape","activeShape","activeIndex","cornerRadius"]),l=Object(I.k)(c);return t.map(function(t,n){var a=i({},l,{cornerRadius:u},t,Object(I.f)(e.props,t,n),{key:"sector-".concat(n),className:"recharts-radial-bar-sector"});return e.constructor.renderSectorShape(n===s?o:r,a)})}},{key:"renderSectorsWithAnimation",value:function(){
var t=this,e=this.props,n=e.data,r=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,s=e.animationEasing,u=e.animationId,c=this.state.prevData;return E.a.createElement(P.a,{begin:o,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(e){var r=e.t,o=n.map(function(t,e){var n=c&&c[e];if(n){var o=Object(U.f)(n.startAngle,t.startAngle),a=Object(U.f)(n.endAngle,t.endAngle)
;return i({},t,{startAngle:o(r),endAngle:a(r)})}var s=t.endAngle,u=t.startAngle;return i({},t,{endAngle:Object(U.f)(u,s)(r)})});return E.a.createElement(D.a,null,t.renderSectorsStatically(o))})}},{key:"renderSectors",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&w()(r,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(t){
var e=this,n=this.props.cornerRadius,r=Object(I.k)(this.props.background);return t.map(function(t,o){var s=(t.value,t.background),u=a(t,["value","background"]);if(!s)return null;var c=i({cornerRadius:n},u,{fill:"#eee"},s,r,Object(I.f)(e.props,t,o),{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return e.constructor.renderSectorShape(s,c)})}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,o=t.background,a=t.isAnimationActive
;if(e||!n||!n.length)return null;var s=this.state.isAnimationFinished,u=A()("recharts-area",r);return E.a.createElement(D.a,{className:u},o&&E.a.createElement(D.a,{className:"recharts-radial-bar-background"},this.renderBackground(n)),E.a.createElement(D.a,{className:"recharts-radial-bar-sectors"},this.renderSectors(n)),(!a||s)&&R.a.renderCallByParent(i({},this.props,{clockWise:this.getDeltaAngle()<0}),n))}}],[{key:"renderSectorShape",value:function(t,e){
return E.a.isValidElement(t)?E.a.cloneElement(t,e):x()(t)?t(e):E.a.createElement(M.a,e)}}]),e}(S.Component),y.displayName="RadialBar",y.propTypes=i({},I.c,{className:k.a.string,angleAxisId:k.a.oneOfType([k.a.string,k.a.number]),radiusAxisId:k.a.oneOfType([k.a.string,k.a.number]),shape:k.a.oneOfType([k.a.func,k.a.element]),activeShape:k.a.oneOfType([k.a.object,k.a.func,k.a.element]),activeIndex:k.a.number,dataKey:k.a.oneOfType([k.a.string,k.a.number,k.a.func]).isRequired,
cornerRadius:k.a.oneOfType([k.a.number,k.a.string]),minPointSize:k.a.number,maxBarSize:k.a.number,data:k.a.arrayOf(k.a.shape({cx:k.a.number,cy:k.a.number,innerRadius:k.a.number,outerRadius:k.a.number,value:k.a.value})),legendType:k.a.oneOf(I.b),label:k.a.oneOfType([k.a.bool,k.a.func,k.a.element,k.a.object]),background:k.a.oneOfType([k.a.bool,k.a.func,k.a.object,k.a.element]),hide:k.a.bool,onMouseEnter:k.a.func,onMouseLeave:k.a.func,onClick:k.a.func,isAnimationActive:k.a.bool,
animationBegin:k.a.number,animationDuration:k.a.number,animationEasing:k.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear","spring"])}),y.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Object(I.n)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},y.getComposedData=function(t){
var e=t.item,n=t.props,r=t.radiusAxis,o=t.radiusAxisTicks,a=t.angleAxis,s=t.angleAxisTicks,u=t.displayedData,c=t.dataKey,l=t.stackedData,f=t.barPosition,h=t.bandSize,p=t.dataStartIndex,d=Object(F.f)(f,e);if(!d)return[];var g=a.cx,v=a.cy,y=n.layout,m=e.props,b=m.children,w=m.minPointSize,_="radial"===y?a:r,x=l?_.scale.domain():null,O=Object(F.j)({props:n,numericAxis:_}),S=Object(I.h)(b,L.a);return{data:u.map(function(t,e){var u,f,m,b,_,E;if(l?u=Object(F.D)(l[p+e],x):(u=Object(F.w)(t,c),
T()(u)||(u=[O,u])),"radial"===y){f=Object(F.k)({axis:r,ticks:o,bandSize:h,offset:d.offset,entry:t,index:e}),_=a.scale(u[1]),b=a.scale(u[0]),m=f+d.size;var j=_-b;if(Math.abs(w)>0&&Math.abs(j)<Math.abs(w)){_+=Object(U.j)(j||w)*(Math.abs(w)-Math.abs(j))}E={background:{cx:g,cy:v,innerRadius:f,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{f=r.scale(u[0]),m=r.scale(u[1]),b=Object(F.k)({axis:a,ticks:s,bandSize:h,offset:d.offset,entry:t,index:e}),_=b+d.size;var k=m-f
;if(Math.abs(w)>0&&Math.abs(k)<Math.abs(w)){m+=Object(U.j)(k||w)*(Math.abs(w)-Math.abs(k))}}return i({},t,E,{payload:t,value:l?u:u[1],cx:g,cy:v,innerRadius:f,outerRadius:m,startAngle:b,endAngle:_},S&&S[e]&&S[e].props)}),layout:y}},v=m))||v;e.a=B},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t
})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
var d,g,v,y=n(1372),m=n.n(y),b=n(82),w=n.n(b),_=n(0),x=n.n(_),O=n(49),T=n.n(O),S=n(66),E=n.n(S),j=n(1329),k=n(135),C=n(60),A=n(113),P=n(381),M=n(83),D=n(2760),I=Object(C.a)((v=g=function(t){function e(t){var n;return a(this,e),n=c(this,l(e).call(this,t)),n.handleDrag=function(t){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(t):n.state.isSlideMoving&&n.handleSlideDrag(t)},n.handleTouchMove=function(t){
null!=t.changedTouches&&t.changedTouches.length>0&&n.handleDrag(t.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,1e3))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(t){
var e=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(p(p(n)),"startX"),endX:n.handleTravellerDragStart.bind(p(p(n)),"endX")},n.state=t.data&&t.data.length?n.updateScale(t):{},n}return f(e,t),u(e,[{key:"componentWillReceiveProps",value:function(t){var e=this,n=this.props,r=n.data,i=n.width,o=n.x,a=n.travellerWidth,s=n.updateId
;(t.data!==r||t.updateId!==s)&&t.data&&t.data.length?this.setState(this.updateScale(t)):t.width===i&&t.x===o&&t.travellerWidth===a||(this.scale.range([t.x,t.x+t.width-t.travellerWidth]),this.scaleValues=this.scale.domain().map(function(t){return e.scale(t)}),this.setState({startX:this.scale(t.startIndex),endX:this.scale(t.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{
key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.props,i=r.gap,o=r.data,a=o.length-1,s=Math.min(e,n),u=Math.max(e,n),c=this.constructor.getIndexInRange(this.scaleValues,s),l=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:c-c%i,endIndex:l===a?a:l-l%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=Object(k.w)(n[t],i,t);return w()(r)?r(o):o}},{key:"handleSlideDrag",value:function(t){
var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,c=o.startIndex,l=o.endIndex,f=o.onChange,h=t.pageX-n;h>0?h=Math.min(h,a+s-u-i,a+s-u-r):h<0&&(h=Math.max(h,a-r,a-i));var p=this.getIndex({startX:r+h,endX:i+h});p.startIndex===c&&p.endIndex===l||!f||f(p),this.setState({startX:r+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e
;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,a=n.endX,s=n.startX,u=this.state[i],c=this.props,l=c.x,f=c.width,h=c.travellerWidth,p=c.onChange,d=c.gap,g=c.data,v={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,l+f-h-u):y<0&&(y=Math.max(y,l-u)),v[i]=u+y
;var m=this.getIndex(v),b=m.startIndex,w=m.endIndex,_=function(){var t=g.length-1;return"startX"===i&&(a>s?b%d==0:w%d==0)||a<s&&w===t||"endX"===i&&(a>s?w%d==0:b%d==0)||a>s&&w===t};this.setState((e={},o(e,i,u+y),o(e,"brushMoveStartX",t.pageX),e),function(){p&&_()&&p(m)})}},{key:"updateScale",value:function(t){var e=this,n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth,u=n.length;return this.scale=Object(j.scalePoint)().domain(m()(0,u)).range([o,o+a-s]),
this.scaleValues=this.scale.domain().map(function(t){return e.scale(t)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(i)}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return x.a.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){
var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,s=t.padding,u=_.Children.only(a);return u?x.a.cloneElement(u,{x:e,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(t,e){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,s=Math.floor(r+o/2)-1,u=Math.max(t,this.props.x);return x.a.createElement(A.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,
onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},x.a.createElement("rect",{x:u,y:r,width:i,height:o,fill:a,stroke:"none"}),x.a.createElement("line",{x1:u+1,y1:s,x2:u+i-1,y2:s,fill:"none",stroke:"#fff"}),x.a.createElement("line",{x1:u+1,y1:s+2,x2:u+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke
;return x.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:Math.min(t,e),y:r,width:Math.abs(e-t),height:i})}},{key:"renderText",value:function(){
var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,o=t.height,a=t.travellerWidth,s=t.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:s};return x.a.createElement(A.a,{className:"recharts-brush-texts"},x.a.createElement(P.a,i({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+o/2},f),this.getTextOfTick(e)),x.a.createElement(P.a,i({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){
var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,s=t.height,u=this.state,c=u.startX,l=u.endX,f=u.isTextActive,h=u.isSlideMoving,p=u.isTravellerMoving;if(!e||!e.length||!Object(M.h)(i)||!Object(M.h)(o)||!Object(M.h)(a)||!Object(M.h)(s)||a<=0||s<=0)return null;var d=E()("recharts-brush",n),g=1===x.a.Children.count(r),v=Object(D.a)("userSelect","none");return x.a.createElement(A.a,{className:d,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,
onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(c,l),this.renderTraveller(c,"startX"),this.renderTraveller(l,"endX"),(f||h||p)&&this.renderText())}}],[{key:"getIndexInRange",value:function(t,e){for(var n=t.length,r=0,i=n-1;i-r>1;){var o=Math.floor((r+i)/2);t[o]>e?i=o:r=o}return e>=t[i]?i:r}}]),e}(_.Component),g.displayName="Brush",g.propTypes={className:T.a.string,
fill:T.a.string,stroke:T.a.string,x:T.a.number,y:T.a.number,width:T.a.number,height:T.a.number.isRequired,travellerWidth:T.a.number,gap:T.a.number,padding:T.a.shape({top:T.a.number,right:T.a.number,bottom:T.a.number,left:T.a.number}),dataKey:T.a.oneOfType([T.a.string,T.a.number,T.a.func]),data:T.a.array,startIndex:T.a.number,endIndex:T.a.number,tickFormatter:T.a.func,children:T.a.node,onChange:T.a.func,updateId:T.a.oneOfType([T.a.string,T.a.number])},g.defaultProps={height:40,travellerWidth:5,
gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1}},d=v))||d;e.a=I},function(t,e,n){var r=n(2758),i=r();t.exports=i},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if((t=i(t))===o||t===-o){return(t<0?-1:1)*a}return t===t?t:0}var i=n(1305),o=1/0,a=1.7976931348623157e308;t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(null==t)return{};var n,r,i=u(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],
e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){
return e&&l(t.prototype,e),n&&l(t,n),t}function h(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=n(82),m=n.n(y),b=n(0),w=n.n(b),_=n(49),x=n.n(_),O=n(66),T=n.n(O),S=n(60),E=n(661),j=n(113),k=n(381),C=n(316),A=n(55),P=n(83),M=function(t){function e(){return c(this,e),h(this,d(e).apply(this,arguments))}return g(e,t),f(e,[{key:"shouldComponentUpdate",value:function(t,e){
var n=t.viewBox,r=s(t,["viewBox"]),i=this.props,o=i.viewBox,a=s(i,["viewBox"]);return!Object(S.b)(n,o)||!Object(S.b)(r,a)||!Object(S.b)(e,this.state)}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,h=s.orientation,p=s.tickSize,d=s.mirror,g=s.tickMargin,v=d?-1:1,y=t.tickSize||p,m=Object(P.h)(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=n=t.coordinate,i=c+!d*f,r=i-v*y,a=r-v*g,o=m;break;case"left":r=i=t.coordinate,n=u+!d*l,
e=n-v*y,o=e-v*g,a=m;break;case"right":r=i=t.coordinate,n=u+d*l,e=n+v*y,o=e+v*g,a=m;break;default:e=n=t.coordinate,i=c+d*f,r=i+v*y,a=r+v*g,o=m}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end"
;switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,a=t.height,s=t.orientation,u=t.axisLine,c=t.mirror,l=o({},Object(A.k)(this.props),{fill:"none"},Object(A.k)(u));if("top"===s||"bottom"===s){var f="top"===s&&!c||"bottom"===s&&c;l=o({},l,{x1:e,y1:n+f*a,x2:e+r,y2:n+f*a})}else{var h="left"===s&&!c||"right"===s&&c;l=o({},l,{x1:e+h*r,y1:n,x2:e+h*r,y2:n+a
})}return w.a.createElement("line",i({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTicks",value:function(t){var n=this,r=this.props,a=r.tickLine,s=r.stroke,u=r.tick,c=r.tickFormatter,l=r.unit,f=e.getTicks(o({},this.props,{ticks:t})),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=Object(A.k)(this.props),g=Object(A.k)(u),v=o({},d,{fill:"none"},Object(A.k)(a)),y=f.map(function(t,e){var r=n.getTickLineCoord(t),y=r.line,b=r.tick,_=o({textAnchor:h,verticalAnchor:p},d,{
stroke:"none",fill:s},g,b,{index:e,payload:t,visibleTicksCount:f.length});return w.a.createElement(j.a,i({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Object(A.f)(n.props,t,e)),a&&w.a.createElement("line",i({className:"recharts-cartesian-axis-tick-line"},v,y)),u&&n.constructor.renderTickItem(u,_,"".concat(m()(c)?c(t.value):t.value).concat(l||"")))});return w.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){
var t=this.props,e=t.axisLine,n=t.width,r=t.height,i=t.ticksGenerator,o=t.className;if(t.hide)return null;var a=this.props,u=a.ticks,c=s(a,["ticks"]),l=u;return m()(i)&&(l=i(u&&u.length>0?this.props:c)),n<=0||r<=0||!l||!l.length?null:w.a.createElement(j.a,{className:T()("recharts-cartesian-axis",o)},e&&this.renderAxisLine(),this.renderTicks(l),C.a.renderCallByParent(this.props))}}],[{key:"getTicks",value:function(t){
var n=t.tick,r=t.ticks,i=t.viewBox,o=t.minTickGap,a=t.orientation,s=t.interval,u=t.tickFormatter,c=t.unit;return r&&r.length&&n?Object(P.h)(s)||Object(A.n)()?e.getNumberIntervalTicks(r,Object(P.h)(s)?s:0):"preserveStartEnd"===s?e.getTicksStart({ticks:r,tickFormatter:u,viewBox:i,orientation:a,minTickGap:o,unit:c},!0):"preserveStart"===s?e.getTicksStart({ticks:r,tickFormatter:u,viewBox:i,orientation:a,minTickGap:o,unit:c}):e.getTicksEnd({ticks:r,tickFormatter:u,viewBox:i,orientation:a,
minTickGap:o,unit:c}):[]}},{key:"getNumberIntervalTicks",value:function(t,e){return t.filter(function(t,n){return n%(e+1)==0})}},{key:"getTicksStart",value:function(t,e){var n,r,i=t.ticks,a=t.tickFormatter,s=t.viewBox,u=t.orientation,c=t.minTickGap,l=t.unit,f=s.x,h=s.y,p=s.width,d=s.height,g="top"===u||"bottom"===u?"width":"height",v=(i||[]).slice(),y=l?Object(E.c)(l)[g]:0,b=v.length,w=b>=2?Object(P.j)(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===g?f:h,
r="width"===g?f+p:h+d):(n="width"===g?f+p:h+d,r="width"===g?f:h),e){var _=i[b-1],x=m()(a)?a(_.value):_.value,O=Object(E.c)(x)[g]+y,T=w*(_.coordinate+w*O/2-r);v[b-1]=_=o({},_,{tickCoord:T>0?_.coordinate-T*w:_.coordinate});w*(_.tickCoord-w*O/2-n)>=0&&w*(_.tickCoord+w*O/2-r)<=0&&(r=_.tickCoord-w*(O/2+c),v[b-1]=o({},_,{isShow:!0}))}for(var S=e?b-1:b,j=0;j<S;j++){var k=v[j],C=m()(a)?a(k.value):k.value,A=Object(E.c)(C)[g]+y;if(0===j){var M=w*(k.coordinate-w*A/2-n);v[j]=k=o({},k,{
tickCoord:M<0?k.coordinate-M*w:k.coordinate})}else v[j]=k=o({},k,{tickCoord:k.coordinate});w*(k.tickCoord-w*A/2-n)>=0&&w*(k.tickCoord+w*A/2-r)<=0&&(n=k.tickCoord+w*(A/2+c),v[j]=o({},k,{isShow:!0}))}return v.filter(function(t){return t.isShow})}},{key:"getTicksEnd",value:function(t){
var e,n,r=t.ticks,i=t.tickFormatter,a=t.viewBox,s=t.orientation,u=t.minTickGap,c=t.unit,l=a.x,f=a.y,h=a.width,p=a.height,d="top"===s||"bottom"===s?"width":"height",g=c?Object(E.c)(c)[d]:0,v=(r||[]).slice(),y=v.length,b=y>=2?Object(P.j)(v[1].coordinate-v[0].coordinate):1;1===b?(e="width"===d?l:f,n="width"===d?l+h:f+p):(e="width"===d?l+h:f+p,n="width"===d?l:f);for(var w=y-1;w>=0;w--){var _=v[w],x=m()(i)?i(_.value):_.value,O=Object(E.c)(x)[d]+g;if(w===y-1){var T=b*(_.coordinate+b*O/2-n)
;v[w]=_=o({},_,{tickCoord:T>0?_.coordinate-T*b:_.coordinate})}else v[w]=_=o({},_,{tickCoord:_.coordinate});b*(_.tickCoord-b*O/2-e)>=0&&b*(_.tickCoord+b*O/2-n)<=0&&(n=_.tickCoord-b*(O/2+u),v[w]=o({},_,{isShow:!0}))}return v.filter(function(t){return t.isShow})}},{key:"renderTickItem",value:function(t,e,n){return w.a.isValidElement(t)?w.a.cloneElement(t,e):m()(t)?t(e):w.a.createElement(k.a,i({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}]),e}(b.Component)
;M.displayName="CartesianAxis",M.propTypes=o({},A.c,A.a,{className:x.a.string,x:x.a.number,y:x.a.number,width:x.a.number,height:x.a.number,orientation:x.a.oneOf(["top","bottom","left","right"]),viewBox:x.a.shape({x:x.a.number,y:x.a.number,width:x.a.number,height:x.a.number}),tick:x.a.oneOfType([x.a.bool,x.a.func,x.a.object,x.a.element]),axisLine:x.a.oneOfType([x.a.bool,x.a.object]),tickLine:x.a.oneOfType([x.a.bool,x.a.object]),mirror:x.a.bool,tickMargin:x.a.number.isRequired,
minTickGap:x.a.number,ticks:x.a.array,tickSize:x.a.number,stroke:x.a.string,tickFormatter:x.a.func,ticksGenerator:x.a.func,interval:x.a.oneOfType([x.a.number,x.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),M.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"},e.a=M},function(t,e,n){
var r=n(647),i=n(2775),o=n(2797),a=n(641),s=n(549),u=n(2800),c=n(2801),l=n(1379),f=c(function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,function(e){return e=a(e,t),c||(c=e.length>1),e}),s(t,l(t),n),c&&(n=i(n,7,u));for(var f=e.length;f--;)o(n,e[f]);return n});t.exports=f},function(t,e,n){function r(t,e,n){var r=t[e];s.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||i(t,e,n)}var i=n(908),o=n(645),a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){
return a(t)?i(t,!0):o(t)}var i=n(1313),o=n(2779),a=n(446);t.exports=r},function(t,e,n){var r=n(887),i=n(910),o=n(888),a=n(1312),s=Object.getOwnPropertySymbols,u=s?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=u},function(t,e,n){function r(t){return i(t,a,o)}var i=n(1311),o=n(1378),a=n(1377);t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var g,v,y,m=n(278),b=n.n(m),w=n(909),_=n.n(w),x=n(82),O=n.n(x),T=n(1375),S=n.n(T),E=n(640),j=n.n(E),k=n(866),C=n.n(k),A=n(0),P=n.n(A),M=n(49),D=n.n(M),I=n(214),N=n(66),R=n.n(N),L=n(60),U=n(113),F=n(1381),B=n(281),z=n(444),q=n(55),H=n(83),W=n(135),V=Object(L.a)((y=v=function(t){function e(){var t,n;s(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l(this,(t=h(e)).call.apply(t,[this].concat(i))),n.state={isAnimationFinished:!1},n.cachePrevData=function(t){
n.setState({prevTrapezoids:t})},n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),O()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),O()(t)&&t()},n}return p(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.animationId,r=e.trapezoids;t.isAnimationActive!==this.props.isAnimationActive?this.cachePrevData([]):t.animationId!==n&&this.cachePrevData(r)}},{
key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderTrapezoidsStatically",value:function(t){var e=this,n=this.props.activeShape;return t.map(function(t,r){var a=e.isActiveIndex(r)?n:null,s=o({},t,{stroke:t.stroke});return P.a.createElement(U.a,i({className:"recharts-funnel-trapezoid"},Object(q.f)(e.props,t,r),{key:"trapezoid-".concat(r)}),e.constructor.renderTrapezoidItem(a,s))})}},{key:"renderTrapezoidsWithAnimation",
value:function(){var t=this,e=this.props,n=e.trapezoids,r=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,s=e.animationEasing,u=e.animationId,c=this.state.prevTrapezoids;return P.a.createElement(I.a,{begin:i,duration:a,isActive:r,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(e){var r=e.t,i=n.map(function(t,e){var n=c&&c[e];if(n){
var i=Object(H.f)(n.x,t.x),a=Object(H.f)(n.y,t.y),s=Object(H.f)(n.upperWidth,t.upperWidth),u=Object(H.f)(n.lowerWidth,t.lowerWidth),l=Object(H.f)(n.height,t.height);return o({},t,{x:i(r),y:a(r),upperWidth:s(r),lowerWidth:u(r),height:l(r)})}var f=Object(H.f)(t.x+t.upperWidth/2,t.x),h=Object(H.f)(t.y+t.height/2,t.y),p=Object(H.f)(0,t.upperWidth),d=Object(H.f)(0,t.lowerWidth),g=Object(H.f)(0,t.height);return o({},t,{x:f(r),y:h(r),upperWidth:p(r),lowerWidth:d(r),height:g(r)})})
;return P.a.createElement(U.a,null,t.renderTrapezoidsStatically(i))})}},{key:"renderTrapezoids",value:function(){var t=this.props,e=t.trapezoids,n=t.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&e&&e.length)||r&&b()(r,e)?this.renderTrapezoidsStatically(e):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.trapezoids,r=t.className,i=t.isAnimationActive,o=this.state.isAnimationFinished;if(e||!n||!n.length)return null
;var a=R()("recharts-trapezoids",r);return P.a.createElement(U.a,{className:a},this.renderTrapezoids(),(!i||o)&&B.a.renderCallByParent(this.props,n))}}],[{key:"renderTrapezoidItem",value:function(t,e){return P.a.isValidElement(t)?P.a.cloneElement(t,e):O()(t)?t(e):_()(t)?P.a.createElement(F.a,i({},e,t)):P.a.createElement(F.a,e)}}]),e}(A.Component),v.displayName="Funnel",v.propTypes=o({},q.c,q.a,{className:D.a.string,animationId:D.a.number,
dataKey:D.a.oneOfType([D.a.string,D.a.number,D.a.func]).isRequired,nameKey:D.a.oneOfType([D.a.string,D.a.number,D.a.func]),data:D.a.arrayOf(D.a.object),trapezoids:D.a.arrayOf(D.a.object),hide:D.a.bool,activeShape:D.a.oneOfType([D.a.object,D.a.func,D.a.element]),activeIndex:D.a.oneOfType([D.a.number,D.a.arrayOf(D.a.number)]),isAnimationActive:D.a.bool,animationBegin:D.a.number,animationDuration:D.a.number,animationEasing:D.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"])}),
v.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Object(q.n)(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name"},v.getRealFunnelData=function(t){var e=t.props,n=e.data,r=e.children,i=Object(q.k)(t.props),a=Object(q.h)(r,z.a);return n&&n.length?n.map(function(t,e){return o({payload:t},i,t,a&&a[e]&&a[e].props)}):a&&a.length?a.map(function(t){return o({},i,t.props)}):[]},v.getRealWidthHeight=function(t,e){
var n=t.props.width,r=e.width,i=e.height,o=e.left,a=e.right,s=e.top,u=e.bottom,c=i,l=r;return C()(n)?l=n:j()(n)&&(l=l*parseFloat(n)/100),{realWidth:l-o-a-50,realHeight:c-u-s,offsetX:(r-l)/2,offsetY:(i-c)/2}},v.getComposedData=function(t){
var e=t.item,n=t.offset,r=t.onItemMouseLeave,i=t.onItemMouseEnter,a=V.getRealFunnelData(e),s=e.props,u=s.dataKey,c=s.nameKey,l=n.left,f=n.top,h=V.getRealWidthHeight(e,n),p=h.realHeight,d=h.realWidth,g=h.offsetX,v=h.offsetY,y=Object(W.w)(a[0],u,0),m=a.length,b=p/m;return{trapezoids:a.map(function(t,e){var n=Object(W.w)(t,u,0),r=Object(W.w)(t,c,e),i=0;e!==m-1&&(i=Object(W.w)(a[e+1],u,0));var s=(y-n)*d/(2*y)+f+25+g,h=p/m*e+l+v,w=n/y*d,_=i/y*d,x=[{name:r,value:n,payload:t}],O={x:s+w/2,y:h+b/2}
;return o({x:s,y:h,width:Math.max(w,_),upperWidth:w,lowerWidth:_,height:b,name:r,val:n,tooltipPayload:x,tooltipPosition:O},S()(t,"width"),{payload:t})}),data:a,onMouseLeave:r,onMouseEnter:i}},g=y))||g;e.a=V},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){
return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,
r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(66),x=n.n(_),O=n(214),T=n(60),S=n(55),E=function(t,e,n,r,i){var o,a=n-r;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+n,",").concat(e),
o+="L ".concat(t+n-a/2,",").concat(e+i),o+="L ".concat(t+n-a/2-r,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},j=Object(T.a)((v=g=function(t){function e(){var t,n;a(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=c(this,(t=f(e)).call.apply(t,[this].concat(i))),n.state={totalLength:-1},n}return h(e,t),u(e,[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var t=this.node.getTotalLength();t&&this.setState({
totalLength:t})}catch(t){}}},{key:"render",value:function(){var t=this,e=this.props,n=e.x,r=e.y,i=e.upperWidth,a=e.lowerWidth,s=e.height,u=e.className,c=this.state.totalLength,l=this.props,f=l.animationEasing,h=l.animationDuration,p=l.animationBegin,d=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=x()("recharts-trapezoid",u);return d?m.a.createElement(O.a,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:i,
lowerWidth:a,height:s,x:n,y:r},duration:h,animationEasing:f,isActive:d},function(e){var n=e.upperWidth,r=e.lowerWidth,i=e.height,a=e.x,s=e.y;return m.a.createElement(O.a,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:h,easing:f},m.a.createElement("path",o({},Object(S.k)(t.props),Object(S.e)(t.props),{className:g,d:E(a,s,n,r,i),ref:function(e){t.node=e}})))
}):m.a.createElement("g",null,m.a.createElement("path",o({},Object(S.k)(this.props),Object(S.e)(this.props),{className:g,d:E(n,r,i,a,s)})))}}]),e}(y.Component),g.displayName="Trapezoid",g.propTypes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){
i(t,e,n[e])})}return t}({},S.c,S.a,{className:w.a.string,x:w.a.number,y:w.a.number,upperWidth:w.a.number,lowerWidth:w.a.number,height:w.a.number,isUpdateAnimationActive:w.a.bool,animationBegin:w.a.number,animationDuration:w.a.number,animationEasing:w.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),g.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},d=v))||d;e.a=j
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r,i;!function(n,o){var a=this;r=[],void 0!==(i=function(){return o(a)}.apply(e,r))&&(t.exports=i)}(0,function(t){"use strict";return function(t){function e(r){if(n[r])return n[r];var i=n[r]=Object.create(null);return t[r](i,e),i}var n=Object.create(null);return e(0)}([function(t,e){var n=e(23),r=e(23);t.debugMode=r.debugMode,
t.verboseMode=r.verboseMode;var i=e(33),o=e(33);t.Set=o.Set;var a=e(30),s=e(30);t.Map=s.Map;var u=e(32),c=e(32);t.Promise=c.Promise,t.DeferredPromise=c.DeferredPromise;var l=e(37);t.webworker=l;var f=e(8);t.parts=f;var h=e(1);t.parser=h;var p=e(14);t.renderers=p;var d=e(24);t.ASS=d.ASS;var g=e(25);t.Attachment=g.Attachment,t.AttachmentType=g.AttachmentType;var v=e(26);t.Dialogue=v.Dialogue;var y=e(28);t.ScriptProperties=y.ScriptProperties;var m=e(29);t.Style=m.Style;var b=e(27)
;t.BorderStyle=b.BorderStyle,t.Format=b.Format,t.WrappingStyle=b.WrappingStyle,Object.defineProperties(t,{debugMode:{get:function(){return n.debugMode},set:n.setDebugMode},verboseMode:{get:function(){return n.verboseMode},set:n.setVerboseMode},Set:{get:function(){return i.Set},set:i.setImplementation},Map:{get:function(){return a.Map},set:a.setImplementation},Promise:{get:function(){return u.Promise},set:u.setImplementation}})},function(t,e){var n=e(3);t.parse=n.parse;var r=e(5)
;t.BrowserReadableStream=r.BrowserReadableStream,t.StringStream=r.StringStream,t.XhrStream=r.XhrStream;var i=e(4);t.StreamParser=i.StreamParser,t.SrtStreamParser=i.SrtStreamParser},function(t,e){function n(t){var e=t.indexOf(":");return-1===e?null:{name:t.substr(0,e),value:t.substr(e+1).replace(/^\s+/,"")}}function r(t,e){var r=n(t);if(null===r)return null;var o=r.value.split(",");o.length>e.length&&(o[e.length-1]=o.slice(e.length-1).join(","));var a=new i.Map;return e.forEach(function(t,e){
a.set(t,o[e])}),{type:r.name,template:a}}var i=e(30);t.parseLineIntoProperty=n,t.parseLineIntoTypedTemplate=r},function(t,e){function n(t,e){var n=new u(t,e);if(null===n.result||n.result.end!==t.length)throw o.debugMode&&console.error("Parse failed. %s %s %o",e,t,n.result),new Error("Parse failed.");return n.result.value}function r(t,e,n,r){u.prototype["parse_tag_"+t]=function(i){var o=this,a=new h(i);if(null===o.read(a,t))return i.pop(),null;var s=n.call(o,a)
;if(null!==s)a.value=new e(s.value);else{if(r)return i.pop(),null;a.value=new e(null)}return a}}var i=e(8),o=e(23),a=e(30),s=new a.Map;t.parse=n;var u=function(){function t(t,e){this._input=t,this._parseTree=new h(null),this._result=s.get(e).call(this,this._parseTree)}return Object.defineProperty(t.prototype,"result",{get:function(){return this._result},enumerable:!0,configurable:!0}),t.prototype.parse_dialogueParts=function(t){var e,r=new h(t);for(r.value=[];this._haveMore();){
var o=this.parse_enclosedTags(r);if(null!==o)(e=r.value).push.apply(e,o.value);else{var a=this.parse_newline(r)||this.parse_hardspace(r)||this.parse_text(r);if(null===a)return t.pop(),null;if(a.value instanceof i.Text&&r.value[r.value.length-1]instanceof i.Text){var s=r.value[r.value.length-1];r.value[r.value.length-1]=new i.Text(s.value+a.value.value)}else r.value.push(a.value)}}var u=!1;return r.value.forEach(function(t,e){
t instanceof i.DrawingMode?u=0!==t.scale:t instanceof i.Text&&u&&(r.value[e]=new i.DrawingInstructions(n(t.value,"drawingInstructions")))}),r},t.prototype.parse_enclosedTags=function(t){var e=new h(t);if(e.value=[],null===this.read(e,"{"))return t.pop(),null;for(var n=this._peek();this._haveMore()&&"}"!==n;n=this._peek()){var r=null
;if(null!==this.read(e,"\\")&&null===(r=this.parse_tag_alpha(e)||this.parse_tag_iclip(e)||this.parse_tag_xbord(e)||this.parse_tag_ybord(e)||this.parse_tag_xshad(e)||this.parse_tag_yshad(e)||this.parse_tag_blur(e)||this.parse_tag_bord(e)||this.parse_tag_clip(e)||this.parse_tag_fade(e)||this.parse_tag_fscx(e)||this.parse_tag_fscy(e)||this.parse_tag_move(e)||this.parse_tag_shad(e)||this.parse_tag_fad(e)||this.parse_tag_fax(e)||this.parse_tag_fay(e)||this.parse_tag_frx(e)||this.parse_tag_fry(e)||this.parse_tag_frz(e)||this.parse_tag_fsp(e)||this.parse_tag_fsplus(e)||this.parse_tag_fsminus(e)||this.parse_tag_org(e)||this.parse_tag_pbo(e)||this.parse_tag_pos(e)||this.parse_tag_an(e)||this.parse_tag_be(e)||this.parse_tag_fn(e)||this.parse_tag_fr(e)||this.parse_tag_fs(e)||this.parse_tag_kf(e)||this.parse_tag_ko(e)||this.parse_tag_1a(e)||this.parse_tag_1c(e)||this.parse_tag_2a(e)||this.parse_tag_2c(e)||this.parse_tag_3a(e)||this.parse_tag_3c(e)||this.parse_tag_4a(e)||this.parse_tag_4c(e)||this.parse_tag_a(e)||this.parse_tag_b(e)||this.parse_tag_c(e)||this.parse_tag_i(e)||this.parse_tag_k(e)||this.parse_tag_K(e)||this.parse_tag_p(e)||this.parse_tag_q(e)||this.parse_tag_r(e)||this.parse_tag_s(e)||this.parse_tag_t(e)||this.parse_tag_u(e))&&e.pop(),
null===r&&(r=this.parse_comment(e)),null===r)return t.pop(),null;r.value instanceof i.Comment&&e.value[e.value.length-1]instanceof i.Comment?e.value[e.value.length-1]=new i.Comment(e.value[e.value.length-1].value+r.value.value):e.value.push(r.value)}return null===this.read(e,"}")?(t.pop(),null):e},t.prototype.parse_newline=function(t){var e=new h(t);return null===this.read(e,"\\N")?(t.pop(),null):(e.value=new i.NewLine,e)},t.prototype.parse_hardspace=function(t){var e=new h(t)
;return null===this.read(e,"\\h")?(t.pop(),null):(e.value=new i.Text("\xa0"),e)},t.prototype.parse_text=function(t){var e=this._peek(),n=new h(t),r=new h(n,e);return n.value=new i.Text(r.value),n},t.prototype.parse_comment=function(t){var e=this._peek(),n=new h(t),r=new h(n,e);return n.value=new i.Comment(r.value),n},t.prototype.parse_tag_a=function(t){var e=new h(t);if(null===this.read(e,"a"))return t.pop(),null;var n=this._peek();switch(n){case"1":var r=this._peek(2);switch(r){case"10":
case"11":n=r}break;case"2":case"3":case"5":case"6":case"7":case"9":break;default:return t.pop(),null}var o=new h(e,n),a=null;switch(o.value){case"1":a=1;break;case"2":a=2;break;case"3":a=3;break;case"5":a=7;break;case"6":a=8;break;case"7":a=9;break;case"9":a=4;break;case"10":a=5;break;case"11":a=6}return e.value=new i.Alignment(a),e},t.prototype.parse_tag_alpha=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_an=function(t){var e=new h(t)
;if(null===this.read(e,"an"))return t.pop(),null;var n=this._peek();if(n<"1"||n>"9")return t.pop(),null;var r=new h(e,n);return e.value=new i.Alignment(parseInt(r.value)),e},t.prototype.parse_tag_b=function(t){var e=new h(t);if(null===this.read(e,"b"))return t.pop(),null;var n=null,r=this._peek();return r>="1"&&r<="9"&&(r=this._peek(3),"00"===r.substr(1)&&(n=new h(e,r),n.value=parseInt(n.value))),null===n&&(n=this.parse_enableDisable(e)),e.value=null!==n?new i.Bold(n.value):new i.Bold(null),e},
t.prototype.parse_tag_be=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_blur=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_bord=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_c=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_clip=function(t){return this._parse_tag_clip_or_iclip("clip",t)},t.prototype.parse_tag_fad=function(t){var e=new h(t)
;if(null===this.read(e,"fad"))return t.pop(),null;if(null===this.read(e,"("))return t.pop(),null;var n=this.parse_decimal(e);if(null===n)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var r=this.parse_decimal(e);return null===r?(t.pop(),null):null===this.read(e,")")?(t.pop(),null):(e.value=new i.Fade(n.value/1e3,r.value/1e3),e)},t.prototype.parse_tag_fade=function(t){var e=new h(t);if(null===this.read(e,"fade"))return t.pop(),null;if(null===this.read(e,"("))return t.pop(),
null;var n=this.parse_decimal(e);if(null===n)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var r=this.parse_decimal(e);if(null===r)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var o=this.parse_decimal(e);if(null===o)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var a=this.parse_decimal(e);if(null===a)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var s=this.parse_decimal(e);if(null===s)return t.pop(),null
;if(null===this.read(e,","))return t.pop(),null;var u=this.parse_decimal(e);if(null===u)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var c=this.parse_decimal(e);return null===c?(t.pop(),null):null===this.read(e,")")?(t.pop(),null):(e.value=new i.ComplexFade(1-n.value/255,1-r.value/255,1-o.value/255,a.value/1e3,s.value/1e3,u.value/1e3,c.value/1e3),e)},t.prototype.parse_tag_fax=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_fay=function(){
throw new Error("Method not implemented.")},t.prototype.parse_tag_fn=function(t){var e=new h(t);if(null===this.read(e,"fn"))return t.pop(),null;for(var n=new h(e,""),r=this._peek();this._haveMore()&&"\\"!==r&&"}"!==r;r=this._peek())n.value+=r;return n.value.length>0?e.value=new i.FontName(n.value):e.value=new i.FontName(null),e},t.prototype.parse_tag_fr=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_frx=function(){throw new Error("Method not implemented.")},
t.prototype.parse_tag_fry=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_frz=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_fs=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_fsplus=function(t){var e=new h(t);if(null===this.read(e,"fs+"))return t.pop(),null;var n=this.parse_decimal(e);return null===n?(t.pop(),null):(e.value=new i.FontSizePlus(n.value),e)},t.prototype.parse_tag_fsminus=function(t){
var e=new h(t);if(null===this.read(e,"fs-"))return t.pop(),null;var n=this.parse_decimal(e);return null===n?(t.pop(),null):(e.value=new i.FontSizeMinus(n.value),e)},t.prototype.parse_tag_fscx=function(t){var e=new h(t);if(null===this.read(e,"fscx"))return t.pop(),null;var n=this.parse_decimal(e);return e.value=null!==n?new i.FontScaleX(n.value/100):new i.FontScaleX(null),e},t.prototype.parse_tag_fscy=function(t){var e=new h(t);if(null===this.read(e,"fscy"))return t.pop(),null
;var n=this.parse_decimal(e);return e.value=null!==n?new i.FontScaleY(n.value/100):new i.FontScaleY(null),e},t.prototype.parse_tag_fsp=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_i=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_iclip=function(t){return this._parse_tag_clip_or_iclip("iclip",t)},t.prototype.parse_tag_k=function(t){var e=new h(t);if(null===this.read(e,"k"))return t.pop(),null;var n=this.parse_decimal(e)
;return null===n?(t.pop(),null):(e.value=new i.ColorKaraoke(n.value/100),e)},t.prototype.parse_tag_K=function(t){var e=new h(t);if(null===this.read(e,"K"))return t.pop(),null;var n=this.parse_decimal(e);return null===n?(t.pop(),null):(e.value=new i.SweepingColorKaraoke(n.value/100),e)},t.prototype.parse_tag_kf=function(t){var e=new h(t);if(null===this.read(e,"kf"))return t.pop(),null;var n=this.parse_decimal(e);return null===n?(t.pop(),null):(e.value=new i.SweepingColorKaraoke(n.value/100),e)},
t.prototype.parse_tag_ko=function(t){var e=new h(t);if(null===this.read(e,"ko"))return t.pop(),null;var n=this.parse_decimal(e);return null===n?(t.pop(),null):(e.value=new i.OutlineKaraoke(n.value/100),e)},t.prototype.parse_tag_move=function(t){var e=new h(t);if(null===this.read(e,"move"))return t.pop(),null;if(null===this.read(e,"("))return t.pop(),null;var n=this.parse_decimal(e);if(null===n)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var r=this.parse_decimal(e)
;if(null===r)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var o=this.parse_decimal(e);if(null===o)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var a=this.parse_decimal(e);if(null===a)return t.pop(),null;var s=null,u=null;if(null!==this.read(e,",")){if(null===(s=this.parse_decimal(e)))return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;if(null===(u=this.parse_decimal(e)))return t.pop(),null}return null===this.read(e,")")?(t.pop(),
null):(e.value=new i.Move(n.value,r.value,o.value,a.value,null!==s?s.value/1e3:null,null!==u?u.value/1e3:null),e)},t.prototype.parse_tag_org=function(t){var e=new h(t);if(null===this.read(e,"org"))return t.pop(),null;if(null===this.read(e,"("))return t.pop(),null;var n=this.parse_decimal(e);if(null===n)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var r=this.parse_decimal(e);return null===r?(t.pop(),null):null===this.read(e,")")?(t.pop(),
null):(e.value=new i.RotationOrigin(n.value,r.value),e)},t.prototype.parse_tag_p=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_pbo=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_pos=function(t){var e=new h(t);if(null===this.read(e,"pos"))return t.pop(),null;if(null===this.read(e,"("))return t.pop(),null;var n=this.parse_decimal(e);if(null===n)return t.pop(),null;if(null===this.read(e,","))return t.pop(),null;var r=this.parse_decimal(e)
;return null===r?(t.pop(),null):null===this.read(e,")")?(t.pop(),null):(e.value=new i.Position(n.value,r.value),e)},t.prototype.parse_tag_q=function(t){var e=new h(t);if(null===this.read(e,"q"))return t.pop(),null;var n=this._peek();if(n<"0"||n>"3")return t.pop(),null;var r=new h(e,n);return e.value=new i.WrappingStyle(parseInt(r.value)),e},t.prototype.parse_tag_r=function(t){var e=new h(t);if(null===this.read(e,"r"))return t.pop(),null
;for(var n=new h(e,""),r=this._peek();this._haveMore()&&"\\"!==r&&"}"!==r;r=this._peek())n.value+=r;return n.value.length>0?e.value=new i.Reset(n.value):e.value=new i.Reset(null),e},t.prototype.parse_tag_s=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_shad=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_t=function(t){var e=new h(t);if(null===this.read(e,"t"))return t.pop(),null;if(null===this.read(e,"("))return t.pop(),null
;var n=null,r=null,o=null,a=this.parse_decimal(e);if(null!==a){if(null===this.read(e,","))return t.pop(),null;var s=this.parse_decimal(e);if(null!==s){if(n=a,r=s,null===this.read(e,","))return t.pop(),null;var u=this.parse_decimal(e);if(null!==u&&(o=u,null===this.read(e,",")))return t.pop(),null}else if(o=a,null===this.read(e,","))return t.pop(),null}for(var c=[],l=this._peek();this._haveMore()&&")"!==l&&"}"!==l;l=this._peek()){var f=null
;if(null!==this.read(e,"\\")&&null===(f=this.parse_tag_alpha(e)||this.parse_tag_iclip(e)||this.parse_tag_xbord(e)||this.parse_tag_ybord(e)||this.parse_tag_xshad(e)||this.parse_tag_yshad(e)||this.parse_tag_blur(e)||this.parse_tag_bord(e)||this.parse_tag_clip(e)||this.parse_tag_fscx(e)||this.parse_tag_fscy(e)||this.parse_tag_shad(e)||this.parse_tag_fax(e)||this.parse_tag_fay(e)||this.parse_tag_frx(e)||this.parse_tag_fry(e)||this.parse_tag_frz(e)||this.parse_tag_fsp(e)||this.parse_tag_fsplus(e)||this.parse_tag_fsminus(e)||this.parse_tag_be(e)||this.parse_tag_fr(e)||this.parse_tag_fs(e)||this.parse_tag_1a(e)||this.parse_tag_1c(e)||this.parse_tag_2a(e)||this.parse_tag_2c(e)||this.parse_tag_3a(e)||this.parse_tag_3c(e)||this.parse_tag_4a(e)||this.parse_tag_4c(e)||this.parse_tag_c(e))&&e.pop(),
null===f&&(f=this.parse_comment(e)),null===f)return t.pop(),null;f.value instanceof i.Comment&&c[c.length-1]instanceof i.Comment?c[c.length-1]=new i.Comment(c[c.length-1].value+f.value.value):c.push(f.value)}return this.read(e,")"),e.value=new i.Transform(null!==n?n.value/1e3:null,null!==r?r.value/1e3:null,null!==o?o.value/1e3:null,c),e},t.prototype.parse_tag_u=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_xbord=function(){throw new Error("Method not implemented.")
},t.prototype.parse_tag_xshad=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_ybord=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_yshad=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_1a=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_1c=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_2a=function(){throw new Error("Method not implemented.")},
t.prototype.parse_tag_2c=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_3a=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_3c=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_4a=function(){throw new Error("Method not implemented.")},t.prototype.parse_tag_4c=function(){throw new Error("Method not implemented.")},t.prototype.parse_drawingInstructions=function(t){var e=new h(t),n=null,r=[]
;for(e.value=[];this._haveMore();){for(;null!==this.read(e," "););if(!this._haveMore())break;if(null!==n){var o=this.parse_decimal(e);if(null!==o){r.push(o),"m"===n&&2===r.length?(e.value.push(new i.drawing.MoveInstruction(r[0].value,r[1].value)),r.splice(0,r.length)):"l"===n&&2===r.length?(e.value.push(new i.drawing.LineInstruction(r[0].value,r[1].value)),
r.splice(0,r.length)):"b"===n&&6===r.length&&(e.value.push(new i.drawing.CubicBezierCurveInstruction(r[0].value,r[1].value,r[2].value,r[3].value,r[4].value,r[5].value)),r.splice(0,r.length));continue}}var a=this.parse_text(e);if(null===a)break;var s=a.value.value;switch(s){case"m":case"l":case"b":n=s,r.splice(0,r.length)}}for(;null!==this.read(e," "););return e},t.prototype.parse_decimalInt32=function(t){
for(var e=new h(t),n=null!==this.read(e,"-"),r=new h(e,""),i=this._peek();this._haveMore()&&i>="0"&&i<="9";i=this._peek())r.value+=i;if(0===r.value.length)return t.pop(),null;var o=parseInt(r.value);return o>=4294967295?o=4294967295:n&&(o=-o),e.value=o,e},t.prototype.parse_hexInt32=function(t){for(var e=new h(t),n=null!==this.read(e,"-"),r=new h(e,""),i=this._peek();this._haveMore()&&(i>="0"&&i<="9"||i>="a"&&i<="f"||i>="A"&&i<="F");i=this._peek())r.value+=i;if(0===r.value.length)return t.pop(),
null;var o=parseInt(r.value,16);return o>=4294967295?o=4294967295:n&&(o=-o),e.value=o,e},t.prototype.parse_decimalOrHexInt32=function(t){var e=new h(t),n=null!==this.read(e,"&H")||null!==this.read(e,"&h")?this.parse_hexInt32(e):this.parse_decimalInt32(e);return null===n?(t.pop(),null):(e.value=n.value,e)},t.prototype.parse_decimal=function(t){var e=new h(t),n=null!==this.read(e,"-"),r=this.parse_unsignedDecimal(e);return null===r?(t.pop(),null):(e.value=r.value,n&&(e.value=-e.value),e)},
t.prototype.parse_unsignedDecimal=function(t){for(var e=new h(t),n=new h(e,""),r=null,i=this._peek();this._haveMore()&&i>="0"&&i<="9";i=this._peek())n.value+=i;if(0===n.value.length)return t.pop(),null;if(null!==this.read(e,".")){r=new h(e,"");for(var i=this._peek();this._haveMore()&&i>="0"&&i<="9";i=this._peek())r.value+=i;if(0===r.value.length)return t.pop(),null}return e.value=parseFloat(n.value+(null!==r?"."+r.value:"")),e},t.prototype.parse_enableDisable=function(t){var e=this._peek()
;if("0"===e||"1"===e){var n=new h(t,e);return n.value="1"===n.value,n}return null},t.prototype.parse_color=function(t){for(var e=new h(t);null!==this.read(e,"&")||null!==this.read(e,"H"););var n=this.parse_hexInt32(e);if(null===n)return t.pop(),null;var r=n.value;for(e.value=new i.Color(255&r,r>>8&255,r>>16&255);null!==this.read(e,"&")||null!==this.read(e,"H"););return e},t.prototype.parse_alpha=function(t){for(var e=new h(t);null!==this.read(e,"&")||null!==this.read(e,"H"););
var n=this.parse_hexInt32(e);if(null===n)return t.pop(),null;var r=n.value;for(e.value=1-(255&r)/255;null!==this.read(e,"&")||null!==this.read(e,"H"););return e},t.prototype.parse_colorWithAlpha=function(t){var e=new h(t),n=this.parse_decimalOrHexInt32(e);if(null===n)return t.pop(),null;var r=n.value;return e.value=new i.Color(255&r,r>>8&255,r>>16&255,1-(r>>24&255)/255),e},t.prototype.read=function(t,e){return this._peek(e.length)!==e?null:new h(t,e)},t.prototype._peek=function(t){
return void 0===t&&(t=1),1===t?this._input[this._parseTree.end]:this._input.substr(this._parseTree.end,t)},t.prototype._haveMore=function(){return this._parseTree.end<this._input.length},t.prototype._parse_tag_clip_or_iclip=function(t,e){var r=new h(e);if(null===this.read(r,t))return e.pop(),null;if(null===this.read(r,"("))return e.pop(),null;var o=null,a=null,s=null,u=null,c=null,l=null,f=this.parse_decimal(r);if(null!==f){if(null===this.read(r,","))return e.pop(),null
;var p=this.parse_decimal(r);null!==p?(o=f,s=p):c=f}if(null!==o&&null!==s){if(null===this.read(r,","))return e.pop(),null;if(a=this.parse_decimal(r),null===this.read(r,","))return e.pop(),null;u=this.parse_decimal(r),r.value=new i.RectangularClip(o.value,s.value,a.value,u.value,"clip"===t)}else{l=new h(r,"");for(var d=this._peek();this._haveMore()&&")"!==d&&"}"!==d;d=this._peek())l.value+=d;r.value=new i.VectorClip(null!==c?c.value:1,n(l.value,"drawingInstructions"),"clip"===t)}
return null===this.read(r,")")?(e.pop(),null):r},t}();r("alpha",i.Alpha,u.prototype.parse_alpha,!1),r("be",i.Blur,u.prototype.parse_decimal,!1),r("blur",i.GaussianBlur,u.prototype.parse_decimal,!1),r("bord",i.Border,u.prototype.parse_decimal,!1),r("c",i.PrimaryColor,u.prototype.parse_color,!1),r("fax",i.SkewX,u.prototype.parse_decimal,!1),r("fay",i.SkewY,u.prototype.parse_decimal,!1),r("fr",i.RotateZ,u.prototype.parse_decimal,!1),r("frx",i.RotateX,u.prototype.parse_decimal,!1),
r("fry",i.RotateY,u.prototype.parse_decimal,!1),r("frz",i.RotateZ,u.prototype.parse_decimal,!1),r("fs",i.FontSize,u.prototype.parse_decimal,!1),r("fsp",i.LetterSpacing,u.prototype.parse_decimal,!1),r("i",i.Italic,u.prototype.parse_enableDisable,!1),r("p",i.DrawingMode,u.prototype.parse_decimal,!0),r("pbo",i.DrawingBaselineOffset,u.prototype.parse_decimal,!0),r("s",i.StrikeThrough,u.prototype.parse_enableDisable,!1),r("shad",i.Shadow,u.prototype.parse_decimal,!1),
r("u",i.Underline,u.prototype.parse_enableDisable,!1),r("xbord",i.BorderX,u.prototype.parse_decimal,!1),r("xshad",i.ShadowX,u.prototype.parse_decimal,!1),r("ybord",i.BorderY,u.prototype.parse_decimal,!1),r("yshad",i.ShadowY,u.prototype.parse_decimal,!1),r("1a",i.PrimaryAlpha,u.prototype.parse_alpha,!1),r("1c",i.PrimaryColor,u.prototype.parse_color,!1),r("2a",i.SecondaryAlpha,u.prototype.parse_alpha,!1),r("2c",i.SecondaryColor,u.prototype.parse_color,!1),
r("3a",i.OutlineAlpha,u.prototype.parse_alpha,!1),r("3c",i.OutlineColor,u.prototype.parse_color,!1),r("4a",i.ShadowAlpha,u.prototype.parse_alpha,!1),r("4c",i.ShadowColor,u.prototype.parse_color,!1);for(var c=0,l=Object.keys(u.prototype);c<l.length;c++){var f=l[c];0===f.indexOf("parse_")&&"function"==typeof u.prototype[f]&&s.set(f.substr("parse_".length),u.prototype[f])}var h=function(){function t(t,e){void 0===e&&(e=null),this._parent=t,this._children=[],null!==t&&t.children.push(this),
this._start=null!==t?t.end:0,this._end=this._start,this.value=e}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._children},enumerable:!0,
configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t,null!==this._value&&this._value.constructor===String&&0===this._children.length&&this._setEnd(this._start+this._value.length)},enumerable:!0,configurable:!0}),t.prototype.pop=function(){this._children.splice(this._children.length-1,1),this._children.length>0?this._setEnd(this._children[this._children.length-1].end):this._setEnd(this.start)},
t.prototype._setEnd=function(t){this._end=t,null!==this._parent&&this._parent.end!==this._end&&this._parent._setEnd(this._end)},t}(),p=e(32),d=e(36);e(38).registerWorkerCommand(d.WorkerCommands.Parse,function(t){return new p.Promise(function(e){e(n(t.input,t.rule))})})},function(t,e){function n(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n)-33;if(r<0||r>63)throw new Error("Out-of-range character code "+r+" at index "+n+" in string "+t)
;e+=r<26?String.fromCharCode("A".charCodeAt(0)+r):r<52?String.fromCharCode("a".charCodeAt(0)+r-26):r<62?String.fromCharCode("0".charCodeAt(0)+r-52):62===r?"+":"/"}return e}var r,i=e(23),o=e(24),a=e(29),s=e(26),u=e(25),c=e(30),l=e(32),f=e(2);!function(t){t[t.ScriptInfo=0]="ScriptInfo",t[t.Styles=1]="Styles",t[t.Events=2]="Events",t[t.Fonts=3]="Fonts",t[t.Graphics=4]="Graphics",t[t.Other=5]="Other",t[t.EOF=6]="EOF"}(r||(r={}));var h=function(){function t(t){var e=this;this._stream=t,
this._ass=new o.ASS,this._minimalDeferred=new l.DeferredPromise,this._deferred=new l.DeferredPromise,this._shouldSwallowBom=!0,this._currentSection=r.ScriptInfo,this._currentAttachment=null,this._stream.nextLine().then(function(t){return e._onNextLine(t)},function(t){e._minimalDeferred.reject(t),e._deferred.reject(t)})}return Object.defineProperty(t.prototype,"minimalASS",{get:function(){return this._minimalDeferred.promise},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"ass",{get:function(){return this._deferred.promise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSection",{get:function(){return this._currentSection},set:function(t){if(null!==this._currentAttachment&&(this._ass.addAttachment(this._currentAttachment),this._currentAttachment=null),this._currentSection===r.ScriptInfo&&t!==r.ScriptInfo&&this._minimalDeferred.resolve(this._ass),t===r.EOF){var e=this._ass.properties
;void 0===e.resolutionX||void 0===e.resolutionY?(this._minimalDeferred.reject("Malformed ASS script."),this._deferred.reject("Malformed ASS script.")):(this._minimalDeferred.resolve(this._ass),this._deferred.resolve(this._ass))}this._currentSection=t},enumerable:!0,configurable:!0}),t.prototype._onNextLine=function(t){var e=this;if(null===t)return void(this.currentSection=r.EOF);if("\r"===t[t.length-1]&&(t=t.substr(0,t.length-1)),65279===t.charCodeAt(0)&&this._shouldSwallowBom&&(t=t.substr(1)),
this._shouldSwallowBom=!1,""===t);else if(";"===t[0]&&null===this._currentAttachment);else if("[Script Info]"===t)this.currentSection=r.ScriptInfo;else if("[V4+ Styles]"===t||"[V4 Styles]"===t)this.currentSection=r.Styles;else if("[Events]"===t)this.currentSection=r.Events;else if("[Fonts]"===t)this.currentSection=r.Fonts;else if("[Graphics]"===t)this.currentSection=r.Graphics;else switch(null===this._currentAttachment&&"["===t[0]&&"]"===t[t.length-1]&&(this.currentSection=r.Other),
this.currentSection){case r.ScriptInfo:var o=f.parseLineIntoProperty(t);if(null!==o)switch(o.name){case"PlayResX":this._ass.properties.resolutionX=parseInt(o.value);break;case"PlayResY":this._ass.properties.resolutionY=parseInt(o.value);break;case"WrapStyle":this._ass.properties.wrappingStyle=parseInt(o.value);break;case"ScaledBorderAndShadow":this._ass.properties.scaleBorderAndShadow="yes"===o.value}break;case r.Styles:if(null===this._ass.stylesFormatSpecifier){var a=f.parseLineIntoProperty(t)
;null!==a&&"Format"===a.name&&(this._ass.stylesFormatSpecifier=a.value.split(",").map(function(t){return t.trim()}))}else try{this._ass.addStyle(t)}catch(e){i.debugMode&&console.error("Could not parse style from line "+t+" - "+(e.stack||e))}break;case r.Events:if(null===this._ass.dialoguesFormatSpecifier){var s=f.parseLineIntoProperty(t);null!==s&&"Format"===s.name&&(this._ass.dialoguesFormatSpecifier=s.value.split(",").map(function(t){return t.trim()}))}else try{this._ass.addEvent(t)}catch(e){
i.debugMode&&console.error("Could not parse event from line "+t+" - "+(e.stack||e))}break;case r.Fonts:case r.Graphics:var c=this.currentSection===r.Fonts?/^fontname:(.+)/:/^filename:(.+)/,l=c.exec(t);if(null!==l)null!==this._currentAttachment&&(this._ass.addAttachment(this._currentAttachment),this._currentAttachment=null),this._currentAttachment=new u.Attachment(l[1].trim(),this.currentSection===r.Fonts?u.AttachmentType.Font:u.AttachmentType.Graphic);else if(null!==this._currentAttachment)try{
this._currentAttachment.contents+=n(t)}catch(t){i.debugMode&&console.error("Encountered error while reading font "+this._currentAttachment.filename+": %o",t),this._currentAttachment=null}break;case r.Other:break;default:throw new Error("Unhandled state "+this.currentSection)}this._stream.nextLine().then(function(t){return e._onNextLine(t)},function(t){e._minimalDeferred.reject(t),e._deferred.reject(t)})},t}();t.StreamParser=h;var p=function(){function t(t){var e=this;this._stream=t,
this._ass=new o.ASS,this._deferred=new l.DeferredPromise,this._shouldSwallowBom=!0,this._currentDialogueNumber=null,this._currentDialogueStart=null,this._currentDialogueEnd=null,this._currentDialogueText=null,this._stream.nextLine().then(function(t){return e._onNextLine(t)},function(t){e._deferred.reject(t)}),this._ass.properties.resolutionX=1280,this._ass.properties.resolutionY=720,this._ass.properties.wrappingStyle=1,this._ass.properties.scaleBorderAndShadow=!0
;var n=new a.Style(new c.Map([["Name","Default"],["FontSize","36"]]));this._ass.styles.set(n.name,n)}return Object.defineProperty(t.prototype,"ass",{get:function(){return this._deferred.promise},enumerable:!0,configurable:!0}),t.prototype._onNextLine=function(t){var e=this
;if(null===t)return null!==this._currentDialogueNumber&&null!==this._currentDialogueStart&&null!==this._currentDialogueEnd&&null!==this._currentDialogueText&&this._ass.dialogues.push(new s.Dialogue(new c.Map([["Style","Default"],["Start",this._currentDialogueStart],["End",this._currentDialogueEnd],["Text",this._currentDialogueText]]),this._ass)),void this._deferred.resolve(this._ass);if("\r"===t[t.length-1]&&(t=t.substr(0,t.length-1)),
65279===t.charCodeAt(0)&&this._shouldSwallowBom&&(t=t.substr(1)),this._shouldSwallowBom=!1,""===t)null!==this._currentDialogueNumber&&null!==this._currentDialogueStart&&null!==this._currentDialogueEnd&&null!==this._currentDialogueText&&this._ass.dialogues.push(new s.Dialogue(new c.Map([["Style","Default"],["Start",this._currentDialogueStart],["End",this._currentDialogueEnd],["Text",this._currentDialogueText]]),this._ass)),
this._currentDialogueNumber=this._currentDialogueStart=this._currentDialogueEnd=this._currentDialogueText=null;else if(null===this._currentDialogueNumber)/^\d+$/.test(t)&&(this._currentDialogueNumber=t);else if(null===this._currentDialogueStart&&null===this._currentDialogueEnd){var n=/^(\d\d:\d\d:\d\d,\d\d\d) --> (\d\d:\d\d:\d\d,\d\d\d)/.exec(t);null!==n&&(this._currentDialogueStart=n[1].replace(",","."),this._currentDialogueEnd=n[2].replace(",","."))
}else t=t.replace(/<b>/g,"{\\b1}").replace(/\{b\}/g,"{\\b1}").replace(/<\/b>/g,"{\\b0}").replace(/\{\/b\}/g,"{\\b0}").replace(/<i>/g,"{\\i1}").replace(/\{i\}/g,"{\\i1}").replace(/<\/i>/g,"{\\i0}").replace(/\{\/i\}/g,"{\\i0}").replace(/<u>/g,"{\\u1}").replace(/\{u\}/g,"{\\u1}").replace(/<\/u>/g,"{\\u0}").replace(/\{\/u\}/g,"{\\u0}").replace(/<font color="#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})">/g,function(t,e,n,r){return"{c&H"+r+n+e+"&}"}).replace(/<\/font>/g,"{\\c}"),
null!==this._currentDialogueText?this._currentDialogueText+="\\N"+t:this._currentDialogueText=t;this._stream.nextLine().then(function(t){return e._onNextLine(t)},function(t){e._deferred.reject(t)})},t}();t.SrtStreamParser=p},function(e,n){var r=n(32),i=function(){function t(t){this._str=t,this._readTill=0}return t.prototype.nextLine=function(){var t=null;if(this._readTill<this._str.length){var e=this._str.indexOf("\n",this._readTill)
;-1!==e?(t=r.Promise.resolve(this._str.substring(this._readTill,e)),this._readTill=e+1):(t=r.Promise.resolve(this._str.substr(this._readTill)),this._readTill=this._str.length)}else t=r.Promise.resolve(null);return t},t}();e.StringStream=i;var o=function(){function t(t){var e=this;this._xhr=t,this._readTill=0,this._pendingDeferred=null,this._failedError=null,t.addEventListener("progress",function(){return e._onXhrProgress()},!1),t.addEventListener("load",function(){return e._onXhrLoad()},!1),
t.addEventListener("error",function(t){return e._onXhrError(t)},!1)}return t.prototype.nextLine=function(){if(null!==this._pendingDeferred)throw new Error("XhrStream only supports one pending unfulfilled read at a time.");var t=this._pendingDeferred=new r.DeferredPromise;return this._tryResolveNextLine(),t.promise},t.prototype._onXhrProgress=function(){null!==this._pendingDeferred&&this._xhr.readyState!==XMLHttpRequest.DONE&&this._tryResolveNextLine()},t.prototype._onXhrLoad=function(){
null!==this._pendingDeferred&&this._tryResolveNextLine()},t.prototype._onXhrError=function(t){this._failedError=t,null!==this._pendingDeferred&&this._tryResolveNextLine()},t.prototype._tryResolveNextLine=function(){if(null!==this._failedError)return void this._pendingDeferred.reject(this._failedError);var t=this._xhr.responseText,e=t.indexOf("\n",this._readTill);-1!==e?(this._pendingDeferred.resolve(t.substring(this._readTill,e)),this._readTill=e+1,
this._pendingDeferred=null):this._xhr.readyState===XMLHttpRequest.DONE&&(null!==this._failedError?this._pendingDeferred.reject(this._failedError):this._readTill<t.length?(this._pendingDeferred.resolve(t.substr(this._readTill)),this._readTill=t.length):this._pendingDeferred.resolve(null),this._pendingDeferred=null)},t}();e.XhrStream=o;var a=function(){function e(e,n){this._buffer="",this._pendingDeferred=null,this._reader=e.getReader(),this._decoder=new t.TextDecoder(n,{ignoreBOM:!0})}
return e.prototype.nextLine=function(){if(null!==this._pendingDeferred)throw new Error("BrowserReadableStream only supports one pending unfulfilled read at a time.");var t=this._pendingDeferred=new r.DeferredPromise;return this._tryResolveNextLine(),t.promise},e.prototype._tryResolveNextLine=function(){var t=this,e=this._buffer.indexOf("\n");-1!==e?(this._pendingDeferred.resolve(this._buffer.substr(0,e)),this._buffer=this._buffer.substr(e+1),
this._pendingDeferred=null):this._reader.read().then(function(e){var n=e.value;e.done?(0===t._buffer.length?t._pendingDeferred.resolve(null):(t._pendingDeferred.resolve(t._buffer),t._buffer=""),t._pendingDeferred=null):(t._buffer+=t._decoder.decode(n,{stream:!0}),t._tryResolveNextLine())})},e}();e.BrowserReadableStream=a},function(t,e){function n(t){for(var e=atob(t.contents),n=new Uint8Array(new ArrayBuffer(e.length)),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);for(var i={
dataView:new DataView(n.buffer),position:0},o=l.read(i),a=null,r=0;r<o.numTables;r++){var s=f.read(i);if(s.c1+s.c2+s.c3+s.c4==="name"){a=s;break}}i.position=a.offset;for(var c=h.read(i),d=new u.Set,r=0;r<c.count;r++){var g=p.read(i);switch(g.nameId){case 1:case 4:case 6:var v=a.offset+c.stringOffset+g.offset,y=n.subarray(v,v+g.length);switch(g.platformId){case 1:for(var m="",b=0;b<y.length;b++)m+=String.fromCharCode(y[b]);d.add(m);break;case 3:
for(var w="",b=0;b<y.length;b+=2)w+=String.fromCharCode((y[b]<<8)+y[b+1]);d.add(w)}}}return d}function r(t){var e=t.__fields;return t.read=function(n){for(var r=new t,i=0;i<e.length;i++){var a=e[i],s=void 0;switch(a.type){case o.Char:s=String.fromCharCode(n.dataView.getInt8(n.position)),n.position+=1;break;case o.Uint16:s=n.dataView.getUint16(n.position),n.position+=2;break;case o.Uint32:s=n.dataView.getUint32(n.position),n.position+=4}r[a.field]=s}return r},t}function i(t){var e=c.get(t)
;return void 0===e&&(e=function(e,n){var r=e.constructor;void 0===r.__fields&&(r.__fields=[]),r.__fields.push({type:t,field:n})},c.set(t,e)),e}var o,a=e(34).__decorate,s=e(30),u=e(33);!function(t){t[t.Char=0]="Char",t[t.Uint16=1]="Uint16",t[t.Uint32=2]="Uint32"}(o||(o={}));var c=new s.Map,l=function(){function t(){}return a([i(o.Uint16)],t.prototype,"majorVersion",void 0),a([i(o.Uint16)],t.prototype,"minorVersion",void 0),a([i(o.Uint16)],t.prototype,"numTables",void 0),
a([i(o.Uint16)],t.prototype,"searchRange",void 0),a([i(o.Uint16)],t.prototype,"entrySelector",void 0),a([i(o.Uint16)],t.prototype,"rangeShift",void 0),t=a([r],t)}(),f=function(){function t(){}return a([i(o.Char)],t.prototype,"c1",void 0),a([i(o.Char)],t.prototype,"c2",void 0),a([i(o.Char)],t.prototype,"c3",void 0),a([i(o.Char)],t.prototype,"c4",void 0),a([i(o.Uint32)],t.prototype,"checksum",void 0),a([i(o.Uint32)],t.prototype,"offset",void 0),a([i(o.Uint32)],t.prototype,"length",void 0),
t=a([r],t)}(),h=function(){function t(){}return a([i(o.Uint16)],t.prototype,"formatSelector",void 0),a([i(o.Uint16)],t.prototype,"count",void 0),a([i(o.Uint16)],t.prototype,"stringOffset",void 0),t=a([r],t)}(),p=function(){function t(){}return a([i(o.Uint16)],t.prototype,"platformId",void 0),a([i(o.Uint16)],t.prototype,"encodingId",void 0),a([i(o.Uint16)],t.prototype,"languageId",void 0),a([i(o.Uint16)],t.prototype,"nameId",void 0),a([i(o.Uint16)],t.prototype,"length",void 0),
a([i(o.Uint16)],t.prototype,"offset",void 0),t=a([r],t)}();t.getTtfNames=n},function(t){var e=function(){function t(t,e){this._x=t,this._y=e}return Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),t}();t.MoveInstruction=e;var n=function(){function t(t,e){this._x=t,this._y=e}return Object.defineProperty(t.prototype,"x",{get:function(){
return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),t}();t.LineInstruction=n;var r=function(){function t(t,e,n,r,i,o){this._x1=t,this._y1=e,this._x2=n,this._y2=r,this._x3=i,this._y3=o}return Object.defineProperty(t.prototype,"x1",{get:function(){return this._x1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this._y1},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"x2",{get:function(){return this._x2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this._y2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x3",{get:function(){return this._x3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y3",{get:function(){return this._y3},enumerable:!0,configurable:!0}),t}();t.CubicBezierCurveInstruction=r},function(t,e){var n=e(7);t.drawing=n
;var r=function(){function t(t,e,n,r){void 0===r&&(r=1),this._red=t,this._green=e,this._blue=n,this._alpha=r}return Object.defineProperty(t.prototype,"red",{get:function(){return this._red},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this._green},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this._blue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){
return this._alpha},enumerable:!0,configurable:!0}),t.prototype.withAlpha=function(e){return null!==e?new t(this._red,this._green,this._blue,e):this},t.prototype.toString=function(){return"rgba("+this._red+", "+this._green+", "+this._blue+", "+this._alpha.toFixed(3)+")"},t.prototype.interpolate=function(e,n){return new t(this._red+n*(e.red-this._red),this._green+n*(e.green-this._green),this._blue+n*(e.blue-this._blue),this._alpha+n*(e.alpha-this._alpha))},t}();t.Color=r;var i=function(){
function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Comment=i;var o=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Text { value: "+this._value.replace(/\u00A0/g,"\\h")+" }"},t}();t.Text=o;var a=function(){function t(){}return t}();t.NewLine=a
;var s=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Italic=s;var u=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Bold=u;var c=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,
configurable:!0}),t}();t.Underline=c;var l=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.StrikeThrough=l;var f=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Border=f;var h=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{
get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.BorderX=h;var p=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.BorderY=p;var d=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Shadow=d;var g=function(){function t(t){this._value=t}
return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.ShadowX=g;var v=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.ShadowY=v;var y=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Blur=y
;var m=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.GaussianBlur=m;var b=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.FontName=b;var w=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},
enumerable:!0,configurable:!0}),t}();t.FontSize=w;var _=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.FontSizePlus=_;var x=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.FontSizeMinus=x;var O=function(){function t(t){this._value=t}
return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.FontScaleX=O;var T=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.FontScaleY=T;var S=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}()
;t.LetterSpacing=S;var E=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.RotateX=E;var j=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.RotateY=j;var k=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){
return this._value},enumerable:!0,configurable:!0}),t}();t.RotateZ=k;var C=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.SkewX=C;var A=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.SkewY=A;var P=function(){function t(t){this._value=t}
return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.PrimaryColor=P;var M=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.SecondaryColor=M;var D=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}()
;t.OutlineColor=D;var I=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.ShadowColor=I;var N=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Alpha=N;var R=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){
return this._value},enumerable:!0,configurable:!0}),t}();t.PrimaryAlpha=R;var L=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.SecondaryAlpha=L;var U=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.OutlineAlpha=U;var F=function(){function t(t){this._value=t}
return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.ShadowAlpha=F;var B=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Alignment=B;var z=function(){function t(t){this._duration=t}return Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t}()
;t.ColorKaraoke=z;var q=function(){function t(t){this._duration=t}return Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t}();t.SweepingColorKaraoke=q;var H=function(){function t(t){this._duration=t}return Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t}();t.OutlineKaraoke=H;var W=function(){function t(t){this._value=t}
return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.WrappingStyle=W;var V=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}();t.Reset=V;var Y=function(){function t(t,e){this._x=t,this._y=e}return Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),t}();t.Position=Y;var G=function(){function t(t,e,n,r,i,o){this._x1=t,this._y1=e,this._x2=n,this._y2=r,this._t1=i,this._t2=o}return Object.defineProperty(t.prototype,"x1",{get:function(){return this._x1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this._y1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){
return this._x2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this._y2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"t1",{get:function(){return this._t1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"t2",{get:function(){return this._t2},enumerable:!0,configurable:!0}),t}();t.Move=G;var X=function(){function t(t,e){this._x=t,this._y=e}return Object.defineProperty(t.prototype,"x",{get:function(){
return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),t}();t.RotationOrigin=X;var K=function(){function t(t,e){this._start=t,this._end=e}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),t}();t.Fade=K;var $=function(){
function t(t,e,n,r,i,o,a){this._a1=t,this._a2=e,this._a3=n,this._t1=r,this._t2=i,this._t3=o,this._t4=a}return Object.defineProperty(t.prototype,"a1",{get:function(){return this._a1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a2",{get:function(){return this._a2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a3",{get:function(){return this._a3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"t1",{get:function(){return this._t1},
enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"t2",{get:function(){return this._t2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"t3",{get:function(){return this._t3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"t4",{get:function(){return this._t4},enumerable:!0,configurable:!0}),t}();t.ComplexFade=$;var Q=function(){function t(t,e,n,r){this._start=t,this._end=e,this._accel=n,this._tags=r}
return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"accel",{get:function(){return this._accel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this._tags},enumerable:!0,configurable:!0}),t}();t.Transform=Q;var J=function(){function t(t,e,n,r,i){
this._x1=t,this._y1=e,this._x2=n,this._y2=r,this._inside=i}return Object.defineProperty(t.prototype,"x1",{get:function(){return this._x1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this._y1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){return this._x2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this._y2},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"inside",{get:function(){return this._inside},enumerable:!0,configurable:!0}),t}();t.RectangularClip=J;var Z=function(){function t(t,e,n){this._scale=t,this._instructions=e,this._inside=n}return Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instructions",{get:function(){return this._instructions},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"inside",{get:function(){return this._inside},enumerable:!0,configurable:!0}),t}();t.VectorClip=Z;var tt=function(){function t(t){this._scale=t}return Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!0,configurable:!0}),t}();t.DrawingMode=tt;var et=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t}()
;t.DrawingBaselineOffset=et;var nt=function(){function t(t){this._instructions=t}return Object.defineProperty(t.prototype,"instructions",{get:function(){return this._instructions},enumerable:!0,configurable:!0}),t}();t.DrawingInstructions=nt;for(var rt=function(t,e){if(!t.prototype.hasOwnProperty("toString")){var n=Object.getOwnPropertyNames(t.prototype).filter(function(t){return"constructor"!==t});t.prototype.toString=function(){var t=this;return e+" { "+n.map(function(e){return e+": "+t[e]
}).join(", ")+(n.length>0?" ":"")+"}"}}},it=e(38),ot=0,at=Object.keys(t);ot<at.length;ot++){var st=at[ot],ut=t[st];ut instanceof Function&&(rt(ut,st),it.registerClassPrototype(ut.prototype))}for(var ct=0,lt=Object.keys(n);ct<lt.length;ct++){var st=lt[ct],ut=n[st];ut instanceof Function&&(rt(ut,"Drawing"+st),it.registerClassPrototype(ut.prototype))}},function(t,e){var n=e(23),r=e(11),i=function(){function t(t,e){this._getCurrentTime=t,this._autoPauseAfter=e,this._manualClock=new r.ManualClock,
this._nextAnimationFrameRequestId=null,this._lastKnownExternalTime=null,this._lastKnownExternalTimeObtainedAt=null}return t.prototype.play=function(){this._manualClock.enabled&&(this._startTicking(),this._manualClock.play())},t.prototype.pause=function(){if(this._manualClock.enabled){if(null===this._nextAnimationFrameRequestId)return void(n.debugMode&&console.warn("AutoClock.pause: Abnormal state detected. AutoClock._nextAnimationFrameRequestId should not have been null."));this._stopTicking(),
this._manualClock.pause()}},t.prototype.seeking=function(){this._manualClock.seek(this._getCurrentTime())},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._manualClock.currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._manualClock.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paused",{get:function(){return this._manualClock.paused},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"rate",{get:function(){return this._manualClock.rate},enumerable:!0,configurable:!0}),t.prototype.setRate=function(t){this._manualClock.setRate(t)},t.prototype.enable=function(){return!!this._manualClock.enable()&&(this._startTicking(),!0)},t.prototype.disable=function(){return!!this._manualClock.disable()&&(this._stopTicking(),!0)},t.prototype.toggle=function(){this._manualClock.enabled?this.disable():this.enable()},t.prototype.setEnabled=function(t){
return t?this.enable():this.disable()},t.prototype.addEventListener=function(t,e){this._manualClock.addEventListener(t,e)},t.prototype._onTimerTick=function(t){var e=this;if(!this._manualClock.enabled)return void(n.debugMode&&console.warn("AutoClock._onTimerTick: Called when disabled."));var r=this._manualClock.currentTime,i=this._getCurrentTime();this._manualClock.paused?r!==i&&(this._lastKnownExternalTime=i,this._lastKnownExternalTimeObtainedAt=t,
this._manualClock.tick(i)):null!==this._lastKnownExternalTime&&i===this._lastKnownExternalTime?t-this._lastKnownExternalTimeObtainedAt>this._autoPauseAfter?(this._lastKnownExternalTimeObtainedAt=null,this._manualClock.pause()):this._manualClock.tick((t-this._lastKnownExternalTimeObtainedAt)/1e3*this._manualClock.rate+this._lastKnownExternalTime):(this._lastKnownExternalTime=i,this._lastKnownExternalTimeObtainedAt=t,this._manualClock.tick(i)),
this._nextAnimationFrameRequestId=requestAnimationFrame(function(t){return e._onTimerTick(t)})},t.prototype._startTicking=function(){var t=this;null===this._nextAnimationFrameRequestId&&(this._nextAnimationFrameRequestId=requestAnimationFrame(function(e){return t._onTimerTick(e)}))},t.prototype._stopTicking=function(){null!==this._nextAnimationFrameRequestId&&(cancelAnimationFrame(this._nextAnimationFrameRequestId),this._nextAnimationFrameRequestId=null)},t}();t.AutoClock=i},function(t){
var e=function(){function t(){}return t.prototype.addEventListener=function(t,e){var n=this._eventListeners.get(t);void 0===n&&this._eventListeners.set(t,n=[]),n.push(e)},t.prototype._dispatchEvent=function(t,e){var n=this._eventListeners.get(t);if(void 0!==n)for(var r=0;r<n.length;r++){var i=n[r];i.apply(this,e)}},t}();t.EventSource=e,function(t){t[t.Play=0]="Play",t[t.Tick=1]="Tick",t[t.Pause=2]="Pause",t[t.Stop=3]="Stop",t[t.RateChange=4]="RateChange"}(t.ClockEvent||(t.ClockEvent={}))
},function(t,e){var n=e(31),r=e(30),i=e(10),o=function(){function t(){this._currentTime=-1,this._rate=1,this._enabled=!0,this._paused=!0,this._eventListeners=new r.Map}return t.prototype.play=function(){this._enabled&&this._paused&&(this._paused=!1,this._dispatchEvent(i.ClockEvent.Play,[]))},t.prototype.tick=function(t){this._enabled&&this._currentTime!==t&&(this.play(),this._currentTime=t,this._dispatchEvent(i.ClockEvent.Tick,[]))},t.prototype.seek=function(t){this._enabled&&(this.pause(),
this._currentTime!==t&&(this.stop(),this.tick(t),this.pause()))},t.prototype.pause=function(){this._enabled&&(this._paused||(this._paused=!0,this._dispatchEvent(i.ClockEvent.Pause,[])))},t.prototype.stop=function(){this._dispatchEvent(i.ClockEvent.Stop,[])},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"paused",{get:function(){return this._paused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rate",{get:function(){return this._rate},enumerable:!0,configurable:!0}),t.prototype.setRate=function(t){this._rate!==t&&(this._rate=t,this._dispatchEvent(i.ClockEvent.RateChange,[]))},t.prototype.enable=function(){return!this._enabled&&(this._enabled=!0,!0)},t.prototype.disable=function(){return!!this._enabled&&(this.pause(),this.stop(),
this._enabled=!1,!0)},t.prototype.toggle=function(){this._enabled?this.disable():this.enable()},t.prototype.setEnabled=function(t){return t?this.enable():this.disable()},t}();t.ManualClock=o,n.mixin(o,[i.EventSource])},function(t,e){var n=e(9),r=function(){function t(t){var e=this;this._autoClock=new n.AutoClock(function(){return t.currentTime},100),t.addEventListener("playing",function(){return e._autoClock.play()},!1),t.addEventListener("pause",function(){return e._autoClock.pause()},!1),
t.addEventListener("seeking",function(){return e._autoClock.seeking()},!1),t.addEventListener("ratechange",function(){return e._autoClock.setRate(t.playbackRate)},!1)}return Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._autoClock.currentTime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._autoClock.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paused",{get:function(){
return this._autoClock.paused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rate",{get:function(){return this._autoClock.rate},enumerable:!0,configurable:!0}),t.prototype.enable=function(){return this._autoClock.enable()},t.prototype.disable=function(){return this._autoClock.disable()},t.prototype.toggle=function(){this._autoClock.enabled?this.disable():this.enable()},t.prototype.setEnabled=function(t){return t?this.enable():this.disable()},
t.prototype.addEventListener=function(t,e){this._autoClock.addEventListener(t,e)},t}();t.VideoClock=r},function(t,e){var n=e(34).__extends,r=e(12),i=e(21),o=function(t){function e(e,n,i){t.call(this,n,new r.VideoClock(e),document.createElement("div"),i),this._video=e,this._video.parentElement.replaceChild(this.libjassSubsWrapper,this._video),this.libjassSubsWrapper.insertBefore(this._video,this.libjassSubsWrapper.firstElementChild)}return n(e,t),e.prototype.resize=function(){
var e=this._video.videoWidth,n=this._video.videoHeight,r=this._video.offsetWidth,i=this._video.offsetHeight,o=Math.min(r/e,i/n),a=e*o,s=n*o,u=(r-a)/2,c=(i-s)/2;t.prototype.resize.call(this,a,s,u,c)},e.prototype.resizeVideo=function(){console.warn("`DefaultRenderer.resizeVideo(width, height)` has been deprecated. Use `DefaultRenderer.resize()` instead."),this.resize()},e.prototype._ready=function(){this.resize(),t.prototype._ready.call(this)},e}(i.WebRenderer);t.DefaultRenderer=o},function(t,e){
var n=e(10);t.ClockEvent=n.ClockEvent,t.EventSource=n.EventSource;var r=e(9);t.AutoClock=r.AutoClock;var i=e(11);t.ManualClock=i.ManualClock;var o=e(12);t.VideoClock=o.VideoClock;var a=e(13);t.DefaultRenderer=a.DefaultRenderer;var s=e(15);t.NullRenderer=s.NullRenderer;var u=e(21);t.WebRenderer=u.WebRenderer;var c=e(16);t.RendererSettings=c.RendererSettings},function(t,e){var n=e(10),r=e(16),i=e(23),o=function(){function t(e,i,o){var a=this;this._ass=e,this._clock=i,this._id=++t._lastRendererId,
this._settings=r.RendererSettings.from(o),this._clock.addEventListener(n.ClockEvent.Play,function(){return a._onClockPlay()}),this._clock.addEventListener(n.ClockEvent.Tick,function(){return a._onClockTick()}),this._clock.addEventListener(n.ClockEvent.Pause,function(){return a._onClockPause()}),this._clock.addEventListener(n.ClockEvent.Stop,function(){return a._onClockStop()}),this._clock.addEventListener(n.ClockEvent.RateChange,function(){return a._onClockRateChange()})}
return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ass",{get:function(){return this._ass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clock",{get:function(){return this._clock},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settings",{get:function(){return this._settings},enumerable:!0,configurable:!0}),t.prototype.preRender=function(){},
t.prototype.draw=function(){},t.prototype.enable=function(){return this._clock.enable()},t.prototype.disable=function(){return this._clock.disable()},t.prototype.toggle=function(){this._clock.toggle()},t.prototype.setEnabled=function(t){return this._clock.setEnabled(t)},Object.defineProperty(t.prototype,"enabled",{get:function(){return this._clock.enabled},enumerable:!0,configurable:!0}),t.prototype._onClockPlay=function(){i.verboseMode&&console.log("NullRenderer._onClockPlay")},
t.prototype._onClockTick=function(){var t=this._clock.currentTime;i.verboseMode&&console.log("NullRenderer._onClockTick: currentTime = "+t);for(var e=0,n=this._ass.dialogues;e<n.length;e++){var r=n[e];r.end>t&&(r.start<=t?this.draw(r):r.start<=t+this._settings.preRenderTime&&this.preRender(r))}},t.prototype._onClockPause=function(){i.verboseMode&&console.log("NullRenderer._onClockPause")},t.prototype._onClockStop=function(){i.verboseMode&&console.log("NullRenderer._onClockStop")},
t.prototype._onClockRateChange=function(){i.verboseMode&&console.log("NullRenderer._onClockRateChange")},t._lastRendererId=-1,t}();t.NullRenderer=o},function(t,e){function n(t){return t.type===CSSRule.FONT_FACE_RULE}var r=e(30),i=function(){function t(){}return t.makeFontMapFromStyleElement=function(t){for(var e=new r.Map,i=t.sheet,o=0;o<i.cssRules.length;o++){var a=i.cssRules[o];if(n(a)){
var s=a.style.getPropertyValue("font-family").match(/^["']?(.*?)["']?$/)[1],u=a.style.getPropertyValue("src");u||(u=a.cssText.split("\n").map(function(t){return t.match(/src:\s*([^;]+?)\s*;/)}).filter(function(t){return null!==t}).map(function(t){return t[1]})[0]),e.set(s,u)}}return e},t.from=function(e){void 0!==e&&null!==e||(e={})
;var n=e,r=n.fontMap,i=void 0===r?null:r,o=n.preRenderTime,a=void 0===o?5:o,s=n.preciseOutlines,u=void 0!==s&&s,c=n.enableSvg,l=void 0===c||c,f=n.fallbackFonts,h=void 0===f?'Arial, Helvetica, sans-serif, "Segoe UI Symbol"':f,p=n.useAttachedFonts,d=void 0!==p&&p,g=new t;return g.fontMap=i,g.preRenderTime=a,g.preciseOutlines=u,g.enableSvg=l,g.fallbackFonts=h,g.useAttachedFonts=d,g},t}();t.RendererSettings=i},function(t,e){var n=e(30),r=function(){function t(e,r){this._style=r,
this._animationStyle="",this._animationDelays=new n.Map,this._numAnimations=0,this._id=e.id+"-"+t._nextId++,this._rate=e.clock.rate}return Object.defineProperty(t.prototype,"animationStyle",{get:function(){return this._animationStyle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animationDelays",{get:function(){return this._animationDelays},enumerable:!0,configurable:!0}),t.prototype.add=function(t,e){for(var n=null,r=null,i=0;i<e.length;i++){var o=e[i]
;null===n&&(n=o.time),r=o.time}for(var a="",s=0;s<e.length;s++){var o=e[s];a+="\t"+(100*(r-n==0?1:(o.time-n)/(r-n))).toFixed(3)+"% {\n",o.properties.forEach(function(t,e){a+="\t\t"+e+": "+t+";\n"}),a+="\t}\n"}var u="animation-"+this._id+"-"+this._numAnimations++;this._style.appendChild(document.createTextNode("@-webkit-keyframes "+u+" {\n"+a+"\n}")),this._style.appendChild(document.createTextNode("@keyframes "+u+" {\n"+a+"\n}")),""!==this._animationStyle&&(this._animationStyle+=","),
this._animationStyle+=u+" "+((r-n)/this._rate).toFixed(3)+"s "+t,this._animationDelays.set(u,n)},t._nextId=0,t}();t.AnimationCollection=r},function(t,e){var n=e(8),r=function(){function t(t,e){this._outputScaleX=t,this._outputScaleY=e,this._scale=1,this._baselineOffset=0}return Object.defineProperty(t.prototype,"scale",{set:function(t){this._scale=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baselineOffset",{set:function(t){this._baselineOffset=t},enumerable:!0,
configurable:!0}),t.prototype.toSVG=function(t,e){for(var r=Math.pow(2,this._scale-1),i=this._outputScaleX/r,o=this._outputScaleY/r,a=document.createElementNS("http://www.w3.org/2000/svg","path"),s=0,u=0,c=0,l=t.instructions;c<l.length;c++){var f=l[c];f instanceof n.drawing.MoveInstruction?(a.pathSegList.appendItem(a.createSVGPathSegMovetoAbs(f.x,f.y+this._baselineOffset)),s=Math.max(s,f.x),
u=Math.max(u,f.y+this._baselineOffset)):f instanceof n.drawing.LineInstruction?(a.pathSegList.appendItem(a.createSVGPathSegLinetoAbs(f.x,f.y+this._baselineOffset)),s=Math.max(s,f.x),u=Math.max(u,f.y+this._baselineOffset)):f instanceof n.drawing.CubicBezierCurveInstruction&&(a.pathSegList.appendItem(a.createSVGPathSegCurvetoCubicAbs(f.x3,f.y3+this._baselineOffset,f.x1,f.y1+this._baselineOffset,f.x2,f.y2+this._baselineOffset)),s=Math.max(s,f.x1,f.x2,f.x3),
u=Math.max(u,f.y1+this._baselineOffset,f.y2+this._baselineOffset,f.y3+this._baselineOffset))}var h=document.createElementNS("http://www.w3.org/2000/svg","svg");h.setAttribute("version","1.1"),h.width.baseVal.valueAsString=(s*i).toFixed(3)+"px",h.height.baseVal.valueAsString=(u*o).toFixed(3)+"px";var p=document.createElementNS("http://www.w3.org/2000/svg","g");return h.appendChild(p),p.setAttribute("transform","scale("+i.toFixed(3)+" "+o.toFixed(3)+")"),p.appendChild(a),
a.setAttribute("fill",e.toString()),h},t}();t.DrawingStyles=r},function(t,e){function n(t,e,n,r){var i='"'+t+'"';""!==n&&(i+=", "+n),r.style.fontFamily=i,r.style.fontSize=e+"px"}function r(t,e,r,i){return n(t,e,r,i),new c.Promise(function(t){return setTimeout(function(){return t(i.offsetHeight)},1e3)})}function i(t,e,r,i){return n(t,e,r,i),i.offsetHeight}function o(t,e){return[t,180/(e-t)]}function a(t,e,n){return r(t,180,e,n).then(function(i){return r(t,360,e,n).then(function(t){return o(i,t)})
})}function s(t,e,n){return 180+(t-e)*n}function u(t,e,n,r,a){var u=a.get(t);if(void 0===u){var c=i(t,180,n,r),l=i(t,360,n,r);a.set(t,u=o(c,l))}return s(e,u[0],u[1])}var c=e(32);t.calculateFontMetrics=a,t.fontSizeForLineHeight=u},function(t){var e=function(){function t(t,e){this._time=t,this._properties=e}return Object.defineProperty(t.prototype,"time",{get:function(){return this._time},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){
return this._properties},enumerable:!0,configurable:!0}),t}();t.Keyframe=e},function(e,n){var r=n(34).__extends,i=n(17),o=n(18),a=n(19),s=n(20),u=n(22),c=n(10),l=n(15),f=n(6),h=n(8),p=n(23),d=n(25),g=n(27),v=n(31),y=n(30),m=n(32),b=/^(url|local)\(["']?(.+?)["']?\)$/,w=function(e){function n(n,r,i,o){var a=this;e.call(this,n,r,function(){if(!(i instanceof HTMLDivElement)){var t=o;o=i,i=t,
console.warn("WebRenderer's constructor now takes libjassSubsWrapper as the third parameter and settings as the fourth parameter. Please update the caller.")}return o}()),this._libjassSubsWrapper=i,this._layerWrappers=[],this._layerAlignmentWrappers=[],this._fontMetricsCache=new y.Map,this._currentSubs=new y.Map,this._preRenderedSubs=new y.Map,this._eventListeners=new y.Map,this._libjassSubsWrapper.classList.add("libjass-wrapper"),this._subsWrapper=document.createElement("div"),
this._libjassSubsWrapper.appendChild(this._subsWrapper),this._subsWrapper.className="libjass-subs",this._fontSizeElement=document.createElement("div"),this._libjassSubsWrapper.appendChild(this._fontSizeElement),this._fontSizeElement.className="libjass-font-measure",this._fontSizeElement.appendChild(document.createTextNode("M")),p.debugMode&&console.log("Preloading fonts...");var s=[],u=new y.Map,c=null===this.settings.fontMap?new y.Map:this.settings.fontMap,l=new y.Map
;this.settings.useAttachedFonts&&n.attachments.forEach(function(t){if(t.type===d.AttachmentType.Font){var e=null;try{e=f.getTtfNames(t)}catch(t){return void console.error(t)}var n="data:application/x-font-ttf;base64,"+t.contents;e.forEach(function(t){var e=c.get(t);if(void 0!==e)if("string"!=typeof e)e.push(n);else{var r=l.get(t);void 0===r&&l.set(t,r=[]),r.push(n)}else c.set(t,[n])})}}),c.forEach(function(e,n){var r;if(t.document.fonts&&t.document.fonts.add){
var i="string"==typeof e?e:e.map(function(t){return null!==t.match(b)?t:'url("'+t+'")'}).join(", "),o=l.get(n);if(void 0!==o)for(var c=0;c<o.length;c++){var f=o[c];i+=', url("'+f+'")'}var h=[];t.document.fonts.forEach(function(t){t.family!==n&&t.family!=='"'+n+'"'||h.push(t)});var d;if(0===h.length){var g=new FontFace(n,i),v=new FontFace('"'+n+'"',i);t.document.fonts.add(g),t.document.fonts.add(v),d=m.any([g.load(),v.load()])}else d=m.any(h.map(function(t){return t.load()}))
;r=a._calculateFontMetricsAfterFetch(n,d.catch(function(t){return console.warn("Fetching fonts for "+n+" at "+i+" failed: %o",t),null}))}else{var y=("string"==typeof e?e.split(/,/):e).map(function(t){return t.trim()}).map(function(t){var e=t.match(b);return null===e?t:"local"===e[1]?null:e[2]}).filter(function(t){return null!==t}),o=l.get(n);void 0!==o&&(y=y.concat(o));var w=y.map(function(t){var e=u.get(t);return void 0===e&&(e=new m.Promise(function(e,n){var r=new XMLHttpRequest
;r.addEventListener("load",function(){p.debugMode&&console.log("Preloaded "+t+"."),e(null)}),r.addEventListener("error",function(t){n(t)}),r.open("GET",t,!0),r.send()}),u.set(t,e)),e}),_=0===w.length?m.Promise.resolve(null):m.first(w).catch(function(t){return console.warn("Fetching fonts for "+n+" at "+y.join(", ")+" failed: %o",t),null});r=a._calculateFontMetricsAfterFetch(n,_)}s.push(r.then(function(t){return a._fontMetricsCache.set(n,t)}))}),m.Promise.all(s).then(function(){
p.debugMode&&console.log("All fonts have been preloaded."),a._ready()})}return r(n,e),Object.defineProperty(n.prototype,"libjassSubsWrapper",{get:function(){return this._libjassSubsWrapper},enumerable:!0,configurable:!0}),n.prototype.resize=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),this._removeAllSubs(),this._subsWrapper.style.width=t.toFixed(3)+"px",this._subsWrapper.style.height=e.toFixed(3)+"px",this._subsWrapper.style.left=n.toFixed(3)+"px",
this._subsWrapper.style.top=r.toFixed(3)+"px",this._subsWrapperWidth=t,this._scaleX=t/this.ass.properties.resolutionX,this._scaleY=e/this.ass.properties.resolutionY,this._preRenderedSubs.clear(),-1!==this.clock.currentTime&&this._onClockTick()},n.prototype.preRender=function(t){var e=this,r=this._preRenderedSubs.get(t.id);if(r)return r;var a=this.clock.currentTime-t.start;if(t.containsTransformTag&&a<0)return null;var c=document.createElement("div")
;c.style.marginLeft=(this._scaleX*t.style.marginLeft).toFixed(3)+"px",c.style.marginRight=(this._scaleX*t.style.marginRight).toFixed(3)+"px",c.style.marginTop=c.style.marginBottom=(this._scaleY*t.style.marginVertical).toFixed(3)+"px",c.style.minWidth=(this._subsWrapperWidth-this._scaleX*(t.style.marginLeft+t.style.marginRight)).toFixed(3)+"px";var l=document.createElement("style");l.id="libjass-animation-styles-"+this.id+"-"+t.id,l.type="text/css"
;var f=new i.AnimationCollection(this,l),d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("version","1.1"),d.setAttribute("class","libjass-filters"),d.width.baseVal.valueAsString="0",d.height.baseVal.valueAsString="0";var v=document.createElementNS("http://www.w3.org/2000/svg","defs");d.appendChild(v);var m=null,b=new u.SpanStyles(this,t,this._scaleX,this._scaleY,this.settings,this._fontSizeElement,v,this._fontMetricsCache),w=null,_=!1,x=function(t){
null!==m&&m.hasChildNodes()&&c.appendChild(b.setStylesOnSpan(m,w)),null!==w&&w.animationDelays.forEach(function(t,e){return f.animationDelays.set(e,t)}),t&&(_?c.appendChild(b.makeNewLine()):c.appendChild(document.createElement("br"))),m=document.createElement("span"),w=new i.AnimationCollection(e,l),_=t};x(!1);for(var O=new o.DrawingStyles(this._scaleX,this._scaleY),T=this.ass.properties.wrappingStyle,S=0,E=0,j=t.parts;E<j.length;E++){var k=j[E]
;if(k instanceof h.Italic)b.italic=k.value;else if(k instanceof h.Bold)b.bold=k.value;else if(k instanceof h.Underline)b.underline=k.value;else if(k instanceof h.StrikeThrough)b.strikeThrough=k.value;else if(k instanceof h.Border)b.outlineWidth=k.value,b.outlineHeight=k.value;else if(k instanceof h.BorderX)b.outlineWidth=k.value;else if(k instanceof h.BorderY)b.outlineHeight=k.value;else if(k instanceof h.Shadow)b.shadowDepthX=k.value,
b.shadowDepthY=k.value;else if(k instanceof h.ShadowX)b.shadowDepthX=k.value;else if(k instanceof h.ShadowY)b.shadowDepthY=k.value;else if(k instanceof h.Blur)b.blur=k.value;else if(k instanceof h.GaussianBlur)b.gaussianBlur=k.value;else if(k instanceof h.FontName)b.fontName=k.value;else if(k instanceof h.FontSize)b.fontSize=k.value;else if(k instanceof h.FontSizePlus)b.fontSize+=k.value;else if(k instanceof h.FontSizeMinus)b.fontSize-=k.value;else if(k instanceof h.FontScaleX)b.fontScaleX=k.value;else if(k instanceof h.FontScaleY)b.fontScaleY=k.value;else if(k instanceof h.LetterSpacing)b.letterSpacing=k.value;else if(k instanceof h.RotateX)b.rotationX=k.value;else if(k instanceof h.RotateY)b.rotationY=k.value;else if(k instanceof h.RotateZ)b.rotationZ=k.value;else if(k instanceof h.SkewX)b.skewX=k.value;else if(k instanceof h.SkewY)b.skewY=k.value;else if(k instanceof h.PrimaryColor)b.primaryColor=k.value;else if(k instanceof h.SecondaryColor)b.secondaryColor=k.value;else if(k instanceof h.OutlineColor)b.outlineColor=k.value;else if(k instanceof h.ShadowColor)b.shadowColor=k.value;else if(k instanceof h.Alpha)b.primaryAlpha=k.value,
b.secondaryAlpha=k.value,b.outlineAlpha=k.value,b.shadowAlpha=k.value;else if(k instanceof h.PrimaryAlpha)b.primaryAlpha=k.value;else if(k instanceof h.SecondaryAlpha)b.secondaryAlpha=k.value;else if(k instanceof h.OutlineAlpha)b.outlineAlpha=k.value;else if(k instanceof h.ShadowAlpha)b.shadowAlpha=k.value;else if(k instanceof h.Alignment);else if(k instanceof h.ColorKaraoke)x(!1),
w.add("step-end",[new s.Keyframe(0,new y.Map([["color",b.secondaryColor.withAlpha(b.secondaryAlpha).toString()]])),new s.Keyframe(S,new y.Map([["color",b.primaryColor.withAlpha(b.primaryAlpha).toString()]]))]),S+=k.duration;else if(k instanceof h.WrappingStyle)T=k.value;else if(k instanceof h.Reset)b.reset(this.ass.styles.get(k.value));else if(k instanceof h.Position)c.style.position="absolute",c.style.left=(this._scaleX*k.x).toFixed(3)+"px",
c.style.top=(this._scaleY*k.y).toFixed(3)+"px";else if(k instanceof h.Move)c.style.position="absolute",
f.add("linear",[new s.Keyframe(0,new y.Map([["left",(this._scaleX*k.x1).toFixed(3)+"px"],["top",(this._scaleY*k.y1).toFixed(3)+"px"]])),new s.Keyframe(k.t1,new y.Map([["left",(this._scaleX*k.x1).toFixed(3)+"px"],["top",(this._scaleY*k.y1).toFixed(3)+"px"]])),new s.Keyframe(k.t2,new y.Map([["left",(this._scaleX*k.x2).toFixed(3)+"px"],["top",(this._scaleY*k.y2).toFixed(3)+"px"]])),new s.Keyframe(t.end-t.start,new y.Map([["left",(this._scaleX*k.x2).toFixed(3)+"px"],["top",(this._scaleY*k.y2).toFixed(3)+"px"]]))]);else if(k instanceof h.Fade)f.add("linear",[new s.Keyframe(0,new y.Map([["opacity","0"]])),new s.Keyframe(k.start,new y.Map([["opacity","1"]])),new s.Keyframe(t.end-t.start-k.end,new y.Map([["opacity","1"]])),new s.Keyframe(t.end-t.start,new y.Map([["opacity","0"]]))]);else if(k instanceof h.ComplexFade)f.add("linear",[new s.Keyframe(0,new y.Map([["opacity",k.a1.toFixed(3)]])),new s.Keyframe(k.t1,new y.Map([["opacity",k.a1.toFixed(3)]])),new s.Keyframe(k.t2,new y.Map([["opacity",k.a2.toFixed(3)]])),new s.Keyframe(k.t3,new y.Map([["opacity",k.a2.toFixed(3)]])),new s.Keyframe(k.t4,new y.Map([["opacity",k.a3.toFixed(3)]])),new s.Keyframe(t.end-t.start,new y.Map([["opacity",k.a3.toFixed(3)]]))]);else if(k instanceof h.Transform)for(var C=a<=k.start?0:a>=k.end?1:Math.pow((a-k.start)/(k.end-k.start),k.accel),A=0,P=k.tags;A<P.length;A++){
var M=P[A];M instanceof h.Border?(b.outlineWidth+=C*(M.value-b.outlineWidth),b.outlineHeight+=C*(M.value-b.outlineHeight)):M instanceof h.BorderX?b.outlineWidth+=C*(M.value-b.outlineWidth):M instanceof h.BorderY?b.outlineHeight+=C*(M.value-b.outlineHeight):M instanceof h.Shadow?(b.shadowDepthX+=C*(M.value-b.shadowDepthX),
b.shadowDepthY+=C*(M.value-b.shadowDepthY)):M instanceof h.ShadowX?b.shadowDepthX+=C*(M.value-b.shadowDepthX):M instanceof h.ShadowY?b.shadowDepthY+=C*(M.value-b.shadowDepthY):M instanceof h.Blur?b.blur+=C*(M.value-b.blur):M instanceof h.GaussianBlur?b.gaussianBlur+=C*(M.value-b.gaussianBlur):M instanceof h.FontSize?b.fontSize+=C*(M.value-b.fontSize):M instanceof h.FontSizePlus?b.fontSize+=C*M.value:M instanceof h.FontSizeMinus?b.fontSize-=C*M.value:M instanceof h.FontScaleX?b.fontScaleX+=C*(M.value-b.fontScaleX):M instanceof h.FontScaleY?b.fontScaleY+=C*(M.value-b.fontScaleY):M instanceof h.LetterSpacing?b.letterSpacing+=C*(M.value-b.letterSpacing):M instanceof h.RotateX?b.rotationX+=C*(M.value-b.rotationX):M instanceof h.RotateY?b.rotationY+=C*(M.value-b.rotationY):M instanceof h.RotateZ?b.rotationZ+=C*(M.value-b.rotationZ):M instanceof h.SkewX?b.skewX+=C*(M.value-b.skewX):M instanceof h.SkewY?b.skewY+=C*(M.value-b.skewY):M instanceof h.PrimaryColor?b.primaryColor=b.primaryColor.interpolate(M.value,C):M instanceof h.SecondaryColor?b.secondaryColor=b.secondaryColor.interpolate(M.value,C):M instanceof h.OutlineColor?b.outlineColor=b.outlineColor.interpolate(M.value,C):M instanceof h.ShadowColor?b.shadowColor=b.shadowColor.interpolate(M.value,C):M instanceof h.Alpha?(b.primaryAlpha+=C*(M.value-b.primaryAlpha),
b.secondaryAlpha+=C*(M.value-b.secondaryAlpha),b.outlineAlpha+=C*(M.value-b.outlineAlpha),b.shadowAlpha+=C*(M.value-b.shadowAlpha)):M instanceof h.PrimaryAlpha?b.primaryAlpha+=C*(M.value-b.primaryAlpha):M instanceof h.SecondaryAlpha?b.secondaryAlpha+=C*(M.value-b.secondaryAlpha):M instanceof h.OutlineAlpha?b.outlineAlpha+=C*(M.value-b.outlineAlpha):M instanceof h.ShadowAlpha&&(b.shadowAlpha+=C*(M.value-b.shadowAlpha))
}else k instanceof h.DrawingMode?0!==k.scale&&(O.scale=k.scale):k instanceof h.DrawingBaselineOffset?O.baselineOffset=k.value:k instanceof h.DrawingInstructions?(m.appendChild(O.toSVG(k,b.primaryColor.withAlpha(b.primaryAlpha))),x(!1)):k instanceof h.Text?(m.appendChild(document.createTextNode(k.value+"\u200c")),x(!1)):p.debugMode&&k instanceof h.Comment?(m.appendChild(document.createTextNode(k.value)),x(!1)):k instanceof h.NewLine&&x(!0)}for(var D=0,I=t.parts;D<I.length;D++){var k=I[D]
;if(k instanceof h.Position||k instanceof h.Move){var N=n._transformOrigins[t.alignment],R="translate("+-N[0]+"%, "+-N[1]+"%) translate(-"+c.style.marginLeft+", -"+c.style.marginTop+")",L=N[0]+"% "+N[1]+"%";c.style.webkitTransform=R,c.style.webkitTransformOrigin=L,c.style.transform=R,c.style.transformOrigin=L;break}}switch(T){case g.WrappingStyle.EndOfLineWrapping:c.style.whiteSpace="pre-wrap";break;case g.WrappingStyle.NoLineWrapping:c.style.whiteSpace="pre";break
;case g.WrappingStyle.SmartWrappingWithWiderTopLine:case g.WrappingStyle.SmartWrappingWithWiderBottomLine:c.style.whiteSpace="pre-wrap"}if(""!==c.style.position)switch(t.alignment){case 1:case 4:case 7:c.style.textAlign="left";break;case 2:case 5:case 8:c.style.textAlign="center";break;case 3:case 6:case 9:c.style.textAlign="right"}c.style.webkitAnimation=f.animationStyle,c.style.animation=f.animationStyle,c.setAttribute("data-dialogue-id",this.id+"-"+t.id),""!==l.textContent&&c.appendChild(l),
v.hasChildNodes()&&c.appendChild(d);var U={sub:c,animationDelays:f.animationDelays};return t.containsTransformTag||this._preRenderedSubs.set(t.id,U),U},n.prototype.draw=function(t){var e=this;if(!this._currentSubs.has(t)||t.containsTransformTag){p.debugMode&&console.log(t.toString());var n=this._preRenderedSubs.get(t.id);void 0===n&&(n=this.preRender(t),p.debugMode&&console.log(t.toString()));var r=n.sub.cloneNode(!0),i=function(r){var i=r.style.animationName||r.style.webkitAnimationName
;if(void 0!==i&&""!==i){var o=i.split(",").map(function(r){return r=r.trim(),((n.animationDelays.get(r)+t.start-e.clock.currentTime)/e.clock.rate).toFixed(3)+"s"}).join(", ");r.style.webkitAnimationDelay=o,r.style.animationDelay=o}};i(r);for(var o=r.querySelectorAll('[style*="animation:"]'),a=0;a<o.length;a++)i(o[a]);var s=t.layer,u="absolute"===r.style.position?0:t.alignment;if(void 0===this._layerWrappers[s]){var c=document.createElement("div");c.className="layer layer"+s
;for(var l=null,f=s+1;f<this._layerWrappers.length&&null===l;f++)void 0!==this._layerWrappers[f]&&(l=this._layerWrappers[f]);this._subsWrapper.insertBefore(c,l),this._layerWrappers[s]=c,this._layerAlignmentWrappers[s]=[]}if(void 0===this._layerAlignmentWrappers[s][u]){var h=document.createElement("div");h.className="an an"+u
;for(var c=this._layerWrappers[s],l=null,d=u+1;d<this._layerAlignmentWrappers[s].length&&null===l;d++)void 0!==this._layerAlignmentWrappers[s][d]&&(l=this._layerAlignmentWrappers[s][d]);c.insertBefore(h,l),this._layerAlignmentWrappers[s][u]=h}this._layerAlignmentWrappers[s][u].appendChild(r);var g=r.getElementsByTagName("style")[0];if(void 0!==g){var v=g.sheet;0===v.cssRules.length&&(v.cssText=g.textContent)}this._currentSubs.set(t,r)}},n.prototype._onClockPlay=function(){
e.prototype._onClockPlay.call(this),this._removeAllSubs(),this._subsWrapper.style.display="",this._subsWrapper.classList.remove("paused")},n.prototype._onClockTick=function(){var t=this,n=this.clock.currentTime;this._currentSubs.forEach(function(e,r){(r.start>n||r.end<n||r.containsTransformTag)&&(t._currentSubs.delete(r),t._removeSub(e))}),e.prototype._onClockTick.call(this)},n.prototype._onClockPause=function(){e.prototype._onClockPause.call(this),this._subsWrapper.classList.add("paused")},
n.prototype._onClockStop=function(){e.prototype._onClockStop.call(this),this._subsWrapper.style.display="none"},n.prototype._onClockRateChange=function(){e.prototype._onClockRateChange.call(this),this._preRenderedSubs.clear()},n.prototype._ready=function(){this._dispatchEvent("ready",[])},n.prototype._calculateFontMetricsAfterFetch=function(t,e){var n=this;return e.then(function(){var e=n._fontSizeElement.cloneNode(!0);return n._libjassSubsWrapper.appendChild(e),
m.lastly(a.calculateFontMetrics(t,n.settings.fallbackFonts,e),function(){n._libjassSubsWrapper.removeChild(e)})})},n.prototype._removeSub=function(t){t.parentNode.removeChild(t)},n.prototype._removeAllSubs=function(){var t=this;this._currentSubs.forEach(function(e){return t._removeSub(e)}),this._currentSubs.clear()},n._transformOrigins=[null,[0,100],[50,100],[100,100],[0,50],[50,50],[100,50],[0,0],[50,0],[100,0]],n}(l.NullRenderer);e.WebRenderer=w,v.mixin(w,[c.EventSource])},function(t,e){
var n=e(19),r=function(){function t(t,e,n,r,i,o,a,s){this._scaleX=n,this._scaleY=r,this._settings=i,this._fontSizeElement=o,this._svgDefsElement=a,this._fontMetricsCache=s,this._nextFilterId=0,this._id=t.id+"-"+e.id,this._defaultStyle=e.style,this.reset(null)}return t.prototype.reset=function(t){void 0!==t&&null!==t||(t=this._defaultStyle),this.italic=t.italic,this.bold=t.bold,this.underline=t.underline,this.strikeThrough=t.strikeThrough,this.outlineWidth=t.outlineThickness,
this.outlineHeight=t.outlineThickness,this.shadowDepthX=t.shadowDepth,this.shadowDepthY=t.shadowDepth,this.fontName=t.fontName,this.fontSize=t.fontSize,this.fontScaleX=t.fontScaleX,this.fontScaleY=t.fontScaleY,this.letterSpacing=t.letterSpacing,this._rotationX=null,this._rotationY=null,this._rotationZ=t.rotationZ,this._skewX=null,this._skewY=null,this.primaryColor=t.primaryColor,this.secondaryColor=t.secondaryColor,this.outlineColor=t.outlineColor,this.shadowColor=t.shadowColor,
this.primaryAlpha=t.primaryColor.alpha,this.secondaryAlpha=t.secondaryColor.alpha,this.outlineAlpha=t.outlineColor.alpha,this.shadowAlpha=t.shadowColor.alpha,this.blur=null,this.gaussianBlur=null},t.prototype.setStylesOnSpan=function(e,r){var i=e.childNodes[0]instanceof Text,o="";this._italic&&(o+="italic "),!0===this._bold?o+="bold ":!1!==this._bold&&(o+=this._bold+" ")
;var a=(this._scaleY*n.fontSizeForLineHeight(this._fontName,this._fontSize*(i?this._fontScaleX:1),this._settings.fallbackFonts,this._fontSizeElement,this._fontMetricsCache)).toFixed(3),s=(this._scaleY*this._fontSize).toFixed(3),u=this._fontName;switch(u){case"cursive":case"fantasy":case"monospace":case"sans-serif":case"serif":break;default:u='"'+u+'"'}""!==this._settings.fallbackFonts&&(u+=", "+this._settings.fallbackFonts),e.style.font=""+o+a+"px/"+s+"px "+u;var c=""
;this._underline&&(c="underline"),this._strikeThrough&&(c+=" line-through"),e.style.textDecoration=c.trim();var l="";if(i?this._fontScaleY!==this._fontScaleX&&(l+="scaleY("+(this._fontScaleY/this._fontScaleX).toFixed(3)+") "):(1!==this._fontScaleX&&(l+="scaleX("+this._fontScaleX+") "),1!==this._fontScaleY&&(l+="scaleY("+this._fontScaleY+") ")),null!==this._rotationY&&(l+="rotateY("+this._rotationY+"deg) "),null!==this._rotationX&&(l+="rotateX("+this._rotationX+"deg) "),
0!==this._rotationZ&&(l+="rotateZ("+-1*this._rotationZ+"deg) "),null!==this._skewX||null!==this._skewY){var f=t._valueOrDefault(this._skewX,0);l+="matrix(1, "+t._valueOrDefault(this._skewY,0)+", "+f+", 1, 0, 0) "}""!==l&&(e.style.webkitTransform=l,e.style.webkitTransformOrigin="50% 50%",e.style.transform=l,e.style.transformOrigin="50% 50%",e.style.display="inline-block"),e.style.letterSpacing=(this._scaleX*this._letterSpacing).toFixed(3)+"px"
;var h=this._scaleX*this._outlineWidth,p=this._scaleY*this._outlineHeight,d=document.createElement("span");d.appendChild(e);var g=this._primaryColor.withAlpha(this._primaryAlpha),v=this._outlineColor.withAlpha(this._outlineAlpha),y=this._shadowColor.withAlpha(this._shadowAlpha);if(this._settings.enableSvg||(0!==h||0!==p)&&v.alpha!==g.alpha||(0!==this._shadowDepthX||0!==this._shadowDepthY)&&y.alpha!==g.alpha||(g=this._primaryColor.withAlpha(1),v=this._outlineColor.withAlpha(1),
y=this._shadowColor.withAlpha(1),e.style.opacity=this._primaryAlpha.toFixed(3)),e.style.color=g.toString(),this._settings.enableSvg?this._setSvgOutlineOnSpan(d,h,p,v,this._primaryAlpha):this._setTextShadowOutlineOnSpan(e,h,p,v),0!==this._shadowDepthX||0!==this._shadowDepthY){var m=y.toString()+" "+(this._shadowDepthX*this._scaleX).toFixed(3)+"px "+(this._shadowDepthY*this._scaleY).toFixed(3)+"px 0px";""===e.style.textShadow?e.style.textShadow=m:e.style.textShadow+=", "+m}
return 0===this._rotationX&&0===this._rotationY||(d.style.display="inline-block"),e.style.webkitAnimation=r.animationStyle,e.style.animation=r.animationStyle,d},t.prototype._setSvgOutlineOnSpan=function(t,e,n,r,i){var o="svg-filter-"+this._id+"-"+this._nextFilterId++,a=document.createElementNS("http://www.w3.org/2000/svg","filter");if(a.id=o,a.x.baseVal.valueAsString="-50%",a.width.baseVal.valueAsString="200%",a.y.baseVal.valueAsString="-50%",a.height.baseVal.valueAsString="200%",e>0||n>0){
var s=0,u=!this._settings.preciseOutlines&&this._gaussianBlur>0?this._gaussianBlur:1;!function(t){if(e<=n)if(e>0){var r;for(r=0;r<=e;r+=u)t(r,n/e*Math.sqrt(e*e-r*r));r!==e+u&&t(e,0)}else t(0,n);else if(n>0){var i;for(i=0;i<=n;i+=u)t(e/n*Math.sqrt(n*n-i*i),i);i!==n+u&&t(0,n)}else t(e,0)}(function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","feMorphology");a.appendChild(n),n.in1.baseVal="source",n.operator.baseVal=SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE,
n.radiusX.baseVal=t,n.radiusY.baseVal=e,n.result.baseVal="outline"+s,s++});var c=document.createElementNS("http://www.w3.org/2000/svg","feComponentTransfer");a.insertBefore(c,a.firstElementChild),c.in1.baseVal="SourceAlpha",c.result.baseVal="source";var l=document.createElementNS("http://www.w3.org/2000/svg","feFuncA");c.appendChild(l),l.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,l.slope.baseVal=0===i?1:1/i,l.intercept.baseVal=0
;var f=document.createElementNS("http://www.w3.org/2000/svg","feMerge");a.appendChild(f);for(var h=0;h<s;h++){var p=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");f.appendChild(p),p.in1.baseVal="outline"+h}var d=document.createElementNS("http://www.w3.org/2000/svg","feComponentTransfer");a.appendChild(d),d.setAttribute("color-interpolation-filters","sRGB");var g=document.createElementNS("http://www.w3.org/2000/svg","feFuncR");d.appendChild(g),
g.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,g.slope.baseVal=0,g.intercept.baseVal=r.red/255*r.alpha;var v=document.createElementNS("http://www.w3.org/2000/svg","feFuncG");d.appendChild(v),v.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,v.slope.baseVal=0,v.intercept.baseVal=r.green/255*r.alpha;var y=document.createElementNS("http://www.w3.org/2000/svg","feFuncB");d.appendChild(y),
y.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,y.slope.baseVal=0,y.intercept.baseVal=r.blue/255*r.alpha;var m=document.createElementNS("http://www.w3.org/2000/svg","feFuncA");if(d.appendChild(m),m.type.baseVal=SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR,m.slope.baseVal=r.alpha,m.intercept.baseVal=0,this._gaussianBlur>0){var b=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur");a.appendChild(b),
b.stdDeviationX.baseVal=this._gaussianBlur,b.stdDeviationY.baseVal=this._gaussianBlur}for(var h=0;h<this._blur;h++){var w=document.createElementNS("http://www.w3.org/2000/svg","feConvolveMatrix");a.appendChild(w),w.setAttribute("kernelMatrix","1 2 1 2 4 2 1 2 1"),w.edgeMode.baseVal=SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE}var _=document.createElementNS("http://www.w3.org/2000/svg","feComposite");a.appendChild(_),_.in2.baseVal="source",
_.operator.baseVal=SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OUT;var x=document.createElementNS("http://www.w3.org/2000/svg","feMerge");a.appendChild(x);var O=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");x.appendChild(O);var T=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");x.appendChild(T),T.in1.baseVal="SourceGraphic"}else{if(this._gaussianBlur>0){var b=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur");a.appendChild(b),
b.stdDeviationX.baseVal=this._gaussianBlur,b.stdDeviationY.baseVal=this._gaussianBlur}for(var h=0;h<this._blur;h++){var w=document.createElementNS("http://www.w3.org/2000/svg","feConvolveMatrix");a.appendChild(w),w.setAttribute("kernelMatrix","1 2 1 2 4 2 1 2 1"),w.edgeMode.baseVal=SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE}}a.childElementCount>0&&(this._svgDefsElement.appendChild(a),t.style.webkitFilter='url("#'+o+'")',t.style.filter='url("#'+o+'")')},
t.prototype._setTextShadowOutlineOnSpan=function(t,e,n,r){var i=this;if(e>0||n>0){var o="";!function(t){for(var r=0;r<=e;r++)for(var i=0===e?n:n*Math.sqrt(1-r*r/(e*e)),o=0;o<=i;o++)t(r,o),0!==r&&t(-r,o),0!==o&&t(r,-o),0!==r&&0!==o&&t(-r,-o)}(function(t,e){o+=", "+r.toString()+" "+t+"px "+e+"px "+i._gaussianBlur.toFixed(3)+"px"}),t.style.textShadow=o.substr(", ".length)}},t.prototype.makeNewLine=function(){var t=document.createElement("br")
;return t.style.lineHeight=(this._scaleY*this._fontSize).toFixed(3)+"px",t},Object.defineProperty(t.prototype,"italic",{set:function(e){this._italic=t._valueOrDefault(e,this._defaultStyle.italic)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{set:function(e){this._bold=t._valueOrDefault(e,this._defaultStyle.bold)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{set:function(e){
this._underline=t._valueOrDefault(e,this._defaultStyle.underline)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeThrough",{set:function(e){this._strikeThrough=t._valueOrDefault(e,this._defaultStyle.strikeThrough)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outlineWidth",{get:function(){return this._outlineWidth},set:function(e){this._outlineWidth=t._valueOrDefault(e,this._defaultStyle.outlineThickness)},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"outlineHeight",{get:function(){return this._outlineWidth},set:function(e){this._outlineHeight=t._valueOrDefault(e,this._defaultStyle.outlineThickness)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadowDepthX",{get:function(){return this._shadowDepthX},set:function(e){this._shadowDepthX=t._valueOrDefault(e,this._defaultStyle.shadowDepth)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadowDepthY",{get:function(){
return this._shadowDepthY},set:function(e){this._shadowDepthY=t._valueOrDefault(e,this._defaultStyle.shadowDepth)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this._blur},set:function(e){this._blur=t._valueOrDefault(e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gaussianBlur",{get:function(){return this._gaussianBlur},set:function(e){this._gaussianBlur=t._valueOrDefault(e,0)},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"fontName",{set:function(e){this._fontName=t._valueOrDefault(e,this._defaultStyle.fontName)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize=t._valueOrDefault(e,this._defaultStyle.fontSize)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontScaleX",{get:function(){return this._fontScaleX},set:function(e){
this._fontScaleX=t._valueOrDefault(e,this._defaultStyle.fontScaleX)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontScaleY",{get:function(){return this._fontScaleY},set:function(e){this._fontScaleY=t._valueOrDefault(e,this._defaultStyle.fontScaleY)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing=t._valueOrDefault(e,this._defaultStyle.letterSpacing)},
enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationX",{get:function(){return this._rotationX},set:function(t){this._rotationX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationY",{get:function(){return this._rotationY},set:function(t){this._rotationY=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationZ",{get:function(){return this._rotationZ},set:function(e){
this._rotationZ=t._valueOrDefault(e,this._defaultStyle.rotationZ)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skewX",{get:function(){return this._skewX},set:function(t){this._skewX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skewY",{get:function(){return this._skewY},set:function(t){this._skewY=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"primaryColor",{get:function(){return this._primaryColor},set:function(e){
this._primaryColor=t._valueOrDefault(e,this._defaultStyle.primaryColor)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secondaryColor",{get:function(){return this._secondaryColor},set:function(e){this._secondaryColor=t._valueOrDefault(e,this._defaultStyle.secondaryColor)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outlineColor",{get:function(){return this._outlineColor},set:function(e){
this._outlineColor=t._valueOrDefault(e,this._defaultStyle.outlineColor)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return this._shadowColor},set:function(e){this._shadowColor=t._valueOrDefault(e,this._defaultStyle.shadowColor)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"primaryAlpha",{get:function(){return this._primaryAlpha},set:function(e){this._primaryAlpha=t._valueOrDefault(e,this._defaultStyle.primaryColor.alpha)
},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secondaryAlpha",{get:function(){return this._secondaryAlpha},set:function(e){this._secondaryAlpha=t._valueOrDefault(e,this._defaultStyle.secondaryColor.alpha)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outlineAlpha",{get:function(){return this._outlineAlpha},set:function(e){this._outlineAlpha=t._valueOrDefault(e,this._defaultStyle.outlineColor.alpha)},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"shadowAlpha",{get:function(){return this._shadowAlpha},set:function(e){this._shadowAlpha=t._valueOrDefault(e,this._defaultStyle.shadowColor.alpha)},enumerable:!0,configurable:!0}),t._valueOrDefault=function(t,e){return null!==t?t:e},t}();t.SpanStyles=r},function(t){function e(e){t.debugMode=e}function n(e){t.verboseMode=e}t.debugMode=!1,t.verboseMode=!1,t.setDebugMode=e,t.setVerboseMode=n},function(e,n){
var r=n(26),i=n(29),o=n(28),a=n(27),s=n(23),u=n(1),c=n(2),l=n(30),f=n(32),h=function(){function e(){if(this._properties=new o.ScriptProperties,this._styles=new l.Map,this._dialogues=[],this._attachments=[],this._stylesFormatSpecifier=null,this._dialoguesFormatSpecifier=null,1===arguments.length)throw new Error("Constructor `new ASS(rawASS)` has been deprecated. Use `ASS.fromString(rawASS)` instead.");this._styles.set("Default",new i.Style(new l.Map([["Name","Default"]])))}
return Object.defineProperty(e.prototype,"properties",{get:function(){return this._properties},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dialogues",{get:function(){return this._dialogues},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachments",{get:function(){return this._attachments},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"stylesFormatSpecifier",{get:function(){return this._stylesFormatSpecifier},set:function(t){this._stylesFormatSpecifier=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dialoguesFormatSpecifier",{get:function(){return this._dialoguesFormatSpecifier},set:function(t){this._dialoguesFormatSpecifier=t},enumerable:!0,configurable:!0}),e.prototype.addStyle=function(t){var e=c.parseLineIntoTypedTemplate(t,this._stylesFormatSpecifier)
;if(null!==e&&"Style"===e.type){var n=e.template;if(s.verboseMode){var r="";n.forEach(function(t,e){return r+=e+" = "+t+", "}),console.log("Read style: "+r)}var o=new i.Style(n);this._styles.set(o.name,o)}},e.prototype.addEvent=function(t){var e=c.parseLineIntoTypedTemplate(t,this._dialoguesFormatSpecifier);if(null!==e&&"Dialogue"===e.type){var n=e.template;if(s.verboseMode){var i="";n.forEach(function(t,e){return i+=e+" = "+t+", "}),console.log("Read dialogue: "+i)}
this.dialogues.push(new r.Dialogue(n,this))}},e.prototype.addAttachment=function(t){this._attachments.push(t)},e.fromString=function(t,n){return void 0===n&&(n=a.Format.ASS),e.fromStream(new u.StringStream(t),n)},e.fromStream=function(t,e){switch(void 0===e&&(e=a.Format.ASS),e){case a.Format.ASS:return new u.StreamParser(t).ass;case a.Format.SRT:return new u.SrtStreamParser(t).ass;default:throw new Error("Illegal value of type: "+e)}},e.fromUrl=function(n,r){void 0===r&&(r=a.Format.ASS);var i
;return i="function"==typeof t.fetch&&"function"==typeof t.ReadableStream&&"function"==typeof t.ReadableStream.prototype.getReader&&"function"==typeof t.TextDecoder?t.fetch(n).then(function(t){if(!1===t.ok||void 0===t.ok&&(t.status<200||t.status>299))throw new Error("HTTP request for "+n+" failed with status code "+t.status);return e.fromReadableStream(t.body,"utf-8",r)}):f.Promise.reject(new Error("Not supported.")),i.catch(function(t){console.warn("fetch() failed, falling back to XHR: %o",t)
;var i=new XMLHttpRequest,o=e.fromStream(new u.XhrStream(i),r);return i.open("GET",n,!0),i.send(),o})},e.fromReadableStream=function(t,n,r){return void 0===n&&(n="utf-8"),void 0===r&&(r=a.Format.ASS),e.fromStream(new u.BrowserReadableStream(t,n),r)},e}();e.ASS=h},function(t){!function(t){t[t.Font=0]="Font",t[t.Graphic=1]="Graphic"}(t.AttachmentType||(t.AttachmentType={}));var e=function(){function t(t,e){this._filename=t,this._type=e,this._contents=""}
return Object.defineProperty(t.prototype,"filename",{get:function(){return this._filename},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contents",{get:function(){return this._contents},set:function(t){this._contents=t},enumerable:!0,configurable:!0}),t}();t.Attachment=e},function(t,e){var n=e(27),r=e(3),i=e(8),o=e(23),a=e(30),s=function(){function t(e,r){
this._parts=null,this._containsTransformTag=!1;var i=new a.Map;e.forEach(function(t,e){i.set(e.toLowerCase(),t)}),e=i,this._id=++t._lastDialogueId;var s=e.get("style");if(void 0!==s&&null!==s&&s.constructor===String&&(s=s.replace(/^\*+/,""),null!==s.match(/^Default$/i)&&(s="Default")),this._style=r.styles.get(s),void 0===this._style&&(o.debugMode&&console.warn("Unrecognized style "+s+'. Falling back to "Default"'),this._style=r.styles.get("Default")),
void 0===this._style)throw new Error("Unrecognized style "+s);if(this._start=t._toTime(e.get("start")),this._end=t._toTime(e.get("end")),this._layer=Math.max(n.valueOrDefault(e,"layer",parseInt,function(t){return!isNaN(t)},"0"),0),this._rawPartsString=e.get("text"),void 0===this._rawPartsString||null===this._rawPartsString||this._rawPartsString.constructor!==String)throw new Error("Dialogue doesn't have any text.")}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},
enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return null===this._parts&&this._parsePartsString(),this._alignment},
enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layer",{get:function(){return this._layer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parts",{get:function(){return null===this._parts&&this._parsePartsString(),this._parts},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containsTransformTag",{get:function(){return null===this._parts&&this._parsePartsString(),this._containsTransformTag},enumerable:!0,configurable:!0}),
t.prototype.toString=function(){return"#"+this._id+" ["+this._start.toFixed(3)+"-"+this._end.toFixed(3)+"] "+(null!==this._parts?this._parts.join(", "):this._rawPartsString)},t.prototype._parsePartsString=function(){var t=this;if(this._parts=r.parse(this._rawPartsString,"dialogueParts"),this._alignment=this._style.alignment,this._parts.forEach(function(e,n){
e instanceof i.Alignment?t._alignment=e.value:e instanceof i.Move?null!==e.t1&&null!==e.t2||(t._parts[n]=new i.Move(e.x1,e.y1,e.x2,e.y2,0,t._end-t._start)):e instanceof i.Transform&&(null!==e.start&&null!==e.end&&null!==e.accel||(t._parts[n]=new i.Transform(null===e.start?0:e.start,null===e.end?t._end-t._start:e.end,null===e.accel?1:e.accel,e.tags)),t._containsTransformTag=!0)}),o.debugMode){var e=this._parts.filter(function(t){return t instanceof i.Comment&&-1!==t.value.indexOf("\\")})
;e.length>0&&console.warn("Possible incorrect parse:\n"+this._rawPartsString+"\nwas parsed as\n"+this.toString()+"\nThe possibly incorrect parses are:\n"+e.join("\n"))}},t._toTime=function(t){return t.split(":").reduce(function(t,e){return 60*t+parseFloat(e)},0)},t._lastDialogueId=-1,t}();t.Dialogue=s},function(t){function e(t,e,n,r,i){var o=t.get(e);if(void 0===o)return n(i);try{var a=n(o);if(null!==r&&!r(a))throw new Error("Validation failed.");return a}catch(t){
throw new Error("Property "+e+" has invalid value "+o+" - "+t.stack)}}!function(t){t[t.ASS=0]="ASS",t[t.SRT=1]="SRT"}(t.Format||(t.Format={})),function(t){t[t.SmartWrappingWithWiderTopLine=0]="SmartWrappingWithWiderTopLine",t[t.SmartWrappingWithWiderBottomLine=3]="SmartWrappingWithWiderBottomLine",t[t.EndOfLineWrapping=1]="EndOfLineWrapping",t[t.NoLineWrapping=2]="NoLineWrapping"}(t.WrappingStyle||(t.WrappingStyle={})),function(t){t[t.Outline=1]="Outline",t[t.OpaqueBox=3]="OpaqueBox"
}(t.BorderStyle||(t.BorderStyle={})),t.valueOrDefault=e},function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"resolutionX",{get:function(){return this._resolutionX},set:function(t){this._resolutionX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resolutionY",{get:function(){return this._resolutionY},set:function(t){this._resolutionY=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrappingStyle",{get:function(){
return this._wrappingStyle},set:function(t){this._wrappingStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleBorderAndShadow",{get:function(){return this._scaleBorderAndShadow},set:function(t){this._scaleBorderAndShadow=t},enumerable:!0,configurable:!0}),t}();t.ScriptProperties=e},function(t,e){var n=e(27),r=e(3),i=e(30),o=function(){function t(t){var e=new i.Map;if(t.forEach(function(t,n){e.set(n.toLowerCase(),t)}),t=e,this._name=t.get("name"),
void 0===this._name||null===this._name||this._name.constructor!==String)throw new Error("Style doesn't have a name.");this._name=this._name.replace(/^\*+/,""),this._italic=!!n.valueOrDefault(t,"italic",parseFloat,function(t){return!isNaN(t)},"0"),this._bold=!!n.valueOrDefault(t,"bold",parseFloat,function(t){return!isNaN(t)},"0"),this._underline=!!n.valueOrDefault(t,"underline",parseFloat,function(t){return!isNaN(t)},"0"),
this._strikeThrough=!!n.valueOrDefault(t,"strikeout",parseFloat,function(t){return!isNaN(t)},"0"),this._fontName=n.valueOrDefault(t,"fontname",function(t){return t},function(t){return t.constructor===String},"sans-serif"),this._fontSize=n.valueOrDefault(t,"fontsize",parseFloat,function(t){return!isNaN(t)},"18"),this._fontScaleX=n.valueOrDefault(t,"scalex",parseFloat,function(t){return t>=0},"100")/100,this._fontScaleY=n.valueOrDefault(t,"scaley",parseFloat,function(t){return t>=0},"100")/100,
this._letterSpacing=n.valueOrDefault(t,"spacing",parseFloat,function(t){return t>=0},"0"),this._rotationZ=n.valueOrDefault(t,"angle",parseFloat,function(t){return!isNaN(t)},"0"),this._primaryColor=n.valueOrDefault(t,"primarycolour",function(t){return r.parse(t,"colorWithAlpha")},null,"&H00FFFFFF"),this._secondaryColor=n.valueOrDefault(t,"secondarycolour",function(t){return r.parse(t,"colorWithAlpha")},null,"&H00FFFF00"),this._outlineColor=n.valueOrDefault(t,"outlinecolour",function(t){
return r.parse(t,"colorWithAlpha")},null,"&H00000000"),this._shadowColor=n.valueOrDefault(t,"backcolour",function(t){return r.parse(t,"colorWithAlpha")},null,"&H80000000"),this._outlineThickness=n.valueOrDefault(t,"outline",parseFloat,function(t){return t>=0},"2"),this._borderStyle=n.valueOrDefault(t,"borderstyle",parseInt,function(t){return n.BorderStyle[n.BorderStyle[t]]===t},"1"),this._shadowDepth=n.valueOrDefault(t,"shadow",parseFloat,function(t){return t>=0},"3"),
this._alignment=n.valueOrDefault(t,"alignment",parseInt,function(t){return t>=1&&t<=9},"2"),this._marginLeft=n.valueOrDefault(t,"marginl",parseFloat,function(t){return!isNaN(t)},"20"),this._marginRight=n.valueOrDefault(t,"marginr",parseFloat,function(t){return!isNaN(t)},"20"),this._marginVertical=n.valueOrDefault(t,"marginv",parseFloat,function(t){return!isNaN(t)},"20")}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"italic",{get:function(){return this._italic},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return this._bold},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return this._underline},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeThrough",{get:function(){return this._strikeThrough},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"fontName",{get:function(){return this._fontName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontScaleX",{get:function(){return this._fontScaleX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontScaleY",{get:function(){return this._fontScaleY},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotationZ",{get:function(){return this._rotationZ},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"primaryColor",{get:function(){return this._primaryColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secondaryColor",{get:function(){return this._secondaryColor},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"outlineColor",{get:function(){return this._outlineColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadowColor",{get:function(){return this._shadowColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outlineThickness",{get:function(){return this._outlineThickness},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderStyle",{get:function(){return this._borderStyle},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"shadowDepth",{get:function(){return this._shadowDepth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this._alignment},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marginLeft",{get:function(){return this._marginLeft},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marginRight",{get:function(){return this._marginRight},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"marginVertical",{get:function(){return this._marginVertical},enumerable:!0,configurable:!0}),t}();t.Style=o},function(e){function n(t){e.Map=null!==t?t:r}e.Map=t.Map;var r=function(){function t(t){if(this.clear(),void 0!==t){if(!Array.isArray(t))throw new Error("Non-array iterables are not supported by the SimpleMap constructor.");for(var e=0;e<t.length;e++){var n=t[e];this.set(n[0],n[1])}}}return t.prototype.get=function(t){var e=this._keyToProperty(t)
;if(null!==e)return this._values[e]},t.prototype.has=function(t){var e=this._keyToProperty(t);return null!==e&&e in this._keys},t.prototype.set=function(t,e){var n=this._keyToProperty(t);if(null===n)throw new Error("This Map implementation only supports Number and String keys, or keys with an id property.");return n in this._keys||this._size++,this._keys[n]=t,this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keyToProperty(t);if(null===e)return!1;var n=e in this._keys
;return n&&(delete this._keys[e],delete this._values[e],this._size--),n},t.prototype.clear=function(){this._keys=Object.create(null),this._values=Object.create(null),this._size=0},t.prototype.forEach=function(t,e){for(var n=0,r=Object.keys(this._keys);n<r.length;n++){var i=r[n];t.call(e,this._values[i],this._keys[i],this)}},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype._keyToProperty=function(t){
return"number"==typeof t?"#"+t:"string"==typeof t?"'"+t:void 0!==t.id?"!"+t.id:null},t}();(void 0===e.Map||"function"!=typeof e.Map.prototype.forEach||function(){try{return 2!==new e.Map([[1,"foo"],[2,"bar"]]).size}catch(t){return!0}}())&&(e.Map=r),e.setImplementation=n},function(t){function e(t,e){for(var n=0;n<e.length;n++)for(var r=e[n],i=0,o=Object.getOwnPropertyNames(r.prototype);i<o.length;i++){var a=o[i];t.prototype[a]=r.prototype[a]}}t.mixin=e},function(e){function n(t){
e.Promise=null!==t?t:u}function r(t){return i(t,[])}function i(t,n){if(0===t.length)return e.Promise.reject(n);var r=t[0],o=t.slice(1);return r.catch(function(t){return i(o,n.concat(t))})}function o(t){return new e.Promise(function(n,r){return e.Promise.all(t.map(function(t){return t.then(n,function(t){return t})})).then(r)})}function a(t,e){return t.then(function(t){return e(),t},function(t){throw e(),t})}e.Promise=t.Promise;var s=function(){var e=t.MutationObserver||t.WebkitMutationObserver
;if(void 0!==t.process&&"function"==typeof t.process.nextTick)return function(e){t.process.nextTick(e)};if(void 0!==e){var n=[],r=!1,i=document.createElement("div");return new e(function(){for(var t=n.splice(0,n.length),e=0;e<t.length;e++){(0,t[e])()}r=!1,n.length>0&&(i.classList.toggle("foo"),r=!0)}).observe(i,{attributes:!0}),function(t){n.push(t),r||(i.classList.toggle("foo"),r=!0)}}return function(t){return setTimeout(t,0)}}(),u=function(){function t(t){if(this._state=c.PENDING,
this._fulfillReactions=[],this._rejectReactions=[],this._fulfilledValue=null,this._rejectedReason=null,"function"!=typeof t)throw new TypeError('typeof executor !== "function"');var e=this._createResolvingFunctions(),n=e.resolve,r=e.reject;try{t(n,r)}catch(t){r(t)}}return t.prototype.then=function(t,e){var n=new l;"function"!=typeof t&&(t=function(t){return t}),"function"!=typeof e&&(e=function(t){throw t});var r={capabilities:n,handler:t},i={capabilities:n,handler:e};switch(this._state){
case c.PENDING:this._fulfillReactions.push(r),this._rejectReactions.push(i);break;case c.FULFILLED:this._enqueueFulfilledReactionJob(r,this._fulfilledValue);break;case c.REJECTED:this._enqueueRejectedReactionJob(i,this._rejectedReason)}return n.promise},t.prototype.catch=function(t){return this.then(null,t)},t.resolve=function(n){return n instanceof t?n:new e.Promise(function(t){return t(n)})},t.reject=function(t){return new e.Promise(function(e,n){return n(t)})},t.all=function(t){
return new e.Promise(function(n,r){var i=[],o=t.length;if(0===o)return void n(i);t.forEach(function(t,a){return e.Promise.resolve(t).then(function(t){i[a]=t,0===--o&&n(i)},r)})})},t.race=function(t){return new e.Promise(function(n,r){for(var i=0;i<t.length;i++){var o=t[i];e.Promise.resolve(o).then(n,r)}})},t.prototype._createResolvingFunctions=function(){var t=this,e=!1;return{resolve:function(n){if(!e){if(e=!0,n===t)return void t._reject(new TypeError("resolution === this"))
;if(null===n||"object"!=typeof n&&"function"!=typeof n)return void t._fulfill(n);try{var r=n.then}catch(e){return void t._reject(e)}if("function"!=typeof r)return void t._fulfill(n);s(function(){return t._resolveWithThenable(n,r)})}},reject:function(n){e||(e=!0,t._reject(n))}}},t.prototype._resolveWithThenable=function(t,e){var n=this._createResolvingFunctions(),r=n.resolve,i=n.reject;try{e.call(t,r,i)}catch(t){i(t)}},t.prototype._fulfill=function(t){var e=this._fulfillReactions
;this._fulfilledValue=t,this._fulfillReactions=void 0,this._rejectReactions=void 0,this._state=c.FULFILLED;for(var n=0;n<e.length;n++){var r=e[n];this._enqueueFulfilledReactionJob(r,t)}},t.prototype._reject=function(t){var e=this._rejectReactions;this._rejectedReason=t,this._fulfillReactions=void 0,this._rejectReactions=void 0,this._state=c.REJECTED;for(var n=0;n<e.length;n++){var r=e[n];this._enqueueRejectedReactionJob(r,t)}},t.prototype._enqueueFulfilledReactionJob=function(t,e){s(function(){
var n,r=t.capabilities,i=r.resolve,o=r.reject,a=t.handler;try{n=a(e)}catch(t){return void o(t)}i(n)})},t.prototype._enqueueRejectedReactionJob=function(t,e){s(function(){var n,r=t.capabilities,i=r.resolve,o=r.reject,a=t.handler;try{n=a(e)}catch(t){return void o(t)}i(n)})},t}();void 0===e.Promise&&(e.Promise=u);var c;!function(t){t[t.PENDING=0]="PENDING",t[t.FULFILLED=1]="FULFILLED",t[t.REJECTED=2]="REJECTED"}(c||(c={})),e.setImplementation=n;var l=function(){function t(){var t=this
;this._promise=new e.Promise(function(e,n){Object.defineProperties(t,{resolve:{value:e,enumerable:!0},reject:{value:n,enumerable:!0}})})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!0,configurable:!0}),t}();e.DeferredPromise=l,e.first=r,e.any=o,e.lastly=a},function(e){function n(t){e.Set=null!==t?t:r}e.Set=t.Set;var r=function(){function t(t){if(this.clear(),void 0!==t){
if(!Array.isArray(t))throw new Error("Non-array iterables are not supported by the SimpleSet constructor.");for(var e=0;e<t.length;e++){var n=t[e];this.add(n)}}}return t.prototype.add=function(t){var e=this._toProperty(t);if(null===e)throw new Error("This Set implementation only supports Number and String values.");return e in this._elements||this._size++,this._elements[e]=t,this},t.prototype.clear=function(){this._elements=Object.create(null),this._size=0},t.prototype.has=function(t){
var e=this._toProperty(t);return null!==e&&e in this._elements},t.prototype.forEach=function(t,e){for(var n=0,r=Object.keys(this._elements);n<r.length;n++){var i=r[n],o=this._elements[i];t.call(e,o,o,this)}},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype._toProperty=function(t){return"number"==typeof t?"#"+t:"string"==typeof t?"'"+t:null},t}();(void 0===e.Set||"function"!=typeof e.Set.prototype.forEach||function(){try{
return 2!==new e.Set([1,2]).size}catch(t){return!0}}())&&(e.Set=r),e.setImplementation=n},function(t){function e(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n}function n(t,e,n){if(arguments.length<3)return r(t.reverse(),e);i(t.reverse(),e,n)}function r(t,e){for(var n=0;n<t.length;n++){e=(0,t[n])(e)||e}return e}function i(t,e,n){for(var r=0;r<t.length;r++){(0,t[r])(e,n)}}t.__extends=e,t.__decorate=n},function(t,e){
var n=e(30),r=e(32),i=e(36),o=e(38),a=function(){function t(t){var e=this;this._comm=t,this._pendingRequests=new n.Map,this._comm.addEventListener("message",function(t){return e._onMessage(t.data)},!1)}return t.prototype.request=function(e,n){var i=new r.DeferredPromise,a=++t._lastRequestId;this._pendingRequests.set(a,i);var s={requestId:a,command:e,parameters:n};return this._comm.postMessage(o.serialize(s)),i.promise},t.prototype.cancelRequest=function(t){var e=this._pendingRequests.get(t)
;void 0!==e&&(this._pendingRequests.delete(t),e.reject(new Error("Cancelled.")))},t.prototype._respond=function(t){var e=t.requestId,n=t.error,r=t.result;n instanceof Error&&(n={message:n.message,stack:n.stack}),this._comm.postMessage(o.serialize({command:i.WorkerCommands.Response,requestId:e,error:n,result:r}))},t.prototype._onMessage=function(t){var e=this,n=o.deserialize(t);if(n.command===i.WorkerCommands.Response){var r=n,a=this._pendingRequests.get(r.requestId)
;void 0!==a&&(this._pendingRequests.delete(r.requestId),null===r.error?a.resolve(r.result):a.reject(r.error))}else{var s=n,u=s.requestId,c=o.getWorkerCommandHandler(s.command);if(void 0===c)return void this._respond({requestId:u,error:new Error("No handler registered for command "+s.command),result:null});c(s.parameters).then(function(t){return{requestId:u,error:null,result:t}},function(t){return{requestId:u,error:t,result:null}}).then(function(t){return e._respond(t)})}},t._lastRequestId=-1,t
}();t.WorkerChannelImpl=a,o.registerWorkerCommand(i.WorkerCommands.Ping,function(){return new r.Promise(function(t){return t(null)})})},function(t){!function(t){t[t.Response=0]="Response",t[t.Parse=1]="Parse",t[t.Ping=2]="Ping"}(t.WorkerCommands||(t.WorkerCommands={}))},function(e,n){function r(t){return void 0===t&&(t=a.src),new i.WorkerChannelImpl(new Worker(t))}var i=n(35),o=n(36);e.WorkerCommands=o.WorkerCommands,e.supported="undefined"!=typeof Worker
;var a="undefined"!=typeof document&&void 0!==document.currentScript?document.currentScript:null;e.createWorker=r,"undefined"!=typeof WorkerGlobalScope&&t instanceof WorkerGlobalScope&&new i.WorkerChannelImpl(t)},function(t,e){function n(t,e){u.set(t,e)}function r(t){return u.get(t)}function i(t){t._classTag=c.size,c.set(t._classTag,t)}function o(t){return JSON.stringify(t,function(t,e){return e&&void 0!==e._classTag&&(e._classTag=e._classTag),e})}function a(t){return JSON.parse(t,function(t,e){
if(e&&void 0!==e._classTag){for(var n=Object.create(c.get(e._classTag)),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];"_classTag"!==o&&(n[o]=e[o])}e=n}return e})}var s=e(30),u=new s.Map,c=new s.Map;t.registerWorkerCommand=n,t.getWorkerCommandHandler=r,t.registerClassPrototype=i,t.serialize=o,t.deserialize=a}])})},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;return Object(i.a)(t,e).getHours()}e.a=r;var i=n(23)},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){_.default.apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var e=T(t),n=O(e);return function(t){
var e,r,s=t.displayName||t.name||"Component",l=(r=e=function(e){function r(){return i(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,e),c(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,y.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return n.dragDropManager}},{key:"getChildContext",value:function(){return n}},{
key:"render",value:function(){var e=this;return h.default.createElement(t,u({},this.props,{ref:function(t){e.child=t}}))}}]),r}(f.Component),e.DecoratedComponent=t,e.displayName="DragDropContext("+s+")",e.childContextTypes=x,r);return(0,b.default)(l,t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.unpackBackendForEs5Users=e.createChildContext=e.CHILD_CONTEXT_TYPES=void 0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=s;var f=n(0),h=r(f),p=n(1),d=r(p),g=n(3808),v=n(183),y=r(v),m=n(1023),b=r(m),w=n(728),_=r(w),x=e.CHILD_CONTEXT_TYPES={dragDropManager:d.default.object.isRequired},O=e.createChildContext=function(t,e){return{dragDropManager:new g.DragDropManager(t,e)}},T=e.unpackBackendForEs5Users=function(t){var e=t
;return"object"===(void 0===e?"undefined":l(e))&&"function"==typeof e.default&&(e=e.default),(0,y.default)("function"==typeof e,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),e}},function(t,e,n){"use strict";function r(t,e){return t===e||t&&e&&t.x===e.x&&t.y===e.y}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments[1];switch(e.type){
case u.BEGIN_DRAG:return{initialSourceClientOffset:e.sourceClientOffset,initialClientOffset:e.clientOffset,clientOffset:e.clientOffset};case u.HOVER:return r(t.clientOffset,e.clientOffset)?t:s({},t,{clientOffset:e.clientOffset});case u.END_DRAG:case u.DROP:return c;default:return t}}function o(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return e&&n&&r?{x:e.x+r.x-n.x,y:e.y+r.y-n.y}:null}function a(t){var e=t.clientOffset,n=t.initialClientOffset;return e&&n?{
x:e.x-n.x,y:e.y-n.y}:null}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=i,e.getSourceClientOffset=o,e.getDifferenceFromInitialOffset=a;var u=n(721),c={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(t,e,n){"use strict";function r(t,e){return(0,o.default)(t)?t.some(function(t){
return t===e}):t===e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=n(405),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){var r=n(1574),i=n(578),o=n(726),a=i(function(t,e){return o(t)?r(t,e):[]});t.exports=a},function(t,e,n){function r(t,e,n,r){var f=-1,h=o,p=!0,d=t.length,g=[],v=e.length;if(!d)return g;n&&(e=s(e,u(n))),r?(h=a,p=!1):e.length>=l&&(h=c,p=!1,e=new i(e));t:for(;++f<d;){var y=t[f],m=null==n?y:n(y);if(y=r||0!==y?y:0,p&&m===m){
for(var b=v;b--;)if(e[b]===m)continue t;g.push(y)}else h(e,m,r)||g.push(y)}return g}var i=n(1015),o=n(1017),a=n(1018),s=n(1019),u=n(1020),c=n(1021),l=200;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(3816),o=n(3835),a=n(3837),s=n(3838),u=n(3839);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(t){if(!o(t))return!1
;var e=i(t);return e==s||e==u||e==a||e==c}var i=n(631),o=n(577),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],
arguments[1]),e=arguments[2];switch(t.type){case l.HOVER:break;case f.ADD_SOURCE:case f.ADD_TARGET:case f.REMOVE_TARGET:case f.REMOVE_SOURCE:return h;case l.BEGIN_DRAG:case l.PUBLISH_DRAG_SOURCE:case l.END_DRAG:case l.DROP:default:return p}var n=t.targetIds,r=e.targetIds,i=(0,s.default)(n,r),o=!1;if(0===i.length){for(var a=0;a<n.length;a++)if(n[a]!==r[a]){o=!0;break}}else o=!0;if(!o)return h;var u=r[r.length-1],c=n[n.length-1];return u!==c&&(u&&i.push(u),c&&i.push(c)),i}function o(t,e){
return t!==h&&(t===p||void 0===e||(0,c.default)(e,t).length>0)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,e.areDirty=o;var a=n(3854),s=r(a),u=n(3862),c=r(u),l=n(721),f=n(727),h=[],p=[]},function(t,e,n){function r(t,e,n,a,s){var u=-1,c=t.length;for(n||(n=o),s||(s=[]);++u<c;){var l=t[u];e>0&&n(l)?e>1?r(l,e-1,n,a,s):i(s,l):a||(s[s.length]=l)}return s}var i=n(3857),o=n(3858);t.exports=r},function(t,e,n){
var r=n(3859),i=n(526),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){function r(t,e,n){var r=-1,f=o,h=t.length,p=!0,d=[],g=d;if(n)p=!1,f=a;else if(h>=l){var v=e?null:u(t);if(v)return c(v);p=!1,f=s,g=new i}else g=e?[]:d;t:for(;++r<h;){var y=t[r],m=e?e(y):y;if(y=n||0!==y?y:0,p&&m===m){for(var b=g.length;b--;)if(g[b]===m)continue t;e&&g.push(m),
d.push(y)}else f(g,m,n)||(g!==d&&g.push(m),d.push(y))}return d}var i=n(1015),o=n(1017),a=n(1018),s=n(1021),u=n(3860),c=n(1584),l=200;t.exports=r},function(t,e){function n(){}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":i(t))||null===t||"object"!==(void 0===e?"undefined":i(e))||null===e)return!1
;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<n.length;a+=1){if(!o.call(e,n[a]))return!1;var s=t[n[a]],u=e[n[a]];if(s!==u||"object"===(void 0===s?"undefined":i(s))||"object"===(void 0===u?"undefined":i(u)))return!1}return!0}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){
var e,n,r=t.DecoratedComponent,s=t.createHandler,p=t.createMonitor,v=t.createConnector,y=t.registerHandler,b=t.containerDisplayName,_=t.getType,O=t.collect,E=t.options,j=E.arePropsEqual,k=void 0===j?T.default:j,C=r.displayName||r.name||"Component",A=(n=e=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.handleChange=r.handleChange.bind(r),r.handleChildRef=r.handleChildRef.bind(r),(0,
m.default)("object"===c(r.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",C,C),r.manager=r.context.dragDropManager,r.handlerMonitor=p(r.manager),r.handlerConnector=v(r.manager.getBackend()),r.handler=s(r.handlerMonitor),
r.disposable=new g.SerialDisposable,r.receiveProps(t),r.state=r.getCurrentState(),r.dispose(),r}return a(e,t),l(e,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(t,e){return!k(t,this.props)||!(0,x.default)(e,this.state)}}]),l(e,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new g.SerialDisposable,
this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(t){k(t,this.props)||(this.receiveProps(t),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(t){this.handler.receiveProps(t),this.receiveType(_(t))}},{key:"receiveType",value:function(t){if(t!==this.currentType){this.currentType=t
;var e=y(t,this.handler,this.manager),n=e.handlerId,r=e.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor(),o=i.subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new g.CompositeDisposable(new g.Disposable(o),new g.Disposable(r)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var t=this.getCurrentState();(0,
x.default)(t,this.state)||this.setState(t)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(t){this.decoratedComponentInstance=t,this.handler.receiveComponent(t)}},{key:"getCurrentState",value:function(){var t=O(this.handlerConnector.hooks,this.handlerMonitor);return t}},{key:"render",value:function(){return h.default.createElement(r,u({},this.props,this.state,{ref:S(r)?this.handleChildRef:null}))}
}]),e}(f.Component),e.DecoratedComponent=r,e.displayName=b+"("+C+")",e.contextTypes={dragDropManager:d.default.object.isRequired},n);return(0,w.default)(A,r)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=s;var f=n(0),h=r(f),p=n(1),d=r(p),g=n(3877),v=n(273),y=(r(v),n(183)),m=r(y),b=n(1023),w=r(b),_=n(1024),x=r(_),O=n(1585),T=r(O),S=function(t){
return Boolean(t&&t.prototype&&"function"==typeof t.prototype.render)}},function(t,e,n){"use strict";function r(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+e+" into a <div>, or turn it into a drag source or a drop target itself.")}}function i(t){return function(){
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,a.isValidElement)(e)){return void t(e,n)}var i=e;r(i);var o=n?function(e){return t(e,n)}:t;return(0,u.default)(i,o)}}function o(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n],o=i(r);e[n]=function(){return o}}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=n(0),s=n(3885),u=function(t){return t&&t.__esModule?t:{default:t}
}(s)},function(t,e,n){"use strict";function r(t,e){return e===t||null!==e&&null!==t&&(0,o.default)(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=n(1024),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){"use strict";function r(t,e){return"string"==typeof t||"symbol"===(void 0===t?"undefined":i(t))||e&&(0,a.default)(t)&&t.every(function(t){return r(t,!1)})}Object.defineProperty(e,"__esModule",{value:!0})
;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=r;var o=n(405),a=function(t){return t&&t.__esModule?t:{default:t}}(o)},function(t,e){function n(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){
"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSafari=e.isFirefox=void 0;var r=n(3908),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.isFirefox=(0,i.default)(function(){return/firefox/i.test(navigator.userAgent)}),e.isSafari=(0,i.default)(function(){return Boolean(window.safari)})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setHours(a),r}e.a=r;var i=n(44),o=n(23)},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";t.exports=n(4303).default},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={}
;return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1);Object.defineProperty(e,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return r(i).default}});var o=n(2);Object.defineProperty(e,"createNumberMask",{enumerable:!0,get:function(){return r(o).default}});var a=n(3);Object.defineProperty(e,"emailMask",{enumerable:!0,get:function(){return r(a).default}})
},function(t,e){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy";return function(e){var n=[],r=t.split(/[^dmy]+/),i={dd:31,mm:12,yyyy:9999},o={dd:1,mm:1,yyyy:1},a=e.split("");return r.forEach(function(e){var r=t.indexOf(e),o=parseInt(i[e].toString().substr(0,1),10);parseInt(a[r],10)>o&&(a[r+1]=a[r],a[r]=0,n.push(r))}),!r.some(function(n){var r=t.indexOf(n),a=n.length,s=e.substr(r,a).replace(/\D/g,""),u=parseInt(s,10)
;return u>i[n]||s.length===a&&u<o[n]})&&{value:a.join(""),indexesOfPipedChars:n}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){"use strict";function n(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,e=t.length;if(t===s||t[0]===v[0]&&1===e)return v.split(s).concat([d]).concat(m.split(s));var n=t.lastIndexOf(E),a=-1!==n,u=t[0]===l&&M,c=void 0,y=void 0,b=void 0;if(t.slice(-1*U)===m&&(t=t.slice(0,-1*U)),
a&&(T||A)?(c=t.slice(t.slice(0,L)===v?L:0,n),y=t.slice(n+1,e),y=r(y.replace(h,s))):c=t.slice(0,L)===v?t.slice(L):t,R&&(void 0===R?"undefined":o(R))===p){var _="."===x?"[.]":""+x,O=(c.match(new RegExp(_,"g"))||[]).length;c=c.slice(0,R+O*F)}return c=c.replace(h,s),I||(c=String(Number(c))),c=w?i(c,x):c,b=r(c),(a&&T||!0===A)&&(t[n-1]!==E&&b.push(g),b.push(E,g),y&&((void 0===k?"undefined":o(k))===p&&(y=y.slice(0,k)),b=b.concat(y)),!0===A&&t[n-1]===E&&b.push(d)),L>0&&(b=v.split(s).concat(b)),
u&&(b.length===L&&b.push(d),b=[f].concat(b)),m.length>0&&(b=b.concat(m.split(s))),b}
var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.prefix,v=void 0===n?a:n,y=e.suffix,m=void 0===y?s:y,b=e.includeThousandsSeparator,w=void 0===b||b,_=e.thousandsSeparatorSymbol,x=void 0===_?u:_,O=e.allowDecimal,T=void 0!==O&&O,S=e.decimalSymbol,E=void 0===S?c:S,j=e.decimalLimit,k=void 0===j?2:j,C=e.requireDecimal,A=void 0!==C&&C,P=e.allowNegative,M=void 0!==P&&P,D=e.allowLeadingZeroes,I=void 0!==D&&D,N=e.integerLimit,R=void 0===N?null:N,L=v&&v.length||0,U=m&&m.length||0,F=x&&x.length||0
;return t.instanceOf="createNumberMask",t}function r(t){return t.split(s).map(function(t){return d.test(t)?d:t})}function i(t,e){return t.replace(/\B(?=(\d{3})+(?!\d))/g,e)}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=n
;var a="$",s="",u=",",c=".",l="-",f=/-/,h=/\D+/g,p="number",d=/\d/,g="[]"},function(t,e,n){"use strict";function r(t,e){t=t.replace(w,p);var n=e.placeholderChar,r=e.currentCaretPosition,c=t.indexOf(d),l=t.lastIndexOf(h),f=l<c?-1:l,g=i(t,c+1,d),v=i(t,f-1,h),y=o(t,c),m=a(t,c,f,n),b=s(t,f,n,r);return y=u(y),m=u(m),b=u(b,!0),y.concat(g).concat(m).concat(v).concat(b)}function i(t,e,n){var r=[];return t[e]===n?r.push(n):r.push(g,n),r.push(g),r}function o(t,e){return-1===e?t:t.slice(0,e)}
function a(t,e,n,r){var i=p;return-1!==e&&(i=-1===n?t.slice(e+1,t.length):t.slice(e+1,n)),i=i.replace(new RegExp("[\\s"+r+"]",y),p),i===d?f:i.length<1?v:i[i.length-1]===h?i.slice(0,i.length-1):i}function s(t,e,n,r){var i=p;return-1!==e&&(i=t.slice(e+1,t.length)),i=i.replace(new RegExp("[\\s"+n+".]",y),p),0===i.length?t[e-1]===h&&r!==t.length?f:p:i}function u(t,e){return t.split(p).map(function(t){return t===v?t:e?b:m})}Object.defineProperty(e,"__esModule",{value:!0});var c=n(4),l=function(t){
return t&&t.__esModule?t:{default:t}}(c),f="*",h=".",p="",d="@",g="[]",v=" ",y="g",m=/[^\s]/,b=/[^.\s]/,w=/\s/g;e.default={mask:r,pipe:l.default}},function(t,e){"use strict";function n(t,e){var n=e.currentCaretPosition,o=e.rawValue,h=e.previousConformedValue,p=e.placeholderChar,d=t;d=r(d);var g=d.indexOf(s);if(null===o.match(new RegExp("[^@\\s."+p+"]")))return a;if(-1!==d.indexOf(c)||-1!==g&&n!==g+1||-1===o.indexOf(i)&&h!==a&&-1!==o.indexOf(u))return!1;var v=d.indexOf(i)
;return(d.slice(v+1,d.length).match(f)||l).length>1&&d.substr(-1)===u&&n!==o.length&&(d=d.slice(0,d.length-1)),d}function r(t){var e=0;return t.replace(o,function(){return e++,1===e?i:a})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var i="@",o=/@/g,a="",s="@.",u=".",c="..",l=[],f=/\./g}])})},,function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1}
;return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3);Object.defineProperty(e,"conformToMask",{enumerable:!0,get:function(){return r(i).default}});var o=n(2);Object.defineProperty(e,"adjustCaretPosition",{enumerable:!0,get:function(){return r(o).default}});var a=n(5)
;Object.defineProperty(e,"createTextMaskInputElement",{enumerable:!0,get:function(){return r(a).default}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.placeholderChar="_"},function(t,e){"use strict";function n(t){var e=t.previousConformedValue,n=void 0===e?i:e,o=t.currentCaretPosition,a=void 0===o?0:o,s=t.conformedValue,u=t.rawValue,c=t.placeholderChar,l=t.placeholder,f=t.indexesOfPipedChars,h=void 0===f?r:f,p=t.caretTrapIndexes,d=void 0===p?r:p
;if(0===a)return 0;var g=u.length,v=n.length,y=l.length,m=s.length,b=g-v,w=b>0,_=0===v;if(b>1&&!w&&!_)return a;var x=w&&(n===s||s===l),O=0;if(x)O=a-b;else for(var T=s.toLowerCase(),S=u.toLowerCase(),E=S.substr(0,a).split(i),j=E.filter(function(t){return-1!==T.indexOf(t)}),k=j[j.length-1],C=h.map(function(t){return T[t]}),A=C.filter(function(t){return t===k}).length,P=j.filter(function(t){return t===k}).length,M=l.substr(0,l.indexOf(c)).split(i).filter(function(t,e){return t===k&&u[e]!==t
}).length,D=M+P+A,I=0,N=0;N<m;N++){var R=T[N];if(O=N+1,R===k&&I++,I>=D)break}if(w){for(var L=O,U=O;U<=y;U++)if(l[U]===c&&(L=U),l[U]===c||-1!==d.indexOf(U)||U===y)return L}else for(var F=O;F>=0;F--)if(l[F-1]===c||-1!==d.indexOf(F)||0===F)return F}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=[],i=""},function(t,e,n){"use strict";function r(){
var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.guide,s=void 0===r||r,u=n.previousConformedValue,c=void 0===u?a:u,l=n.placeholderChar,f=void 0===l?o.placeholderChar:l,h=n.placeholder,p=void 0===h?(0,
i.convertMaskToPlaceholder)(e,f):h,d=n.currentCaretPosition,g=n.keepCharPositions,v=!1===s&&void 0!==c,y=t.length,m=c.length,b=p.length,w=e.length,_=y-m,x=_>0,O=d+(x?-_:0),T=O+Math.abs(_);if(!0===g&&!x){for(var S=a,E=O;E<T;E++)p[E]===f&&(S+=f);t=t.slice(0,O)+S+t.slice(O,y)}for(var j=t.split(a).map(function(t,e){return{char:t,isNew:e>=O&&e<T}}),k=y-1;k>=0;k--){var C=j[k].char;if(C!==f){C===p[k>=O&&m===w?k-_:k]&&j.splice(k,1)}}var A=a,P=!1;t:for(var M=0;M<b;M++){var D=p[M];if(D===f){
if(j.length>0)for(;j.length>0;){var I=j.shift(),N=I.char,R=I.isNew;if(N===f&&!0!==v){A+=f;continue t}if(e[M].test(N)){if(!0===g&&!1!==R&&c!==a&&!1!==s&&x){for(var L=j.length,U=null,F=0;F<L;F++){var B=j[F];if(B.char!==f&&!1===B.isNew)break;if(B.char===f){U=F;break}}null!==U?(A+=N,j.splice(U,1)):M--}else A+=N;continue t}P=!0}!1===v&&(A+=p.substr(M,b));break}A+=D}if(v&&!1===x){for(var z=null,q=0;q<A.length;q++)p[q]===f&&(z=q);A=null!==z?A.substr(0,z+1):a}return{conformedValue:A,meta:{
someCharsRejected:P}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=n(4),o=n(1),a=""},function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar
;if(-1!==t.indexOf(e))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(e)+"\n\nThe mask that was received is: "+JSON.stringify(t));return t.map(function(t){return t instanceof RegExp?e:t}).join("")}function i(t){return"string"==typeof t||t instanceof String}function o(t){
return"number"==typeof t&&void 0===t.length&&!isNaN(t)}function a(t){for(var e=[],n=void 0;-1!==(n=t.indexOf(c));)e.push(n),t.splice(n,1);return{maskWithoutCaretTraps:t,indexes:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.convertMaskToPlaceholder=r,e.isString=i,e.isNumber=o,e.processCaretTraps=a;var s=n(1),u=[],c="[]"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e={previousConformedValue:v};return{state:e,update:function(n){
var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=r.inputElement,c=r.mask,f=r.guide,y=r.pipe,b=r.placeholderChar,w=void 0===b?d.placeholderChar:b,_=r.keepCharPositions,x=void 0!==_&&_;if((n=n||i.value)!==e.previousConformedValue){(void 0===c?"undefined":u(c))===m&&void 0!==c.pipe&&void 0!==c.mask&&(y=c.pipe,c=c.mask);var O=void 0,T=void 0;if(c instanceof Array&&(O=(0,p.convertMaskToPlaceholder)(c,w)),!1!==c){var S=a(n),E=i.selectionStart,j=e.previousConformedValue,k=void 0
;if((void 0===c?"undefined":u(c))===g){if(!1===(T=c(S,{currentCaretPosition:E,previousConformedValue:j,placeholderChar:w})))return;var C=(0,p.processCaretTraps)(T),A=C.maskWithoutCaretTraps,P=C.indexes;T=A,k=P,O=(0,p.convertMaskToPlaceholder)(T,w)}else T=c;var M={previousConformedValue:j,guide:f,placeholderChar:w,pipe:y,placeholder:O,currentCaretPosition:E,keepCharPositions:x},D=(0,h.default)(S,T,M),I=D.conformedValue,N=(void 0===y?"undefined":u(y))===g,R={};N&&(R=y(I,s({rawValue:S},M)),
!1===R?R={value:j,rejected:!0}:(0,p.isString)(R)&&(R={value:R}));var L=N?R.value:I,U=(0,l.default)({previousConformedValue:j,conformedValue:L,placeholder:O,rawValue:S,currentCaretPosition:E,placeholderChar:w,indexesOfPipedChars:R.indexesOfPipedChars,caretTrapIndexes:k}),F=L===O&&0===U,B=F?v:L;e.previousConformedValue=B,i.value!==B&&(i.value=B,o(i,U))}}}}}function o(t,e){document.activeElement===t&&(b?setTimeout(function(){return t.setSelectionRange(e,e,y)},0):t.setSelectionRange(e,e,y))}
function a(t){if((0,p.isString)(t))return t;if((0,p.isNumber)(t))return String(t);if(void 0===t||null===t)return v;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(t))}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t
},u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=i;var c=n(2),l=r(c),f=n(3),h=r(f),p=n(4),d=n(1),g="function",v="",y="none",m="object",b="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent)}])})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getFullYear()}e.a=r;var i=n(23)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return void 0===t}function i(t){return"function"==typeof t}function o(t){return"[object String]"===v.toString.call(t)}function a(t){return"object"==typeof t&&null!==t}function s(t){for(var e in t)return!1;return!0}
function u(t){return a(t)&&"[object Error]"===v.toString.call(t)||t instanceof Error}function c(t,e){var n,i;if(r(t.length))for(n in t)h(t,n)&&e.call(null,n,t[n]);else if(i=t.length)for(n=0;n<i;n++)e.call(null,n,t[n])}function l(t,e){return e?(c(e,function(e,n){t[e]=n}),t):t}function f(t,e){return!e||t.length<=e?t:t.substr(0,e)+"\u2026"}function h(t,e){return v.hasOwnProperty.call(t,e)}function p(t){for(var e,n=[],r=0,i=t.length;r<i;r++)e=t[r],
o(e)?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function d(t){var e=[];return c(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")}function g(){var t=window.crypto||window.msCrypto;if(!r(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e}
;return n(e[0])+n(e[1])+n(e[2])+n(e[3])+n(e[4])+n(e[5])+n(e[6])+n(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}var v=Object.prototype;t.exports={isUndefined:r,isFunction:i,isString:o,isObject:a,isEmptyObject:s,isError:u,each:c,objectMerge:l,truncate:f,hasKey:h,joinRegExp:p,urlencode:d,uuid4:g}},,,,,function(t,e,n){t.exports=!n(342)&&!n(594)(function(){return 7!=Object.defineProperty(n(1088)("div"),"a",{
get:function(){return 7}}).a})},function(t,e,n){e.f=n(168)},function(t,e,n){var r=n(341),i=n(418),o=n(1819)(!1),a=n(1095)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(597);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(418),i=n(1093),o=n(5149);t.exports=function(t){
return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(597);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){t.exports=n(195).document&&document.documentElement},function(t,e,n){var r=n(1817),i=n(1096).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){
return r(t,i)}},function(t,e,n){var r=n(1097),i=n(768),o=n(418),a=n(1089),s=n(341),u=n(1815),c=Object.getOwnPropertyDescriptor;e.f=n(342)?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(417),i=n(1818),o=n(1826),a=n(1093),s=n(5158);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f,p=e||s;return function(e,s,d){
for(var g,v,y=o(e),m=i(y),b=r(s,d,3),w=a(m.length),_=0,x=n?p(e,w):u?p(e,0):void 0;w>_;_++)if((h||_ in m)&&(g=m[_],v=b(g,_,y),t))if(n)x[_]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return _;case 2:x.push(g)}else if(l)return!1;return f?-1:c||l?l:x}}},function(t,e,n){var r=n(771);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(344).f,i=n(1098),o=(n(343),
n(1103)),a=n(417),s=n(1104),u=n(771),c=n(1105),l=n(1101),f=n(1827),h=n(1829),p=n(342),d=n(1091).fastKey,g=p?"_s":"size",v=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var f=t(function(t,r){s(t,f,e,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&c(r,n,t[l],t)});return o(f.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i]
;t._f=t._l=void 0,t[g]=0},delete:function(t){var e=this,n=v(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[g]--}return!!n},forEach:function(t){s(this,f,"forEach");for(var e,n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!v(this,t)}}),p&&r(f.prototype,"size",{get:function(){return u(this[g])}}),f},def:function(t,e,n){var r,i,o=v(t,e);return o?o.v=n:(t._l=o={
i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:v,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(195),i=n(344),o=n(342),a=n(168)("species");t.exports=function(t){
var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(195),i=n(415),o=n(416),a=n(1103),s=n(1091),u=n(1105),c=n(1104),l=n(298),f=n(594),h=n(1831),p=n(596),d=n(5172);t.exports=function(t,e,n,g,v,y){var m=r[t],b=m,w=v?"set":"add",_=b&&b.prototype,x={},O=function(t){var e=_[t];o(_,t,"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){
return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(y||_.forEach&&!f(function(){(new b).entries().next()}))){var T=new b,S=T[w](y?{}:-0,1)!=T,E=f(function(){T.has(1)}),j=h(function(t){new b(t)}),k=!y&&f(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});j||(b=e(function(e,n){c(e,b,t);var r=d(new m,e,b);return void 0!=n&&u(n,v,r[w],r),r}),b.prototype=_,
_.constructor=b),(E||k)&&(O("delete"),O("has"),v&&O("get")),(k||S)&&O(w),y&&_.clear&&delete _.clear}else b=g.getConstructor(e,t,v,w),a(b.prototype,n),s.NEED=!0;return p(b,t),x[t]=b,i(i.G+i.W+i.F*(b!=m),x),y||g.setStrong(b,t,v),b}},function(t,e,n){var r=n(168)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){
return a},t(o)}catch(t){}return n}},function(t,e,n){var r=n(298),i=n(297),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(417)(Function.call,n(1824).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){
var r,i,o,a=n(417),s=n(5179),u=n(1822),c=n(1088),l=n(195),f=l.process,h=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},m=function(t){y.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},p=function(t){delete v[t]},"process"==n(597)(f)?r=function(t){f.nextTick(a(y,t,1))}:d?(i=new d,
o=i.port2,i.port1.onmessage=m,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",m,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(a.a)(t,Object(o.a)(t,n)+r,n)}e.a=r;var i=n(44),o=n(499),a=n(1835)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),u=Object(i.a)(e),c=Object(s.a)(r,Object(a.a)(r,n),n),l=new Date(0);return l.setFullYear(u,0,4),l.setHours(0,0,0,0),
r=Object(a.a)(l,n),r.setDate(r.getDate()+c),r}e.a=r;var i=n(44),o=n(23),a=n(599),s=n(497)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e),a=3*r;return Object(o.a)(t,a,n)}e.a=r;var i=n(44),o=n(537)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present")
;return Object(i.a)(t,n)-Object(i.a)(e,n)}e.a=r;var i=n(499)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=Object(i.a)(t,e);return Math.floor(n.getMonth()/3)+1}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(o.a)(e,n),u=r.getTime()-Object(i.a)(r),c=s.getTime()-Object(i.a)(s);return Math.round((u-c)/a)}e.a=r;var i=n(269),o=n(328),a=6048e5},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getFullYear()-o.getFullYear()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(1834)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=Object(i.a)(n.start,e),o=Object(i.a)(n.end,e),a=o.getTime();if(!(r.getTime()<=a))throw new RangeError("Invalid interval");var s=[],u=r;for(u.setHours(0,0,0,0);u.getTime()<=a;)s.push(Object(i.a)(u,e)),u.setDate(u.getDate()+1);return s}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 0===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getDay();return 0===r||6===r}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=e||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,s=null==a?0:Object(i.a)(a),u=null==n.weekStartsOn?s:Object(i.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(o.a)(t,n),l=c.getDay(),f=6+(l<u?-7:0)-(l-u);return c.setDate(c.getDate()+f),c.setHours(23,59,59,999),c}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear();return r%400==0||r%4==0&&r%100!=0}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getDay();return 0===r&&(r=7),r}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=Object(o.a)(n,e).getTime()-Object(a.a)(n,e).getTime();return Math.round(r/s)+1}e.a=r;var i=n(23),o=n(419),a=n(599),s=6048e5},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=Object(o.a)(n,e).getTime()-Object(a.a)(n,e).getTime()
;return Math.round(r/s)+1}e.a=r;var i=n(23),o=n(328),a=n(1111),s=6048e5},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(o.a)(t,e),r=n.getFullYear(),s=e||{},u=s.locale,c=u&&u.options&&u.options.firstWeekContainsDate,l=null==c?1:Object(i.a)(c),f=null==s.firstWeekContainsDate?l:Object(i.a)(s.firstWeekContainsDate)
;if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(r+1,0,f),h.setHours(0,0,0,0);var p=Object(a.a)(h,e),d=new Date(0);d.setFullYear(r,0,f),d.setHours(0,0,0,0);var g=Object(a.a)(d,e);return n.getTime()>=p.getTime()?r+1:n.getTime()>=g.getTime()?r:r-1}e.a=r;var i=n(44),o=n(23),a=n(328)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return n.setSeconds(0,0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return n.setMilliseconds(0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,s=null==a?0:Object(i.a)(a),u=null==n.weekStartsOn?s:Object(i.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var c=Object(o.a)(t,e),l=c.getDay(),f=6+(l<u?-7:0)-(l-u);return c.setHours(0,0,0,0),c.setDate(c.getDate()+f),c}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict"
;function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(i.a)(e),u=r.getFullYear(),c=r.getDate(),l=new Date(0);l.setFullYear(u,s,15),l.setHours(0,0,0,0);var f=Object(a.a)(l,n);return r.setMonth(s,Math.min(c,f)),r}e.a=r;var i=n(44),o=n(23),a=n(853)},function(t,e,n){"use strict";var r,i,o,a,s,u,c,l,f,h,p,d,g,v,y,m,b,w,_,x,O,T,S,E,j,k,C,A,P,M,D,I,N,R,L,U,F=Math.pow(2,32)-1;!function(){var t;if(S={
avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in S)S.hasOwnProperty(t)&&(S[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)])
;E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),j=new Uint8Array([0,0,0,1]),C=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]),A=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]),P={video:C,audio:A},
I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),N=new Uint8Array([0,0,0,0,0,0,0,0]),R=N,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U=N,M=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),r=function(t){var e,n,r,i=[],o=0;for(e=1;e<arguments.length;e++)i.push(arguments[e]);for(e=i.length;e--;)o+=i[e].byteLength;for(n=new Uint8Array(o+8),r=new DataView(n.buffer,n.byteOffset,n.byteLength),r.setUint32(0,n.byteLength),n.set(t,4),e=0,
o=8;e<i.length;e++)n.set(i[e],o),o+=i[e].byteLength;return n},i=function(){return r(S.dinf,r(S.dref,I))},o=function(t){return r(S.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,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},a=function(){return r(S.ftyp,E,j,E,k)},m=function(t){return r(S.hdlr,P[t])},s=function(t){return r(S.mdat,t)},y=function(t){
var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(e[12]=t.samplerate>>>24&255,e[13]=t.samplerate>>>16&255,e[14]=t.samplerate>>>8&255,e[15]=255&t.samplerate),r(S.mdhd,e)},v=function(t){return r(S.mdia,y(t),m(t.type),c(t))},u=function(t){return r(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},c=function(t){
return r(S.minf,"video"===t.type?r(S.vmhd,M):r(S.smhd,D),i(),w(t))},l=function(t,e){for(var n=[],i=e.length;i--;)n[i]=x(e[i]);return r.apply(null,[S.moof,u(t)].concat(n))},f=function(t){for(var e=t.length,n=[];e--;)n[e]=d(t[e]);return r.apply(null,[S.moov,p(4294967295)].concat(n).concat(h(t)))},h=function(t){for(var e=t.length,n=[];e--;)n[e]=O(t[e]);return r.apply(null,[S.mvex].concat(n))},p=function(t){
var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,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 r(S.mvhd,e)},b=function(t){var e,n,i=t.samples||[],o=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)e=i[n].flags,o[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return r(S.sdtp,o)},w=function(t){
return r(S.stbl,_(t),r(S.stts,U),r(S.stsc,R),r(S.stsz,L),r(S.stco,N))},function(){var t,e;_=function(n){return r(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===n.type?t(n):e(n))},t=function(t){var e,n=t.sps||[],i=t.pps||[],o=[],a=[];for(e=0;e<n.length;e++)o.push((65280&n[e].byteLength)>>>8),o.push(255&n[e].byteLength),o=o.concat(Array.prototype.slice.call(n[e]));for(e=0;e<i.length;e++)a.push((65280&i[e].byteLength)>>>8),a.push(255&i[e].byteLength),a=a.concat(Array.prototype.slice.call(i[e]))
;return r(S.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&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.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]),r(S.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([n.length]).concat(o).concat([i.length]).concat(a))),r(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},
e=function(t){return r(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),o(t))}}(),g=function(t){
var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.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&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return r(S.tkhd,e)},x=function(t){var e,n,i,o,a,s,u
;return e=r(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(F+1)),u=Math.floor(t.baseMediaDecodeTime%(F+1)),n=r(S.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,u>>>24&255,u>>>16&255,u>>>8&255,255&u])),a=92,"audio"===t.type?(i=T(t,a),r(S.traf,e,n,i)):(o=b(t),i=T(t,o.length+a),r(S.traf,e,n,i,o))},d=function(t){return t.duration=t.duration||4294967295,
r(S.trak,g(t),v(t))},O=function(t){var e=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(e[e.length-1]=0),r(S.trex,e)},function(){var t,e,n;n=function(t,e){var n=0,r=0,i=0,o=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(r=2),void 0!==t[0].flags&&(i=4),void 0!==t[0].compositionTimeOffset&&(o=8)),
[0,0,n|r|i|o,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},e=function(t,e){var i,o,a,s;for(o=t.samples||[],e+=20+16*o.length,i=n(o,e),s=0;s<o.length;s++)a=o[s],
i=i.concat([(4278190080&a.duration)>>>24,(16711680&a.duration)>>>16,(65280&a.duration)>>>8,255&a.duration,(4278190080&a.size)>>>24,(16711680&a.size)>>>16,(65280&a.size)>>>8,255&a.size,a.flags.isLeading<<2|a.flags.dependsOn,a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,61440&a.flags.degradationPriority,15&a.flags.degradationPriority,(4278190080&a.compositionTimeOffset)>>>24,(16711680&a.compositionTimeOffset)>>>16,(65280&a.compositionTimeOffset)>>>8,255&a.compositionTimeOffset])
;return r(S.trun,new Uint8Array(i))},t=function(t,e){var i,o,a,s;for(o=t.samples||[],e+=20+8*o.length,i=n(o,e),s=0;s<o.length;s++)a=o[s],i=i.concat([(4278190080&a.duration)>>>24,(16711680&a.duration)>>>16,(65280&a.duration)>>>8,255&a.duration,(4278190080&a.size)>>>24,(16711680&a.size)>>>16,(65280&a.size)>>>8,255&a.size]);return r(S.trun,new Uint8Array(i))},T=function(n,r){return"audio"===n.type?t(n,r):e(n,r)}}(),t.exports={ftyp:a,mdat:s,moof:l,moov:f,initSegment:function(t){var e,n=a(),r=f(t)
;return e=new Uint8Array(n.byteLength+r.byteLength),e.set(n),e.set(r,n.byteLength),e}}},function(t,e,n){"use strict";var r=n(264),i=n(1861),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(t){t.on("data",this.trigger.bind(this,"data")),t.on("done",this.trigger.bind(this,"done"))},this)};o.prototype=new r,o.prototype.push=function(t){var e,n,r
;if("sei_rbsp"===t.nalUnitType&&(e=i.parseSei(t.escapedRBSP),e.payloadType===i.USER_DATA_REGISTERED_ITU_T_T35&&(n=i.parseUserData(e)))){if(t.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return void(--this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=i.parseCaptionPackets(t.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},
o.prototype.flush=function(){if(!this.captionPackets_.length)return void this.ccStreams_.forEach(function(t){t.flush()},this);this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type<2&&this.dispatchCea608Packet(t)},this),this.captionPackets_.length=0,this.ccStreams_.forEach(function(t){t.flush()},this)},o.prototype.reset=function(){
this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},o.prototype.dispatchCea608Packet=function(t){this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},o.prototype.setsChannel1Active=function(t){
return 4096==(30720&t.ccData)},o.prototype.setsChannel2Active=function(t){return 6144==(30720&t.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(t){return null===t?"":(t=a[t]||t,String.fromCharCode(t))},u=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],c=function(){
for(var t=[],e=15;e--;)t.push("");return t},l=function(t,e){l.prototype.init.call(this),this.field_=t||0,this.dataChannel_=e||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,r,i,o;if((e=32639&t.ccData)===this.lastControlCode_)return void(this.lastControlCode_=null);if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),r=e>>>8,i=255&e,
e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,
this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===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(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),
this.displayed_=c();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=c();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=c()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(r,i))r=(3&r)<<8,o=s(r|i),this[this.mode_](t.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),r=(3&r)<<8,o=s(r|i),this[this.mode_](t.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&i)&&this.addFormatting(t.pts,["i"]),
1==(1&i)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=u.indexOf(7968&e);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(t.pts,a)),a!==this.row_&&(this.clearFormatting(t.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(t.pts,["i"])
}else this.isNormalChar(r)&&(0===i&&(i=null),o=s(r),o+=s(i),this[this.mode_](t.pts,o),this.column_+=o.length)}};l.prototype=new r,l.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t){try{return t.trim()}catch(t){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},l.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,
this.startPts_=0,this.displayed_=c(),this.nonDisplayed_=c(),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(t,e){return t===this.EXT_&&e>=48&&e<=63},l.prototype.isExtCharacter=function(t,e){
return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},l.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},l.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},l.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},l.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},l.prototype.isNormalChar=function(t){return t>=32&&t<=127},l.prototype.setRollUp=function(t,e){
if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=c(),this.displayed_=c()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},l.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce(function(t,e){return t+"<"+e+">"},"");this[this.mode_](t,n)},
l.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"</"+e+">"},"");this.formatting_=[],this[this.mode_](t,e)}},l.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},l.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},l.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]=""
;for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},l.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},t.exports={CaptionStream:o,Cea608Stream:l}},function(t,e,n){"use strict";var r=function(t){for(var e=0,n={payloadType:-1,payloadSize:0},r=0,i=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)r+=255,e++;for(r+=t[e++];255===t[e];)i+=255,e++
;if(i+=t[e++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=t.subarray(e,e+i);break}e+=i,r=0,i=0}return n},i=function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]<<8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},o=function(t,e){var n,r,i,o,a=[];if(!(64&e[0]))return a;for(r=31&e[0],n=0;n<r;n++)i=3*n,o={type:3&e[i+2],pts:t},
4&e[i+2]&&(o.ccData=e[i+3]<<8|e[i+4],a.push(o));return a},a=function(t){for(var e,n,r=t.byteLength,i=[],o=1;o<r-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return t;e=r-i.length,n=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=t[a];return n};t.exports={parseSei:r,parseUserData:i,parseCaptionPackets:o,discardEmulationPreventionBytes:a,USER_DATA_REGISTERED_ITU_T_T35:4}},function(t,e,n){"use strict";var r=n(264),i=function(t,e){var n=1
;for(t>e&&(n=-1);Math.abs(e-t)>4294967296;)t+=8589934592*n;return t},o=function(t){var e,n;o.prototype.init.call(this),this.type_=t,this.push=function(t){t.type===this.type_&&(void 0===n&&(n=t.dts),t.dts=i(t.dts,n),t.pts=i(t.pts,n),e=t.dts,this.trigger("data",t))},this.flush=function(){n=e,this.trigger("done")},this.discontinuity=function(){n=void 0,e=void 0}};o.prototype=new r,t.exports={TimestampRolloverStream:o,handleRollover:i}},function(t,e,n){"use strict"
;var r,i,o=n(1114).parseType,a=function(t){return new Date(1e3*t-20828448e5)},s=function(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}},u=function(t){var e,n,r=new DataView(t.buffer,t.byteOffset,t.byteLength),i=[];for(e=0;e+4<t.length;e+=n)if(n=r.getUint32(e),e+=4,n<=0)i.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&t[e]){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 - "+t[e]&31)}return i},c={avc1:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{dataReferenceIndex:e.getUint16(6),width:e.getUint16(24),
height:e.getUint16(26),horizresolution:e.getUint16(28)+e.getUint16(30)/16,vertresolution:e.getUint16(32)+e.getUint16(34)/16,frameCount:e.getUint16(40),depth:e.getUint16(74),config:r(t.subarray(78,t.byteLength))}},avcC:function(t){var e,n,r,i,o=new DataView(t.buffer,t.byteOffset,t.byteLength),a={configurationVersion:t[0],avcProfileIndication:t[1],profileCompatibility:t[2],avcLevelIndication:t[3],lengthSizeMinusOne:3&t[4],sps:[],pps:[]},s=31&t[5];for(r=6,i=0;i<s;i++)n=o.getUint16(r),r+=2,
a.sps.push(new Uint8Array(t.subarray(r,r+n))),r+=n;for(e=t[r],r++,i=0;i<e;i++)n=o.getUint16(r),r+=2,a.pps.push(new Uint8Array(t.subarray(r,r+n))),r+=n;return a},btrt:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{bufferSizeDB:e.getUint32(0),maxBitrate:e.getUint32(4),avgBitrate:e.getUint32(8)}},esds:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),esId:t[6]<<8|t[7],streamPriority:31&t[8],decoderConfig:{objectProfileIndication:t[11],
streamType:t[12]>>>2&63,bufferSize:t[13]<<16|t[14]<<8|t[15],maxBitrate:t[16]<<24|t[17]<<16|t[18]<<8|t[19],avgBitrate:t[20]<<24|t[21]<<16|t[22]<<8|t[23],decoderConfigDescriptor:{tag:t[24],length:t[25],audioObjectType:t[26]>>>3&31,samplingFrequencyIndex:(7&t[26])<<1|t[27]>>>7&1,channelConfiguration:t[27]>>>3&15}}}},ftyp:function(t){for(var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={majorBrand:o(t.subarray(0,4)),minorVersion:e.getUint32(4),compatibleBrands:[]
},r=8;r<t.byteLength;)n.compatibleBrands.push(o(t.subarray(r,r+4))),r+=4;return n},dinf:function(t){return{boxes:r(t)}},dref:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),dataReferences:r(t.subarray(8))}},hdlr:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),handlerType:o(t.subarray(8,12)),name:""},r=8;for(r=24;r<t.byteLength;r++){if(0===t[r]){r++;break}n.name+=String.fromCharCode(t[r])}
return n.name=decodeURIComponent(escape(n.name)),n},mdat:function(t){return{byteLength:t.byteLength,nals:u(t)}},mdhd:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=4,i={version:n.getUint8(0),flags:new Uint8Array(t.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,e=n.getUint16(r),i.language+=String.fromCharCode(96+(e>>10)),i.language+=String.fromCharCode(96+((992&e)>>5)),i.language+=String.fromCharCode(96+(31&e)),i},mdia:function(t){return{boxes:r(t)}},mfhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sequenceNumber:t[4]<<24|t[5]<<16|t[6]<<8|t[7]}},minf:function(t){return{boxes:r(t)}},mp4a:function(t){
var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={dataReferenceIndex:e.getUint16(6),channelcount:e.getUint16(16),samplesize:e.getUint16(18),samplerate:e.getUint16(24)+e.getUint16(26)/65536};return t.byteLength>28&&(n.streamDescriptor=r(t.subarray(28))[0]),n},moof:function(t){return{boxes:r(t)}},moov:function(t){return{boxes:r(t)}},mvex:function(t){return{boxes:r(t)}},mvhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=4,r={version:e.getUint8(0),
flags:new Uint8Array(t.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=a(e.getUint32(n)),n+=8,r.modificationTime=a(e.getUint32(n)),n+=4,r.timescale=e.getUint32(n),n+=8,r.duration=e.getUint32(n)):(r.creationTime=a(e.getUint32(n)),n+=4,r.modificationTime=a(e.getUint32(n)),n+=4,r.timescale=e.getUint32(n),n+=4,r.duration=e.getUint32(n)),n+=4,r.rate=e.getUint16(n)+e.getUint16(n+2)/16,n+=4,r.volume=e.getUint8(n)+e.getUint8(n+1)/8,n+=2,n+=2,n+=8,r.matrix=new Uint32Array(t.subarray(n,n+36)),
n+=36,n+=24,r.nextTrackId=e.getUint32(n),r},pdin:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),rate:e.getUint32(4),initialDelay:e.getUint32(8)}},sdtp:function(t){var e,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]};for(e=4;e<t.byteLength;e++)n.samples.push({dependsOn:(48&t[e])>>4,isDependedOn:(12&t[e])>>2,hasRedundancy:3&t[e]});return n},sidx:function(t){
var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.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(e=24;i;e+=12,i--)r.references.push({referenceType:(128&t[e])>>>7,referencedSize:2147483647&n.getUint32(e),subsegmentDuration:n.getUint32(e+4),startsWithSap:!!(128&t[e+8]),sapType:(112&t[e+8])>>>4,
sapDeltaTime:268435455&n.getUint32(e+8)});return r},smhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),balance:t[4]+t[5]/256}},stbl:function(t){return{boxes:r(t)}},stco:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),chunkOffsets:[]},i=n.getUint32(4);for(e=8;i;e+=4,i--)r.chunkOffsets.push(n.getUint32(e));return r},stsc:function(t){
var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=n.getUint32(4),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleToChunks:[]};for(e=8;r;e+=12,r--)i.sampleToChunks.push({firstChunk:n.getUint32(e),samplesPerChunk:n.getUint32(e+4),sampleDescriptionIndex:n.getUint32(e+8)});return i},stsd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleDescriptions:r(t.subarray(8))}},stsz:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r={
version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleSize:n.getUint32(4),entries:[]};for(e=12;e<t.byteLength;e+=4)r.entries.push(n.getUint32(e));return r},stts:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),timeToSamples:[]},i=n.getUint32(4);for(e=8;i;e+=8,i--)r.timeToSamples.push({sampleCount:n.getUint32(e),sampleDelta:n.getUint32(e+4)});return r},styp:function(t){return c.ftyp(t)},tfdt:function(t){var e={
version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:t[4]<<24|t[5]<<16|t[6]<<8|t[7]};return 1===e.version&&(e.baseMediaDecodeTime*=Math.pow(2,32),e.baseMediaDecodeTime+=t[8]<<24|t[9]<<16|t[10]<<8|t[11]),e},tfhd:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.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],u=32&r.flags[2],c=65536&r.flags[0],l=131072&r.flags[0]
;return e=8,i&&(e+=4,r.baseDataOffset=n.getUint32(12),e+=4),o&&(r.sampleDescriptionIndex=n.getUint32(e),e+=4),a&&(r.defaultSampleDuration=n.getUint32(e),e+=4),s&&(r.defaultSampleSize=n.getUint32(e),e+=4),u&&(r.defaultSampleFlags=n.getUint32(e)),c&&(r.durationIsEmpty=!0),!i&&l&&(r.baseDataOffsetIsMoof=!0),r},tkhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=4,r={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===r.version?(n+=4,
r.creationTime=a(e.getUint32(n)),n+=8,r.modificationTime=a(e.getUint32(n)),n+=4,r.trackId=e.getUint32(n),n+=4,n+=8,r.duration=e.getUint32(n)):(r.creationTime=a(e.getUint32(n)),n+=4,r.modificationTime=a(e.getUint32(n)),n+=4,r.trackId=e.getUint32(n),n+=4,n+=4,r.duration=e.getUint32(n)),n+=4,n+=8,r.layer=e.getUint16(n),n+=2,r.alternateGroup=e.getUint16(n),n+=2,r.volume=e.getUint8(n)+e.getUint8(n+1)/8,n+=2,n+=2,r.matrix=new Uint32Array(t.subarray(n,n+36)),n+=36,
r.width=e.getUint16(n)+e.getUint16(n+2)/16,n+=4,r.height=e.getUint16(n)+e.getUint16(n+2)/16,r},traf:function(t){return{boxes:r(t)}},trak:function(t){return{boxes:r(t)}},trex:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:e.getUint32(4),defaultSampleDescriptionIndex:e.getUint32(8),defaultSampleDuration:e.getUint32(12),defaultSampleSize:e.getUint32(16),sampleDependsOn:3&t[20],sampleIsDependedOn:(192&t[21])>>6,
sampleHasRedundancy:(48&t[21])>>4,samplePaddingValue:(14&t[21])>>1,sampleIsDifferenceSample:!!(1&t[21]),sampleDegradationPriority:e.getUint16(22)}},trun:function(t){var e,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},r=new DataView(t.buffer,t.byteOffset,t.byteLength),i=1&n.flags[2],o=4&n.flags[2],a=1&n.flags[1],u=2&n.flags[1],c=4&n.flags[1],l=8&n.flags[1],f=r.getUint32(4),h=8;for(i&&(n.dataOffset=r.getInt32(h),h+=4),o&&f&&(e={flags:s(t.subarray(h,h+4))},h+=4,
a&&(e.duration=r.getUint32(h),h+=4),u&&(e.size=r.getUint32(h),h+=4),l&&(e.compositionTimeOffset=r.getUint32(h),h+=4),n.samples.push(e),f--);f--;)e={},a&&(e.duration=r.getUint32(h),h+=4),u&&(e.size=r.getUint32(h),h+=4),c&&(e.flags=s(t.subarray(h,h+4)),h+=4),l&&(e.compositionTimeOffset=r.getUint32(h),h+=4),n.samples.push(e);return n},"url ":function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4))}},vmhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{
version:t[0],flags:new Uint8Array(t.subarray(1,4)),graphicsmode:e.getUint16(4),opcolor:new Uint16Array([e.getUint16(6),e.getUint16(8),e.getUint16(10)])}}};r=function(t){for(var e,n,r,i,a,s=0,u=[],l=new ArrayBuffer(t.length),f=new Uint8Array(l),h=0;h<t.length;++h)f[h]=t[h];for(e=new DataView(l);s<t.byteLength;)n=e.getUint32(s),r=o(t.subarray(s+4,s+8)),i=n>1?s+n:t.byteLength,a=(c[r]||function(t){return{data:t}})(t.subarray(s+8,i)),a.size=n,a.type=r,u.push(a),s=i;return u},i=function(t,e){var n
;return e=e||0,n=new Array(2*e+1).join(" "),t.map(function(t,r){return n+t.type+"\n"+Object.keys(t).filter(function(t){return"type"!==t&&"boxes"!==t}).map(function(e){var r=n+"  "+e+": ",i=t[e];if(i instanceof Uint8Array||i instanceof Uint32Array){var o=Array.prototype.slice.call(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(function(t){return" "+("00"+t.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return o?1===o.length?r+"<"+o.join("").slice(1)+">":r+"<\n"+o.map(function(t){
return n+"  "+t}).join("\n")+"\n"+n+"  >":r+"<>"}return r+JSON.stringify(i,null,2).split("\n").map(function(t,e){return 0===e?t:n+"  "+t}).join("\n")}).join("\n")+(t.boxes?"\n"+i(t.boxes,e+1):"")}).join("\n")},t.exports={inspect:r,textify:i,parseTfdt:c.tfdt,parseHdlr:c.hdlr,parseTfhd:c.tfhd,parseTrun:c.trun}},,,,,,,,,,function(t,e,n){var r=n(1124),i={delimiter:"&",arrayPrefixGenerators:{brackets:function(t,e){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t,e){return t}
},strictNullHandling:!1};i.stringify=function(t,e,n,o,a){if("function"==typeof a)t=a(e,t);else if(r.isBuffer(t))t=t.toString();else if(t instanceof Date)t=t.toISOString();else if(null===t){if(o)return r.encode(e);t=""}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return[r.encode(e)+"="+r.encode(t)];var s=[];if(void 0===t)return s;for(var u=Array.isArray(a)?a:Object.keys(t),c=0,l=u.length;c<l;++c){var f=u[c]
;s=Array.isArray(t)?s.concat(i.stringify(t[f],n(e,f),n,o,a)):s.concat(i.stringify(t[f],e+"["+f+"]",n,o,a))}return s},t.exports=function(t,e){e=e||{};var n,r,o=void 0===e.delimiter?i.delimiter:e.delimiter,a="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling;"function"==typeof e.filter?(r=e.filter,t=r("",t)):Array.isArray(e.filter)&&(n=r=e.filter);var s=[];if("object"!=typeof t||null===t)return"";var u
;u=e.arrayFormat in i.arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":"indices";var c=i.arrayPrefixGenerators[u];n||(n=Object.keys(t));for(var l=0,f=n.length;l<f;++l){var h=n[l];s=s.concat(i.stringify(t[h],h,c,a,r))}return s.join(o)}},function(t,e,n){var r=n(1124),i={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};i.parseValues=function(t,e){
for(var n={},i=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0,a=i.length;o<a;++o){var s=i[o],u=-1===s.indexOf("]=")?s.indexOf("="):s.indexOf("]=")+1;if(-1===u)n[r.decode(s)]="",e.strictNullHandling&&(n[r.decode(s)]=null);else{var c=r.decode(s.slice(0,u)),l=r.decode(s.slice(u+1));Object.prototype.hasOwnProperty.call(n,c)?n[c]=[].concat(n[c]).concat(l):n[c]=l}}return n},i.parseObject=function(t,e,n){if(!t.length)return e;var r,o=t.shift();if("[]"===o)r=[],
r=r.concat(i.parseObject(t,e,n));else{r=n.plainObjects?Object.create(null):{};var a="["===o[0]&&"]"===o[o.length-1]?o.slice(1,o.length-1):o,s=parseInt(a,10),u=""+s;!isNaN(s)&&o!==a&&u===a&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(r=[],r[s]=i.parseObject(t,e,n)):r[a]=i.parseObject(t,e,n)}return r},i.parseKeys=function(t,e,n){if(t){n.allowDots&&(t=t.replace(/\.([^\.\[]+)/g,"[$1]"));var r=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,a=r.exec(t),s=[];if(a[1]){
if(!n.plainObjects&&Object.prototype.hasOwnProperty(a[1])&&!n.allowPrototypes)return;s.push(a[1])}for(var u=0;null!==(a=o.exec(t))&&u<n.depth;)++u,(n.plainObjects||!Object.prototype.hasOwnProperty(a[1].replace(/\[|\]/g,""))||n.allowPrototypes)&&s.push(a[1]);return a&&s.push("["+t.slice(a.index)+"]"),i.parseObject(s,e,n)}},t.exports=function(t,e){if(e=e||{},e.delimiter="string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,e.depth="number"==typeof e.depth?e.depth:i.depth,
e.arrayLimit="number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,e.parseArrays=!1!==e.parseArrays,e.allowDots="boolean"==typeof e.allowDots?e.allowDots:i.allowDots,e.plainObjects="boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,e.allowPrototypes="boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,e.parameterLimit="number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,
e.strictNullHandling="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,""===t||null===t||void 0===t)return e.plainObjects?Object.create(null):{};for(var n="string"==typeof t?i.parseValues(t,e):t,o=e.plainObjects?Object.create(null):{},a=Object.keys(n),s=0,u=a.length;s<u;++s){var c=a[s],l=i.parseKeys(c,n[c],e);o=r.merge(o,l,e)}return r.compact(o)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){!function(e,r){var i=n(10),o=n(424);t.exports=r(i,o)}(0,function(t,e){
"use strict";return e.Wreqr=function(t,e,n){var r={};return r.Handlers=function(t,e){var n=function(t){this.options=t,this._wreqrHandlers={},e.isFunction(this.initialize)&&this.initialize(t)};return n.extend=t.Model.extend,e.extend(n.prototype,t.Events,{setHandlers:function(t){e.each(t,function(t,n){var r=null;e.isObject(t)&&!e.isFunction(t)&&(r=t.context,t=t.callback),this.setHandler(n,t,r)},this)},setHandler:function(t,e,n){var r={callback:e,context:n};this._wreqrHandlers[t]=r,
this.trigger("handler:add",t,e,n)},hasHandler:function(t){return!!this._wreqrHandlers[t]},getHandler:function(t){var e=this._wreqrHandlers[t];if(e)return function(){var t=Array.prototype.slice.apply(arguments);return e.callback.apply(e.context,t)}},removeHandler:function(t){delete this._wreqrHandlers[t]},removeAllHandlers:function(){this._wreqrHandlers={}}}),n}(t,n),r.CommandStorage=function(){var e=function(t){this.options=t,this._commands={},n.isFunction(this.initialize)&&this.initialize(t)}
;return n.extend(e.prototype,t.Events,{getCommands:function(t){var e=this._commands[t];return e||(e={command:t,instances:[]},this._commands[t]=e),e},addCommand:function(t,e){this.getCommands(t).instances.push(e)},clearCommands:function(t){this.getCommands(t).instances=[]}}),e}(),r.Commands=function(t){return t.Handlers.extend({storageType:t.CommandStorage,constructor:function(e){this.options=e||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this)
;var n=Array.prototype.slice.call(arguments);t.Handlers.prototype.constructor.apply(this,n)},execute:function(t,e){t=arguments[0],e=Array.prototype.slice.call(arguments,1),this.hasHandler(t)?this.getHandler(t).apply(this,e):this.storage.addCommand(t,e)},_executeCommands:function(t,e,r){var i=this.storage.getCommands(t);n.each(i.instances,function(t){e.apply(r,t)}),this.storage.clearCommands(t)},_initializeStorage:function(t){var e,r=t.storageType||this.storageType;e=n.isFunction(r)?new r:r,
this.storage=e}})}(r),r.RequestResponse=function(t){return t.Handlers.extend({request:function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);if(this.hasHandler(t))return this.getHandler(t).apply(this,e)}})}(r),r.EventAggregator=function(t,e){var n=function(){};return n.extend=t.Model.extend,e.extend(n.prototype,t.Events),n}(t,n),r}(e,e.Marionette,t),e.Wreqr})},function(t,e,n){!function(e,r){var i=n(10),o=n(424);t.exports=r(i,o)}(0,function(t,e){"option strict"
;return e.ChildViewContainer=function(t,e){var n=function(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(t,this.add,this)};e.extend(n.prototype,{add:function(t,e){var n=t.cid;return this._views[n]=t,t.model&&(this._indexByModel[t.model.cid]=n),e&&(this._indexByCustom[e]=n),this._updateLength(),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},
findByCustom:function(t){var e=this._indexByCustom[t];return this.findByCid(e)},findByIndex:function(t){return e.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){var n=t.cid;return t.model&&delete this._indexByModel[t.model.cid],e.any(this._indexByCustom,function(t,e){if(t===n)return delete this._indexByCustom[e],!0},this),delete this._views[n],this._updateLength(),this},call:function(t){this.apply(t,e.tail(arguments))},apply:function(t,n){
e.each(this._views,function(r){e.isFunction(r[t])&&r[t].apply(r,n||[])})},_updateLength:function(){this.length=e.size(this._views)}});var r=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return e.each(r,function(t){n.prototype[t]=function(){var n=e.values(this._views),r=[n].concat(e.toArray(arguments));return e[t].apply(e,r)}}),n}(0,t),
e.ChildViewContainer})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){n=n||{};var r;return r="string"==typeof i[t]?i[t]:1===e?i[t].one:i[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}e.a=r;var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{
one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},
overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}}},function(t,e,n){"use strict";var r=n(1997),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:Object(r.a)({formats:i,
defaultWidth:"full"}),time:Object(r.a)({formats:o,defaultWidth:"full"}),dateTime:Object(r.a)({formats:a,defaultWidth:"full"})};e.a=s},function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}e.a=r},function(t,e,n){"use strict";function r(t,e,n,r){return i[t]}e.a=r;var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",
nextWeek:"eeee 'at' p",other:"P"}},function(t,e,n){"use strict";function r(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var i=n(2e3),o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],
abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",
afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",
midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},f={ordinalNumber:r,era:Object(i.a)({values:o,defaultWidth:"wide"}),quarter:Object(i.a)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Object(i.a)({values:s,defaultWidth:"wide"
}),day:Object(i.a)({values:u,defaultWidth:"wide"}),dayPeriod:Object(i.a)({values:c,defaultWidth:"wide",formattingValues:l,defaulFormattingWidth:"wide"})};e.a=f},function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.width?String(i.width):t.defaultWidth,a=i.context?String(i.context):"standalone";return r="formatting"===a&&t.formattingValues?t.formattingValues[o]||t.formattingValues[t.defaultFormattingWidth]:t.values[o]||t.values[t.defaultWidth],
r[t.argumentCallback?t.argumentCallback(e):e]}}e.a=r},function(t,e,n){"use strict";var r=n(2002),i=n(2003),o=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},u={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},l={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,
abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,
wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},d={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:Object(r.a)({
matchPattern:o,parsePattern:a,valueCallback:function(t){return parseInt(t,10)}}),era:Object(i.a)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),quarter:Object(i.a)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Object(i.a)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:Object(i.a)({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:d,
defaultParseWidth:"any"}),dayPeriod:Object(i.a)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:v,defaultParseWidth:"any"})};e.a=y},function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}e.a=r},function(t,e,n){"use strict"
;function r(t){return function(e,n){var r=String(e),o=n||{},a=o.width,s=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],u=r.match(s);if(!u)return null;var c,l=u[0],f=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth];return c="[object Array]"===Object.prototype.toString.call(f)?f.findIndex(function(t){return t.test(r)}):i(f,function(t){return t.test(r)}),c=t.valueCallback?t.valueCallback(c):c,c=o.valueCallback?o.valueCallback(c):c,{value:c,rest:r.slice(l.length)}}}
function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}e.a=r},function(t,e,n){"use strict";function r(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}function i(t,e){var n=e||"",i=t>0?"-":"+",o=Math.abs(t);return i+r(Math.floor(o/60),2)+n+r(o%60,2)}function o(t,e){if(t%60==0){return(t>0?"-":"+")+r(Math.abs(t)/60,2)}return i(t,e)}function a(t,e){var n=t>0?"-":"+",i=Math.abs(t),o=Math.floor(i/60),a=i%60;if(0===a)return n+String(o);var s=e||""
;return n+String(o)+s+r(a,2)}var s=n(2005),u=n(1159),c=n(1160),l=n(1161),f=n(805),h={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n,i){var o=t.getUTCFullYear(),a=o>0?o:1-o;if("yy"===e){
return r(a%100,2)}return"yo"===e?n.ordinalNumber(a,{unit:"year"}):r(a,e.length)},Y:function(t,e,n,i){var o=Object(f.a)(t,i),a=o>0?o:1-o;if("YY"===e){return r(a%100,2)}return"Yo"===e?n.ordinalNumber(a,{unit:"year"}):r(a,e.length)},R:function(t,e,n,i){return r(Object(c.a)(t,i),e.length)},u:function(t,e,n,i){return r(t.getUTCFullYear(),e.length)},Q:function(t,e,n,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return r(o,2);case"Qo":return n.ordinalNumber(o,{
unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,n,i){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return r(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":
return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,n,i){var o=t.getUTCMonth();switch(e){case"M":return String(o+1);case"MM":return r(o+1,2);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"
})}},L:function(t,e,n,i){var o=t.getUTCMonth();switch(e){case"L":return String(o+1);case"LL":return r(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){var o=Object(l.a)(t,i);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):r(o,e.length)},
I:function(t,e,n,i){var o=Object(u.a)(t,i);return"Io"===e?n.ordinalNumber(o,{unit:"week"}):r(o,e.length)},d:function(t,e,n,i){var o=t.getUTCDate();return"do"===e?n.ordinalNumber(o,{unit:"date"}):r(o,e.length)},D:function(t,e,n,i){var o=Object(s.a)(t,i);return"Do"===e?n.ordinalNumber(o,{unit:"dayOfYear"}):r(o,e.length)},E:function(t,e,n,r){var i=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",
context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return r(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{
width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return r(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})
;case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n,i){var o=t.getUTCDay(),a=0===o?7:o;switch(e){case"i":return String(a);case"ii":return r(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",
context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?h.noon:0===i?h.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{
width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?h.evening:i>=12?h.afternoon:i>=4?h.morning:h.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:
return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n,i){var o=t.getUTCHours()%12;return 0===o&&(o=12),"ho"===e?n.ordinalNumber(o,{unit:"hour"}):r(o,e.length)},H:function(t,e,n,i){var o=t.getUTCHours();return"Ho"===e?n.ordinalNumber(o,{unit:"hour"}):r(o,e.length)},K:function(t,e,n,i){var o=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(o,{unit:"hour"}):r(o,e.length)},k:function(t,e,n,i){var o=t.getUTCHours();return 0===o&&(o=24),"ko"===e?n.ordinalNumber(o,{unit:"hour"
}):r(o,e.length)},m:function(t,e,n,i){var o=t.getUTCMinutes();return"mo"===e?n.ordinalNumber(o,{unit:"minute"}):r(o,e.length)},s:function(t,e,n,i){var o=t.getUTCSeconds();return"so"===e?n.ordinalNumber(o,{unit:"second"}):r(o,e.length)},S:function(t,e,n,i){var o=e.length,a=t.getUTCMilliseconds();return r(Math.floor(a*Math.pow(10,o-3)),o)},X:function(t,e,n,r){var a=r._originalDate||t,s=a.getTimezoneOffset();if(0===s)return"Z";switch(e){case"X":return o(s);case"XXXX":case"XX":return i(s)
;case"XXXXX":case"XXX":default:return i(s,":")}},x:function(t,e,n,r){var a=r._originalDate||t,s=a.getTimezoneOffset();switch(e){case"x":return o(s);case"xxxx":case"xx":return i(s);case"xxxxx":case"xxx":default:return i(s,":")}},O:function(t,e,n,r){var o=r._originalDate||t,s=o.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+a(s,":");case"OOOO":default:return"GMT"+i(s,":")}},z:function(t,e,n,r){var o=r._originalDate||t,s=o.getTimezoneOffset();switch(e){case"z":case"zz":
case"zzz":return"GMT"+a(s,":");case"zzzz":default:return"GMT"+i(s,":")}},t:function(t,e,n,i){var o=i._originalDate||t;return r(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,i){return r((i._originalDate||t).getTime(),e.length)}};e.a=p},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var a=n.getTime(),s=r-a
;return Math.floor(s/o)+1}e.a=r;var i=n(23),o=864e5},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),Object(o.a)(r,e)}e.a=r;var i=n(1160),o=n(614)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=e||{},r=n.locale,s=r&&r.options&&r.options.firstWeekContainsDate,u=null==s?1:Object(i.a)(s),c=null==n.firstWeekContainsDate?u:Object(i.a)(n.firstWeekContainsDate),l=Object(o.a)(t,e),f=new Date(0);return f.setUTCFullYear(l,0,c),f.setUTCHours(0,0,0,0),Object(a.a)(f,e)}e.a=r;var i=n(44),o=n(805),a=n(615)},function(t,e,n){"use strict";function r(t,e,n){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":
default:return e.date({width:"full"})}}function i(t,e,n){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function o(t,e,n){var o=t.match(/(P+)(p+)?/),a=o[1],s=o[2];if(!s)return r(t,e,n);var u;switch(a){case"P":u=e.dateTime({width:"short"});break;case"PP":u=e.dateTime({width:"medium"});break;case"PPP":u=e.dateTime({width:"long"});break;case"PPPP":default:
u=e.dateTime({width:"full"})}return u.replace("{{date}}",r(a,e,n)).replace("{{time}}",i(s,e,n))}var a={p:i,P:o};e.a=a},,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(813),i=n(1174).default,o=n(815).default,a=n(814),s=n(2031),u=function(){var t=new r.HandlebarsEnvironment;return a.extend(t,r),t.SafeString=i,t.Exception=o,t.Utils=a,t.VM=s,t.template=function(e){return s.template(e,t)},t},c=u();c.create=u,e.default=c,t.exports=c},function(t,e,n){"use strict";function r(t){
var e=t&&t[0]||1,n=f;if(e!==n){if(e<n){var r=h[n],i=h[e];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}}function i(t,e){
if(!e)throw new l("No environment passed to template");var n=function(t,n,r,i,o,a){var s=e.VM.invokePartial.apply(this,arguments);if(null!=s)return s;if(e.compile){var u={helpers:i,partials:o,data:a};return o[n]=e.compile(t,{data:void 0!==a},e),o[n](r,u)}throw new l("The partial "+n+" could not be compiled when running in runtime-only mode")},r={escapeExpression:c.escapeExpression,invokePartial:n,programs:[],program:function(t,e,n){var r=this.programs[t]
;return n?r=a(t,e,n):r||(r=this.programs[t]=a(t,e)),r},merge:function(t,e){var n=t||e;return t&&e&&t!==e&&(n={},c.extend(n,e),c.extend(n,t)),n},programWithDepth:e.VM.programWithDepth,noop:e.VM.noop,compilerInfo:null};return function(n,i){i=i||{};var o,a,s=i.partial?i:e;i.partial||(o=i.helpers,a=i.partials);var u=t.call(r,s,n,o,a,i.data);return i.partial||e.VM.checkRevision(r.compilerInfo),u}}function o(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=function(t,i){return i=i||{},
e.apply(this,[t,i.data||n].concat(r))};return i.program=t,i.depth=r.length,i}function a(t,e,n){var r=function(t,r){return r=r||{},e(t,r.data||n)};return r.program=t,r.depth=0,r}function s(t,e,n,r,i,o){var a={partial:!0,helpers:r,partials:i,data:o};if(void 0===t)throw new l("The partial "+e+" could not be found");if(t instanceof Function)return t(n,a)}function u(){return""}var c=n(814),l=n(815).default,f=n(813).COMPILER_REVISION,h=n(813).REVISION_CHANGES;e.checkRevision=r,e.template=i,
e.programWithDepth=o,e.program=a,e.invokePartial=s,e.noop=u},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1])
;m(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||M}function o(){}function a(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||M}function s(t,e,n){var r=void 0,i={},o=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(o=""+e.key),e)N.call(e,r)&&!R.hasOwnProperty(r)&&(i[r]=e[r])
;var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:x,type:t,key:o,ref:a,props:i,_owner:I.current}}function u(t){return"object"==typeof t&&null!==t&&t.$$typeof===x}function c(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function l(t,e,n,r){if(U.length){var i=U.pop();return i.result=t,
i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function f(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>U.length&&U.push(t)}function h(t,e,n,i){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var a=!1;if(null===t)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case x:case O:a=!0}}if(a)return n(i,t,""===e?"."+p(t,0):e),1;if(a=0,e=""===e?".":e+":",
Array.isArray(t))for(var s=0;s<t.length;s++){o=t[s];var u=e+p(o,s);a+=h(o,u,n,i)}else if(null===t||void 0===t?u=null:(u=P&&t[P]||t["@@iterator"],u="function"==typeof u?u:null),"function"==typeof u)for(t=u.call(t),s=0;!(o=t.next()).done;)o=o.value,u=e+p(o,s++),a+=h(o,u,n,i);else"object"===o&&(n=""+t,r("31","[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return a}function p(t,e){return"object"==typeof t&&null!==t&&null!=t.key?c(t.key):e.toString(36)}function d(t,e){
t.func.call(t.context,e,t.count++)}function g(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?v(t,r,n,w.thatReturnsArgument):null!=t&&(u(t)&&(e=i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(L,"$&/")+"/")+n,t={$$typeof:x,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),r.push(t))}function v(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(L,"$&/")+"/"),e=l(e,o,r,i),null==t||h(t,"",g,e),f(e)}/** @license React v16.4.0
 * react.production.min.js
 *
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var y=n(432),m=n(833),b=n(1207),w=n(834),_="function"==typeof Symbol&&Symbol.for,x=_?Symbol.for("react.element"):60103,O=_?Symbol.for("react.portal"):60106,T=_?Symbol.for("react.fragment"):60107,S=_?Symbol.for("react.strict_mode"):60108,E=_?Symbol.for("react.profiler"):60114,j=_?Symbol.for("react.provider"):60109,k=_?Symbol.for("react.context"):60110,C=_?Symbol.for("react.async_mode"):60111,A=_?Symbol.for("react.forward_ref"):60112;_&&Symbol.for("react.timeout")
;var P="function"==typeof Symbol&&Symbol.iterator,M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};i.prototype.isReactComponent={},i.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&r("85"),this.updater.enqueueSetState(this,t,e,"setState")},i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},o.prototype=i.prototype;var D=a.prototype=new o
;D.constructor=a,y(D,i.prototype),D.isPureReactComponent=!0;var I={current:null},N=Object.prototype.hasOwnProperty,R={key:!0,ref:!0,__self:!0,__source:!0},L=/\/+/g,U=[],F={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return v(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;e=l(null,null,e,n),null==t||h(t,"",d,e),f(e)},count:function(t){return null==t?0:h(t,"",w.thatReturnsNull,null)},toArray:function(t){var e=[];return v(t,e,null,w.thatReturnsArgument),e},
only:function(t){return u(t)||r("143"),t}},createRef:function(){return{current:null}},Component:i,PureComponent:a,createContext:function(t,e){return void 0===e&&(e=null),t={$$typeof:k,_calculateChangedBits:e,_defaultValue:t,_currentValue:t,_currentValue2:t,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null},t.Provider={$$typeof:j,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:A,render:t}},Fragment:T,StrictMode:S,unstable_AsyncMode:C,unstable_Profiler:E,createElement:s,
cloneElement:function(t,e,n){(null===t||void 0===t)&&r("267",t);var i=void 0,o=y({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){void 0!==e.ref&&(s=e.ref,u=I.current),void 0!==e.key&&(a=""+e.key);var c=void 0;t.type&&t.type.defaultProps&&(c=t.type.defaultProps);for(i in e)N.call(e,i)&&!R.hasOwnProperty(i)&&(o[i]=void 0===e[i]&&void 0!==c?c[i]:e[i])}if(1===(i=arguments.length-2))o.children=n;else if(1<i){c=Array(i);for(var l=0;l<i;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:x,
type:t.type,key:a,ref:s,props:o,_owner:u}},createFactory:function(t){var e=s.bind(null,t);return e.type=t,e},isValidElement:u,version:"16.4.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,assign:y}},B={default:F},z=B&&F||B;t.exports=z.default?z.default:z},function(t,e,n){"use strict";var r=n(834),i=n(833),o=n(2219);t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict"
;t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);Dr(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(t,e,n,r,i,o,a,s,u){this._hasCaughtError=!1,
this._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(t){this._caughtError=t,this._hasCaughtError=!0}}function o(){if(qr._hasRethrowError){var t=qr._rethrowError;throw qr._rethrowError=null,qr._hasRethrowError=!1,t}}function a(){if(Hr)for(var t in Wr){var e=Wr[t],n=Hr.indexOf(t);if(-1<n||r("96",t),!Vr[n]){e.extractEvents||r("97",t),Vr[n]=e,n=e.eventTypes;for(var i in n){var o=void 0,a=n[i],u=e,c=i;Yr.hasOwnProperty(c)&&r("99",c),Yr[c]=a
;var l=a.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&s(l[o],u,c);o=!0}else a.registrationName?(s(a.registrationName,u,c),o=!0):o=!1;o||r("98",i,t)}}}}function s(t,e,n){Gr[t]&&r("100",t),Gr[t]=e,Xr[t]=e.eventTypes[n].dependencies}function u(t){Hr&&r("101"),Hr=Array.prototype.slice.call(t),a()}function c(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var i=t[e];Wr.hasOwnProperty(e)&&Wr[e]===i||(Wr[e]&&r("102",e),Wr[e]=i,n=!0)}n&&a()}function l(t,e,n,r){
e=t.type||"unknown-event",t.currentTarget=Jr(r),qr.invokeGuardedCallbackAndCatchFirstError(e,n,void 0,t),t.currentTarget=null}function f(t,e){return null==e&&r("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function h(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}function p(t,e){if(t){var n=t._dispatchListeners,r=t._dispatchInstances
;if(Array.isArray(n))for(var i=0;i<n.length&&!t.isPropagationStopped();i++)l(t,e,n[i],r[i]);else n&&l(t,e,n,r);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function d(t){return p(t,!0)}function g(t){return p(t,!1)}function v(t,e){var n=t.stateNode;if(!n)return null;var i=$r(n);if(!i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":
case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(t=t.type,i=!("button"===t||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&r("231",e,typeof n),n)}function y(t,e){null!==t&&(Zr=f(Zr,t)),t=Zr,Zr=null,t&&(e?h(t,d):h(t,g),Zr&&r("95"),qr.rethrowCaughtError())}function m(t,e,n,r){for(var i=null,o=0;o<Vr.length;o++){var a=Vr[o];a&&(a=a.extractEvents(t,e,n,r))&&(i=f(i,a))}y(i,!1)}
function b(t){if(t[ri])return t[ri];for(;!t[ri];){if(!t.parentNode)return null;t=t.parentNode}return t=t[ri],5===t.tag||6===t.tag?t:null}function w(t){if(5===t.tag||6===t.tag)return t.stateNode;r("33")}function _(t){return t[ii]||null}function x(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function O(t,e,n){for(var r=[];t;)r.push(t),t=x(t);for(t=r.length;0<t--;)e(r[t],"captured",n);for(t=0;t<r.length;t++)e(r[t],"bubbled",n)}function T(t,e,n){
(e=v(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=f(n._dispatchListeners,e),n._dispatchInstances=f(n._dispatchInstances,t))}function S(t){t&&t.dispatchConfig.phasedRegistrationNames&&O(t._targetInst,T,t)}function E(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst;e=e?x(e):null,O(e,T,t)}}function j(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=v(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,e),
n._dispatchInstances=f(n._dispatchInstances,t))}function k(t){t&&t.dispatchConfig.registrationName&&j(t._targetInst,null,t)}function C(t){h(t,S)}function A(t,e,n,r){if(n&&r)t:{for(var i=n,o=r,a=0,s=i;s;s=x(s))a++;s=0;for(var u=o;u;u=x(u))s++;for(;0<a-s;)i=x(i),a--;for(;0<s-a;)o=x(o),s--;for(;a--;){if(i===o||i===o.alternate)break t;i=x(i),o=x(o)}i=null}else i=null;for(o=i,i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=x(n)
;for(n=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)n.push(r),r=x(r);for(r=0;r<i.length;r++)j(i[r],"bubbled",t);for(t=n.length;0<t--;)j(n[t],"captured",e)}function P(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function M(t){if(ui[t])return ui[t];if(!si[t])return t;var e,n=si[t];for(e in n)if(n.hasOwnProperty(e)&&e in ci)return ui[t]=n[e];return t}function D(){
return!gi&&Nr.canUseDOM&&(gi="textContent"in document.documentElement?"textContent":"innerText"),gi}function I(){if(vi._fallbackText)return vi._fallbackText;var t,e,n=vi._startText,r=n.length,i=N(),o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return vi._fallbackText=i.slice(t,1<e?1-e:void 0),vi._fallbackText}function N(){return"value"in vi._root?vi._root.value:vi._root[D()]}function R(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,
t=this.constructor.Interface;for(var i in t)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Lr.thatReturnsTrue:Lr.thatReturnsFalse,this.isPropagationStopped=Lr.thatReturnsFalse,this}function L(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function U(t){t instanceof this||r("223"),t.destructor(),
10>this.eventPool.length&&this.eventPool.push(t)}function F(t){t.eventPool=[],t.getPooled=L,t.release=U}function B(t,e){switch(t){case"keyup":return-1!==_i.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function z(t){return t=t.detail,"object"==typeof t&&"data"in t?t.data:null}function q(t,e){switch(t){case"compositionend":return z(e);case"keypress":return 32!==e.which?null:(ki=!0,Ei);case"textInput":return t=e.data,
t===Ei&&ki?null:t;default:return null}}function H(t,e){if(Ci)return"compositionend"===t||!xi&&B(t,e)?(t=I(),vi._root=null,vi._startText=null,vi._fallbackText=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Si?null:e.data;default:return null}}function W(t){if(t=Qr(t)){
Pi&&"function"==typeof Pi.restoreControlledState||r("194");var e=$r(t.stateNode);Pi.restoreControlledState(t.stateNode,t.type,e)}}function V(t){Di?Ii?Ii.push(t):Ii=[t]:Di=t}function Y(){return null!==Di||null!==Ii}function G(){if(Di){var t=Di,e=Ii;if(Ii=Di=null,W(t),e)for(t=0;t<e.length;t++)W(e[t])}}function X(t,e){return t(e)}function K(t,e,n){return t(e,n)}function $(){}function Q(t,e){if(Ri)return t(e);Ri=!0;try{return X(t,e)}finally{Ri=!1,Y()&&($(),G())}}function J(t){
var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Li[t.type]:"textarea"===e}function Z(t){return t=t.target||window,t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function tt(t,e){return!(!Nr.canUseDOM||e&&!("addEventListener"in document))&&(t="on"+t,e=t in document,e||(e=document.createElement("div"),e.setAttribute(t,"return;"),e="function"==typeof e[t]),e)}function et(t){var e=t.type
;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function nt(t){var e=et(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{
getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function rt(t){t._valueTracker||(t._valueTracker=nt(t))}function it(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=et(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function ot(t){return null===t||void 0===t?null:(t=$i&&t[$i]||t["@@iterator"],"function"==typeof t?t:null)}function at(t){var e=t.type
;if("function"==typeof e)return e.displayName||e.name;if("string"==typeof e)return e;switch(e){case Gi:return"AsyncMode";case Yi:return"Context.Consumer";case qi:return"ReactFragment";case zi:return"ReactPortal";case Wi:return"Profiler("+t.pendingProps.id+")";case Vi:return"Context.Provider";case Hi:return"StrictMode";case Ki:return"Timeout"}if("object"==typeof e&&null!==e)switch(e.$$typeof){case Xi:return t=e.render.displayName||e.render.name||"",""!==t?"ForwardRef("+t+")":"ForwardRef"}
return null}function st(t){var e="";do{t:switch(t.tag){case 0:case 1:case 2:case 5:var n=t._debugOwner,r=t._debugSource,i=at(t),o=null;n&&(o=at(n)),n=r,i="\n    in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break t;default:i=""}e+=i,t=t.return}while(t);return e}function ut(t){return!!Zi.hasOwnProperty(t)||!Ji.hasOwnProperty(t)&&(Qi.test(t)?Zi[t]=!0:(Ji[t]=!0,!1))}function ct(t,e,n,r){if(null!==n&&0===n.type)return!1
;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}function lt(t,e,n,r){if(null===e||void 0===e||ct(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ft(t,e,n,r,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,
this.mustUseProperty=n,this.propertyName=t,this.type=e}function ht(t){return t[1].toUpperCase()}function pt(t,e,n,r){var i=to.hasOwnProperty(e)?to[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(lt(e,n,i,r)&&(n=null),r||null===i?ut(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(i=i.type,
n=3===i||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function dt(t,e){var n=e.checked;return Rr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function gt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=wt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}
}function vt(t,e){null!=(e=e.checked)&&pt(t,"checked",e,!1)}function yt(t,e){vt(t,e);var n=wt(e.value);null!=n&&("number"===e.type?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n)),e.hasOwnProperty("value")?bt(t,e.type,n):e.hasOwnProperty("defaultValue")&&bt(t,e.type,wt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function mt(t,e){
(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue"))&&(""===t.value&&(t.value=""+t._wrapperState.initialValue),t.defaultValue=""+t._wrapperState.initialValue),e=t.name,""!==e&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function bt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function wt(t){switch(typeof t){
case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function _t(t,e,n){return t=R.getPooled(no.change,t,e,n),t.type="change",V(n),C(t),t}function xt(t){y(t,!1)}function Ot(t){if(it(w(t)))return t}function Tt(t,e){if("change"===t)return e}function St(){ro&&(ro.detachEvent("onpropertychange",Et),io=ro=null)}function Et(t){"value"===t.propertyName&&Ot(io)&&(t=_t(io,t,Z(t)),Q(xt,t))}function jt(t,e,n){"focus"===t?(St(),ro=e,io=n,
ro.attachEvent("onpropertychange",Et)):"blur"===t&&St()}function kt(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Ot(io)}function Ct(t,e){if("click"===t)return Ot(e)}function At(t,e){if("input"===t||"change"===t)return Ot(e)}function Pt(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=uo[t])&&!!e[t]}function Mt(){return Pt}function Dt(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1
;for(;e.return;)if(e=e.return,0!=(2&e.effectTag))return 1}return 3===e.tag?2:3}function It(t){2!==Dt(t)&&r("188")}function Nt(t){var e=t.alternate;if(!e)return e=Dt(t),3===e&&r("188"),1===e?null:t;for(var n=t,i=e;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var s=o.child;s;){if(s===n)return It(o),t;if(s===i)return It(o),e;s=s.sibling}r("188")}if(n.return!==i.return)n=o,i=a;else{s=!1;for(var u=o.child;u;){if(u===n){s=!0,n=o,i=a;break}if(u===i){s=!0,i=o,n=a
;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,i=o;break}if(u===i){s=!0,i=a,n=o;break}u=u.sibling}s||r("189")}}n.alternate!==i&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?t:e}function Rt(t){if(!(t=Nt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Lt(t){
if(!(t=Nt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child&&4!==e.tag)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Ut(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function Ft(t,e){var n=t[0];t=t[1];var r="on"+(t[0].toUpperCase()+t.slice(1));e={phasedRegistrationNames:{
bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},So[t]=e,Eo[n]=e}function Bt(t){var e=t.targetInst;do{if(!e){t.ancestors.push(e);break}var n;for(n=e;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;t.ancestors.push(e),e=b(n)}while(e);for(n=0;n<t.ancestors.length;n++)e=t.ancestors[n],m(t.topLevelType,e,t.nativeEvent,Z(t.nativeEvent))}function zt(t){Ao=!!t}function qt(t,e){if(!e)return null;var n=(ko(t)?Wt:Vt).bind(null,t);e.addEventListener(t,n,!1)}
function Ht(t,e){if(!e)return null;var n=(ko(t)?Wt:Vt).bind(null,t);e.addEventListener(t,n,!0)}function Wt(t,e){K(Vt,t,e)}function Vt(t,e){if(Ao){var n=Z(e);if(n=b(n),null===n||"number"!=typeof n.tag||2===Dt(n)||(n=null),Co.length){var r=Co.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{Q(Bt,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>Co.length&&Co.push(t)}}}
function Yt(t){return Object.prototype.hasOwnProperty.call(t,Io)||(t[Io]=Do++,Mo[t[Io]]={}),Mo[t[Io]]}function Gt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Xt(t,e){var n=Gt(t);t=0;for(var r;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Gt(n)}}function Kt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase()
;return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function $t(t,e){if(Bo||null==Lo||Lo!==Ur())return null;var n=Lo;return"selectionStart"in n&&Kt(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,Fo&&Fr(Fo,n)?null:(Fo=n,t=R.getPooled(Ro.select,Uo,t,e),t.type="select",t.target=Lo,C(t),t)}function Qt(t){
var e="";return Ir.Children.forEach(t,function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(e+=t)}),e}function Jt(t,e){return t=Rr({children:void 0},e),(e=Qt(e.children))&&(t.children=e),t}function Zt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+n,e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,
void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function te(t,e){var n=e.value;t._wrapperState={initialValue:null!=n?n:e.defaultValue,wasMultiple:!!e.multiple}}function ee(t,e){return null!=e.dangerouslySetInnerHTML&&r("91"),Rr({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ne(t,e){var n=e.value;null==n&&(n=e.defaultValue,e=e.children,null!=e&&(null!=n&&r("92"),Array.isArray(e)&&(1>=e.length||r("93"),
e=e[0]),n=""+e),null==n&&(n="")),t._wrapperState={initialValue:""+n}}function re(t,e){var n=e.value;null!=n&&(n=""+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function ie(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function oe(t){switch(t){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 ae(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?oe(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function se(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function ue(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=e[n]
;i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||ca.hasOwnProperty(i)&&ca[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}function ce(t,e,n){e&&(fa[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&r("137",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&r("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||r("61")),null!=e.style&&"object"!=typeof e.style&&r("62",n()))}function le(t,e){
if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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}}function fe(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=Yt(t);e=Xr[e];for(var r=0;r<e.length;r++){var i=e[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Ht("scroll",t);break;case"focus":case"blur":Ht("focus",t),
Ht("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":tt(i,!0)&&Ht(i,t);break;case"invalid":case"submit":case"reset":break;default:-1===di.indexOf(i)&&qt(i,t)}n[i]=!0}}}function he(t,e,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===aa.html&&(r=oe(t)),r===aa.html?"script"===t?(t=n.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):t="string"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(r,t),t}function pe(t,e){
return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function de(t,e,n,r){var i=le(e,n);switch(e){case"iframe":case"object":qt("load",t);var o=n;break;case"video":case"audio":for(o=0;o<di.length;o++)qt(di[o],t);o=n;break;case"source":qt("error",t),o=n;break;case"img":case"image":case"link":qt("error",t),qt("load",t),o=n;break;case"form":qt("reset",t),qt("submit",t),o=n;break;case"details":qt("toggle",t),o=n;break;case"input":gt(t,n),o=dt(t,n),qt("invalid",t),fe(r,"onChange");break
;case"option":o=Jt(t,n);break;case"select":te(t,n),o=Rr({},n,{value:void 0}),qt("invalid",t),fe(r,"onChange");break;case"textarea":ne(t,n),o=ee(t,n),qt("invalid",t),fe(r,"onChange");break;default:o=n}ce(e,o,ha);var a,s=o;for(a in s)if(s.hasOwnProperty(a)){var u=s[a]
;"style"===a?ue(t,u,ha):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&ua(t,u):"children"===a?"string"==typeof u?("textarea"!==e||""!==u)&&se(t,u):"number"==typeof u&&se(t,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Gr.hasOwnProperty(a)?null!=u&&fe(r,a):null!=u&&pt(t,a,u,i))}switch(e){case"input":rt(t),mt(t,n);break;case"textarea":rt(t),ie(t,n);break;case"option":null!=n.value&&t.setAttribute("value",n.value);break;case"select":
t.multiple=!!n.multiple,e=n.value,null!=e?Zt(t,!!n.multiple,e,!1):null!=n.defaultValue&&Zt(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=Lr)}}function ge(t,e,n,r,i){var o=null;switch(e){case"input":n=dt(t,n),r=dt(t,r),o=[];break;case"option":n=Jt(t,n),r=Jt(t,r),o=[];break;case"select":n=Rr({},n,{value:void 0}),r=Rr({},r,{value:void 0}),o=[];break;case"textarea":n=ee(t,n),r=ee(t,r),o=[];break;default:
"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(t.onclick=Lr)}ce(e,r,ha),e=t=void 0;var a=null;for(t in n)if(!r.hasOwnProperty(t)&&n.hasOwnProperty(t)&&null!=n[t])if("style"===t){var s=n[t];for(e in s)s.hasOwnProperty(e)&&(a||(a={}),a[e]="")}else"dangerouslySetInnerHTML"!==t&&"children"!==t&&"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&"autoFocus"!==t&&(Gr.hasOwnProperty(t)?o||(o=[]):(o=o||[]).push(t,null));for(t in r){var u=r[t];if(s=null!=n?n[t]:void 0,
r.hasOwnProperty(t)&&u!==s&&(null!=u||null!=s))if("style"===t)if(s){for(e in s)!s.hasOwnProperty(e)||u&&u.hasOwnProperty(e)||(a||(a={}),a[e]="");for(e in u)u.hasOwnProperty(e)&&s[e]!==u[e]&&(a||(a={}),a[e]=u[e])}else a||(o||(o=[]),o.push(t,a)),a=u;else"dangerouslySetInnerHTML"===t?(u=u?u.__html:void 0,s=s?s.__html:void 0,
null!=u&&s!==u&&(o=o||[]).push(t,""+u)):"children"===t?s===u||"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(t,""+u):"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&(Gr.hasOwnProperty(t)?(null!=u&&fe(i,t),o||s===u||(o=[])):(o=o||[]).push(t,u))}return a&&(o=o||[]).push("style",a),o}function ve(t,e,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&vt(t,i),le(n,r),r=le(n,i);for(var o=0;o<e.length;o+=2){var a=e[o],s=e[o+1]
;"style"===a?ue(t,s,ha):"dangerouslySetInnerHTML"===a?ua(t,s):"children"===a?se(t,s):pt(t,a,s,r)}switch(n){case"input":yt(t,i);break;case"textarea":re(t,i);break;case"select":t._wrapperState.initialValue=void 0,e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,n=i.value,null!=n?Zt(t,!!i.multiple,n,!1):e!==!!i.multiple&&(null!=i.defaultValue?Zt(t,!!i.multiple,i.defaultValue,!0):Zt(t,!!i.multiple,i.multiple?[]:"",!1))}}function ye(t,e,n,r,i){switch(e){case"iframe":
case"object":qt("load",t);break;case"video":case"audio":for(r=0;r<di.length;r++)qt(di[r],t);break;case"source":qt("error",t);break;case"img":case"image":case"link":qt("error",t),qt("load",t);break;case"form":qt("reset",t),qt("submit",t);break;case"details":qt("toggle",t);break;case"input":gt(t,n),qt("invalid",t),fe(i,"onChange");break;case"select":te(t,n),qt("invalid",t),fe(i,"onChange");break;case"textarea":ne(t,n),qt("invalid",t),fe(i,"onChange")}ce(e,n,ha),r=null
;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];"children"===o?"string"==typeof a?t.textContent!==a&&(r=["children",a]):"number"==typeof a&&t.textContent!==""+a&&(r=["children",""+a]):Gr.hasOwnProperty(o)&&null!=a&&fe(i,o)}switch(e){case"input":rt(t),mt(t,n);break;case"textarea":rt(t),ie(t,n);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(t.onclick=Lr)}return r}function me(t,e){return t.nodeValue!==e}function be(t,e){switch(t){case"button":case"input":
case"select":case"textarea":return!!e.autoFocus}return!1}function we(t,e){return"textarea"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&"string"==typeof e.dangerouslySetInnerHTML.__html}function _e(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function xe(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function Oe(t){return{
current:t}}function Te(t){0>wa||(t.current=ba[wa],ba[wa]=null,wa--)}function Se(t,e){wa++,ba[wa]=t.current,t.current=e}function Ee(t){return ke(t)?Oa:_a.current}function je(t,e){var n=t.type.contextTypes;if(!n)return zr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}
function ke(t){return 2===t.tag&&null!=t.type.childContextTypes}function Ce(t){ke(t)&&(Te(xa,t),Te(_a,t))}function Ae(t){Te(xa,t),Te(_a,t)}function Pe(t,e,n){_a.current!==zr&&r("168"),Se(_a,e,t),Se(xa,n,t)}function Me(t,e){var n=t.stateNode,i=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var o in n)o in i||r("108",at(t)||"Unknown",o);return Rr({},e,n)}function De(t){if(!ke(t))return!1;var e=t.stateNode
;return e=e&&e.__reactInternalMemoizedMergedChildContext||zr,Oa=_a.current,Se(_a,e,t),Se(xa,xa.current,t),!0}function Ie(t,e){var n=t.stateNode;if(n||r("169"),e){var i=Me(t,Oa);n.__reactInternalMemoizedMergedChildContext=i,Te(xa,t),Te(_a,t),Se(_a,i,t)}else Te(xa,t);Se(xa,e,t)}function Ne(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=e,this.memoizedState=this.updateQueue=this.memoizedProps=null,
this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Re(t,e,n){var r=t.alternate;return null===r?(r=new Ne(t.tag,e,t.key,t.mode),r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,
r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Le(t,e,n){var i=t.type,o=t.key;if(t=t.props,"function"==typeof i)var a=i.prototype&&i.prototype.isReactComponent?2:0;else if("string"==typeof i)a=5;else switch(i){case qi:return Ue(t.children,e,n,o);case Gi:a=11,e|=3;break;case Hi:a=11,e|=2;break;case Wi:return i=new Ne(15,t,o,4|e),i.type=Wi,i.expirationTime=n,i;case Ki:a=16,e|=2;break;default:t:{switch("object"==typeof i&&null!==i?i.$$typeof:null){case Vi:a=13;break t;case Yi:a=12
;break t;case Xi:a=14;break t;default:r("130",null==i?i:typeof i,"")}a=void 0}}return e=new Ne(a,t,o,e),e.type=i,e.expirationTime=n,e}function Ue(t,e,n,r){return t=new Ne(10,t,r,e),t.expirationTime=n,t}function Fe(t,e,n){return t=new Ne(6,t,null,e),t.expirationTime=n,t}function Be(t,e,n){return e=new Ne(4,null!==t.children?t.children:[],t.key,e),e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ze(t,e,n){
return e=new Ne(3,null,null,e?3:0),t={current:e,containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},e.stateNode=t}function qe(t){return function(e){try{return t(e)}catch(t){}}}function He(t){
if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Ta=qe(function(t){return e.onCommitFiberRoot(n,t)}),Sa=qe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function We(t){"function"==typeof Ta&&Ta(t)}function Ve(t){"function"==typeof Sa&&Sa(t)}function Ye(t){return{expirationTime:0,baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,
lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ge(t){return{expirationTime:t.expirationTime,baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xe(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Ke(t,e,n){
null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e),(0===t.expirationTime||t.expirationTime>n)&&(t.expirationTime=n)}function $e(t,e,n){var r=t.alternate;if(null===r){var i=t.updateQueue,o=null;null===i&&(i=t.updateQueue=Ye(t.memoizedState))}else i=t.updateQueue,o=r.updateQueue,null===i?null===o?(i=t.updateQueue=Ye(t.memoizedState),o=r.updateQueue=Ye(r.memoizedState)):i=t.updateQueue=Ge(o):null===o&&(o=r.updateQueue=Ge(i))
;null===o||i===o?Ke(i,e,n):null===i.lastUpdate||null===o.lastUpdate?(Ke(i,e,n),Ke(o,e,n)):(Ke(i,e,n),o.lastUpdate=e)}function Qe(t,e,n){var r=t.updateQueue;r=null===r?t.updateQueue=Ye(t.memoizedState):Je(t,r),null===r.lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=e:(r.lastCapturedUpdate.next=e,r.lastCapturedUpdate=e),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Je(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=Ge(e)),e}
function Ze(t,e,n,r,i,o){switch(n.tag){case 1:return t=n.payload,"function"==typeof t?t.call(o,r,i):t;case 3:t.effectTag=-1025&t.effectTag|64;case 0:if(t=n.payload,null===(i="function"==typeof t?t.call(o,r,i):t)||void 0===i)break;return Rr({},r,i);case 2:Ea=!0}return r}function tn(t,e,n,r,i){if(Ea=!1,!(0===e.expirationTime||e.expirationTime>i)){e=Je(t,e);for(var o=e.baseState,a=null,s=0,u=e.firstUpdate,c=o;null!==u;){var l=u.expirationTime;l>i?(null===a&&(a=u,o=c),
(0===s||s>l)&&(s=l)):(c=Ze(t,e,u,c,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=u:(e.lastEffect.nextEffect=u,e.lastEffect=u))),u=u.next}for(l=null,u=e.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f>i?(null===l&&(l=u,null===a&&(o=c)),(0===s||s>f)&&(s=f)):(c=Ze(t,e,u,c,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,
null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=u:(e.lastCapturedEffect.nextEffect=u,e.lastCapturedEffect=u))),u=u.next}null===a&&(e.lastUpdate=null),null===l?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===l&&(o=c),e.baseState=o,e.firstUpdate=a,e.firstCapturedUpdate=l,e.expirationTime=s,t.memoizedState=c}}function en(t,e){"function"!=typeof t&&r("191",t),t.call(e)}function nn(t,e,n){
for(null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),t=e.firstEffect,e.firstEffect=e.lastEffect=null;null!==t;){var r=t.callback;null!==r&&(t.callback=null,en(r,n)),t=t.nextEffect}for(t=e.firstCapturedEffect,e.firstCapturedEffect=e.lastCapturedEffect=null;null!==t;)e=t.callback,null!==e&&(t.callback=null,en(e,n)),t=t.nextEffect}function rn(t,e){return{value:t,source:e,
stack:st(e)}}function on(t){var e=t.type._context;Se(Ca,e._changedBits,t),Se(ka,e._currentValue,t),Se(ja,t,t),e._currentValue=t.pendingProps.value,e._changedBits=t.stateNode}function an(t){var e=Ca.current,n=ka.current;Te(ja,t),Te(ka,t),Te(Ca,t),t=t.type._context,t._currentValue=n,t._changedBits=e}function sn(t){return t===Aa&&r("174"),t}function un(t,e){Se(Da,e,t),Se(Ma,t,t),Se(Pa,Aa,t);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ae(null,"");break;default:
n=8===n?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=ae(e,n)}Te(Pa,t),Se(Pa,e,t)}function cn(t){Te(Pa,t),Te(Ma,t),Te(Da,t)}function ln(t){Ma.current===t&&(Te(Pa,t),Te(Ma,t))}function fn(t,e,n){var r=t.memoizedState;e=e(n,r),r=null===e||void 0===e?r:Rr({},r,e),t.memoizedState=r,null!==(t=t.updateQueue)&&0===t.expirationTime&&(t.baseState=r)}function hn(t,e,n,r,i,o){var a=t.stateNode;return t=t.type,
"function"==typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!Fr(e,n)||!Fr(r,i))}function pn(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ia.enqueueReplaceState(e,e.state,null)}function dn(t,e){var n=t.type,r=t.stateNode,i=t.pendingProps,o=Ee(t);r.props=i,
r.state=t.memoizedState,r.refs=zr,r.context=je(t,o),o=t.updateQueue,null!==o&&(tn(t,o,i,r,e),r.state=t.memoizedState),o=t.type.getDerivedStateFromProps,"function"==typeof o&&(fn(t,o,i),r.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),
"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&Ia.enqueueReplaceState(r,r.state,null),null!==(o=t.updateQueue)&&(tn(t,o,i,r,e),r.state=t.memoizedState)),"function"==typeof r.componentDidMount&&(t.effectTag|=4)}function gn(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var i=void 0;n&&(2!==n.tag&&r("110"),i=n.stateNode),i||r("147",t);var o=""+t
;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===o?e.ref:(e=function(t){var e=i.refs===zr?i.refs={}:i.refs;null===t?delete e[o]:e[o]=t},e._stringRef=o,e)}"string"!=typeof t&&r("148"),n._owner||r("254",t)}return t}function vn(t,e){"textarea"!==t.type&&r("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function yn(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,
e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e,n){return t=Re(t,e,n),t.index=0,t.sibling=null,t}function a(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index,r<n?(e.effectTag=2,n):r):(e.effectTag=2,n):n}function s(e){
return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?(e=Fe(n,t.mode,r),e.return=t,e):(e=o(e,n,r),e.return=t,e)}function c(t,e,n,r){return null!==e&&e.type===n.type?(r=o(e,n.props,r),r.ref=gn(t,e,n),r.return=t,r):(r=Le(n,t.mode,r),r.ref=gn(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?(e=Be(n,t.mode,r),e.return=t,e):(e=o(e,n.children||[],r),
e.return=t,e)}function f(t,e,n,r,i){return null===e||10!==e.tag?(e=Ue(n,t.mode,r,i),e.return=t,e):(e=o(e,n,r),e.return=t,e)}function h(t,e,n){if("string"==typeof e||"number"==typeof e)return e=Fe(""+e,t.mode,n),e.return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case Bi:return n=Le(e,t.mode,n),n.ref=gn(t,null,e),n.return=t,n;case zi:return e=Be(e,t.mode,n),e.return=t,e}if(Na(e)||ot(e))return e=Ue(e,t.mode,n,null),e.return=t,e;vn(t,e)}return null}function p(t,e,n,r){
var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Bi:return n.key===i?n.type===qi?f(t,e,n.props.children,r,i):c(t,e,n,r):null;case zi:return n.key===i?l(t,e,n,r):null}if(Na(n)||ot(n))return null!==i?null:f(t,e,n,r,null);vn(t,n)}return null}function d(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return t=t.get(n)||null,u(e,t,""+r,i);if("object"==typeof r&&null!==r){
switch(r.$$typeof){case Bi:return t=t.get(null===r.key?n:r.key)||null,r.type===qi?f(e,t,r.props.children,i,r.key):c(e,t,r,i);case zi:return t=t.get(null===r.key?n:r.key)||null,l(e,t,r,i)}if(Na(r)||ot(r))return t=t.get(n)||null,f(e,t,r,i,null);vn(e,r)}return null}function g(r,o,s,u){for(var c=null,l=null,f=o,g=o=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=p(r,f,s[g],u);if(null===y){null===f&&(f=v);break}t&&f&&null===y.alternate&&e(r,f),o=a(y,o,g),
null===l?c=y:l.sibling=y,l=y,f=v}if(g===s.length)return n(r,f),c;if(null===f){for(;g<s.length;g++)(f=h(r,s[g],u))&&(o=a(f,o,g),null===l?c=f:l.sibling=f,l=f);return c}for(f=i(r,f);g<s.length;g++)(v=d(f,r,g,s[g],u))&&(t&&null!==v.alternate&&f.delete(null===v.key?g:v.key),o=a(v,o,g),null===l?c=v:l.sibling=v,l=v);return t&&f.forEach(function(t){return e(r,t)}),c}function v(o,s,u,c){var l=ot(u);"function"!=typeof l&&r("150"),null==(u=l.call(u))&&r("151")
;for(var f=l=null,g=s,v=s=0,y=null,m=u.next();null!==g&&!m.done;v++,m=u.next()){g.index>v?(y=g,g=null):y=g.sibling;var b=p(o,g,m.value,c);if(null===b){g||(g=y);break}t&&g&&null===b.alternate&&e(o,g),s=a(b,s,v),null===f?l=b:f.sibling=b,f=b,g=y}if(m.done)return n(o,g),l;if(null===g){for(;!m.done;v++,m=u.next())null!==(m=h(o,m.value,c))&&(s=a(m,s,v),null===f?l=m:f.sibling=m,f=m);return l}for(g=i(o,g);!m.done;v++,
m=u.next())null!==(m=d(g,o,v,m.value,c))&&(t&&null!==m.alternate&&g.delete(null===m.key?v:m.key),s=a(m,s,v),null===f?l=m:f.sibling=m,f=m);return t&&g.forEach(function(t){return e(o,t)}),l}return function(t,i,a,u){"object"==typeof a&&null!==a&&a.type===qi&&null===a.key&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case Bi:t:{var l=a.key;for(c=i;null!==c;){if(c.key===l){if(10===c.tag?a.type===qi:c.type===a.type){n(t,c.sibling),
i=o(c,a.type===qi?a.props.children:a.props,u),i.ref=gn(t,c,a),i.return=t,t=i;break t}n(t,c);break}e(t,c),c=c.sibling}a.type===qi?(i=Ue(a.props.children,t.mode,u,a.key),i.return=t,t=i):(u=Le(a,t.mode,u),u.ref=gn(t,i,a),u.return=t,t=u)}return s(t);case zi:t:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(t,i.sibling),i=o(i,a.children||[],u),i.return=t,t=i;break t}n(t,i);break}e(t,i),i=i.sibling}
i=Be(a,t.mode,u),i.return=t,t=i}return s(t)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(t,i.sibling),i=o(i,a,u),i.return=t,t=i):(n(t,i),i=Fe(a,t.mode,u),i.return=t,t=i),s(t);if(Na(a))return g(t,i,a,u);if(ot(a))return v(t,i,a,u);if(c&&vn(t,a),void 0===a)switch(t.tag){case 2:case 1:u=t.type,r("152",u.displayName||u.name||"Component")}return n(t,i)}}function mn(t,e){var n=new Ne(5,null,null,0);n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,
null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function bn(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function wn(t){if(Ba){var e=Fa;if(e){var n=e;if(!bn(t,e)){if(!(e=_e(n))||!bn(t,e))return t.effectTag|=2,Ba=!1,void(Ua=t);mn(Ua,n)}Ua=t,Fa=xe(e)
}else t.effectTag|=2,Ba=!1,Ua=t}}function _n(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;Ua=t}function xn(t){if(t!==Ua)return!1;if(!Ba)return _n(t),Ba=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!we(e,t.memoizedProps))for(e=Fa;e;)mn(t,e),e=_e(e);return _n(t),Fa=Ua?_e(t.stateNode):null,!0}function On(){Fa=Ua=null,Ba=!1}function Tn(t,e,n){Sn(t,e,n,e.expirationTime)}function Sn(t,e,n,r){e.child=null===t?La(e,null,n,r):Ra(e,t.child,n,r)}function En(t,e){var n=e.ref
;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function jn(t,e,n,r,i){En(t,e);var o=0!=(64&e.effectTag);if(!n&&!o)return r&&Ie(e,!1),Pn(t,e);n=e.stateNode,Ui.current=e;var a=o?null:n.render();return e.effectTag|=1,o&&(Sn(t,e,null,i),e.child=null),Sn(t,e,a,i),e.memoizedState=n.state,e.memoizedProps=n.props,r&&Ie(e,!0),e.child}function kn(t){var e=t.stateNode;e.pendingContext?Pe(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Pe(t,e.context,!1),un(t,e.containerInfo)}
function Cn(t,e,n,r){var i=t.child;for(null!==i&&(i.return=t);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===e&&0!=(o&n)){for(o=i;null!==o;){var a=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===t.type?null:i.child;break;default:
o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===t){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function An(t,e,n){var r=e.type._context,i=e.pendingProps,o=e.memoizedProps,a=!0;if(xa.current)a=!1;else if(o===i)return e.stateNode=0,on(e),Pn(t,e);var s=i.value;if(e.memoizedProps=i,null===o)s=1073741823;else if(o.value===i.value){if(o.children===i.children&&a)return e.stateNode=0,on(e),Pn(t,e);s=0}else{var u=o.value
;if(u===s&&(0!==u||1/u==1/s)||u!==u&&s!==s){if(o.children===i.children&&a)return e.stateNode=0,on(e),Pn(t,e);s=0}else if(s="function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,s):1073741823,0===(s|=0)){if(o.children===i.children&&a)return e.stateNode=0,on(e),Pn(t,e)}else Cn(e,r,s,n)}return e.stateNode=s,on(e),Tn(t,e,i.children),e.child}function Pn(t,e){if(null!==t&&e.child!==t.child&&r("153"),null!==e.child){t=e.child;var n=Re(t,t.pendingProps,t.expirationTime);for(e.child=n,
n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=Re(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function Mn(t,e,n){if(0===e.expirationTime||e.expirationTime>n){switch(e.tag){case 3:kn(e);break;case 2:De(e);break;case 4:un(e,e.stateNode.containerInfo);break;case 13:on(e)}return null}switch(e.tag){case 0:null!==t&&r("155");var i=e.type,o=e.pendingProps,a=Ee(e);return a=je(e,a),i=i(o,a),e.effectTag|=1,
"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(a=e.type,e.tag=2,e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,a=a.getDerivedStateFromProps,"function"==typeof a&&fn(e,a,o),o=De(e),i.updater=Ia,e.stateNode=i,i._reactInternalFiber=e,dn(e,n),t=jn(t,e,!0,o,n)):(e.tag=1,Tn(t,e,i),e.memoizedProps=o,t=e.child),t;case 1:return o=e.type,n=e.pendingProps,xa.current||e.memoizedProps!==n?(i=Ee(e),i=je(e,i),o=o(n,i),e.effectTag|=1,Tn(t,e,o),e.memoizedProps=n,
t=e.child):t=Pn(t,e),t;case 2:if(o=De(e),null===t)if(null===e.stateNode){var s=e.pendingProps,u=e.type;i=Ee(e);var c=2===e.tag&&null!=e.type.contextTypes;a=c?je(e,i):zr,s=new u(s,a),e.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=Ia,e.stateNode=s,s._reactInternalFiber=e,c&&(c=e.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=i,c.__reactInternalMemoizedMaskedChildContext=a),dn(e,n),i=!0}else{u=e.type,i=e.stateNode,c=e.memoizedProps,a=e.pendingProps,i.props=c
;var l=i.context;s=Ee(e),s=je(e,s);var f=u.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(c!==a||l!==s)&&pn(e,i,a,s),Ea=!1;var h=e.memoizedState;l=i.state=h;var p=e.updateQueue;null!==p&&(tn(e,p,a,i,n),l=e.memoizedState),c!==a||h!==l||xa.current||Ea?("function"==typeof f&&(fn(e,f,a),l=e.memoizedState),
(c=Ea||hn(e,c,a,h,l,s))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(e.effectTag|=4)):("function"==typeof i.componentDidMount&&(e.effectTag|=4),e.memoizedProps=a,e.memoizedState=l),i.props=a,i.state=l,i.context=s,
i=c):("function"==typeof i.componentDidMount&&(e.effectTag|=4),i=!1)}else u=e.type,i=e.stateNode,a=e.memoizedProps,c=e.pendingProps,i.props=a,l=i.context,s=Ee(e),s=je(e,s),f=u.getDerivedStateFromProps,(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==c||l!==s)&&pn(e,i,c,s),Ea=!1,l=e.memoizedState,h=i.state=l,p=e.updateQueue,null!==p&&(tn(e,p,c,i,n),h=e.memoizedState),
a!==c||l!==h||xa.current||Ea?("function"==typeof f&&(fn(e,f,c),h=e.memoizedState),(f=Ea||hn(e,a,c,l,h,s))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(c,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(c,h,s)),"function"==typeof i.componentDidUpdate&&(e.effectTag|=4),
"function"==typeof i.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof i.componentDidUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=c,e.memoizedState=h),i.props=c,i.state=h,i.context=s,i=f):("function"!=typeof i.componentDidUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),
"function"!=typeof i.getSnapshotBeforeUpdate||a===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),i=!1);return jn(t,e,i,o,n);case 3:return kn(e),o=e.updateQueue,null!==o?(i=e.memoizedState,i=null!==i?i.element:null,tn(e,o,e.pendingProps,null,n),(o=e.memoizedState.element)===i?(On(),t=Pn(t,e)):(i=e.stateNode,(i=(null===t||null===t.child)&&i.hydrate)&&(Fa=xe(e.stateNode.containerInfo),Ua=e,i=Ba=!0),i?(e.effectTag|=2,e.child=La(e,null,o,n)):(On(),Tn(t,e,o)),t=e.child)):(On(),t=Pn(t,e)),t
;case 5:return sn(Da.current),o=sn(Pa.current),i=ae(o,e.type),o!==i&&(Se(Ma,e,e),Se(Pa,i,e)),null===t&&wn(e),o=e.type,c=e.memoizedProps,i=e.pendingProps,a=null!==t?t.memoizedProps:null,xa.current||c!==i||((c=1&e.mode&&!!i.hidden)&&(e.expirationTime=1073741823),c&&1073741823===n)?(c=i.children,we(o,i)?c=null:a&&we(o,a)&&(e.effectTag|=16),En(t,e),1073741823!==n&&1&e.mode&&i.hidden?(e.expirationTime=1073741823,e.memoizedProps=i,t=null):(Tn(t,e,c),e.memoizedProps=i,t=e.child)):t=Pn(t,e),t;case 6:
return null===t&&wn(e),e.memoizedProps=e.pendingProps,null;case 16:return null;case 4:return un(e,e.stateNode.containerInfo),o=e.pendingProps,xa.current||e.memoizedProps!==o?(null===t?e.child=Ra(e,null,o,n):Tn(t,e,o),e.memoizedProps=o,t=e.child):t=Pn(t,e),t;case 14:return o=e.type.render,n=e.pendingProps,i=e.ref,xa.current||e.memoizedProps!==n||i!==(null!==t?t.ref:null)?(o=o(n,i),Tn(t,e,o),e.memoizedProps=n,t=e.child):t=Pn(t,e),t;case 10:return n=e.pendingProps,
xa.current||e.memoizedProps!==n?(Tn(t,e,n),e.memoizedProps=n,t=e.child):t=Pn(t,e),t;case 11:return n=e.pendingProps.children,xa.current||null!==n&&e.memoizedProps!==n?(Tn(t,e,n),e.memoizedProps=n,t=e.child):t=Pn(t,e),t;case 15:return n=e.pendingProps,e.memoizedProps===n?t=Pn(t,e):(Tn(t,e,n.children),e.memoizedProps=n,t=e.child),t;case 13:return An(t,e,n);case 12:t:if(i=e.type,a=e.pendingProps,c=e.memoizedProps,o=i._currentValue,s=i._changedBits,xa.current||0!==s||c!==a){if(e.memoizedProps=a,
u=a.unstable_observedBits,void 0!==u&&null!==u||(u=1073741823),e.stateNode=u,0!=(s&u))Cn(e,i,s,n);else if(c===a){t=Pn(t,e);break t}n=a.children,n=n(o),e.effectTag|=1,Tn(t,e,n),t=e.child}else t=Pn(t,e);return t;default:r("156")}}function Dn(t){t.effectTag|=4}function In(t,e){var n=e.pendingProps;switch(e.tag){case 1:return null;case 2:return Ce(e),null;case 3:cn(e),Ae(e);var i=e.stateNode;return i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==t&&null!==t.child||(xn(e),
e.effectTag&=-3),za(e),null;case 5:ln(e),i=sn(Da.current);var o=e.type;if(null!==t&&null!=e.stateNode){var a=t.memoizedProps,s=e.stateNode,u=sn(Pa.current);s=ge(s,o,a,n,i),qa(t,e,s,o,a,n,i,u),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!n)return null===e.stateNode&&r("166"),null;if(t=sn(Pa.current),xn(e))n=e.stateNode,o=e.type,a=e.memoizedProps,n[ri]=e,n[ii]=a,i=ye(n,o,a,t,i),e.updateQueue=i,null!==i&&Dn(e);else{t=he(o,n,i,t),t[ri]=e,t[ii]=n;t:for(a=e.child;null!==a;){
if(5===a.tag||6===a.tag)t.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}de(t,o,n,i),be(o,n)&&Dn(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Ha(t,e,t.memoizedProps,n);else{if("string"!=typeof n)return null===e.stateNode&&r("166"),null;i=sn(Da.current),sn(Pa.current),
xn(e)?(i=e.stateNode,n=e.memoizedProps,i[ri]=e,me(i,n)&&Dn(e)):(i=pe(n,i),i[ri]=e,e.stateNode=i)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return cn(e),za(e),null;case 13:return an(e),null;case 12:return null;case 0:r("167");default:r("156")}}function Nn(t,e){var n=e.source;null===e.stack&&null!==n&&st(n),null!==n&&at(n),e=e.value,null!==t&&2===t.tag&&at(t);try{e&&e.suppressReactErrorLogging||console.error(e)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}
}function Rn(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){$n(t,e)}else e.current=null}function Ln(t){switch("function"==typeof Ve&&Ve(t),t.tag){case 2:Rn(t);var e=t.stateNode;if("function"==typeof e.componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){$n(t,e)}break;case 5:Rn(t);break;case 4:Bn(t)}}function Un(t){return 5===t.tag||3===t.tag||4===t.tag}function Fn(t){t:{for(var e=t.return;null!==e;){if(Un(e)){var n=e
;break t}e=e.return}r("160"),n=void 0}var i=e=void 0;switch(n.tag){case 5:e=n.stateNode,i=!1;break;case 3:case 4:e=n.stateNode.containerInfo,i=!0;break;default:r("161")}16&n.effectTag&&(se(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||Un(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){
n=n.stateNode;break t}}for(var o=t;;){if(5===o.tag||6===o.tag)if(n)if(i){var a=e,s=o.stateNode,u=n;8===a.nodeType?a.parentNode.insertBefore(s,u):a.insertBefore(s,u)}else e.insertBefore(o.stateNode,n);else i?(a=e,s=o.stateNode,8===a.nodeType?a.parentNode.insertBefore(s,a):a.appendChild(s)):e.appendChild(o.stateNode);else if(4!==o.tag&&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;o=o.return}
o.sibling.return=o.return,o=o.sibling}}function Bn(t){for(var e=t,n=!1,i=void 0,o=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&r("160"),n.tag){case 5:i=n.stateNode,o=!1;break t;case 3:case 4:i=n.stateNode.containerInfo,o=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag){t:for(var a=e,s=a;;)if(Ln(s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===a)break;for(;null===s.sibling;){if(null===s.return||s.return===a)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}
o?(a=i,s=e.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(e.stateNode)}else if(4===e.tag?i=e.stateNode.containerInfo:Ln(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function zn(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var i=e.memoizedProps;t=null!==t?t.memoizedProps:i
;var o=e.type,a=e.updateQueue;e.updateQueue=null,null!==a&&(n[ii]=i,ve(n,a,o,t,i))}break;case 6:null===e.stateNode&&r("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 15:case 16:break;default:r("163")}}function qn(t,e,n){n=Xe(n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){dr(r),Nn(t,e)},n}function Hn(t,e,n){n=Xe(n),n.tag=3;var r=t.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){
null===is?is=new Set([this]):is.add(this);var n=e.value,r=e.stack;Nn(t,e),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Wn(t,e,n,r,i,o){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=rn(r,n),t=e;do{switch(t.tag){case 3:return t.effectTag|=1024,r=qn(t,r,o),void Qe(t,r,o);case 2:if(e=r,n=t.stateNode,0==(64&t.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===is||!is.has(n)))return t.effectTag|=1024,r=Hn(t,e,o),void Qe(t,r,o)}t=t.return}while(null!==t)
}function Vn(t){switch(t.tag){case 2:Ce(t);var e=t.effectTag;return 1024&e?(t.effectTag=-1025&e|64,t):null;case 3:return cn(t),Ae(t),e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 5:return ln(t),null;case 16:return e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 4:return cn(t),null;case 13:return an(t),null;default:return null}}function Yn(){if(null!==$a)for(var t=$a.return;null!==t;){var e=t;switch(e.tag){case 2:Ce(e);break;case 3:cn(e),Ae(e);break;case 5:ln(e);break
;case 4:cn(e);break;case 13:an(e)}t=t.return}Qa=null,Ja=0,Za=-1,ts=!1,$a=null,rs=!1}function Gn(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(512&t.effectTag)){e=In(e,t,Ja);var i=t;if(1073741823===Ja||1073741823!==i.expirationTime){var o=0;switch(i.tag){case 3:case 2:var a=i.updateQueue;null!==a&&(o=a.expirationTime)}for(a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==e)return e
;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t)),null!==r)return r;if(null===n){rs=!0;break}t=n}else{if(null!==(t=Vn(t,ts,Ja)))return t.effectTag&=511,t;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break
;t=n}}return null}function Xn(t){var e=Mn(t.alternate,t,Ja);return null===e&&(e=Gn(t)),Ui.current=null,e}function Kn(t,e,n){Ka&&r("243"),Ka=!0,e===Ja&&t===Qa&&null!==$a||(Yn(),Qa=t,Ja=e,Za=-1,$a=Re(Qa.current,null,Ja),t.pendingCommitExpirationTime=0);var i=!1;for(ts=!n||Ja<=Va;;){try{if(n)for(;null!==$a&&!pr();)$a=Xn($a);else for(;null!==$a;)$a=Xn($a)}catch(e){if(null===$a)i=!0,dr(e);else{null===$a&&r("271"),n=$a;var o=n.return;if(null===o){i=!0,dr(e);break}Wn(t,o,n,e,ts,Ja,Ya),$a=Gn(n)}}break}
if(Ka=!1,i)return null;if(null===$a){if(rs)return t.pendingCommitExpirationTime=e,t.current.alternate;ts&&r("262"),0<=Za&&setTimeout(function(){var e=t.current.expirationTime;0!==e&&(0===t.remainingExpirationTime||t.remainingExpirationTime<e)&&ir(t,e)},Za),gr(t.current.expirationTime)}return null}function $n(t,e){var n;t:{for(Ka&&!ns&&r("263"),n=t.return;null!==n;){switch(n.tag){case 2:var i=n.stateNode
;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof i.componentDidCatch&&(null===is||!is.has(i))){t=rn(e,t),t=Hn(n,t,1),$e(n,t,1),Zn(n,1),n=void 0;break t}break;case 3:t=rn(e,t),t=qn(n,t,1),$e(n,t,1),Zn(n,1),n=void 0;break t}n=n.return}3===t.tag&&(n=rn(e,t),n=qn(t,n,1),$e(t,n,1),Zn(t,1)),n=void 0}return n}function Qn(){var t=2+25*(1+((tr()-2+500)/25|0));return t<=Ga&&(t=Ga+1),Ga=t}function Jn(t,e){
return t=0!==Xa?Xa:Ka?ns?1:Ja:1&e.mode?bs?2+10*(1+((t-2+15)/10|0)):2+25*(1+((t-2+500)/25|0)):1,bs&&(0===hs||t>hs)&&(hs=t),t}function Zn(t,e){for(;null!==t;){if((0===t.expirationTime||t.expirationTime>e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!Ka&&0!==Ja&&e<Ja&&Yn();var i=n.current.expirationTime;Ka&&!ns&&Qa===n||ir(n,i),xs>_s&&r("185")}t=t.return
}}function tr(){return Ya=va()-Wa,Va=2+(Ya/10|0)}function er(t){var e=Xa;Xa=2+25*(1+((tr()-2+500)/25|0));try{return t()}finally{Xa=e}}function nr(t,e,n,r,i){var o=Xa;Xa=1;try{return t(e,n,r,i)}finally{Xa=o}}function rr(t){if(0!==ss){if(t>ss)return;ma(us)}var e=va()-Wa;ss=t,us=ya(ar,{timeout:10*(t-2)-e})}function ir(t,e){if(null===t.nextScheduledRoot)t.remainingExpirationTime=e,null===as?(os=as=t,t.nextScheduledRoot=t):(as=as.nextScheduledRoot=t,as.nextScheduledRoot=os);else{
var n=t.remainingExpirationTime;(0===n||e<n)&&(t.remainingExpirationTime=e)}cs||(ys?ms&&(ls=t,fs=1,fr(t,1,!1)):1===e?sr():rr(e))}function or(){var t=0,e=null;if(null!==as)for(var n=as,i=os;null!==i;){var o=i.remainingExpirationTime;if(0===o){if((null===n||null===as)&&r("244"),i===i.nextScheduledRoot){os=as=i.nextScheduledRoot=null;break}if(i===os)os=o=i.nextScheduledRoot,as.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===as){as=n,as.nextScheduledRoot=os,i.nextScheduledRoot=null;break}
n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===t||o<t)&&(t=o,e=i),i===as)break;n=i,i=i.nextScheduledRoot}}n=ls,null!==n&&n===e&&1===t?xs++:xs=0,ls=e,fs=t}function ar(t){ur(0,!0,t)}function sr(){ur(1,!1,null)}function ur(t,e,n){if(vs=n,or(),e)for(;null!==ls&&0!==fs&&(0===t||t>=fs)&&(!ps||tr()>=fs);)tr(),fr(ls,fs,!ps),or();else for(;null!==ls&&0!==fs&&(0===t||t>=fs);)fr(ls,fs,!1),or();null!==vs&&(ss=0,us=-1),0!==fs&&rr(fs),vs=null,ps=!1,lr()}
function cr(t,e){cs&&r("253"),ls=t,fs=e,fr(t,e,!1),sr(),lr()}function lr(){if(xs=0,null!==ws){var t=ws;ws=null;for(var e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){ds||(ds=!0,gs=t)}}}if(ds)throw t=gs,gs=null,ds=!1,t}function fr(t,e,n){cs&&r("245"),cs=!0,n?(n=t.finishedWork,null!==n?hr(t,n,e):(t.finishedWork=null,null!==(n=Kn(t,e,!0))&&(pr()?t.finishedWork=n:hr(t,n,e)))):(n=t.finishedWork,null!==n?hr(t,n,e):(t.finishedWork=null,null!==(n=Kn(t,e,!1))&&hr(t,n,e))),cs=!1}
function hr(t,e,n){var i=t.firstBatch;if(null!==i&&i._expirationTime<=n&&(null===ws?ws=[i]:ws.push(i),i._defer))return t.finishedWork=e,void(t.remainingExpirationTime=0);if(t.finishedWork=null,ns=Ka=!0,n=e.stateNode,n.current===e&&r("177"),i=n.pendingCommitExpirationTime,0===i&&r("261"),n.pendingCommitExpirationTime=0,tr(),Ui.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var o=e.firstEffect}else o=e;else o=e.firstEffect;da=Ao;var a=Ur();if(Kt(a)){
if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else t:{var u=window.getSelection&&window.getSelection();if(u&&0!==u.rangeCount){s=u.anchorNode;var c=u.anchorOffset,l=u.focusNode;u=u.focusOffset;try{s.nodeType,l.nodeType}catch(t){s=null;break t}var f=0,h=-1,p=-1,d=0,g=0,v=a,y=null;e:for(;;){for(var m;v!==s||0!==c&&3!==v.nodeType||(h=f+c),v!==l||0!==u&&3!==v.nodeType||(p=f+u),3===v.nodeType&&(f+=v.nodeValue.length),null!==(m=v.firstChild);)y=v,v=m;for(;;){
if(v===a)break e;if(y===s&&++d===c&&(h=f),y===l&&++g===u&&(p=f),null!==(m=v.nextSibling))break;v=y,y=v.parentNode}v=m}s=-1===h||-1===p?null:{start:h,end:p}}else s=null}s=s||{start:0,end:0}}else s=null;for(ga={focusedElem:a,selectionRange:s},zt(!1),es=o;null!==es;){a=!1,s=void 0;try{for(;null!==es;){if(256&es.effectTag){var b=es.alternate;switch(c=es,c.tag){case 2:if(256&c.effectTag&&null!==b){var w=b.memoizedProps,_=b.memoizedState,x=c.stateNode;x.props=c.memoizedProps,x.state=c.memoizedState
;var O=x.getSnapshotBeforeUpdate(w,_);x.__reactInternalSnapshotBeforeUpdate=O}break;case 3:case 5:case 6:case 4:break;default:r("163")}}es=es.nextEffect}}catch(t){a=!0,s=t}a&&(null===es&&r("178"),$n(es,s),null!==es&&(es=es.nextEffect))}for(es=o;null!==es;){b=!1,w=void 0;try{for(;null!==es;){var T=es.effectTag;if(16&T&&se(es.stateNode,""),128&T){var S=es.alternate;if(null!==S){var E=S.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(14&T){case 2:Fn(es),es.effectTag&=-3;break
;case 6:Fn(es),es.effectTag&=-3,zn(es.alternate,es);break;case 4:zn(es.alternate,es);break;case 8:_=es,Bn(_),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}es=es.nextEffect}}catch(t){b=!0,w=t}b&&(null===es&&r("178"),$n(es,w),null!==es&&(es=es.nextEffect))}if(E=ga,S=Ur(),T=E.focusedElem,b=E.selectionRange,S!==T&&Br(document.documentElement,T)){Kt(T)&&(S=b.start,E=b.end,void 0===E&&(E=S),"selectionStart"in T?(T.selectionStart=S,
T.selectionEnd=Math.min(E,T.value.length)):window.getSelection&&(S=window.getSelection(),w=T[D()].length,E=Math.min(b.start,w),b=void 0===b.end?E:Math.min(b.end,w),!S.extend&&E>b&&(w=b,b=E,E=w),w=Xt(T,E),_=Xt(T,b),w&&_&&(1!==S.rangeCount||S.anchorNode!==w.node||S.anchorOffset!==w.offset||S.focusNode!==_.node||S.focusOffset!==_.offset)&&(x=document.createRange(),x.setStart(w.node,w.offset),S.removeAllRanges(),E>b?(S.addRange(x),S.extend(_.node,_.offset)):(x.setEnd(_.node,_.offset),
S.addRange(x))))),S=[];for(E=T;E=E.parentNode;)1===E.nodeType&&S.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(T.focus(),T=0;T<S.length;T++)E=S[T],E.element.scrollLeft=E.left,E.element.scrollTop=E.top}for(ga=null,zt(da),da=null,n.current=e,es=o;null!==es;){o=!1,T=void 0;try{for(S=i;null!==es;){var j=es.effectTag;if(36&j){var k=es.alternate;switch(E=es,b=S,E.tag){case 2:var C=E.stateNode;if(4&E.effectTag)if(null===k)C.props=E.memoizedProps,C.state=E.memoizedState,
C.componentDidMount();else{var A=k.memoizedProps,P=k.memoizedState;C.props=E.memoizedProps,C.state=E.memoizedState,C.componentDidUpdate(A,P,C.__reactInternalSnapshotBeforeUpdate)}var M=E.updateQueue;null!==M&&(C.props=E.memoizedProps,C.state=E.memoizedState,nn(E,M,C,b));break;case 3:var I=E.updateQueue;if(null!==I){if(w=null,null!==E.child)switch(E.child.tag){case 5:w=E.child.stateNode;break;case 2:w=E.child.stateNode}nn(E,I,w,b)}break;case 5:var N=E.stateNode
;null===k&&4&E.effectTag&&be(E.type,E.memoizedProps)&&N.focus();break;case 6:case 4:case 15:case 16:break;default:r("163")}}if(128&j){E=void 0;var R=es.ref;if(null!==R){var L=es.stateNode;switch(es.tag){case 5:E=L;break;default:E=L}"function"==typeof R?R(E):R.current=E}}var U=es.nextEffect;es.nextEffect=null,es=U}}catch(t){o=!0,T=t}o&&(null===es&&r("178"),$n(es,T),null!==es&&(es=es.nextEffect))}Ka=ns=!1,"function"==typeof We&&We(e.stateNode),e=n.current.expirationTime,0===e&&(is=null),
t.remainingExpirationTime=e}function pr(){return!(null===vs||vs.timeRemaining()>Os)&&(ps=!0)}function dr(t){null===ls&&r("246"),ls.remainingExpirationTime=0,ds||(ds=!0,gs=t)}function gr(t){null===ls&&r("246"),ls.remainingExpirationTime=t}function vr(t,e){var n=ys;ys=!0;try{return t(e)}finally{(ys=n)||cs||sr()}}function yr(t,e){if(ys&&!ms){ms=!0;try{return t(e)}finally{ms=!1}}return t(e)}function mr(t,e){cs&&r("187");var n=ys;ys=!0;try{return nr(t,e)}finally{ys=n,sr()}}function br(t){var e=ys
;ys=!0;try{nr(t)}finally{(ys=e)||cs||ur(1,!1,null)}}function wr(t,e,n,i,o){var a=e.current;if(n){n=n._reactInternalFiber;var s;t:{for(2===Dt(n)&&2===n.tag||r("170"),s=n;3!==s.tag;){if(ke(s)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}(s=s.return)||r("171")}s=s.stateNode.context}n=ke(n)?Me(n,s):s}else n=zr;return null===e.context?e.context=n:e.pendingContext=n,e=o,o=Xe(i),o.payload={element:t},e=void 0===e?null:e,null!==e&&(o.callback=e),$e(a,o,i),Zn(a,i),i}function _r(t){
var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?r("188"):r("268",Object.keys(t))),t=Rt(e),null===t?null:t.stateNode}function xr(t,e,n,r){var i=e.current;return i=Jn(tr(),i),wr(t,e,n,i,r)}function Or(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Tr(t){var e=t.findFiberByHostInstance;return He(Rr({},t,{findHostInstanceByFiber:function(t){return t=Rt(t),null===t?null:t.stateNode},
findFiberByHostInstance:function(t){return e?e(t):null}}))}function Sr(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:zi,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Er(t){this._expirationTime=Qn(),this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function jr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}
function kr(t,e,n){this._internalRoot=ze(t,e,n)}function Cr(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Ar(t,e){if(e||(e=t?9===t.nodeType?t.documentElement:t.firstChild:null,e=!(!e||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new kr(t,!1,e)}function Pr(t,e,n,i,o){Cr(n)||r("200");var a=n._reactRootContainer;if(a){if("function"==typeof o){var s=o
;o=function(){var t=Or(a._internalRoot);s.call(t)}}null!=t?a.legacy_renderSubtreeIntoContainer(t,e,o):a.render(e,o)}else{if(a=n._reactRootContainer=Ar(n,i),"function"==typeof o){var u=o;o=function(){var t=Or(a._internalRoot);u.call(t)}}yr(function(){null!=t?a.legacy_renderSubtreeIntoContainer(t,e,o):a.render(e,o)})}return Or(a._internalRoot)}function Mr(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Cr(e)||r("200"),Sr(t,e,null,n)}/** @license React v16.4.0
 * react-dom.production.min.js
 *
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var Dr=n(833),Ir=n(0),Nr=n(2235),Rr=n(432),Lr=n(834),Ur=n(2236),Fr=n(2237),Br=n(2238),zr=n(1207);Ir||r("227");var qr={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(t,e,n,r,o,a,s,u,c){i.apply(qr,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,r,i,o,a,s,u){if(qr.invokeGuardedCallback.apply(this,arguments),qr.hasCaughtError()){var c=qr.clearCaughtError();qr._hasRethrowError||(qr._hasRethrowError=!0,qr._rethrowError=c)}
},rethrowCaughtError:function(){return o.apply(qr,arguments)},hasCaughtError:function(){return qr._hasCaughtError},clearCaughtError:function(){if(qr._hasCaughtError){var t=qr._caughtError;return qr._caughtError=null,qr._hasCaughtError=!1,t}r("198")}},Hr=null,Wr={},Vr=[],Yr={},Gr={},Xr={},Kr={plugins:Vr,eventNameDispatchConfigs:Yr,registrationNameModules:Gr,registrationNameDependencies:Xr,possibleRegistrationNames:null,injectEventPluginOrder:u,injectEventPluginsByName:c
},$r=null,Qr=null,Jr=null,Zr=null,ti={injectEventPluginOrder:u,injectEventPluginsByName:c},ei={injection:ti,getListener:v,runEventsInBatch:y,runExtractedEventsInBatch:m},ni=Math.random().toString(36).slice(2),ri="__reactInternalInstance$"+ni,ii="__reactEventHandlers$"+ni,oi={precacheFiberNode:function(t,e){e[ri]=t},getClosestInstanceFromNode:b,getInstanceFromNode:function(t){return t=t[ri],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:w,getFiberCurrentPropsFromNode:_,
updateFiberProps:function(t,e){t[ii]=e}},ai={accumulateTwoPhaseDispatches:C,accumulateTwoPhaseDispatchesSkipTarget:function(t){h(t,E)},accumulateEnterLeaveDispatches:A,accumulateDirectDispatches:function(t){h(t,k)}},si={animationend:P("Animation","AnimationEnd"),animationiteration:P("Animation","AnimationIteration"),animationstart:P("Animation","AnimationStart"),transitionend:P("Transition","TransitionEnd")},ui={},ci={};Nr.canUseDOM&&(ci=document.createElement("div").style,
"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition)
;var li=M("animationend"),fi=M("animationiteration"),hi=M("animationstart"),pi=M("transitionend"),di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gi=null,vi={_root:null,_startText:null,_fallbackText:null
},yi="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),mi={type:null,target:null,currentTarget:Lr.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};Rr(R.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent
;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Lr.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Lr.thatReturnsTrue)},persist:function(){this.isPersistent=Lr.thatReturnsTrue},isPersistent:Lr.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface
;for(t in e)this[t]=null;for(e=0;e<yi.length;e++)this[yi[e]]=null}}),R.Interface=mi,R.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var i=new e;return Rr(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=Rr({},r.Interface,t),n.extend=r.extend,F(n),n},F(R);var bi=R.extend({data:null}),wi=R.extend({data:null}),_i=[9,13,27,32],xi=Nr.canUseDOM&&"CompositionEvent"in window,Oi=null
;Nr.canUseDOM&&"documentMode"in document&&(Oi=document.documentMode);var Ti=Nr.canUseDOM&&"TextEvent"in window&&!Oi,Si=Nr.canUseDOM&&(!xi||Oi&&8<Oi&&11>=Oi),Ei=String.fromCharCode(32),ji={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(" ")}},ki=!1,Ci=!1,Ai={eventTypes:ji,
extractEvents:function(t,e,n,r){var i=void 0,o=void 0;if(xi)t:{switch(t){case"compositionstart":i=ji.compositionStart;break t;case"compositionend":i=ji.compositionEnd;break t;case"compositionupdate":i=ji.compositionUpdate;break t}i=void 0}else Ci?B(t,n)&&(i=ji.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=ji.compositionStart);return i?(Si&&(Ci||i!==ji.compositionStart?i===ji.compositionEnd&&Ci&&(o=I()):(vi._root=r,vi._startText=N(),Ci=!0)),i=bi.getPooled(i,e,n,r),
o?i.data=o:null!==(o=z(n))&&(i.data=o),C(i),o=i):o=null,(t=Ti?q(t,n):H(t,n))?(e=wi.getPooled(ji.beforeInput,e,n,r),e.data=t,C(e)):e=null,null===o?e:null===e?o:[o,e]}},Pi=null,Mi={injectFiberControlledHostComponent:function(t){Pi=t}},Di=null,Ii=null,Ni={injection:Mi,enqueueStateRestore:V,needsStateRestore:Y,restoreStateIfNeeded:G},Ri=!1,Li={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
},Ui=Ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fi="function"==typeof Symbol&&Symbol.for,Bi=Fi?Symbol.for("react.element"):60103,zi=Fi?Symbol.for("react.portal"):60106,qi=Fi?Symbol.for("react.fragment"):60107,Hi=Fi?Symbol.for("react.strict_mode"):60108,Wi=Fi?Symbol.for("react.profiler"):60114,Vi=Fi?Symbol.for("react.provider"):60109,Yi=Fi?Symbol.for("react.context"):60110,Gi=Fi?Symbol.for("react.async_mode"):60111,Xi=Fi?Symbol.for("react.forward_ref"):60112,Ki=Fi?Symbol.for("react.timeout"):60113,$i="function"==typeof Symbol&&Symbol.iterator,Qi=/^[: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]*$/,Ji={},Zi={},to={}
;"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){to[t]=new ft(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];to[e]=new ft(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){to[t]=new ft(t,2,!1,t.toLowerCase(),null)}),
["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(t){to[t]=new ft(t,2,!1,t,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){to[t]=new ft(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){to[t]=new ft(t,3,!0,t.toLowerCase(),null)}),
["capture","download"].forEach(function(t){to[t]=new ft(t,4,!1,t.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(t){to[t]=new ft(t,6,!1,t.toLowerCase(),null)}),["rowSpan","start"].forEach(function(t){to[t]=new ft(t,5,!1,t.toLowerCase(),null)});var eo=/[\-:]([a-z])/g
;"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(t){
var e=t.replace(eo,ht);to[e]=new ft(e,1,!1,t,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(eo,ht);to[e]=new ft(e,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(eo,ht);to[e]=new ft(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),to.tabIndex=new ft("tabIndex",1,!1,"tabindex",null);var no={change:{phasedRegistrationNames:{
bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},ro=null,io=null,oo=!1;Nr.canUseDOM&&(oo=tt("input")&&(!document.documentMode||9<document.documentMode));var ao={eventTypes:no,_isInputEventSupported:oo,extractEvents:function(t,e,n,r){var i=e?w(e):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Tt:J(i)?oo?o=At:(o=kt,
a=jt):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Ct),o&&(o=o(t,e)))return _t(o,n,r);a&&a(t,i,e),"blur"===t&&null!=e&&(t=e._wrapperState||i._wrapperState)&&t.controlled&&"number"===i.type&&bt(i,"number",i.value)}},so=R.extend({view:null,detail:null}),uo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},co=so.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,
metaKey:null,getModifierState:Mt,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)}}),lo=co.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),fo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{
registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ho={eventTypes:fo,extractEvents:function(t,e,n,r){var i="mouseover"===t||"pointerover"===t,o="mouseout"===t||"pointerout"===t;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=e,e=(e=n.relatedTarget||n.toElement)?b(e):null):o=null,
o===e)return null;var a=void 0,s=void 0,u=void 0,c=void 0;return"mouseout"===t||"mouseover"===t?(a=co,s=fo.mouseLeave,u=fo.mouseEnter,c="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=lo,s=fo.pointerLeave,u=fo.pointerEnter,c="pointer"),t=null==o?i:w(o),i=null==e?i:w(e),s=a.getPooled(s,o,n,r),s.type=c+"leave",s.target=t,s.relatedTarget=i,n=a.getPooled(u,e,n,r),n.type=c+"enter",n.target=i,n.relatedTarget=t,A(s,n,o,e),[s,n]}},po=R.extend({animationName:null,elapsedTime:null,pseudoElement:null
}),go=R.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vo=so.extend({relatedTarget:null}),yo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mo={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"},bo=so.extend({key:function(t){if(t.key){var e=yo[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?(t=Ut(t),
13===t?"Enter":String.fromCharCode(t)):"keydown"===t.type||"keyup"===t.type?mo[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Mt,charCode:function(t){return"keypress"===t.type?Ut(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Ut(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),wo=co.extend({dataTransfer:null
}),_o=so.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Mt}),xo=R.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Oo=co.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null
}),To=[["abort","abort"],[li,"animationEnd"],[fi,"animationIteration"],[hi,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[pi,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],So={},Eo={}
;[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["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"]].forEach(function(t){
Ft(t,!0)}),To.forEach(function(t){Ft(t,!1)});var jo={eventTypes:So,isInteractiveTopLevelEventType:function(t){return void 0!==(t=Eo[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var i=Eo[t];if(!i)return null;switch(t){case"keypress":if(0===Ut(n))return null;case"keydown":case"keyup":t=bo;break;case"blur":case"focus":t=vo;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=co
;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=wo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=_o;break;case li:case fi:case hi:t=po;break;case pi:t=xo;break;case"scroll":t=so;break;case"wheel":t=Oo;break;case"copy":case"cut":case"paste":t=go;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":
case"pointerup":t=lo;break;default:t=R}return e=t.getPooled(i,e,n,r),C(e),e}},ko=jo.isInteractiveTopLevelEventType,Co=[],Ao=!0,Po={get _enabled(){return Ao},setEnabled:zt,isEnabled:function(){return Ao},trapBubbledEvent:qt,trapCapturedEvent:Ht,dispatchEvent:Vt},Mo={},Do=0,Io="_reactListenersID"+(""+Math.random()).slice(2),No=Nr.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Ro={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},
dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Lo=null,Uo=null,Fo=null,Bo=!1,zo={eventTypes:Ro,extractEvents:function(t,e,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=Yt(o),i=Xr.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break t}}o=!0}i=!o}if(i)return null;switch(o=e?w(e):window,t){case"focus":(J(o)||"true"===o.contentEditable)&&(Lo=o,Uo=e,Fo=null);break
;case"blur":Fo=Uo=Lo=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":return Bo=!1,$t(n,r);case"selectionchange":if(No)break;case"keydown":case"keyup":return $t(n,r)}return null}};ti.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),$r=oi.getFiberCurrentPropsFromNode,Qr=oi.getInstanceFromNode,Jr=oi.getNodeFromInstance,ti.injectEventPluginsByName({
SimpleEventPlugin:jo,EnterLeaveEventPlugin:ho,ChangeEventPlugin:ao,SelectEventPlugin:zo,BeforeInputEventPlugin:Ai});var qo=void 0;qo="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};var Ho=void 0,Wo=void 0;if(Nr.canUseDOM){var Vo=[],Yo=0,Go={},Xo=-1,Ko=!1,$o=!1,Qo=0,Jo=33,Zo=33,ta={didTimeout:!1,timeRemaining:function(){var t=Qo-qo();return 0<t?t:0}},ea=function(t,e){if(Go[e])try{t(ta)}finally{delete Go[e]}
},na="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(t){if(t.source===window&&t.data===na&&(Ko=!1,0!==Vo.length)){if(0!==Vo.length&&(t=qo(),!(-1===Xo||Xo>t))){Xo=-1,ta.didTimeout=!0;for(var e=0,n=Vo.length;e<n;e++){var r=Vo[e],i=r.timeoutTime;-1!==i&&i<=t?ea(r.scheduledCallback,r.callbackId):-1!==i&&(-1===Xo||i<Xo)&&(Xo=i)}}for(t=qo();0<Qo-t&&0<Vo.length;)t=Vo.shift(),ta.didTimeout=!1,ea(t.scheduledCallback,t.callbackId),t=qo()
;0<Vo.length&&!$o&&($o=!0,requestAnimationFrame(ra))}},!1);var ra=function(t){$o=!1;var e=t-Qo+Zo;e<Zo&&Jo<Zo?(8>e&&(e=8),Zo=e<Jo?Jo:e):Jo=e,Qo=t+Zo,Ko||(Ko=!0,window.postMessage(na,"*"))};Ho=function(t,e){var n=-1;return null!=e&&"number"==typeof e.timeout&&(n=qo()+e.timeout),(-1===Xo||-1!==n&&n<Xo)&&(Xo=n),Yo++,e=Yo,Vo.push({scheduledCallback:t,callbackId:e,timeoutTime:n}),Go[e]=!0,$o||($o=!0,requestAnimationFrame(ra)),e},Wo=function(t){delete Go[t]}}else{var ia=0,oa={};Ho=function(t){
var e=ia++,n=setTimeout(function(){t({timeRemaining:function(){return 1/0},didTimeout:!1})});return oa[e]=n,e},Wo=function(t){var e=oa[t];delete oa[t],clearTimeout(e)}}var aa={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},sa=void 0,ua=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n)})}:t}(function(t,e){
if(t.namespaceURI!==aa.svg||"innerHTML"in t)t.innerHTML=e;else{for(sa=sa||document.createElement("div"),sa.innerHTML="<svg>"+e+"</svg>",e=sa.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),ca={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,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},la=["Webkit","ms","Moz","O"];Object.keys(ca).forEach(function(t){la.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),
ca[e]=ca[t]})});var fa=Rr({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}),ha=Lr.thatReturns(""),pa={createElement:he,createTextNode:pe,setInitialProperties:de,diffProperties:ge,updateProperties:ve,diffHydratedProperties:ye,diffHydratedText:me,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},
warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case"input":if(yt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var o=_(i);o||r("90"),it(i),yt(i,o)}}}break;case"textarea":re(t,n);break;case"select":null!=(e=n.value)&&Zt(t,!!n.multiple,e,!1)}}},da=null,ga=null,va=qo,ya=Ho,ma=Wo;new Set
;var ba=[],wa=-1,_a=Oe(zr),xa=Oe(!1),Oa=zr,Ta=null,Sa=null,Ea=!1,ja=Oe(null),ka=Oe(null),Ca=Oe(0),Aa={},Pa=Oe(Aa),Ma=Oe(Aa),Da=Oe(Aa),Ia={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===Dt(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=tr();r=Jn(r,t);var i=Xe(r);i.payload=e,void 0!==n&&null!==n&&(i.callback=n),$e(t,i,r),Zn(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=tr();r=Jn(r,t);var i=Xe(r);i.tag=1,i.payload=e,
void 0!==n&&null!==n&&(i.callback=n),$e(t,i,r),Zn(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=tr();n=Jn(n,t);var r=Xe(n);r.tag=2,void 0!==e&&null!==e&&(r.callback=e),$e(t,r,n),Zn(t,n)}},Na=Array.isArray,Ra=yn(!0),La=yn(!1),Ua=null,Fa=null,Ba=!1,za=void 0,qa=void 0,Ha=void 0;za=function(){},qa=function(t,e,n){(e.updateQueue=n)&&Dn(e)},Ha=function(t,e,n,r){n!==r&&Dn(e)}
;var Wa=va(),Va=2,Ya=Wa,Ga=0,Xa=0,Ka=!1,$a=null,Qa=null,Ja=0,Za=-1,ts=!1,es=null,ns=!1,rs=!1,is=null,os=null,as=null,ss=0,us=-1,cs=!1,ls=null,fs=0,hs=0,ps=!1,ds=!1,gs=null,vs=null,ys=!1,ms=!1,bs=!1,ws=null,_s=1e3,xs=0,Os=1,Ts={updateContainerAtExpirationTime:wr,createContainer:function(t,e,n){return ze(t,e,n)},updateContainer:xr,flushRoot:cr,requestWork:ir,computeUniqueAsyncExpiration:Qn,batchedUpdates:vr,unbatchedUpdates:yr,deferredUpdates:er,syncUpdates:nr,interactiveUpdates:function(t,e,n){
if(bs)return t(e,n);ys||cs||0===hs||(ur(hs,!1,null),hs=0);var r=bs,i=ys;ys=bs=!0;try{return t(e,n)}finally{bs=r,(ys=i)||cs||sr()}},flushInteractiveUpdates:function(){cs||0===hs||(ur(hs,!1,null),hs=0)},flushControlled:br,flushSync:mr,getPublicRootInstance:Or,findHostInstance:_r,findHostInstanceWithNoPortals:function(t){return t=Lt(t),null===t?null:t.stateNode},injectIntoDevTools:Tr};Mi.injectFiberControlledHostComponent(pa),Er.prototype.render=function(t){this._defer||r("250"),
this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,i=new jr;return wr(t,e,null,n,i._onCommit),i},Er.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Er.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||r("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,
this.render(this._children));for(var i=null,o=e;o!==this;)i=o,o=o._next;null===i&&r("251"),i._next=o._next,this._next=e,t.firstBatch=this}this._defer=!1,cr(t,n),e=this._next,this._next=null,e=t.firstBatch=e,null!==e&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},Er.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},jr.prototype.then=function(t){
if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},jr.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&r("191",n),n()}}},kr.prototype.render=function(t,e){var n=this._internalRoot,r=new jr;return e=void 0===e?null:e,null!==e&&r.then(e),xr(t,n,null,r._onCommit),r},kr.prototype.unmount=function(t){var e=this._internalRoot,n=new jr
;return t=void 0===t?null:t,null!==t&&n.then(t),xr(null,e,null,n._onCommit),n},kr.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,i=new jr;return n=void 0===n?null:n,null!==n&&i.then(n),xr(e,r,t,i._onCommit),i},kr.prototype.createBatch=function(){var t=new Er(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime<=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}
return t},X=Ts.batchedUpdates,K=Ts.interactiveUpdates,$=Ts.flushInteractiveUpdates;var Ss={createPortal:Mr,findDOMNode:function(t){return null==t?null:1===t.nodeType?t:_r(t)},hydrate:function(t,e,n){return Pr(null,t,e,!0,n)},render:function(t,e,n){return Pr(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,i){return(null==t||void 0===t._reactInternalFiber)&&r("38"),Pr(t,e,n,!1,i)},unmountComponentAtNode:function(t){return Cr(t)||r("40"),!!t._reactRootContainer&&(yr(function(){
Pr(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Mr.apply(void 0,arguments)},unstable_batchedUpdates:vr,unstable_deferredUpdates:er,flushSync:mr,unstable_flushControlled:br,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:ei,EventPluginRegistry:Kr,EventPropagators:ai,ReactControlledComponent:Ni,ReactDOMComponentTree:oi,ReactDOMEventListener:Po},unstable_createRoot:function(t,e){return new kr(t,!0,null!=e&&!0===e.hydrate)}}
;Tr({findFiberByHostInstance:b,bundleType:0,version:"16.4.0",rendererPackageName:"react-dom"});var Es={default:Ss},js=Es&&Ss||Es;t.exports=js.default?js.default:js},function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e,n){"use strict"
;function r(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=r},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function i(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1
;for(var a=0;a<n.length;a++)if(!o.call(e,n[a])||!r(t[n[a]],e[n[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=i},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!i(t)&&(i(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var i=n(2239);t.exports=r},function(t,e,n){"use strict";function r(t){return i(t)&&3==t.nodeType}var i=n(2240);t.exports=r},function(t,e,n){"use strict"
;function r(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
;return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(){
var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],a=n||e+"Subscription",u=function(t){function n(o,a){r(this,n);var s=i(this,t.call(this,o,a));return s[e]=o.store,s}return o(n,t),n.prototype.getChildContext=function(){var t;return t={},t[e]=this[e],t[a]=null,t},n.prototype.render=function(){return s.Children.only(this.props.children)},n}(s.Component);return u.propTypes={store:l.a.isRequired,children:c.a.element.isRequired},u.childContextTypes=(t={},
t[e]=l.a.isRequired,t[a]=l.b,t),u}e.a=a;var s=n(0),u=(n.n(s),n(1)),c=n.n(u),l=n(1211);n(838);e.b=a()},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0
},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,o=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function u(c,l,f){if("string"!=typeof l){if(s){var h=a(l);h&&h!==s&&u(c,h,f)}var p=r(l);i&&(p=p.concat(i(l)));for(var d=0;d<p.length;++d){var g=p[d];if(!(t[g]||e[g]||f&&f[g])){var v=o(l,g);try{n(c,g,v)}catch(t){}}}return c}return c}})},function(t,e,n){"use strict";function r(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=[],e=[];return{clear:function(){e=o,t=o},notify:function(){for(var n=t=e,r=0;r<n.length;r++)n[r]()},get:function(){return e},subscribe:function(n){var r=!0;return e===t&&(e=t.slice()),e.push(n),function(){r&&t!==o&&(r=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(n),1))}}}}n.d(e,"a",function(){return s});var o=null,a={notify:function(){}},s=function(){function t(e,n,i){r(this,t),this.store=e,
this.parentSub=n,this.onStateChange=i,this.unsubscribe=null,this.listeners=a}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),
this.listeners=i())},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},t}()},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e,n){for(var r=e.length-1;r>=0;r--){var i=e[r](t);if(i)return i}return function(e,r){
throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function o(t,e){return t===e}var a=n(1212),s=n(2245),u=n(2246),c=n(2263),l=n(2264),f=n(2265),h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){
var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,n=void 0===e?a.a:e,p=t.mapStateToPropsFactories,d=void 0===p?c.a:p,g=t.mapDispatchToPropsFactories,v=void 0===g?u.a:g,y=t.mergePropsFactories,m=void 0===y?l.a:y,b=t.selectorFactory,w=void 0===b?f.a:b;return function(t,e,a){
var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=u.pure,l=void 0===c||c,f=u.areStatesEqual,p=void 0===f?o:f,g=u.areOwnPropsEqual,y=void 0===g?s.a:g,b=u.areStatePropsEqual,_=void 0===b?s.a:b,x=u.areMergedPropsEqual,O=void 0===x?s.a:x,T=r(u,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=i(t,d,"mapStateToProps"),E=i(e,v,"mapDispatchToProps"),j=i(a,m,"mergeProps");return n(w,h({methodName:"connect",getDisplayName:function(t){
return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:S,initMapDispatchToProps:E,initMergeProps:j,pure:l,areStatesEqual:p,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},T))}}()},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function i(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1
;for(var a=0;a<n.length;a++)if(!o.call(e,n[a])||!r(t[n[a]],e[n[a]]))return!1;return!0}e.a=i;var o=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";function r(t){return"function"==typeof t?Object(s.b)(t,"mapDispatchToProps"):void 0}function i(t){return t?void 0:Object(s.a)(function(t){return{dispatch:t}})}function o(t){return t&&"object"==typeof t?Object(s.a)(function(e){return Object(a.bindActionCreators)(t,e)}):void 0}var a=n(630),s=(n.n(a),n(1217));e.a=[r,i,o]},function(t,e,n){
function r(t){var e=a.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[u]=n:delete t[u]),i}var i=n(839),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e,n){var r=n(2250),i=r(Object.getPrototypeOf,Object);t.exports=i},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){
"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=e&&e.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function o(t){Object.keys(t).forEach(function(e){var n=t[e];if(void 0===n(void 0,{type:s.ActionTypes.INIT
}))throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")
}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.')})}function a(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var a=e[r]
;"function"==typeof t[a]&&(n[a]=t[a])}var s,u=Object.keys(n);try{o(n)}catch(t){s=t}return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=arguments[1];if(s)throw s;for(var r=!1,o={},a=0;a<u.length;a++){var c=u[a],l=n[c],f=t[c],h=l(f,e);if(void 0===h){var p=i(c,e);throw new Error(p)}o[c]=h,r=r||h!==f}return r?o:t}}e.__esModule=!0,e.default=a;var s=n(1213),u=n(273),c=(r(u),n(1215));r(c)},function(t,e,n){"use strict";function r(t,e){return function(){
return e(t.apply(void 0,arguments))}}function i(t,e){if("function"==typeof t)return r(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(t),i={},o=0;o<n.length;o++){var a=n[o],s=t[a];"function"==typeof s&&(i[a]=r(s,e))}return i}e.__esModule=!0,e.default=i},function(t,e,n){
"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(n,r,o){var s=t(n,r,o),u=s.dispatch,c=[],l={getState:s.getState,dispatch:function(t){return u(t)}};return c=e.map(function(t){return t(l)}),u=a.default.apply(void 0,c)(s.dispatch),i({},s,{dispatch:u})}}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]
;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=r;var o=n(1216),a=function(t){return t&&t.__esModule?t:{default:t}}(o)},function(t,e,n){"use strict";function r(t){if(!Object(a.a)(t)||Object(i.a)(t)!=s)return!1;var e=Object(o.a)(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}
var i=n(2255),o=n(2260),a=n(2262),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=l.call(Object);e.a=r},function(t,e,n){"use strict";function r(t){return null==t?void 0===t?u:s:c&&c in Object(t)?Object(o.a)(t):Object(a.a)(t)}var i=n(1219),o=n(2258),a=n(2259),s="[object Null]",u="[object Undefined]",c=i.a?i.a.toStringTag:void 0;e.a=r},function(t,e,n){"use strict"
;var r=n(2257),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(e,n(158))},function(t,e,n){"use strict";function r(t){var e=a.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[u]=n:delete t[u]),i}var i=n(1219),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i.a?i.a.toStringTag:void 0;e.a=r
},function(t,e,n){"use strict";function r(t){return o.call(t)}var i=Object.prototype,o=i.toString;e.a=r},function(t,e,n){"use strict";var r=n(2261),i=Object(r.a)(Object.getPrototypeOf,Object);e.a=i},function(t,e,n){"use strict";function r(t,e){return function(n){return t(e(n))}}e.a=r},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.a=r},function(t,e,n){"use strict";function r(t){return"function"==typeof t?Object(o.b)(t,"mapStateToProps"):void 0}function i(t){
return t?void 0:Object(o.a)(function(){return{}})}var o=n(1217);e.a=[r,i]},function(t,e,n){"use strict";function r(t,e,n){return s({},n,t,e)}function i(t){return function(e,n){var r=(n.displayName,n.pure),i=n.areMergedPropsEqual,o=!1,a=void 0;return function(e,n,s){var u=t(e,n,s);return o?r&&i(u,a)||(a=u):(o=!0,a=u),a}}}function o(t){return"function"==typeof t?i(t):void 0}function a(t){return t?void 0:function(){return r}}var s=(n(1218),Object.assign||function(t){
for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t});e.a=[o,a]},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e,n,r){return function(i,o){return n(t(i,o),e(r,o),o)}}function o(t,e,n,r,i){function o(i,o){return d=i,g=o,v=t(d,g),y=e(r,g),m=n(v,y,g),p=!0,m}function a(){return v=t(d,g),
e.dependsOnOwnProps&&(y=e(r,g)),m=n(v,y,g)}function s(){return t.dependsOnOwnProps&&(v=t(d,g)),e.dependsOnOwnProps&&(y=e(r,g)),m=n(v,y,g)}function u(){var e=t(d,g),r=!h(e,v);return v=e,r&&(m=n(v,y,g)),m}function c(t,e){var n=!f(e,g),r=!l(t,d);return d=t,g=e,n&&r?a():n?s():r?u():m}var l=i.areStatesEqual,f=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1,d=void 0,g=void 0,v=void 0,y=void 0,m=void 0;return function(t,e){return p?c(t,e):o(t,e)}}function a(t,e){
var n=e.initMapStateToProps,a=e.initMapDispatchToProps,s=e.initMergeProps,u=r(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),c=n(t,u),l=a(t,u),f=s(t,u);return(u.pure?o:i)(c,l,f,t,u)}e.a=a;n(2266)},function(t,e,n){"use strict";n(838)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";/**
 * @license simple-loop https://github.com/flams/simple-loop
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
 */
function r(t,e){if(t)throw new TypeError("simple-loop: "+e)}t.exports=function(t,e,n){r("object"!=typeof t,"iterated must be an array/object"),r("function"!=typeof e,"callback must be a function");var i;if(Array.isArray(t))for(i=0;i<t.length;i++)e.call(n,t[i],i,t);else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}},,function(t,e){t.exports=function(){for(var t=arguments.length,e=[],n=0;n<t;n++)e[n]=arguments[n];if(e=e.filter(function(t){return null!=t}),
0!==e.length)return 1===e.length?e[0]:e.reduce(function(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}})}},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t){if(!t)return t;var e={};return o.Children.map(t,function(t){return t}).forEach(function(t){e[t.key]=t}),e}function i(t,e){function n(n){return e.hasOwnProperty(n)?e[n]:t[n]}t=t||{},e=e||{};var r={},i=[];for(var o in t)e.hasOwnProperty(o)?i.length&&(r[o]=i,
i=[]):i.push(o);var a=void 0,s={};for(var u in e){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}e.__esModule=!0,e.getChildMapping=r,e.mergeChildMappings=i;var o=n(0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){
if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){
return x.length?x.forEach(function(n){return t.addEventListener(n,e,!1)}):setTimeout(e,0),function(){x.length&&x.forEach(function(n){return t.removeEventListener(n,e,!1)})}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=n(2375),l=r(c),f=n(2377),h=r(f),p=n(2378),d=r(p),g=n(2379),v=n(0),y=r(v),m=n(1),b=r(m),w=n(129),_=n(1243),x=[]
;g.transitionEnd&&x.push(g.transitionEnd),g.animationEnd&&x.push(g.animationEnd);var O={children:b.default.node,name:_.nameShape.isRequired,appear:b.default.bool,enter:b.default.bool,leave:b.default.bool,appearTimeout:b.default.number,enterTimeout:b.default.number,leaveTimeout:b.default.number},T=function(t){function e(){var n,r,a;i(this,e);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=o(this,t.call.apply(t,[this].concat(u))),r.componentWillAppear=function(t){
r.props.appear?r.transition("appear",t,r.props.appearTimeout):t()},r.componentWillEnter=function(t){r.props.enter?r.transition("enter",t,r.props.enterTimeout):t()},r.componentWillLeave=function(t){r.props.leave?r.transition("leave",t,r.props.leaveTimeout):t()},a=n,o(r,a)}return a(e,t),e.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},e.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),
this.transitionTimeouts.forEach(function(t){clearTimeout(t)}),this.classNameAndNodeQueue.length=0},e.prototype.transition=function(t,e,n){var r=(0,w.findDOMNode)(this);if(!r)return void(e&&e());var i=this.props.name[t]||this.props.name+"-"+t,o=this.props.name[t+"Active"]||i+"-active",a=null,u=void 0;(0,l.default)(r,i),this.queueClassAndNode(o,r);var c=function(t){t&&t.target!==r||(clearTimeout(a),u&&u(),(0,h.default)(r,i),(0,h.default)(r,o),u&&u(),e&&e())};n?(a=setTimeout(c,n),
this.transitionTimeouts.push(a)):g.transitionEnd&&(u=s(r,c))},e.prototype.queueClassAndNode=function(t,e){var n=this;this.classNameAndNodeQueue.push({className:t,node:e}),this.rafHandle||(this.rafHandle=(0,d.default)(function(){return n.flushClassNameAndNodeQueue()}))},e.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(t){t.node.scrollTop,(0,l.default)(t.node,t.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},
e.prototype.render=function(){var t=u({},this.props);return delete t.name,delete t.appear,delete t.enter,delete t.leave,delete t.appearTimeout,delete t.enterTimeout,delete t.leaveTimeout,delete t.children,y.default.cloneElement(y.default.Children.only(this.props.children),t)},e}(y.default.Component);T.displayName="CSSTransitionGroupChild",T.propTypes=O,e.default=T,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){t.classList?t.classList.add(e):(0,
o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=n(2376),o=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}Object.defineProperty(e,"__esModule",{
value:!0}),e.default=r,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}},function(t,e,n){"use strict";function r(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-f)),r=setTimeout(t,n)
;return f=e,r}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1242),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=["","webkit","moz","o","ms"],s="clearTimeout",u=r,c=void 0,l=function(t,e){return t+(t?e[0].toUpperCase()+e.substr(1):e)+"AnimationFrame"};o.default&&a.some(function(t){var e=l(t,"request");if(e in window)return s=l(t,"cancel"),u=function(t){return window[e](t)}});var f=(new Date).getTime();c=function(t){return u(t)},c.cancel=function(t){
window[s]&&"function"==typeof window[s]&&window[s](t)},e.default=c,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationEnd=e.animationDelay=e.animationTiming=e.animationDuration=e.animationName=e.transitionEnd=e.transitionDuration=e.transitionDelay=e.transitionTiming=e.transitionProperty=e.transform=void 0;var r=n(1242),i=function(t){return t&&t.__esModule?t:{default:t}
}(r),o="transform",a=void 0,s=void 0,u=void 0,c=void 0,l=void 0,f=void 0,h=void 0,p=void 0,d=void 0,g=void 0,v=void 0;if(i.default){var y=function(){for(var t=document.createElement("div").style,e={O:function(t){return"o"+t.toLowerCase()},Moz:function(t){return t.toLowerCase()},Webkit:function(t){return"webkit"+t},ms:function(t){return"MS"+t}},n=Object.keys(e),r=void 0,i=void 0,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in t){o="-"+s.toLowerCase(),r=e[s]("TransitionEnd"),
i=e[s]("AnimationEnd");break}}return!r&&"transitionProperty"in t&&(r="transitionend"),!i&&"animationName"in t&&(i="animationend"),t=null,{animationEnd:i,transitionEnd:r,prefix:o}}();a=y.prefix,e.transitionEnd=s=y.transitionEnd,e.animationEnd=u=y.animationEnd,e.transform=o=a+"-"+o,e.transitionProperty=c=a+"-transition-property",e.transitionDuration=l=a+"-transition-duration",e.transitionDelay=h=a+"-transition-delay",e.transitionTiming=f=a+"-transition-timing-function",
e.animationName=p=a+"-animation-name",e.animationDuration=d=a+"-animation-duration",e.animationTiming=g=a+"-animation-delay",e.animationDelay=v=a+"-animation-timing-function"}e.transform=o,e.transitionProperty=c,e.transitionTiming=f,e.transitionDelay=h,e.transitionDuration=l,e.transitionEnd=s,e.animationName=p,e.animationDuration=d,e.animationTiming=g,e.animationDelay=v,e.animationEnd=u,e.default={transform:o,end:s,property:c,timing:f,delay:h,duration:l}},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){
"use strict";var r=n(2405),i=(n.n(r),{});if(!Object.setPrototypeOf&&!i.__proto__){var o=Object.getPrototypeOf;Object.getPrototypeOf=function(t){return t.__proto__?t.__proto__:o.call(Object,t)}}},function(t,e,n){n(2406),n(2418),n(2419),n(2420),n(2421),n(2422),n(2423),n(2424),n(2426),n(2427),n(2428),n(2429),n(2430),n(2431),n(2432),n(2433),n(2434),t.exports=n(857).Math},function(t,e,n){var r=n(148),i=n(1259),o=Math.sqrt,a=Math.acosh
;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var r=n(2408),i=n(2409),o=n(2411),a=Object.defineProperty;e.f=n(859)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(858)
;t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(859)&&!n(639)(function(){return 7!=Object.defineProperty(n(2410)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(858),i=n(856).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(858);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i
;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(856),i=n(1258),o=n(2414),a=n(2415)("src"),s=Function.toString,u=(""+s).split("toString");n(857).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){
var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}
},function(t,e,n){var r=n(2417);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){function r(t){
return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(148),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(148),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(148),i=n(860);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(148);r(r.S,"Math",{clz32:function(t){
return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(148),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(148),i=n(861);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(148);r(r.S,"Math",{fround:n(2425)})},function(t,e,n){var r=n(860),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126),c=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),l=r(t)
;return i<u?l*c(i/u/a)*u*a:(e=(1+a/o)*i,n=e-(e-i),n>s||n!=n?l*(1/0):l*n)}},function(t,e,n){var r=n(148),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)n=i(arguments[a++]),u<n?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(148),i=Math.imul;r(r.S+r.F*n(639)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r
;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(148);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(148);r(r.S,"Math",{log1p:n(1259)})},function(t,e,n){var r=n(148);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(148);r(r.S,"Math",{sign:n(860)})},function(t,e,n){var r=n(148),i=n(861),o=Math.exp;r(r.S+r.F*n(639)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{
sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(148),i=n(861),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(148);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";function r(){}var i=n(2436);t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){
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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){
"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){function r(t){var e=a.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[u]=n:delete t[u]),i}var i=n(442),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e,n){
var r=n(2440),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)}),e});t.exports=a},function(t,e,n){function r(t){var e=i(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}var i=n(2441),o=500;t.exports=r},function(t,e,n){function r(t,e){
if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(864),o="Expected a function";r.Cache=i,t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(2443),o=n(643),a=n(865);t.exports=r},function(t,e,n){function r(t){
var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(2444),o=n(2449),a=n(2450),s=n(2451),u=n(2452);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(){this.__data__=i?i(null):{},this.size=0}var i=n(642);t.exports=r},function(t,e,n){function r(t){return!(!a(t)||o(t))&&(i(t)?d:c).test(s(t))}
var i=n(82),o=n(2446),a=n(200),s=n(1261),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,h=l.toString,p=f.hasOwnProperty,d=RegExp("^"+h.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){return!!o&&o in t}var i=n(2447),o=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){
var r=n(213),i=r["__core-js_shared__"];t.exports=i},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(i){var n=e[t];return n===o?void 0:n}return s.call(e,t)?e[t]:void 0}var i=n(642),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__
;return i?void 0!==e[t]:a.call(e,t)}var i=n(642),o=Object.prototype,a=o.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?o:e,this}var i=n(642),o="__lodash_hash_undefined__";t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}
var i=n(644),o=Array.prototype,a=o.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}var i=n(644);t.exports=r},function(t,e,n){function r(t){return i(this.__data__,t)>-1}var i=n(644);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(644);t.exports=r},function(t,e,n){function r(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}var i=n(646);t.exports=r
},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return i(this,t).get(t)}var i=n(646);t.exports=r},function(t,e,n){function r(t){return i(this,t).has(t)}var i=n(646);t.exports=r},function(t,e,n){function r(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var i=n(646);t.exports=r},function(t,e,n){function r(t){return null==t?"":i(t)}var i=n(2464)
;t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(a(t))return o(t,r)+"";if(s(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-u?"-0":e}var i=n(442),o=n(647),a=n(104),s=n(443),u=1/0,c=i?i.prototype:void 0,l=c?c.toString:void 0;t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}
var d,g,v,y=n(0),m=n.n(y),b=n(49),w=n.n(b),_=n(66),x=n.n(_),O=n(60),T=n(538),S=n(868),E=n(55),j=E.b.filter(function(t){return"none"!==t}),k=Object(O.a)((v=g=function(t){function e(){return a(this,e),c(this,f(e).apply(this,arguments))}return h(e,t),u(e,[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=t.inactive?e:t.color;return"plainline"===t.type?m.a.createElement("line",{strokeWidth:4,fill:"none",stroke:n,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,
className:"recharts-legend-icon"}):"line"===t.type?m.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,".concat(16,"h").concat(32/3,"\n            A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3*2,",").concat(16,"\n            H").concat(32,"M").concat(32/3*2,",").concat(16,"\n            A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3,",").concat(16),className:"recharts-legend-icon"}):"rect"===t.type?m.a.createElement("path",{stroke:"none",fill:n,
d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"}):m.a.createElement(S.a,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,a=e.layout,s=e.formatter,u={x:0,y:0,width:32,height:32},c={display:"horizontal"===a?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(e,n){
var a,f=e.formatter||s,h=x()((a={"recharts-legend-item":!0},o(a,"legend-item-".concat(n),!0),o(a,"inactive",e.inactive),a));return"none"===e.type?null:m.a.createElement("li",i({className:h,style:c,key:"legend-item-".concat(n)},Object(E.f)(t.props,e,n)),m.a.createElement(T.a,{width:r,height:r,viewBox:u,style:l},t.renderIcon(e)),m.a.createElement("span",{className:"recharts-legend-item-text"},f?f(e.value,e,n):e.value))})}},{key:"render",value:function(){
var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return m.a.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}]),e}(y.Component),g.displayName="Legend",g.propTypes={content:w.a.element,iconSize:w.a.number,iconType:w.a.oneOf(j),layout:w.a.oneOf(["horizontal","vertical"]),align:w.a.oneOf(["center","left","right"]),verticalAlign:w.a.oneOf(["top","bottom","middle"]),
payload:w.a.arrayOf(w.a.shape({value:w.a.any,id:w.a.any,type:w.a.oneOf(E.b)})),inactiveColor:w.a.string,formatter:w.a.func,onMouseEnter:w.a.func,onMouseLeave:w.a.func,onClick:w.a.func},g.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"},d=v))||d;e.a=k},function(t,e,n){"use strict";n(541),n(377),n(542)},function(t,e,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new r}
var o=Math.PI,a=2*o,s=a-1e-6;r.prototype=i.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){
this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,s=this._y1,u=n-t,c=r-e,l=a-t,f=s-e,h=l*l+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(f*u-c*l)>1e-6&&i){var p=n-a,d=r-s,g=u*u+c*c,v=p*p+d*d,y=Math.sqrt(g),m=Math.sqrt(h),b=i*Math.tan((o-Math.acos((g+h-v)/(2*y*m)))/2),w=b/m,_=b/y
;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>l*d)+","+(this._x1=t+_*u)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,u){t=+t,e=+e,n=+n;var c=n*Math.cos(r),l=n*Math.sin(r),f=t+c,h=e+l,p=1^u,d=u?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(d<0&&(d=d%a+a),
d>s?this._+="A"+n+","+n+",0,1,"+p+","+(t-c)+","+(e-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=o)+","+p+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=i},function(t,e,n){"use strict";n(377),n(2469),n(2470),n(542)},function(t,e,n){"use strict";e.a=function(t,e){
return e<t?-1:e>t?1:e>=t?0:NaN}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(1263),n(1262),n(1264)},function(t,e,n){"use strict";n(541),n(1266),n(377),n(871),n(1265)},function(t,e,n){"use strict";var r=n(541),i=n(1267),o=n(1268),a=n(1269),s=n(1270),u=n(1271),c=n(1272),l=n(1273),f=n(377);i.a,o.a,a.a,u.a,s.a,c.a,l.a;e.a=function(){function t(){var t;if(o||(o=t=Object(r.a)()),e.apply(this,arguments).draw(o,+n.apply(this,arguments)),t)return o=null,
t+""||null}var e=Object(f.a)(i.a),n=Object(f.a)(64),o=null;return t.type=function(n){return arguments.length?(e="function"==typeof n?n:Object(f.a)(n),t):e},t.size=function(e){return arguments.length?(n="function"==typeof e?e:Object(f.a)(+e),t):n},t.context=function(e){return arguments.length?(o=null==e?null:e,t):o},t}},function(t,e,n){"use strict";function r(t){this._context=t}var i=n(650),o=n(651);r.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){
this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),
this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Object(o.c)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t){this._context=t}var i=n(651)
;r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6
;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Object(i.c)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e){this._basis=new i.a(t),this._beta=e}var i=n(651);r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1
;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};!function t(e){function n(t){return 1===e?new i.a(t):new r(t,e)}return n.beta=function(e){return t(+e)},n}(.85)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var i=n(1274),o=n(650),a=n(872);r.prototype={
areaStart:o.a,areaEnd:o.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),
this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(a.a)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,
this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return e?new r(t,e):new i.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var i=n(1275),o=n(872);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,
this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,
this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(o.a)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return e?new r(t,e):new i.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){
this._context=t}var i=n(650);r.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t){return t<0?-1:1}function i(t,e,n){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(n-t._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o)
;return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function o(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function a(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function s(t){this._context=t}function u(t){this._context=new c(t)}function c(t){this._context=t}function l(t){return new s(t)}function f(t){return new u(t)}e.a=l,e.b=f,s.prototype={areaStart:function(){this._line=0},areaEnd:function(){
this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,
this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,a(this,o(this,n=i(this,t,e)),n);break;default:a(this,this._t0,n=i(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(u.prototype=Object.create(s.prototype)).point=function(t,e){s.prototype.point.call(this,e,t)},c.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){
this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}}},function(t,e,n){"use strict";function r(t){this._context=t}function i(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e]
;for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=i(t),o=i(e),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],t[s],e[s])
;(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._t=e}function i(t){return new r(t,0)}function o(t){return new r(t,1)}e.c=i,e.b=o,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},
lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{
var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},e.a=function(t){return new r(t,.5)}},function(t,e,n){"use strict";function r(t,e){return t[e]}var i=n(1266),o=n(377),a=n(543),s=n(544);e.a=function(){function t(t){var r,i,o=e.apply(this,arguments),a=t.length,s=o.length,l=new Array(s);for(r=0;r<s;++r){for(var f,h=o[r],p=l[r]=new Array(a),d=0;d<a;++d)p[d]=f=[0,+c(t[d],h,d,t)],f.data=t[d];p.key=h}for(r=0,
i=n(l);r<s;++r)l[i[r]].index=r;return u(l,i),l}var e=Object(o.a)([]),n=s.a,u=a.a,c=r;return t.keys=function(n){return arguments.length?(e="function"==typeof n?n:Object(o.a)(i.a.call(n)),t):e},t.value=function(e){return arguments.length?(c="function"==typeof e?e:Object(o.a)(+e),t):c},t.order=function(e){return arguments.length?(n=null==e?s.a:"function"==typeof e?e:Object(o.a)(i.a.call(e)),t):n},t.offset=function(e){return arguments.length?(u=null==e?a.a:e,t):u},t}},function(t,e,n){"use strict"
;var r=n(543);e.a=function(t,e){if((i=t.length)>0){for(var n,i,o,a=0,s=t[0].length;a<s;++a){for(o=n=0;n<i;++n)o+=t[n][a][1]||0;if(o)for(n=0;n<i;++n)t[n][a][1]/=o}Object(r.a)(t,e)}}},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(543);e.a=function(t,e){if((n=t.length)>0){for(var n,i=0,o=t[e[0]],a=o.length;i<a;++i){for(var s=0,u=0;s<n;++s)u+=t[s][i][1]||0;o[i][1]+=o[i][0]=-u/2}Object(r.a)(t,e)}}},function(t,e,n){"use strict";var r=n(543);e.a=function(t,e){
if((o=t.length)>0&&(i=(n=t[e[0]]).length)>0){for(var n,i,o,a=0,s=1;s<i;++s){for(var u=0,c=0,l=0;u<o;++u){for(var f=t[e[u]],h=f[s][1]||0,p=f[s-1][1]||0,d=(h-p)/2,g=0;g<u;++g){var v=t[e[g]];d+=(v[s][1]||0)-(v[s-1][1]||0)}c+=h,l+=d*h}n[s-1][1]+=n[s-1][0]=a,c&&(a-=l/c)}n[s-1][1]+=n[s-1][0]=a,Object(r.a)(t,e)}}},function(t,e,n){"use strict";n(873)},function(t,e,n){"use strict";n(544),n(873)},function(t,e,n){"use strict";n(544)},function(t,e,n){function r(t,e,n,r,v,m){
var b=c(t),w=c(e),_=b?d:u(t),x=w?d:u(e);_=_==p?g:_,x=x==p?g:x;var O=_==g,T=x==g,S=_==x;if(S&&l(t)){if(!l(e))return!1;b=!0,O=!1}if(S&&!O)return m||(m=new i),b||f(t)?o(t,e,n,r,v,m):a(t,e,_,n,r,v,m);if(!(n&h)){var E=O&&y.call(t,"__wrapped__"),j=T&&y.call(e,"__wrapped__");if(E||j){var k=E?t.value():t,C=j?e.value():e;return m||(m=new i),v(k,C,n,r,m)}}return!!S&&(m||(m=new i),s(t,e,n,r,v,m))}
var i=n(1278),o=n(1283),a=n(2523),s=n(2527),u=n(2542),c=n(253),l=n(1288),f=n(1290),h=1,p="[object Arguments]",d="[object Array]",g="[object Object]",v=Object.prototype,y=v.hasOwnProperty;t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}var i=n(655),o=Array.prototype,a=o.splice;t.exports=r},function(t,e,n){function r(t){
var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}var i=n(655);t.exports=r},function(t,e,n){function r(t){return i(this.__data__,t)>-1}var i=n(655);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(655);t.exports=r},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(654);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n
},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}var i=n(654),o=n(875),a=n(877),s=200;t.exports=r},function(t,e,n){function r(t){return!(!a(t)||o(t))&&(i(t)?d:c).test(s(t))}
var i=n(1280),o=n(2505),a=n(876),s=n(1282),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,h=l.toString,p=f.hasOwnProperty,d=RegExp("^"+h.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){var e=a.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[u]=n:delete t[u]),i}
var i=n(656),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e,n){function r(t){return!!o&&o in t}var i=n(2506),o=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(277),i=r["__core-js_shared__"];t.exports=i},function(t,e){function n(t,e){return null==t?void 0:t[e]}
t.exports=n},function(t,e,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(2509),o=n(654),a=n(875);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(2510),o=n(2511),a=n(2512),s=n(2513),u=n(2514);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(){this.__data__=i?i(null):{},this.size=0}
var i=n(657);t.exports=r},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(i){var n=e[t];return n===o?void 0:n}return s.call(e,t)?e[t]:void 0}var i=n(657),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}var i=n(657),o=Object.prototype,a=o.hasOwnProperty;t.exports=r
},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?o:e,this}var i=n(657),o="__lodash_hash_undefined__";t.exports=r},function(t,e,n){function r(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}var i=n(658);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return i(this,t).get(t)}var i=n(658);t.exports=r
},function(t,e,n){function r(t){return i(this,t).has(t)}var i=n(658);t.exports=r},function(t,e,n){function r(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var i=n(658);t.exports=r},function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}
t.exports=n},function(t,e,n){function r(t,e,n,r,i,O,S){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!O(new o(t),new o(e)));case h:case p:case v:return a(+t,+e);case d:return t.name==e.name&&t.message==e.message;case y:case b:return t==e+"";case g:var E=u;case m:var j=r&l;if(E||(E=c),t.size!=e.size&&!j)return!1;var k=S.get(t);if(k)return k==e;r|=f,S.set(t,e);var C=s(E(t),E(e),r,i,O,S)
;return S.delete(t),C;case w:if(T)return T.call(t)==T.call(e)}return!1}var i=n(656),o=n(2524),a=n(1279),s=n(1283),u=n(2525),c=n(2526),l=1,f=2,h="[object Boolean]",p="[object Date]",d="[object Error]",g="[object Map]",v="[object Number]",y="[object RegExp]",m="[object Set]",b="[object String]",w="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",O=i?i.prototype:void 0,T=O?O.valueOf:void 0;t.exports=r},function(t,e,n){var r=n(277),i=r.Uint8Array;t.exports=i},function(t,e){
function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t,e,n,r,a,u){var c=n&o,l=i(t),f=l.length;if(f!=i(e).length&&!c)return!1;for(var h=f;h--;){var p=l[h];if(!(c?p in e:s.call(e,p)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var g=!0;u.set(t,e),u.set(e,t);for(var v=c;++h<f;){p=l[h];var y=t[p],m=e[p]
;if(r)var b=c?r(m,y,p,e,t,u):r(y,m,p,t,e,u);if(!(void 0===b?y===m||a(y,m,n,r,u):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return u.delete(t),u.delete(e),g}var i=n(2528),o=1,a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){return i(t,a,o)}var i=n(2529),o=n(2531),a=n(878);t.exports=r
},function(t,e,n){function r(t,e,n){var r=e(t);return o(t)?r:i(r,n(t))}var i=n(2530),o=n(253);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(1286),i=n(2532),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),function(e){return a.call(t,e)}))}:i;t.exports=u},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){
function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),h=!n&&!r&&!l&&c(t),p=n||r||l||h,d=p?i(t.length,String):[],g=d.length;for(var v in t)!e&&!f.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||d.push(v);return d}var i=n(2534),o=n(1287),a=n(253),s=n(1288),u=n(1289),c=n(1290),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n
},function(t,e,n){function r(t){return o(t)&&i(t)==a}var i=n(379),o=n(315),a="[object Arguments]";t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function r(t){return a(t)&&o(t.length)&&!!s[i(t)]}var i=n(379),o=n(879),a=n(315),s={}
;s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,
s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){(function(t){
var r=n(1281),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=u}).call(e,n(380)(t))},function(t,e,n){function r(t){if(!i(t))return o(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}var i=n(2540),o=n(2541),a=Object.prototype,s=a.hasOwnProperty;t.exports=r
},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}var r=Object.prototype;t.exports=n},function(t,e,n){var r=n(1292),i=r(Object.keys,Object);t.exports=i},function(t,e,n){var r=n(2543),i=n(875),o=n(2544),a=n(2545),s=n(2546),u=n(379),c=n(1282),l=c(r),f=c(i),h=c(o),p=c(a),d=c(s),g=u
;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){
var r=n(378),i=n(277),o=r(i,"DataView");t.exports=o},function(t,e,n){var r=n(378),i=n(277),o=r(i,"Promise");t.exports=o},function(t,e,n){var r=n(378),i=n(277),o=r(i,"Set");t.exports=o},function(t,e,n){var r=n(378),i=n(277),o=r(i,"WeakMap");t.exports=o},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return s(t)||a(t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function s(t){if(Array.isArray(t))return t}function u(){var t={},e=function(){return null},n=!1,o=function o(a){if(!n){if(Array.isArray(a)){
if(!a.length)return;var s=a,u=i(s),l=u[0],f=u.slice(1);return"number"==typeof l?void Object(c.a)(o.bind(null,f),l):(o(l),void Object(c.a)(o.bind(null,f)))}"object"===r(a)&&(t=a,e(t)),"function"==typeof a&&a()}};return{stop:function(){n=!0},start:function(t){n=!1,o(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}e.a=u;var c=n(2548)},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){
n<0&&(n=i),i-n>e?(t(i),n=-1):o()(r)};o()(r)}e.a=r;var i=n(1293),o=n.n(i)},function(t,e,n){(function(e){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:void 0!==e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,n=function(){var t;return t=r(),1e9*t[0]+t[1]},o=n(),s=1e9*e.uptime(),a=o-s):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){
return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(e,n(2550))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t)
;if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){g&&p&&(g=!1,p.length?d=p.concat(d):v=-1,d.length&&s())}function s(){if(!g){var t=i(a);g=!0;for(var e=d.length;e;){for(p=d,d=[];++v<e;)p&&p[v].run();v=-1,e=d.length}p=null,g=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}
try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var p,d=[],g=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||g||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,
h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(t===e)return!0;if("object"!==r(t)||null===t||"object"!==r(e)||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var o=hasOwnProperty.bind(e),a=0;a<n.length;a++){var s=n[a];if(t[s]!==e[s])if(p()(t[s])){if(!p()(e[s])||t[s].length!==e[s].length)return!1;if(!f()(t[s],e[s]))return!1}else if(c()(t[s])){
if(!c()(e[s])||!f()(t[s],e[s]))return!1}else if(!o(n[a])||t[n[a]]!==e[n[a]])return!1}return!0}function o(t,e,n){return!i(t.props,e)||!i(t.state,n)}function a(t,e){return o(this,t,e)}function s(t){t.prototype.shouldComponentUpdate=a}var u=n(2552),c=n.n(u),l=n(1277),f=n.n(l),h=n(253),p=n.n(h);e.a=s},function(t,e,n){function r(t){if(!a(t)||i(t)!=s)return!1;var e=o(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}
var i=n(379),o=n(2553),a=n(315),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=l.call(Object);t.exports=r},function(t,e,n){var r=n(1292),i=r(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var r=n(881),i=n(2555),o=n(2562),a=n(2570),s=o(function(t){var e=r(t,a);return e.length&&e[0]===t[0]?i(e):[]});t.exports=s},function(t,e,n){function r(t,e,n){for(var r=n?a:o,f=t[0].length,h=t.length,p=h,d=Array(h),g=1/0,v=[];p--;){var y=t[p]
;p&&e&&(y=s(y,u(e))),g=l(y.length,g),d[p]=!n&&(e||f>=120&&y.length>=120)?new i(p&&y):void 0}y=t[0];var m=-1,b=d[0];t:for(;++m<f&&v.length<g;){var w=y[m],_=e?e(w):w;if(w=n||0!==w?w:0,!(b?c(b,_):r(v,_,n))){for(p=h;--p;){var x=d[p];if(!(x?c(x,_):r(t[p],_,n)))continue t}b&&b.push(_),v.push(w)}}return v}var i=n(1284),o=n(2556),a=n(2561),s=n(881),u=n(1291),c=n(1285),l=Math.min;t.exports=r},function(t,e,n){function r(t,e){return!!(null==t?0:t.length)&&i(t,e,0)>-1}var i=n(2557);t.exports=r
},function(t,e,n){function r(t,e,n){return e===e?a(t,e,n):i(t,o,n)}var i=n(2558),o=n(2559),a=n(2560);t.exports=r},function(t,e){function n(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}t.exports=n},function(t,e){function n(t){return t!==t}t.exports=n},function(t,e){function n(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}t.exports=n},function(t,e){function n(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0
;return!1}t.exports=n},function(t,e,n){function r(t,e){return a(o(t,e,i),t+"")}var i=n(882),o=n(2563),a=n(2565);t.exports=r},function(t,e,n){function r(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=o(r.length-e,0),u=Array(s);++a<s;)u[a]=r[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=r[a];return c[e]=n(u),i(t,this,c)}}var i=n(2564),o=Math.max;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0])
;case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(2566),i=n(2569),o=i(r);t.exports=o},function(t,e,n){var r=n(2567),i=n(2568),o=n(882),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e,n){var r=n(378),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t
}catch(t){}}();t.exports=i},function(t,e){function n(t){var e=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){function r(t){return i(t)?t:[]}var i=n(2571);t.exports=r},function(t,e,n){function r(t){return o(t)&&i(t)}var i=n(880),o=n(315);t.exports=r},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){
throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){u(t,e,n[e])})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return h(t)||f(t,e)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function f(t,e){
var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function h(t){if(Array.isArray(t))return t}var p=n(2573),d=n.n(p),g=n(1293),v=n.n(g),y=n(659),m=function(t,e,n){return t+(e-t)*n},b=function(t){return t.from!==t.to},w=function t(e,n,r){var i=Object(y.d)(function(t,n){if(b(n)){var r=e(n.from,n.to,n.velocity),i=c(r,2)
;return s({},n,{from:i[0],velocity:i[1]})}return n},n);return r<1?Object(y.d)(function(t,e){return b(e)?s({},e,{velocity:m(e.velocity,i[t].velocity,r),from:m(e.from,i[t].from,r)}):e},n):t(e,i,r-1)};e.a=function(t,e,n,i,o){var a,c,l=Object(y.a)(t,e),f=l.reduce(function(n,r){return s({},n,u({},r,[t[r],e[r]]))},{}),h=l.reduce(function(n,r){return s({},n,u({},r,{from:t[r],velocity:0,to:e[r]}))},{}),p=-1,_=function(){return null},x=function(){return Object(y.d)(function(t,e){return e.from},h)
},O=function(){return!d()(h,b).length},T=function(r){a||(a=r);var i=r-a,u=i/n.dt;h=w(n,h,u),o(s({},t,e,x())),a=r,O()||(p=v()(_))},S=function(a){c||(c=a);var u=(a-c)/i,l=Object(y.d)(function(t,e){return m.apply(void 0,r(e).concat([n(u)]))},f);if(o(s({},t,e,l)),u<1)p=v()(_);else{var h=Object(y.d)(function(t,e){return m.apply(void 0,r(e).concat([n(1)]))},f);o(s({},t,e,h))}};return _=n.isStepper?T:S,function(){return v()(_),function(){Object(g.cancel)(p)}}}},function(t,e,n){function r(t,e){
return(s(t)?i:o)(t,a(e,3))}var i=n(1286),o=n(2574),a=n(2580),s=n(253);t.exports=r},function(t,e,n){function r(t,e){var n=[];return i(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}var i=n(2575);t.exports=r},function(t,e,n){var r=n(2576),i=n(2579),o=i(r);t.exports=o},function(t,e,n){function r(t,e){return t&&i(t,e,o)}var i=n(2577),o=n(878);t.exports=r},function(t,e,n){var r=n(2578),i=r();t.exports=i},function(t,e){function n(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){
var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}t.exports=n},function(t,e,n){function r(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(880);t.exports=r},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?s(t)?o(t[0],t[1]):i(t):u(t)}var i=n(2581),o=n(2584),a=n(882),s=n(253),u=n(2594);t.exports=r},function(t,e,n){function r(t){var e=o(t)
;return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}var i=n(2582),o=n(2583),a=n(1296);t.exports=r},function(t,e,n){function r(t,e,n,r){var u=n.length,c=u,l=!r;if(null==t)return!c;for(t=Object(t);u--;){var f=n[u];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++u<c;){f=n[u];var h=f[0],p=t[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in t))return!1}else{var g=new i;if(r)var v=r(p,d,h,t,e,g);if(!(void 0===v?o(d,p,a|s,r,g):v))return!1}}return!0}
var i=n(1278),o=n(874),a=1,s=2;t.exports=r},function(t,e,n){function r(t){for(var e=o(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,i(a)]}return e}var i=n(1295),o=n(878);t.exports=r},function(t,e,n){function r(t,e){return s(t)&&u(e)?c(l(t),e):function(n){var r=o(n,t);return void 0===r&&r===e?a(n,t):i(e,r,f|h)}}var i=n(874),o=n(2585),a=n(2591),s=n(883),u=n(1295),c=n(1296),l=n(660),f=1,h=2;t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}
var i=n(1297);t.exports=r},function(t,e,n){var r=n(2587),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)}),e});t.exports=a},function(t,e,n){function r(t){var e=i(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}var i=n(2588),o=500;t.exports=r},function(t,e,n){function r(t,e){
if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(877),o="Expected a function";r.Cache=i,t.exports=r},function(t,e,n){function r(t){return null==t?"":i(t)}var i=n(2590);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(a(t))return o(t,r)+""
;if(s(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-u?"-0":e}var i=n(656),o=n(881),a=n(253),s=n(884),u=1/0,c=i?i.prototype:void 0,l=c?c.toString:void 0;t.exports=r},function(t,e,n){function r(t,e){return null!=t&&o(t,e,i)}var i=n(2592),o=n(2593);t.exports=r},function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},function(t,e,n){function r(t,e,n){e=i(e,t);for(var r=-1,l=e.length,f=!1;++r<l;){var h=c(e[r]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}
return f||++r!=l?f:!!(l=null==t?0:t.length)&&u(l)&&s(h,l)&&(a(t)||o(t))}var i=n(1298),o=n(1287),a=n(253),s=n(1289),u=n(879),c=n(660);t.exports=r},function(t,e,n){function r(t){return a(t)?i(s(t)):o(t)}var i=n(2595),o=n(2596),a=n(883),s=n(660);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){return function(e){return i(e,t)}}var i=n(1297);t.exports=r},function(t,e,n){"use strict";function r(t){
var e=t.component,n=t.children,r=t.appear,s=t.enter,u=t.leave;return o.a.createElement(a.TransitionGroup,{component:e},i.Children.map(n,function(t,e){return o.a.createElement(c.a,{appearOptions:r,enterOptions:s,leaveOptions:u,key:"child-".concat(e)},t)}))}var i=n(0),o=n.n(i),a=n(1299),s=(n.n(a),n(1)),u=n.n(s),c=n(2607);r.propTypes={appear:u.a.object,enter:u.a.object,leave:u.a.object,children:u.a.oneOfType([u.a.array,u.a.element]),component:u.a.any},r.defaultProps={component:"span"}
},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}e.__esModule=!0,e.default=void 0;var a=(function(t){if(t&&t.__esModule)return t;var e={}
;if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(545)),r(n(2601))),s=r(n(2604)),u=r(n(0)),c=r(n(1300)),l=(n(1302),function(t,e){return t&&e&&e.split(" ").forEach(function(e){return(0,a.default)(t,e)})}),f=function(t,e){return t&&e&&e.split(" ").forEach(function(e){return(0,s.default)(t,e)})},h=function(t){
function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r))||this,e.onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter"),i=r.className;e.removeClasses(t,"exit"),l(t,i),e.props.onEnter&&e.props.onEnter(t)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter"),i=r.activeClassName;e.reflowAndAddClass(t,i),e.props.onEntering&&e.props.onEntering(t)},e.onEntered=function(t,n){
var r=e.getClassNames("enter"),i=r.doneClassName;e.removeClasses(t,n?"appear":"enter"),l(t,i),e.props.onEntered&&e.props.onEntered(t)},e.onExit=function(t){var n=e.getClassNames("exit"),r=n.className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),l(t,r),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit"),r=n.activeClassName;e.reflowAndAddClass(t,r),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){
var n=e.getClassNames("exit"),r=n.doneClassName;e.removeClasses(t,"exit"),l(t,r),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"!=typeof n?n[t]:n+"-"+t;return{className:r,activeClassName:"string"!=typeof n?n[t+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[t+"Done"]:r+"-done"}},e}i(e,t);var n=e.prototype;return n.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&f(t,r),
i&&f(t,i),o&&f(t,o)},n.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,l(t,e))},n.render=function(){var t=o({},this.props);return delete t.classNames,u.default.createElement(c.default,o({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(u.default.Component);h.propTypes={};var p=h;e.default=p,t.exports=e.default},function(t,e,n){"use strict";function r(){}var i=n(2600);t.exports=function(){
function t(t,e,n,r,o,a){if(a!==i){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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,
n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(t,e){t.classList?t.classList.add(e):(0,o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}var i=n(2602);e.__esModule=!0,e.default=r;var o=i(n(2603));t.exports=e.default},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n
},function(t,e,n){"use strict";function r(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){
t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}e.__esModule=!0,
e.default=void 0;var a=(r(n(545)),r(n(0))),s=n(129),u=r(n(1303)),c=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r))||this,e.handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},
e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){
for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}o(e,t);var n=e.prototype;return n.handleLifecycle=function(t,e,n){var r,i=this.props.children,o=a.default.Children.toArray(i)[e];o.props[t]&&(r=o.props)[t].apply(r,n),this.props[t]&&this.props[t]((0,s.findDOMNode)(this))},n.render=function(){var t=this.props,e=t.children,n=t.in,r=i(t,["children","in"]),o=a.default.Children.toArray(e),s=o[0],c=o[1];return delete r.onEnter,
delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,a.default.createElement(u.default,r,n?a.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):a.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},e}(a.default.Component);c.propTypes={};var l=c;e.default=l,t.exports=e.default},function(t,e,n){"use strict"
;function r(t,e){var n=function(t){return e&&(0,u.isValidElement)(t)?e(t):t},r=Object.create(null);return t&&u.Children.map(t,function(t){return t}).forEach(function(t){r[t.key]=n(t)}),r}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r=Object.create(null),i=[];for(var o in t)o in e?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var u in e){if(r[u])for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}
function o(t,e,n){return null!=n[e]?n[e]:t.props[e]}function a(t,e){return r(t.children,function(n){return(0,u.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:o(n,"appear",t),enter:o(n,"enter",t),exit:o(n,"exit",t)})})}function s(t,e,n){var a=r(t.children),s=i(e,a);return Object.keys(s).forEach(function(r){var i=s[r];if((0,u.isValidElement)(i)){var c=r in e,l=r in a,f=e[r],h=(0,u.isValidElement)(f)&&!f.props.in;!l||c&&!h?l||!c||h?l&&c&&(0,u.isValidElement)(f)&&(s[r]=(0,u.cloneElement)(i,{
onExited:n.bind(null,i),in:f.props.in,exit:o(i,"exit",t),enter:o(i,"enter",t)})):s[r]=(0,u.cloneElement)(i,{in:!1}):s[r]=(0,u.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:o(i,"exit",t),enter:o(i,"enter",t)})}}),s}e.__esModule=!0,e.getChildMapping=r,e.mergeChildMappings=i,e.getInitialChildMapping=a,e.getNextChildMapping=s;var u=n(0)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){if(null==t)return{};var n,r,i=a(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],
e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function a(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),
r.forEach(function(e){u(t,e,n[e])})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function h(t,e){
return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,
writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=n(2608),m=n.n(y),b=n(0),w=n.n(b),_=n(1299),x=(n.n(_),n(1)),O=n.n(x),T=n(1276),S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(m()(e.duration)&&e.duration>0?e.duration:0)},0):m()(n)?n:0},E=function(t){function e(){var t,n;c(this,e)
;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h(this,(t=d(e)).call.apply(t,[this].concat(i))),n.state={isActive:!1},n.handleEnter=function(t,e){var r=n.props,i=r.appearOptions,o=r.enterOptions;n.handleStyleActive(e?i:o)},n.handleExit=function(){n.handleStyleActive(n.props.leaveOptions)},n}return g(e,t),f(e,[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(s({},t,{onAnimationEnd:e,
isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return S(e)+S(n)+S(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=(e.appearOptions,e.enterOptions,e.leaveOptions,o(e,["children","appearOptions","enterOptions","leaveOptions"]));return w.a.createElement(_.Transition,i({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){
return w.a.createElement(T.a,t.state,b.Children.only(n))})}}]),e}(b.Component);E.propTypes={appearOptions:O.a.object,enterOptions:O.a.object,leaveOptions:O.a.object,children:O.a.element},e.a=E},function(t,e,n){function r(t){return"number"==typeof t||o(t)&&i(t)==a}var i=n(379),o=n(315),a="[object Number]";t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,
enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?l(t):e}function l(t){
if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){
return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d,g,v,y=n(104),m=n.n(y),b=n(0),w=n.n(b),_=n(49),x=n.n(_),O=n(66),T=n.n(O),S=n(60),E=n(83),j=function(t){return m()(t)&&Object(E.g)(t[0])&&Object(E.g)(t[1])?t.join(" ~ "):t},k=Object(S.a)((v=g=function(t){function e(){return a(this,e),c(this,f(e).apply(this,arguments))}return h(e,t),u(e,[{key:"renderContent",value:function(){var t=this.props,e=t.payload,n=t.separator,r=t.formatter,o=t.itemStyle,a=t.itemSorter
;if(e&&e.length){var s={padding:0,margin:0},u=e.sort(a).map(function(t,e){var a=i({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},o),s=Object(E.g)(t.name),u=t.formatter||r||j;return w.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:a},s?w.a.createElement("span",{className:"recharts-tooltip-item-name"},t.name):null,s?w.a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,w.a.createElement("span",{
className:"recharts-tooltip-item-value"},u?u(t.value,t.name,t,e):t.value),w.a.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return w.a.createElement("ul",{className:"recharts-tooltip-item-list",style:s},u)}return null}},{key:"render",value:function(){var t=this.props,e=t.wrapperClassName,n=t.contentStyle,r=t.labelClassName,o=t.labelStyle,a=t.label,s=t.labelFormatter,u=i({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"
},n),c=i({margin:0},o),l=Object(E.g)(a),f=l?a:"",h=T()("recharts-default-tooltip",e),p=T()("recharts-tooltip-label",r);return l&&s&&(f=s(a)),w.a.createElement("div",{className:h,style:u},w.a.createElement("p",{className:p,style:c},f),this.renderContent())}}]),e}(b.Component),g.displayName="DefaultTooltipContent",g.propTypes={separator:x.a.string,wrapperClassName:x.a.string,labelClassName:x.a.string,formatter:x.a.func,contentStyle:x.a.object,itemStyle:x.a.object,labelStyle:x.a.object,
labelFormatter:x.a.func,label:x.a.any,payload:x.a.arrayOf(x.a.shape({name:x.a.any,value:x.a.oneOfType([x.a.number,x.a.string,x.a.array]),unit:x.a.any})),itemSorter:x.a.func},g.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}},d=v))||d;e.a=k},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}
function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){
return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=n(1304),p=n.n(h),d=n(0),g=n.n(d),v=n(49),y=n.n(v),m=n(66),b=n.n(m),w=n(2612),_=n.n(w),x=n(83),O=n(546),T=function(t){function e(t){var n;return i(this,e),n=s(this,c(e).call(this,t)),n.updateDimensionsImmediate=function(){if(n.mounted){var t=n.getContainerSize();if(t){var e=n.state,r=e.containerWidth,i=e.containerHeight,o=t.containerWidth,a=t.containerHeight;o===r&&a===i||n.setState({containerWidth:o,
containerHeight:a})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=t.debounce>0?p()(n.updateDimensionsImmediate,t.debounce):n.updateDimensionsImmediate,n}return l(e,t),a(e,[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.getContainerSize();t&&this.setState(t)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,
containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var t=this.state,e=t.containerWidth,n=t.containerHeight;if(e<0||n<0)return null;var r=this.props,i=r.aspect,o=r.width,a=r.height,s=r.minWidth,u=r.minHeight,c=r.maxHeight,l=r.children;Object(O.a)(Object(x.i)(o)||Object(x.i)(a),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",o,a),Object(O.a)(!i||i>0,"The aspect(%s) must be greater than zero.",i)
;var f=Object(x.i)(o)?e:o,h=Object(x.i)(a)?n:a;return i&&i>0&&(h=f/i,c&&h>c&&(h=c)),Object(O.a)(f>0||h>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",f,h,o,a,s,u,i),g.a.cloneElement(l,{width:f,height:h})}},{key:"render",value:function(){
var t=this,e=this.props,n=e.minWidth,r=e.minHeight,i=e.width,o=e.height,a=e.maxHeight,s=e.id,u=e.className,c={width:i,height:o,minWidth:n,minHeight:r,maxHeight:a};return g.a.createElement("div",{id:s,className:b()("recharts-responsive-container",u),style:c,ref:function(e){t.container=e}},this.renderChart(),g.a.createElement(_.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}]),e}(d.Component);T.displayName="ResponsiveContainer",T.propTypes={aspect:y.a.number,
width:y.a.oneOfType([y.a.string,y.a.number]),height:y.a.oneOfType([y.a.string,y.a.number]),minHeight:y.a.oneOfType([y.a.string,y.a.number]),minWidth:y.a.oneOfType([y.a.string,y.a.number]),maxHeight:y.a.oneOfType([y.a.string,y.a.number]),children:y.a.node.isRequired,debounce:y.a.number,id:y.a.oneOfType([y.a.string,y.a.number]),className:y.a.oneOfType([y.a.string,y.a.number])},T.defaultProps={width:"100%",height:"100%",debounce:0},e.a=T},function(t,e,n){var r=n(213),i=function(){
return r.Date.now()};t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2613),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
;return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(0),c=r(u),l=n(1),f=r(l),h=n(2614),p=r(h),d=n(2615),g=r(d),v=n(2616),y=r(v),m={debounce:g.default,throttle:y.default},b={position:"absolute",width:0,height:0,visibility:"hidden",display:"none"},w=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))
;n.createResizeObserver=function(t){var e=n.props,r=e.handleWidth,i=e.handleHeight,o=e.onResize;t.forEach(function(t){var e=t.contentRect,a=e.width,s=e.height,u=r&&n.width!==a,c=i&&n.height!==s;n.skipOnMount||!u&&!c||o(a,s),n.width=a,n.height=s,n.skipOnMount=!1})};var r=t.skipOnMount,a=t.refreshMode,s=t.refreshRate;n.width=void 0,n.height=void 0,n.skipOnMount=r;var u=m[a]&&m[a](n.createResizeObserver,s)||n.createResizeObserver;return n.ro=new p.default(u),n}return a(e,t),s(e,[{
key:"componentDidMount",value:function(){var t=this.props.resizableElementId,e=t?document.getElementById(t):this.el.parentElement;this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var t=this.props.resizableElementId,e=t?document.getElementById(t):this.el.parentElement;this.ro.unobserve(e)}},{key:"render",value:function(){var t=this;return c.default.createElement("div",{style:b,ref:function(e){t.el=e}})}}]),e}(u.PureComponent);e.default=w,w.propTypes={handleWidth:f.default.bool,
handleHeight:f.default.bool,skipOnMount:f.default.bool,refreshRate:f.default.number,refreshMode:f.default.string,resizableElementId:f.default.string,onResize:f.default.func},w.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,resizableElementId:"",onResize:function(t){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function n(t){return parseFloat(t)||0}function r(t){
for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return e.reduce(function(e,r){return e+n(t["border-"+r+"-width"])},0)}function i(t){for(var e=["top","right","bottom","left"],r={},i=0,o=e;i<o.length;i+=1){var a=o[i],s=t["padding-"+a];r[a]=n(s)}return r}function o(t){var e=t.getBBox();return l(0,0,e.width,e.height)}function a(t){var e=t.clientWidth,o=t.clientHeight;if(!e&&!o)return x;var a=_(t).getComputedStyle(t),u=i(a),c=u.left+u.right,f=u.top+u.bottom,h=n(a.width),p=n(a.height)
;if("border-box"===a.boxSizing&&(Math.round(h+c)!==e&&(h-=r(a,"left","right")+c),Math.round(p+f)!==o&&(p-=r(a,"top","bottom")+f)),!s(t)){var d=Math.round(h+c)-e,g=Math.round(p+f)-o;1!==Math.abs(d)&&(h-=d),1!==Math.abs(g)&&(p-=g)}return l(u.left,u.top,h,p)}function s(t){return t===_(t).document.documentElement}function u(t){return h?O(t)?o(t):a(t):x}function c(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype)
;return w(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function l(t,e,n,r){return{x:t,y:e,width:n,height:r}}var f=function(){function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},
e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e
}()}(),h="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,p=function(){return void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")()}(),d=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame.bind(p):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),g=2,v=function(t,e){function n(){o&&(o=!1,t()),a&&i()}
function r(){d(n)}function i(){var t=Date.now();if(o){if(t-s<g)return;a=!0}else o=!0,a=!1,setTimeout(r,e);s=t}var o=!1,a=!1,s=0;return i},y=["top","right","bottom","left","width","height","size","weight"],m="undefined"!=typeof MutationObserver,b=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=v(this.refresh.bind(this),20)};b.prototype.addObserver=function(t){
~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},b.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},b.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},b.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},
b.prototype.connect_=function(){h&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(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)},b.prototype.disconnect_=function(){
h&&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)},b.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),y.some(function(t){return!!~e.indexOf(t)
})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var w=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},_=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||p},x=l(0,0,0,0),O=function(){return"undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof _(t).SVGGraphicsElement
}:function(t){return t instanceof _(t).SVGElement&&"function"==typeof t.getBBox}}(),T=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=l(0,0,0,0),this.target=t};T.prototype.isActive=function(){var t=u(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},T.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var S=function(t,e){var n=c(e);w(this,{
target:t,contentRect:n})},E=function(t,e,n){if(this.activeObservations_=[],this.observations_=new f,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n};E.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){
if(!(t instanceof _(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new T(t)),this.controller_.addObserver(this),this.controller_.refresh())}},E.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof _(t).Element))throw new TypeError('parameter 1 is not of type "Element".')
;var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},E.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},E.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},E.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){
return new S(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},E.prototype.clearActive=function(){this.activeObservations_.splice(0)},E.prototype.hasActive=function(){return this.activeObservations_.length>0};var j="undefined"!=typeof WeakMap?new WeakMap:new f,k=function(t){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 e=b.getInstance(),n=new E(t,e,this);j.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){k.prototype[t]=function(){return(e=j.get(this))[t].apply(e,arguments);var e}});var C=function(){return void 0!==p.ResizeObserver?p.ResizeObserver:k}();e.default=C}.call(e,n(158))},function(t,e,n){(function(e){function n(t,e,n){function i(e){var n=g,r=v;return g=v=void 0,T=e,m=t.apply(r,n)}function o(t){return T=t,b=setTimeout(l,e),S?i(t):m}function u(t){var n=t-O,r=t-T,i=e-n
;return E?_(i,y-r):i}function c(t){var n=t-O,r=t-T;return void 0===O||n>=e||n<0||E&&r>=y}function l(){var t=x();if(c(t))return f(t);b=setTimeout(l,u(t))}function f(t){return b=void 0,j&&g?i(t):(g=v=void 0,m)}function h(){void 0!==b&&clearTimeout(b),T=0,g=O=v=b=void 0}function p(){return void 0===b?m:f(x())}function d(){var t=x(),n=c(t);if(g=arguments,v=this,O=t,n){if(void 0===b)return o(O);if(E)return b=setTimeout(l,e),i(O)}return void 0===b&&(b=setTimeout(l,e)),m}
var g,v,y,m,b,O,T=0,S=!1,E=!1,j=!0;if("function"!=typeof t)throw new TypeError(s);return e=a(e)||0,r(n)&&(S=!!n.leading,E="maxWait"in n,y=E?w(a(n.maxWait)||0,e):y,j="trailing"in n?!!n.trailing:j),d.cancel=h,d.flush=p,d}function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function i(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||i(t)&&b.call(t)==c}function a(t){if("number"==typeof t)return t;if(o(t))return u;if(r(t)){
var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=h.test(t);return n||p.test(t)?d(t.slice(2),n?2:8):f.test(t)?u:+t}
var s="Expected a function",u=NaN,c="[object Symbol]",l=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt,g="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),m=Object.prototype,b=m.toString,w=Math.max,_=Math.min,x=function(){return y.Date.now()};t.exports=n}).call(e,n(158))},function(t,e,n){(function(e){function n(t,e,n){function r(e){var n=g,r=v;return g=v=void 0,T=e,m=t.apply(r,n)}
function o(t){return T=t,b=setTimeout(l,e),S?r(t):m}function a(t){var n=t-w,r=t-T,i=e-n;return E?x(i,y-r):i}function c(t){var n=t-w,r=t-T;return void 0===w||n>=e||n<0||E&&r>=y}function l(){var t=O();if(c(t))return f(t);b=setTimeout(l,a(t))}function f(t){return b=void 0,j&&g?r(t):(g=v=void 0,m)}function h(){void 0!==b&&clearTimeout(b),T=0,g=w=v=b=void 0}function p(){return void 0===b?m:f(O())}function d(){var t=O(),n=c(t);if(g=arguments,v=this,w=t,n){if(void 0===b)return o(w)
;if(E)return b=setTimeout(l,e),r(w)}return void 0===b&&(b=setTimeout(l,e)),m}var g,v,y,m,b,w,T=0,S=!1,E=!1,j=!0;if("function"!=typeof t)throw new TypeError(u);return e=s(e)||0,i(n)&&(S=!!n.leading,E="maxWait"in n,y=E?_(s(n.maxWait)||0,e):y,j="trailing"in n?!!n.trailing:j),d.cancel=h,d.flush=p,d}function r(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError(u);return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:o,maxWait:e,trailing:a})}
function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function o(t){return!!t&&"object"==typeof t}function a(t){return"symbol"==typeof t||o(t)&&w.call(t)==l}function s(t){if("number"==typeof t)return t;if(a(t))return c;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(f,"");var n=p.test(t);return n||d.test(t)?g(t.slice(2),n?2:8):h.test(t)?c:+t}
var u="Expected a function",c=NaN,l="[object Symbol]",f=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,d=/^0o[0-7]+$/i,g=parseInt,v="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,m=v||y||Function("return this")(),b=Object.prototype,w=b.toString,_=Math.max,x=Math.min,O=function(){return m.Date.now()};t.exports=r}).call(e,n(158))},function(t,e,n){function r(t,e){function n(t,n,a){if(o++>c)throw o=0,new Error("Call stack overflow for "+a)
;if(""===t)throw new Error(n+"(): '"+a+"' must contain a non-whitespace string");t=r(t,a);var s=i(t);if(s.length>1||t.indexOf("var(")>-1)return n+"("+t+")";var l=s[0]||"";"%"===l&&(t=t.replace(/\b[0-9\.]+%/g,function(t){return.01*parseFloat(t.slice(0,-1))}));var f,h=t.replace(new RegExp(l,"gi"),"");try{f=u.eval(h)}catch(e){return n+"("+t+")"}return"%"===l&&(f*=100),(n.length||"%"===l)&&(f=Math.round(f*e)/e),f+=l}function r(t,e){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"")
;for(var r,i="",o=t;r=l.exec(o);){r[0].index>0&&(i+=o.substring(0,r[0].index));var s=a("(",")",o.substring([0].index));if(""===s.body)throw new Error("'"+t+"' must contain a non-whitespace string");var u=n(s.body,"",e);i+=s.pre+u,o=s.post}return i+o}return o=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),s(t,/((?:\-[a-z]+\-)?calc)\(/,n)}function i(t){for(var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),
n.push(i[1].toLowerCase())),i=r.exec(t));return e}var o,a=n(1306),s=n(2618),u=n(2619),c=100,l=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=r},function(t,e,n){function r(t,e,n){var r=t;return i(t,e).reduce(function(t,i){return t.replace(i.functionIdentifier+"("+i.matches.body+")",o(i.matches.body,i.functionIdentifier,n,r,e))},t)}function i(t,e){var n=[],r="string"==typeof e?new RegExp("\\b("+e+")\\("):e;do{var i=r.exec(t);if(!i)return n
;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var o=i[1],s=i.index,u=a("(",")",t.substring(s));if(!u||u.start!==i[0].length-1)throw new SyntaxError(o+"(): missing closing ')' in the value '"+t+"'");n.push({matches:u,functionIdentifier:o}),t=u.post}while(r.test(t));return n}function o(t,e,n,i,o){return n(r(t,o,n),e,i)}var a=n(1306);t.exports=r},function(t,e,n){var r=n(2620);r.prototype.formulaEval=function(){"use strict"
;for(var t,e,n,r=[],i=this.value,o=0;o<i.length;o++)1===i[o].type||3===i[o].type?r.push({value:3===i[o].type?i[o].show:i[o].value,type:1}):13===i[o].type?r.push({value:i[o].show,type:1}):0===i[o].type?r[r.length-1]={value:i[o].show+("-"!=i[o].show?"(":"")+r[r.length-1].value+("-"!=i[o].show?")":""),type:0}:7===i[o].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+i[o].show,type:7}:10===i[o].type?(t=r.pop(),e=r.pop(),
"P"===i[o].show||"C"===i[o].show?r.push({value:"<sup>"+e.value+"</sup>"+i[o].show+"<sub>"+t.value+"</sub>",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+"<sup>"+t.value+"</sup>",type:1})):2===i[o].type||9===i[o].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+i[o].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:i[o].type})):12===i[o].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({
value:i[o].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},function(t,e,n){var r=n(2621);r.prototype.postfixEval=function(t){"use strict";t=t||{},t.PI=Math.PI,t.E=Math.E;for(var e,n,i,o=[],a=this.value,s=void 0!==t.n,u=0;u<a.length;u++)1===a[u].type?o.push({value:a[u].value,type:1}):3===a[u].type?o.push({value:t[a[u].value],type:1
}):0===a[u].type?void 0===o[o.length-1].type?o[o.length-1].value.push(a[u]):o[o.length-1].value=a[u].value(o[o.length-1].value):7===a[u].type?void 0===o[o.length-1].type?o[o.length-1].value.push(a[u]):o[o.length-1].value=a[u].value(o[o.length-1].value):8===a[u].type?(e=o.pop(),n=o.pop(),o.push({type:1,value:a[u].value(n.value,e.value)})):10===a[u].type?(e=o.pop(),n=o.pop(),void 0===n.type?(n.value=n.concat(e),n.value.push(a[u]),o.push(n)):void 0===e.type?(e.unshift(n),e.push(a[u]),
o.push(e)):o.push({type:1,value:a[u].value(n.value,e.value)})):2===a[u].type||9===a[u].type?(e=o.pop(),n=o.pop(),void 0===n.type?(console.log(n),n=n.concat(e),n.push(a[u]),o.push(n)):void 0===e.type?(e.unshift(n),e.push(a[u]),o.push(e)):o.push({type:1,value:a[u].value(n.value,e.value)})):12===a[u].type?(e=o.pop(),void 0!==e.type&&(e=[e]),n=o.pop(),i=o.pop(),o.push({type:1,value:a[u].value(i.value,n.value,new r(e))})):13===a[u].type&&(s?o.push({value:t[a[u].value],type:3}):o.push([a[u]]))
;if(o.length>1)throw new r.exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(t,e,n){return void 0===e?this.lex(t).toPostfix().postfixEval():void 0===n?void 0!==e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},function(t,e,n){var r=n(2622);r.prototype.toPostfix=function(){"use strict";for(var t,e,n,i,o,a=[],s=[{value:"(",type:4,pre:0
}],u=this.value,c=1;c<u.length;c++)if(1===u[c].type||3===u[c].type||13===u[c].type)1===u[c].type&&(u[c].value=Number(u[c].value)),a.push(u[c]);else if(4===u[c].type)s.push(u[c]);else if(5===u[c].type)for(;4!==(e=s.pop()).type;)a.push(e);else if(11===u[c].type){for(;4!==(e=s.pop()).type;)a.push(e);s.push(e)}else{t=u[c],i=t.pre,o=s[s.length-1],n=o.pre;var l="Math.pow"==o.value&&"Math.pow"==t.value;if(i>n)s.push(t);else{for(;n>=i&&!l||l&&i<n;)e=s.pop(),o=s[s.length-1],a.push(e),n=o.pre,
l="Math.pow"==t.value&&"Math.pow"==o.value;s.push(t)}}return new r(a)},t.exports=r},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++)t[n]+=e;return t}function o(t,e,n,r){for(var i=0;i<r;i++)if(t[n+i]!==e[i])return!1;return!0}
var a=n(2623),s=["sin","cos","tan","pi","(",")","P","C","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],u=["sin","cos","tan","&pi;","(",")","P","C","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","&divide;","!","tanh","atanh"," Mod ","1","2","3","&times;","sinh","asinh","e"," log","0",".","+","-",",","&Sigma;","n","&Pi;","pow"],c=[a.math.sin,a.math.cos,a.math.tan,"PI","(",")",a.math.P,a.math.C,a.math.asin,a.math.acos,a.math.atan,"7","8","9",Math.floor,a.math.cosh,a.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",a.math.div,a.math.fact,a.math.tanh,a.math.atanh,a.math.mod,"1","2","3",a.math.mul,a.math.sinh,a.math.asinh,"E",a.math.log,"0",".",a.math.add,a.math.sub,",",a.math.sigma,"n",a.math.Pi,Math.pow],l={
0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0},f=[0,0,0,3,4,5,10,10,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],h={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0},p={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},d={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},g={},v={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},m={1:!0
},b=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];a.addToken=function(t){for(i=0;i<t.length;i++){x=t[i].token.length;var e=-1;if(x<b.length)for(y=0;y<b[x].length;y++)if(t[i].token===b[x][y]){e=s.indexOf(b[x][y]);break}-1===e?(s.push(t[i].token),f.push(t[i].type),
b.length<=t[i].token.length&&(b[t[i].token.length]=[]),b[t[i].token.length].push(t[i].token),c.push(t[i].value),u.push(t[i].show)):(s[e]=t[i].token,f[e]=t[i].type,c[e]=t[i].value,u[e]=t[i].show)}},a.lex=function(t,e){"use strict";var n,i,y,w,_=[{type:4,value:"(",show:"(",pre:0}],x=[],O=t,T=0,S=h,E=0,j=g,k="";void 0!==e&&a.addToken(e);var C={};for(i=0;i<O.length;i++)if(" "!=O[i]){n="";t:for(y=O.length-i>b.length-2?b.length-1:O.length-i;y>0;y--)for(w=0;w<b[y].length;w++)if(o(O,b[y][w],i,y)){
n=b[y][w];break t}if(i+=n.length-1,""===n)throw new a.exception("Can't understand after "+O.slice(i));var A=s.indexOf(n),P=n,M=f[A],D=c[A],I=l[M],N=u[A],R=_[_.length-1];for(L=x.length;L--;)if(0===x[L]&&-1!==[0,2,3,5,9,11,12,13].indexOf(M)){if(!0!==S[M])throw new a.exception(n+" is not allowed after "+k);_.push({value:")",type:5,pre:0,show:")"}),S=p,j=v,r(x,-1).pop()}if(!0!==S[M])throw new a.exception(n+" is not allowed after "+k);if(!0===j[M]&&(M=2,D=a.math.mul,N="&times;",I=3,i-=n.length),C={
value:D,type:M,pre:I,show:N},0===M)S=h,j=g,r(x,2).push(2),_.push(C),_.push({value:"(",type:4,pre:0,show:"("});else if(1===M)1===R.type?(R.value+=D,r(x,1)):_.push(C),S=p,j=d;else if(2===M)S=h,j=g,r(x,2),_.push(C);else if(3===M)_.push(C),S=p,j=v;else if(4===M)T+=x.length,x=[],E++,S=h,j=g,_.push(C);else if(5===M){if(!E)throw new a.exception("Closing parenthesis are more than opening one, wait What!!!");for(;T--;)_.push({value:")",type:5,pre:0,show:")"});T=0,E--,S=p,j=v,_.push(C)}else if(6===M){
if(R.hasDec)throw new a.exception("Two decimals are not allowed in one number");1!==R.type&&(R={value:0,type:1,pre:0},_.push(R),r(x,-1)),S=m,r(x,1),j=g,R.value+=D,R.hasDec=!0}else 7===M&&(S=p,j=v,r(x,1),_.push(C));8===M?(S=h,j=g,r(x,4).push(4),_.push(C),_.push({value:"(",type:4,pre:0,show:"("})):9===M?(9===R.type?R.value===a.math.add?(R.value=D,R.show=N,r(x,1)):R.value===a.math.sub&&"-"===N&&(R.value=a.math.add,R.show="+",
r(x,1)):5!==R.type&&7!==R.type&&1!==R.type&&3!==R.type&&13!==R.type?"-"===P&&(S=h,j=g,r(x,2).push(2),_.push({value:a.math.changeSign,type:0,pre:21,show:"-"}),_.push({value:"(",type:4,pre:0,show:"("})):(_.push(C),r(x,2)),S=h,j=g):10===M?(S=h,j=g,r(x,2),_.push(C)):11===M?(S=h,j=g,_.push(C)):12===M?(S=h,j=g,r(x,6).push(6),_.push(C),_.push({value:"(",type:4,pre:0})):13===M&&(S=p,j=v,_.push(C)),r(x,-1),k=n}for(var L=x.length;L--;)0===x[L]&&(_.push({value:")",show:")",type:5,pre:3}),r(x,-1).pop())
;if(!0!==S[5])throw new a.exception("complete the expression");for(;E--;)_.push({value:")",show:")",type:5,pre:3});return _.push({type:5,value:")",show:")",pre:0}),new a(_)},t.exports=a},function(t,e){var n=function(t){this.value=t};n.math={isDegree:!0,acos:function(t){return n.math.isDegree?180/Math.PI*Math.acos(t):Math.acos(t)},add:function(t,e){return t+e},asin:function(t){return n.math.isDegree?180/Math.PI*Math.asin(t):Math.asin(t)},atan:function(t){
return n.math.isDegree?180/Math.PI*Math.atan(t):Math.atan(t)},acosh:function(t){return Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return Math.log(t+Math.sqrt(t*t+1))},atanh:function(t){return Math.log((1+t)/(1-t))},C:function(t,e){var r=1,i=t-e,o=e;o<i&&(o=i,i=e);for(var a=o+1;a<=t;a++)r*=a;return r/n.math.fact(i)},changeSign:function(t){return-t},cos:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.cos(t)},cosh:function(t){return(Math.pow(Math.E,t)+Math.pow(Math.E,-1*t))/2},
div:function(t,e){return t/e},fact:function(t){if(t%1!=0)return"NAN";for(var e=1,n=2;n<=t;n++)e*=n;return e},inverse:function(t){return 1/t},log:function(t){return Math.log(t)/Math.log(10)},mod:function(t,e){return t%e},mul:function(t,e){return t*e},P:function(t,e){for(var n=1,r=Math.floor(t)-Math.floor(e)+1;r<=Math.floor(t);r++)n*=r;return n},Pi:function(t,e,n){for(var r=1,i=t;i<=e;i++)r*=Number(n.postfixEval({n:i}));return r},pow10x:function(t){for(var e=1;t--;)e*=10;return e},
sigma:function(t,e,n){for(var r=0,i=t;i<=e;i++)r+=Number(n.postfixEval({n:i}));return r},sin:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.sin(t)},sinh:function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-1*t))/2},sub:function(t,e){return t-e},tan:function(t){return n.math.isDegree&&(t=n.math.toRadian(t)),Math.tan(t)},tanh:function(t){return n.sinha(t)/n.cosha(t)},toRadian:function(t){return t*Math.PI/180}},n.exception=function(t){this.message=t},t.exports=n},function(t,e,n){
function r(t,e,n,r,v,m){var b=c(t),w=c(e),_=b?d:u(t),x=w?d:u(e);_=_==p?g:_,x=x==p?g:x;var O=_==g,T=x==g,S=_==x;if(S&&l(t)){if(!l(e))return!1;b=!0,O=!1}if(S&&!O)return m||(m=new i),b||f(t)?o(t,e,n,r,v,m):a(t,e,_,n,r,v,m);if(!(n&h)){var E=O&&y.call(t,"__wrapped__"),j=T&&y.call(e,"__wrapped__");if(E||j){var k=E?t.value():t,C=j?e.value():e;return m||(m=new i),v(k,C,n,r,m)}}return!!S&&(m||(m=new i),s(t,e,n,r,v,m))}
var i=n(886),o=n(1307),a=n(2634),s=n(2637),u=n(663),c=n(104),l=n(890),f=n(1314),h=1,p="[object Arguments]",d="[object Array]",g="[object Object]",v=Object.prototype,y=v.hasOwnProperty;t.exports=r},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(643);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){
return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}var i=n(643),o=n(865),a=n(864),s=200;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}var i=n(864),o=n(2631),a=n(2632);r.prototype.add=r.prototype.push=o,
r.prototype.has=a,t.exports=r},function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e){function n(t,e){return t.has(e)}t.exports=n},function(t,e,n){function r(t,e,n,r,i,O,S){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!O(new o(t),new o(e)));case h:case p:
case v:return a(+t,+e);case d:return t.name==e.name&&t.message==e.message;case y:case b:return t==e+"";case g:var E=u;case m:var j=r&l;if(E||(E=c),t.size!=e.size&&!j)return!1;var k=S.get(t);if(k)return k==e;r|=f,S.set(t,e);var C=s(E(t),E(e),r,i,O,S);return S.delete(t),C;case w:if(T)return T.call(t)==T.call(e)}return!1}
var i=n(442),o=n(1309),a=n(645),s=n(1307),u=n(2635),c=n(2636),l=1,f=2,h="[object Boolean]",p="[object Date]",d="[object Error]",g="[object Map]",v="[object Number]",y="[object RegExp]",m="[object Set]",b="[object String]",w="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",O=i?i.prototype:void 0,T=O?O.valueOf:void 0;t.exports=r},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){
var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t,e,n,r,a,u){var c=n&o,l=i(t),f=l.length;if(f!=i(e).length&&!c)return!1;for(var h=f;h--;){var p=l[h];if(!(c?p in e:s.call(e,p)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var g=!0;u.set(t,e),u.set(e,t);for(var v=c;++h<f;){p=l[h];var y=t[p],m=e[p];if(r)var b=c?r(m,y,p,e,t,u):r(y,m,p,t,e,u);if(!(void 0===b?y===m||a(y,m,n,r,u):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){
var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return u.delete(t),u.delete(e),g}var i=n(1310),o=1,a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n
},function(t,e,n){function r(t){return o(t)&&i(t)==a}var i=n(314),o=n(252),a="[object Arguments]";t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function r(t){return a(t)&&o(t.length)&&!!s[i(t)]}var i=n(314),o=n(892),a=n(252),s={}
;s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,
s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){function r(t){if(!i(t))return o(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}
var i=n(894),o=n(2644),a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(1315),i=r(Object.keys,Object);t.exports=i},function(t,e,n){var r=n(376),i=n(213),o=r(i,"DataView");t.exports=o},function(t,e,n){var r=n(376),i=n(213),o=r(i,"Promise");t.exports=o},function(t,e,n){var r=n(376),i=n(213),o=r(i,"Set");t.exports=o},function(t,e,n){var r=n(376),i=n(213),o=r(i,"WeakMap");t.exports=o},function(t,e,n){function r(t){return a(t)||o(t)||!!(s&&t&&t[s])}
var i=n(442),o=n(889),a=n(104),s=i?i.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){function r(t,e,n){var r=-1;e=i(e.length?e:[l],u(o));var f=a(t,function(t,n,o){return{criteria:i(e,function(e){return e(t)}),index:++r,value:t}});return s(f,function(t,e){return c(t,e,n)})}var i=n(647),o=n(254),a=n(1319),s=n(2664),u=n(662),c=n(2665),l=n(447);t.exports=r},function(t,e,n){function r(t){var e=o(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}
var i=n(2652),o=n(2653),a=n(1318);t.exports=r},function(t,e,n){function r(t,e,n,r){var u=n.length,c=u,l=!r;if(null==t)return!c;for(t=Object(t);u--;){var f=n[u];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++u<c;){f=n[u];var h=f[0],p=t[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in t))return!1}else{var g=new i;if(r)var v=r(p,d,h,t,e,g);if(!(void 0===v?o(d,p,a|s,r,g):v))return!1}}return!0}var i=n(886),o=n(885),a=1,s=2;t.exports=r},function(t,e,n){function r(t){for(var e=o(t),n=e.length;n--;){
var r=e[n],a=t[r];e[n]=[r,a,i(a)]}return e}var i=n(1317),o=n(445);t.exports=r},function(t,e,n){function r(t,e){return s(t)&&u(e)?c(l(t),e):function(n){var r=o(n,t);return void 0===r&&r===e?a(n,t):i(e,r,f|h)}}var i=n(885),o=n(539),a=n(2655),s=n(863),u=n(1317),c=n(1318),l=n(540),f=1,h=2;t.exports=r},function(t,e,n){function r(t,e){return null!=t&&o(t,e,i)}var i=n(2656),o=n(2657);t.exports=r},function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},function(t,e,n){
function r(t,e,n){e=i(e,t);for(var r=-1,l=e.length,f=!1;++r<l;){var h=c(e[r]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++r!=l?f:!!(l=null==t?0:t.length)&&u(l)&&s(h,l)&&(a(t)||o(t))}var i=n(641),o=n(889),a=n(104),s=n(891),u=n(892),c=n(540);t.exports=r},function(t,e,n){function r(t){return a(t)?i(s(t)):o(t)}var i=n(2659),o=n(2660),a=n(863),s=n(540);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){
return function(e){return i(e,t)}}var i=n(862);t.exports=r},function(t,e,n){var r=n(2662),i=r();t.exports=i},function(t,e){function n(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}t.exports=n},function(t,e,n){function r(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(446);t.exports=r},function(t,e){
function n(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}t.exports=n},function(t,e,n){function r(t,e,n){for(var r=-1,o=t.criteria,a=e.criteria,s=o.length,u=n.length;++r<s;){var c=i(o[r],a[r]);if(c){if(r>=u)return c;return c*("desc"==n[r]?-1:1)}}return t.index-e.index}var i=n(2666);t.exports=r},function(t,e,n){function r(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t===t,a=i(t),s=void 0!==e,u=null===e,c=e===e,l=i(e)
;if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&t<e||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}var i=n(443);t.exports=r},function(t,e,n){function r(t,e){return a(o(t,e,i),t+"")}var i=n(447),o=n(1321),a=n(1322);t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){
var r=n(2670),i=n(1323),o=n(447),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e){function n(t){var e=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){function r(t){return t&&t.length?i(t,a,o):void 0}
var i=n(665),o=n(1324),a=n(447);t.exports=r},function(t,e,n){function r(t,e){return i(o(t,e),1)}var i=n(895),o=n(2674);t.exports=r},function(t,e,n){function r(t,e){return(s(t)?i:a)(t,o(e,3))}var i=n(647),o=n(254),a=n(1319),s=n(104);t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){
return r.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(2676)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return s(t)||a(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function a(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}
function s(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function u(t,e){return f(t)||l(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function f(t){
if(Array.isArray(t))return t}function h(t){var e=u(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function p(t,e,n){if(t.lte(0))return new b.default(0);var r=_.default.getDigitCount(t.toNumber()),i=new b.default(10).pow(r),o=t.div(i),a=1!==r?.05:.1,s=new b.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a),u=s.mul(i);return e?u:new b.default(Math.ceil(u))}function d(t,e,n){var r=1,i=new b.default(t);if(!i.isint()&&n){var o=Math.abs(t)
;o<1?(r=new b.default(10).pow(_.default.getDigitCount(t)-1),i=new b.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new b.default(Math.floor(t)))}else 0===t?i=new b.default(Math.floor((e-1)/2)):n||(i=new b.default(Math.floor(t)));var a=Math.floor((e-1)/2);return(0,w.compose)((0,w.map)(function(t){return i.add(new b.default(t-a).mul(r)).toNumber()}),w.range)(0,e)}function g(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{
step:new b.default(0),tickMin:new b.default(0),tickMax:new b.default(0)};var o,a=p(new b.default(e).sub(t).div(n-1),r,i);t<=0&&e>=0?o=new b.default(0):(o=new b.default(t).add(e).div(2),o=o.sub(new b.default(o).mod(a)));var s=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new b.default(e).sub(o).div(a).toNumber()),c=s+u+1;return c>n?g(t,e,n,r,i+1):(c<n&&(u=e>0?u+(n-c):u,s=e>0?s:s+(n-c)),{step:a,tickMin:o.sub(new b.default(s).mul(a)),tickMax:o.add(new b.default(u).mul(a))})}function v(t){
var e=u(t,2),n=e[0],r=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(o,2),c=h([n,r]),l=u(c,2),f=l[0],p=l[1];if(f===-1/0||p===1/0){var v=p===1/0?[f].concat(i((0,w.range)(0,o-1).map(function(){return 1/0}))):i((0,w.range)(0,o-1).map(function(){return-1/0})).concat([p]);return n>r?(0,w.reverse)(v):v}if(f===p)return d(f,o,a)
;var y=g(f,p,s,a),m=y.step,x=y.tickMin,O=y.tickMax,T=_.default.rangeStep(x,O.add(new b.default(.1).mul(m)),m);return n>r?(0,w.reverse)(T):T}function y(t){var e=u(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=h([n,r]),c=u(s,2),l=c[0],f=c[1];if(l===-1/0||f===1/0)return[n,r];if(l===f)return d(l,i,o);var g=p(new b.default(f).sub(l).div(a-1),o,0),v=(0,w.compose)((0,w.map)(function(t){
return new b.default(l).add(new b.default(t).mul(g)).toNumber()}),w.range),y=v(0,a).filter(function(t){return t>=l&&t<=f});return n>r?(0,w.reverse)(y):y}function m(t,e){var n=u(t,2),r=n[0],o=n[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=h([r,o]),c=u(s,2),l=c[0],f=c[1];if(l===-1/0||f===1/0)return[r,o];if(l===f)return[l]
;var d=Math.max(e,2),g=p(new b.default(f).sub(l).div(d-1),a,0),v=i(_.default.rangeStep(new b.default(l),new b.default(f).sub(new b.default(.99).mul(g)),g)).concat([f]);return r>o?(0,w.reverse)(v):v}Object.defineProperty(e,"__esModule",{value:!0}),e.getTickValuesFixedDomain=e.getTickValues=e.getNiceTickValues=void 0;var b=r(n(1327)),w=n(1328),_=r(n(2677)),x=(0,w.memoize)(v);e.getNiceTickValues=x;var O=(0,w.memoize)(y);e.getTickValues=O;var T=(0,w.memoize)(m);e.getTickValuesFixedDomain=T
},function(t,e,n){"use strict";function r(t){return 0===t?1:Math.floor(new o.default(t).abs().log(10).toNumber())+1}function i(t,e,n){for(var r=new o.default(t),i=[];r.lt(e);)i.push(r.toNumber()),r=r.add(n);return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t){return t&&t.__esModule?t:{default:t}}(n(1327)),a=n(1328),s=(0,a.curry)(function(t,e,n){var r=+t;return r+n*(+e-r)}),u=(0,a.curry)(function(t,e,n){var r=e-+t;return r=r||1/0,(n-t)/r}),c=(0,
a.curry)(function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}),l={rangeStep:i,getDigitCount:r,interpolateNumber:s,uninterpolateNumber:u,uninterpolateTruncation:c};e.default=l},function(t,e,n){"use strict";function r(){function t(){var t=o().length,r=c[1]<c[0],i=c[r-0],s=c[1-r];e=(s-i)/Math.max(1,t-f+2*h),l&&(e=Math.floor(e)),i+=(s-i-e*(t-f))*p,n=e*(1-f),l&&(i=Math.round(i),n=Math.round(n));var d=Object(a.e)(t).map(function(t){return i+e*t});return u(r?d.reverse():d)}
var e,n,i=Object(s.a)().unknown(void 0),o=i.domain,u=i.range,c=[0,1],l=!1,f=0,h=0,p=.5;return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),t()):o()},i.range=function(e){return arguments.length?(c=[+e[0],+e[1]],t()):c.slice()},i.rangeRound=function(e){return c=[+e[0],+e[1]],l=!0,t()},i.bandwidth=function(){return n},i.step=function(){return e},i.round=function(e){return arguments.length?(l=!!e,t()):l},i.padding=function(e){
return arguments.length?(f=h=Math.max(0,Math.min(1,e)),t()):f},i.paddingInner=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},i.paddingOuter=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},i.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),t()):p},i.copy=function(){return r().domain(o()).range(c).round(l).paddingInner(f).paddingOuter(h).align(p)},t()}function i(t){var e=t.copy;return t.padding=t.paddingOuter,
delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return i(e())},t}function o(){return i(r().paddingInner(1))}e.a=r,e.b=o;var a=n(279),s=n(1342)},function(t,e,n){"use strict";n(1332)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(1336),n(1330),n(2682),n(1335),n(2683),n(1337),n(1338),n(1339)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(1336),n(448),
n(547),n(897)},function(t,e,n){"use strict";n(1333)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(547)},function(t,e,n){"use strict";n(448),n(547),n(897)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(448)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(1341)},function(t,e,n){"use strict";var r=(n(2696),n(2697),n(898));n.d(e,"a",function(){return r.a});n(2698),n(2699),n(2700)
},function(t,e,n){"use strict";n(898)},function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each(function(t){n.add(t)});else if(t){var i=-1,o=t.length;if(null==e)for(;++i<o;)n.add(t[i]);else for(;++i<o;)n.add(e(t[i],i,t))}return n}var o=n(898),a=o.a.prototype;r.prototype=i.prototype={constructor:r,has:a.has,add:function(t){return t+="",this[o.b+t]=t,this},remove:a.remove,clear:a.clear,values:a.keys,size:a.size,empty:a.empty,each:a.each}},function(t,e,n){
"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=i.a.call(n,a.a),t):e.slice()},t.copy=function(){return r().domain(e)},Object(o.b)(t)}e.a=r;var i=n(382),o=n(449),a=n(1351)},function(t,e,n){"use strict";function r(t){if(t instanceof o)return new o(t.l,t.a,t.b,t.opacity);if(t instanceof h){
if(isNaN(t.h))return new o(t.l,0,0,t.opacity);var e=t.h*g.a;return new o(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof d.b||(t=Object(d.h)(t));var n,r,i=c(t.r),s=c(t.g),u=c(t.b),l=a((.2225045*i+.7168786*s+.0606169*u)/y);return i===s&&s===u?n=r=l:(n=a((.4360747*i+.3850649*s+.1430804*u)/v),r=a((.0139322*i+.0971045*s+.7141733*u)/m)),new o(116*l-16,500*(n-l),200*(l-r),t.opacity)}function i(t,e,n,i){return 1===arguments.length?r(t):new o(t,e,n,null==i?1:i)}function o(t,e,n,r){this.l=+t,
this.a=+e,this.b=+n,this.opacity=+r}function a(t){return t>x?Math.pow(t,1/3):t/_+b}function s(t){return t>w?t*t*t:_*(t-b)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);if(t instanceof o||(t=r(t)),0===t.a&&0===t.b)return new h(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*g.b
;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,e,n,r){return 1===arguments.length?l(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=i,e.b=f;var p=n(902),d=n(901),g=n(1343),v=.96422,y=1,m=.82521,b=4/29,w=6/29,_=3*w*w,x=w*w*w;Object(p.a)(o,i,Object(p.b)(d.a,{brighter:function(t){return new o(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){
return new o(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=v*s(e),t=y*s(t),n=m*s(n),new d.b(u(3.1338561*e-1.6168667*t-.4906146*n),u(-.9787684*e+1.9161415*t+.033454*n),u(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(p.a)(h,f,Object(p.b)(d.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){
return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof o)return new o(t.h,t.s,t.l,t.opacity);t instanceof s.b||(t=Object(s.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(v*r+d*e-g*n)/(v+d-g),a=r-i,c=(p*(n-i)-f*a)/h,l=Math.sqrt(c*c+a*a)/(p*i*(1-i)),y=l?Math.atan2(c,a)*u.b-120:NaN;return new o(y<0?y+360:y,l,i,t.opacity)}function i(t,e,n,i){
return 1===arguments.length?r(t):new o(t,e,n,null==i?1:i)}function o(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=i;var a=n(902),s=n(901),u=n(1343),c=-.14861,l=1.78277,f=-.29227,h=-.90649,p=1.97294,d=p*h,g=p*l,v=l*f-h*c;Object(a.a)(o,i,Object(a.b)(s.a,{brighter:function(t){return t=null==t?s.c:Math.pow(s.c,t),new o(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s.d:Math.pow(s.d,t),new o(this.h,this.s,this.l*t,this.opacity)},rgb:function(){
var t=isNaN(this.h)?0:(this.h+120)*u.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new s.b(255*(e+n*(c*r+l*i)),255*(e+n*(f*r+h*i)),255*(e+n*(p*r)),this.opacity)}}))},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(451)},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}function a(t,r,o,a,s,u){
if(t!==o||r!==a){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(i.a)(t,o)},{i:c-2,x:Object(i.a)(r,a)})}else(o||a)&&s.push("translate("+o+e+a+n)}function s(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Object(i.a)(t,e)})):e&&n.push(o(n)+"rotate("+e+r)}function u(t,e,n,a){t!==e?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Object(i.a)(t,e)}):e&&n.push(o(n)+"skewX("+e+r)}function c(t,e,n,r,a,s){if(t!==n||e!==r){
var u=a.push(o(a)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(i.a)(t,n)},{i:u-2,x:Object(i.a)(e,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,i),s(e.rotate,n.rotate,r,i),u(e.skewX,n.skewX,r,i),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){for(var e,n=-1,o=i.length;++n<o;)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var i=n(666),o=n(2708)
;r(o.a,"px, ","px)","deg)"),r(o.b,", ",")",")")},function(t,e,n){"use strict";function r(t){return"none"===t?c.b:(o||(o=document.createElement("DIV"),a=document.documentElement,s=document.defaultView),o.style.transform=t,t=s.getComputedStyle(a.appendChild(o),null).getPropertyValue("transform"),a.removeChild(o),t=t.slice(7,-1).split(","),Object(c.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function i(t){return null==t?c.b:(u||(u=document.createElementNS("http://www.w3.org/2000/svg","g")),
u.setAttribute("transform",t),(t=u.transform.baseVal.consolidate())?(t=t.matrix,Object(c.a)(t.a,t.b,t.c,t.d,t.e,t.f)):c.b)}e.a=r,e.b=i;var o,a,s,u,c=n(2709)},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,i,o,a){var s,u,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,c/=u),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:o,
translateY:a,rotate:Math.atan2(e,t)*r,skewX:Math.atan(c)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.d)(e)).h,(n=Object(i.d)(n)).h),a=Object(o.a)(e.s,n.s),s=Object(o.a)(e.l,n.l),u=Object(o.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=a(t),e.l=s(t),e.opacity=u(t),e+""}}}var i=n(450),o=n(451);r(o.c),r(o.a)},function(t,e,n){"use strict";n(450),n(451)},function(t,e,n){
"use strict";function r(t){return function(e,n){var r=t((e=Object(i.c)(e)).h,(n=Object(i.c)(n)).h),a=Object(o.a)(e.c,n.c),s=Object(o.a)(e.l,n.l),u=Object(o.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=a(t),e.l=s(t),e.opacity=u(t),e+""}}}var i=n(450),o=n(451);r(o.c),r(o.a)},function(t,e,n){"use strict";function r(t){return function e(n){function r(e,r){
var a=t((e=Object(i.b)(e)).h,(r=Object(i.b)(r)).h),s=Object(o.a)(e.s,r.s),u=Object(o.a)(e.l,r.l),c=Object(o.a)(e.opacity,r.opacity);return function(t){return e.h=a(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,r.gamma=e,r}(1)}var i=n(450),o=n(451);r(o.c),r(o.a)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(279),i=n(1352);e.a=function(t,e,n){var o,a=t[0],s=t[t.length-1],u=Object(r.g)(a,s,null==e?10:e)
;switch(n=Object(i.c)(null==n?",f":n),n.type){case"s":var c=Math.max(Math.abs(a),Math.abs(s));return null!=n.precision||isNaN(o=Object(i.e)(u,c))||(n.precision=o),Object(i.b)(n,c);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=Object(i.f)(u,Math.max(Math.abs(a),Math.abs(s))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=Object(i.d)(u))||(n.precision=o-2*("%"===n.type))}return Object(i.a)(n)}},function(t,e,n){"use strict"
;n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r,i,o,a=n(1353);!function(t){r=Object(a.a)(t),i=r.format,o=r.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},function(t,e,n){"use strict";e.a=function(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}},function(t,e,n){"use strict";e.a=function(t){
return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}},function(t,e,n){"use strict";e.a=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t}},function(t,e,n){"use strict";var r=n(1355),i=n(2723);e.a={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){
return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Object(i.a)(100*t,e)},r:i.a,s:r.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,e,n){"use strict";var r=n(905);e.a=function(t,e){var n=Object(r.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1]
;return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(668);e.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(668);e.a=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(e)/3)))-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(668)
;e.a=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Object(r.a)(e)-Object(r.a)(t))+1}},function(t,e,n){"use strict";function r(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Object(h.a)(e)}function i(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function o(t){return isFinite(t)?+("1e"+t):t<0?0:t}function a(t){return 10===t?o:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function s(t){
return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function u(t){return function(e){return-t(-e)}}function c(){function t(){return h=s(o),g=a(o),n()[0]<0&&(h=u(h),g=u(g)),e}var e=Object(d.b)(r,i).domain([1,10]),n=e.domain,o=10,h=s(10),g=a(10);return e.base=function(e){return arguments.length?(o=+e,t()):o},e.domain=function(e){return arguments.length?(n(e),t()):n()},e.ticks=function(t){var e,r=n(),i=r[0],a=r[r.length-1]
;(e=a<i)&&(f=i,i=a,a=f);var s,u,c,f=h(i),p=h(a),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,i>0){for(;f<p;++f)for(u=1,s=g(f);u<o;++u)if(!((c=s*u)<i)){if(c>a)break;v.push(c)}}else for(;f<p;++f)for(u=o-1,s=g(f);u>=1;--u)if(!((c=s*u)<i)){if(c>a)break;v.push(c)}}else v=Object(l.h)(f,p,Math.min(p-f,d)).map(g);return e?v.reverse():v},e.tickFormat=function(t,n){if(null==n&&(n=10===o?".0e":","),"function"!=typeof n&&(n=Object(f.a)(n)),t===1/0)return n;null==t&&(t=10)
;var r=Math.max(1,o*t/e.ticks().length);return function(t){var e=t/g(Math.round(h(t)));return e*o<o-.5&&(e*=o),e<=r?n(t):""}},e.nice=function(){return n(Object(p.a)(n(),{floor:function(t){return g(Math.floor(h(t)))},ceil:function(t){return g(Math.ceil(h(t)))}}))},e.copy=function(){return Object(d.a)(e,c().base(o))},e}e.a=c;var l=n(279),f=n(1352),h=n(904),p=n(1356),d=n(667)},function(t,e,n){"use strict";function r(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function i(){function t(t,e){
return(e=r(e,n)-(t=r(t,n)))?function(i){return(r(i,n)-t)/e}:Object(a.a)(e)}function e(t,e){return e=r(e,n)-(t=r(t,n)),function(i){return r(t+e*i,1/n)}}var n=1,o=Object(u.b)(t,e),c=o.domain;return o.exponent=function(t){return arguments.length?(n=+t,c(c())):n},o.copy=function(){return Object(u.a)(o,i().exponent(n))},Object(s.b)(o)}function o(){return i().exponent(.5)}e.a=i,e.b=o;var a=n(904),s=n(449),u=n(667)},function(t,e,n){"use strict";function r(){function t(){var t=0,r=Math.max(1,a.length)
;for(s=new Array(r-1);++t<r;)s[t-1]=Object(i.d)(n,t/r);return e}function e(t){if(!isNaN(t=+t))return a[Object(i.b)(s,t)]}var n=[],a=[],s=[];return e.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:[e>0?s[e-1]:n[0],e<s.length?s[e]:n[n.length-1]]},e.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,o=0,a=e.length;o<a;++o)null==(r=e[o])||isNaN(r=+r)||n.push(r);return n.sort(i.a),t()},e.range=function(e){return arguments.length?(a=o.b.call(e),t()):a.slice()},
e.quantiles=function(){return s.slice()},e.copy=function(){return r().domain(n).range(a)},e}e.a=r;var i=n(279),o=n(382)},function(t,e,n){"use strict";function r(){function t(t){if(t<=t)return l[Object(i.b)(c,t,0,u)]}function e(){var e=-1;for(c=new Array(u);++e<u;)c[e]=((e+1)*s-(e-u)*n)/(u+1);return t}var n=0,s=1,u=1,c=[.5],l=[0,1];return t.domain=function(t){return arguments.length?(n=+t[0],s=+t[1],e()):[n,s]},t.range=function(t){return arguments.length?(u=(l=o.b.call(t)).length-1,e()):l.slice()
},t.invertExtent=function(t){var e=l.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,c[0]]:e>=u?[c[u-1],s]:[c[e-1],c[e]]},t.copy=function(){return r().domain([n,s]).range(l)},Object(a.b)(t)}e.a=r;var i=n(279),o=n(382),a=n(449)},function(t,e,n){"use strict";function r(){function t(t){if(t<=t)return n[Object(i.b)(e,t,0,a)]}var e=[.5],n=[0,1],a=1;return t.domain=function(r){return arguments.length?(e=o.b.call(r),a=Math.min(e.length,n.length-1),t):e.slice()},t.range=function(r){
return arguments.length?(n=o.b.call(r),a=Math.min(e.length,n.length-1),t):n.slice()},t.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},t.copy=function(){return r().domain(e).range(n)},t}e.a=r;var i=n(279),o=n(382)},function(t,e,n){"use strict";var r=n(175),i=Object(r.a)(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){
e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):i:null},e.a=i;i.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){t.setTime(Math.floor(t/i.d)*i.d)},function(t,e){t.setTime(+t+e*i.d)},function(t,e){return(e-t)/i.d},function(t){return t.getUTCSeconds()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){t.setTime(Math.floor(t/i.c)*i.c)},function(t,e){t.setTime(+t+e*i.c)},function(t,e){return(e-t)/i.c},function(t){
return t.getMinutes()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){var e=t.getTimezoneOffset()*i.c%i.b;e<0&&(e+=i.b),t.setTime(Math.floor((+t-e)/i.b)*i.b+e)},function(t,e){t.setTime(+t+e*i.b)},function(t,e){return(e-t)/i.b},function(t){return t.getHours()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){
return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a},function(t){return t.getDate()-1});e.a=o;o.range},function(t,e,n){"use strict";function r(t){return Object(i.a)(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*o.c)/o.e})}n.d(e,"b",function(){return a}),n.d(e,"a",function(){return s}),n.d(e,"c",function(){return l})
;var i=n(175),o=n(280),a=r(0),s=r(1),u=r(2),c=r(3),l=r(4),f=r(5),h=r(6);a.range,s.range,u.range,c.range,l.range,f.range,h.range},function(t,e,n){"use strict";var r=n(175),i=Object(r.a)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(175),i=Object(r.a)(function(t){t.setMonth(0,1),
t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},e.a=i;i.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){t.setUTCSeconds(0,0)
},function(t,e){t.setTime(+t+e*i.c)},function(t,e){return(e-t)/i.c},function(t){return t.getUTCMinutes()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*i.b)},function(t,e){return(e-t)/i.b},function(t){return t.getUTCHours()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(175),i=n(280),o=Object(r.a)(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)
},function(t,e){return(e-t)/i.a},function(t){return t.getUTCDate()-1});e.a=o;o.range},function(t,e,n){"use strict";function r(t){return Object(i.a)(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/o.e})}n.d(e,"b",function(){return a}),n.d(e,"a",function(){return s}),n.d(e,"c",function(){return l});var i=n(175),o=n(280),a=r(0),s=r(1),u=r(2),c=r(3),l=r(4),f=r(5),h=r(6);a.range,s.range,
u.range,c.range,l.range,f.range,h.range},function(t,e,n){"use strict";var r=n(175),i=Object(r.a)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(175),i=Object(r.a)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){
t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null},e.a=i;i.range},function(t,e,n){"use strict";function r(t){var e=new Date(t);return isNaN(e)?null:e}
var i=n(1360),o=n(907);+new Date("2000-01-01T00:00:00.000Z")||Object(o.c)(i.a)},function(t,e,n){"use strict";var r=n(1357),i=n(1358),o=n(906);e.a=function(){return Object(r.a)(o.v,o.q,o.u,o.l,o.m,o.o,o.r,o.n,i.b).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}},function(t,e,n){"use strict";function r(t){function e(e){var r=(e-n)*a;return t(s?Math.max(0,Math.min(1,r)):r)}var n=0,o=1,a=1,s=!1;return e.domain=function(t){return arguments.length?(n=+t[0],o=+t[1],a=n===o?0:1/(o-n),e):[n,o]},
e.clamp=function(t){return arguments.length?(s=!!t,e):s},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return r(t).domain([n,o]).clamp(s)},Object(i.b)(e)}e.a=r;var i=n(449)},function(t,e,n){"use strict";function r(t){function e(e){var n=.5+((e=+e)-o)*(e<o?s:u);return t(c?Math.max(0,Math.min(1,n)):n)}var n=0,o=.5,a=1,s=1,u=1,c=!1;return e.domain=function(t){return arguments.length?(n=+t[0],o=+t[1],a=+t[2],s=n===o?0:.5/(o-n),u=o===a?0:.5/(a-o),e):[n,o,a]},
e.clamp=function(t){return arguments.length?(c=!!t,e):c},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return r(t).domain([n,o,a]).clamp(c)},Object(i.b)(e)}e.a=r;var i=n(449)},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}t.exports=n},function(t,e,n){function r(t,e){var n=!0;return i(t,function(t,r,i){return n=!!e(t,r,i)}),n}var i=n(896);t.exports=r},function(t,e,n){function r(t,e){var n={}
;return e=a(e,3),o(t,function(t,r,o){i(n,r,e(t,r,o))}),n}var i=n(908),o=n(1320),a=n(254);t.exports=r},function(t,e,n){function r(t,e,n){var r=s(t)?i:a;return n&&u(t,e,n)&&(e=void 0),r(t,o(e,3))}var i=n(1308),o=n(254),a=n(2755),s=n(104),u=n(664);t.exports=r},function(t,e,n){function r(t,e){var n;return i(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}var i=n(896);t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){
return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n)
;"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g,v,y,m=n(0),b=n.n(m),w=n(49),_=n.n(w),x=n(60),O=n(235),T=n(55),S=Object(x.a)((y=v=function(t){function e(){return s(this,e),l(this,h(e).apply(this,arguments))}return p(e,t),
c(e,[{key:"getPolygonPath",value:function(t){var e=this.props,n=e.cx,r=e.cy,i=e.polarAngles,o="";return i.forEach(function(e,i){var a=Object(O.e)(n,r,t,e);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)}),o+="Z"}},{key:"renderPolarAngles",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,a=t.outerRadius,s=t.polarAngles;if(!s||!s.length)return null;var u=o({stroke:"#ccc"},Object(T.k)(this.props));return b.a.createElement("g",{
className:"recharts-polar-grid-angle"},s.map(function(t,o){var s=Object(O.e)(e,n,r,t),c=Object(O.e)(e,n,a,t);return b.a.createElement("line",i({},u,{key:"line-".concat(o),x1:s.x,y1:s.y,x2:c.x,y2:c.y}))}))}},{key:"renderConcentricCircle",value:function(t,e,n){var r=this.props,a=r.cx,s=r.cy,u=o({stroke:"#ccc"},Object(T.k)(this.props),{fill:"none"},n);return b.a.createElement("circle",i({},u,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(e),cx:a,cy:s,r:t}))}},{
key:"renderConcentricPolygon",value:function(t,e,n){var r=o({stroke:"#ccc"},Object(T.k)(this.props),{fill:"none"},n);return b.a.createElement("path",i({},r,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(e),d:this.getPolygonPath(t)}))}},{key:"renderConcentricPath",value:function(){var t=this,e=this.props,n=e.polarRadius,r=e.gridType;return n&&n.length?b.a.createElement("g",{className:"recharts-polar-grid-concentric"},n.map(function(e,n){
return"circle"===r?t.renderConcentricCircle(e,n):t.renderConcentricPolygon(e,n)})):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:b.a.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}]),e}(m.Component),v.displayName="PolarGrid",v.propTypes=o({},T.c,{cx:_.a.number,cy:_.a.number,innerRadius:_.a.number,outerRadius:_.a.number,polarAngles:_.a.arrayOf(_.a.number),polarRadius:_.a.arrayOf(_.a.number),
gridType:_.a.oneOf(["polygon","circle"])}),v.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon"},g=y))||g;e.a=S},function(t,e,n){function r(t,e){return t&&t.length?i(t,o(e,2),a):void 0}var i=n(665),o=n(254),a=n(1326);t.exports=r},function(t,e,n){function r(t){return function(e,n,r){return r&&"number"!=typeof r&&o(e,n,r)&&(n=r=void 0),e=a(e),void 0===n?(n=e,e=0):n=a(n),r=void 0===r?e<n?1:-1:a(r),i(e,n,r,t)}}var i=n(2759),o=n(664),a=n(1373);t.exports=r},function(t,e){
function n(t,e,n,o){for(var a=-1,s=i(r((e-t)/(n||1)),0),u=Array(s);s--;)u[o?s:++a]=t,t+=n;return u}var r=Math.ceil,i=Math.max;t.exports=n},function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}
function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return a});var o=["Webkit","Moz","O","ms"],a=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,function(t){return t.toUpperCase()}),a=o.reduce(function(t,o){return r({},t,i({},o+n,e))},{});return a[t]=e,a}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t
}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){if(null==t)return{};var n,r,i=a(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],
e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function a(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),
r.forEach(function(e){u(t,e,n[e])})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function h(t,e){
return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,
writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y,m,b,w=n(82),_=n.n(w),x=n(0),O=n.n(x),T=n(49),S=n.n(T),E=n(60),j=n(55),k=n(83),C=Object(E.a)((b=m=function(t){function e(){return c(this,e),h(this,d(e).apply(this,arguments))}return g(e,t),f(e,[{key:"renderHorizontal",value:function(t){var e=this,n=this.props,r=n.x,i=n.width,o=n.horizontal;if(!t||!t.length)return null;var a=t.map(function(t,n){
var a=s({},e.props,{x1:r,y1:t,x2:r+i,y2:t,key:"line-".concat(n),index:n});return e.constructor.renderLineItem(o,a)});return O.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}},{key:"renderVertical",value:function(t){var e=this,n=this.props,r=n.y,i=n.height,o=n.vertical;if(!t||!t.length)return null;var a=t.map(function(t,n){var a=s({},e.props,{x1:t,y1:r,x2:t,y2:r+i,key:"line-".concat(n),index:n});return e.constructor.renderLineItem(o,a)});return O.a.createElement("g",{
className:"recharts-cartesian-grid-vertical"},a)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,s=n.height,u=t.slice().sort(function(t,e){return t-e});i!==u[0]&&u.unshift(0);var c=u.map(function(t,n){var c=u[n+1]?u[n+1]-t:i+a-t;if(c<=0)return null;var l=n%e.length;return O.a.createElement("rect",{key:"react-".concat(n),x:Math.round(t+i-i),y:o,width:c,height:s,stroke:"none",
fill:e[l],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,s=n.height,u=t.slice().sort(function(t,e){return t-e});o!==u[0]&&u.unshift(0);var c=u.map(function(t,n){var c=u[n+1]?u[n+1]-t:o+s-t;if(c<=0)return null;var l=n%e.length
;return O.a.createElement("rect",{key:"react-".concat(n),y:Math.round(t+o-o),x:i,height:c,width:a,stroke:"none",fill:e[l],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height;return O.a.createElement("rect",{x:r,y:i,width:o,height:a,stroke:"none",
fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.horizontal,a=t.vertical,s=t.horizontalCoordinatesGenerator,u=t.verticalCoordinatesGenerator,c=t.xAxis,l=t.yAxis,f=t.offset,h=t.chartWidth,p=t.chartHeight;if(!Object(k.h)(r)||r<=0||!Object(k.h)(i)||i<=0||!Object(k.h)(e)||e!==+e||!Object(k.h)(n)||n!==+n)return null;var d=this.props,g=d.horizontalPoints,v=d.verticalPoints
;return g&&g.length||!_()(s)||(g=s({yAxis:l,width:h,height:p,offset:f})),v&&v.length||!_()(u)||(v=u({xAxis:c,width:h,height:p,offset:f})),O.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),o&&this.renderHorizontal(g),a&&this.renderVertical(v),o&&this.renderHorizontalStripes(g),a&&this.renderVerticalStripes(v))}}],[{key:"renderLineItem",value:function(t,e){var n;if(O.a.isValidElement(t))n=O.a.cloneElement(t,e);else if(_()(t))n=t(e);else{
var r=e.x1,a=e.y1,s=e.x2,u=e.y2,c=e.key,l=o(e,["x1","y1","x2","y2","key"]);n=O.a.createElement("line",i({},Object(j.k)(l),{x1:r,y1:a,x2:s,y2:u,fill:"none",key:c}))}return n}}]),e}(x.Component),m.displayName="CartesianGrid",m.propTypes=s({},j.c,{x:S.a.number,y:S.a.number,width:S.a.number,height:S.a.number,horizontal:S.a.oneOfType([S.a.object,S.a.element,S.a.func,S.a.bool]),vertical:S.a.oneOfType([S.a.object,S.a.element,S.a.func,S.a.bool]),horizontalPoints:S.a.arrayOf(S.a.number),
verticalPoints:S.a.arrayOf(S.a.number),horizontalCoordinatesGenerator:S.a.func,verticalCoordinatesGenerator:S.a.func,xAxis:S.a.object,yAxis:S.a.object,offset:S.a.object,chartWidth:S.a.number,chartHeight:S.a.number,verticalFill:S.a.arrayOf(S.a.string),horizontalFill:S.a.arrayOf(S.a.string)}),m.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},y=b))||y;e.a=C},function(t,e,n){"use strict"
;var r=n(282),i=n(911),o=n(454),a=n(455),s=n(317);e.a=Object(r.a)({chartName:"LineChart",GraphicalChild:i.a,axisComponents:[{axisType:"xAxis",AxisComp:o.a},{axisType:"yAxis",AxisComp:a.a}],formatAxisMap:s.b})},function(t,e,n){function r(t){return"number"==typeof t&&o(t)}var i=n(213),o=i.isFinite;t.exports=r},function(t,e,n){var r=n(2765),i=n(2766),o=r(i);t.exports=o},function(t,e,n){function r(t){return function(e,n,r){var s=Object(e);if(!o(e)){var u=i(n,3);e=a(e),n=function(t){
return u(s[t],t,s)}}var c=t(e,n,r);return c>-1?s[u?e[c]:c]:void 0}}var i=n(254),o=n(446),a=n(445);t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var u=null==n?0:a(n);return u<0&&(u=s(r+u,0)),i(t,o(e,3),u)}var i=n(2767),o=n(254),a=n(2768),s=Math.max;t.exports=r},function(t,e){function n(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}t.exports=n},function(t,e,n){function r(t){var e=i(t),n=e%1;return e===e?n?e-n:e:0}
var i=n(1373);t.exports=r},function(t,e,n){function r(t,e,n){var r=!0,s=!0;if("function"!=typeof t)throw new TypeError(a);return o(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),i(t,e,{leading:r,maxWait:e,trailing:s})}var i=n(1304),o=n(200),a="Expected a function";t.exports=r},function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a});var r=n(2771),i=n.n(r),o=new i.a;o.setMaxListeners&&o.setMaxListeners(10);var a="recharts.syncMouseEvents"
},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number")
;return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,s,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(n=this._events[t],a(n))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(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,u=0;u<i;u++)c[u].apply(this,s);return!0},n.prototype.addListener=function(t,e){var i;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),
this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),
"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,
n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this
;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){
return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";var r=n(282),i=n(913),o=n(454),a=n(455),s=n(317);e.a=Object(r.a)({chartName:"BarChart",GraphicalChild:i.a,axisComponents:[{axisType:"xAxis",AxisComp:o.a},{axisType:"yAxis",AxisComp:a.a
}],formatAxisMap:s.b})},function(t,e,n){"use strict";var r=n(49),i=n.n(r),o=n(282),a=n(672),s=n(671),u=n(235),c=n(1368);e.a=Object(o.a)({chartName:"PieChart",GraphicalChild:c.a,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:a.a},{axisType:"radiusAxis",AxisComp:s.a}],formatAxisMap:u.b,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:i.a.oneOf(["centric"]),startAngle:i.a.number,
endAngle:i.a.number,cx:i.a.oneOfType([i.a.number,i.a.string]),cy:i.a.oneOfType([i.a.number,i.a.string]),innerRadius:i.a.oneOfType([i.a.number,i.a.string]),outerRadius:i.a.oneOfType([i.a.number,i.a.string])}})},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){
return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){if(null==t)return{};var n,r,i=a(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function a(t,e){if(null==t)return{}
;var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}
function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){
return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){v(t,e,n[e])})}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,
writable:!0}):t[e]=n,t}var y,m,b,w=n(539),_=n.n(w),x=n(1375),O=n.n(x),T=n(82),S=n.n(T),E=n(648),j=n.n(E),k=n(0),C=n.n(k),A=n(49),P=n.n(A),M=n(214),D=n(66),I=n.n(D),N=n(538),R=n(113),L=n(452),U=n(55),F=n(653),B=n(670),z=n(60),q=n(135),H=n(2803),W=n(661),V=n(83),Y=function t(e){var n,r=e.depth,i=e.node,o=e.index,a=e.valueKey,s=i.children,u=r+1,c=s&&s.length?s.map(function(e,n){return t({depth:u,node:e,index:n,valueKey:a})}):null;return n=s&&s.length?c.reduce(function(t,e){return t+e.value
},0):j()(i[a])||i[a]<=0?0:i[a],g({},i,{children:c,value:n,depth:r,index:o})},G=function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}},X=function(t,e){var n=e<0?0:e;return t.map(function(t){var e=t.value*n;return g({},t,{area:j()(e)||e<=0?0:e})})},K=function(t,e,n){var r=e*e,i=t.area*t.area,o=t.reduce(function(t,e){return{min:Math.min(t.min,e.area),max:Math.max(t.max,e.area)}},{min:1/0,max:0}),a=o.min,s=o.max;return i?Math.max(r*s*n/i,i/(r*a*n)):1/0},$=function(t,e,n,r){
var i=e?Math.round(t.area/e):0;(r||i>n.height)&&(i=n.height);for(var o,a=n.x,s=0,u=t.length;s<u;s++)o=t[s],o.x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width;return o.z=!0,o.width+=n.x+n.width-a,g({},n,{y:n.y+i,height:n.height-i})},Q=function(t,e,n,r){var i=e?Math.round(t.area/e):0;(r||i>n.width)&&(i=n.width);for(var o,a=n.y,s=0,u=t.length;s<u;s++)o=t[s],o.x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height
;return o.z=!1,o.height+=n.y+n.height-a,g({},n,{x:n.x+i,width:n.width-i})},J=function(t,e,n,r){return e===n.width?$(t,e,n,r):Q(t,e,n,r)},Z=function t(e,n){var r=e.children;if(r&&r.length){var i,o,a=G(e),s=[],u=1/0,c=Math.min(a.width,a.height),l=X(r,a.width*a.height/e.value),f=l.slice();for(s.area=0;f.length>0;)s.push(i=f[0]),s.area+=i.area,o=K(s,c,n),o<=u?(f.shift(),u=o):(s.area-=s.pop().area,a=J(s,c,a,!1),c=Math.min(a.width,a.height),s.length=s.area=0,u=1/0);return s.length&&(a=J(s,c,a,!0),
s.length=s.area=0),g({},e,{children:l.map(function(e){return t(e,n)})})}return e},tt=Object(z.a)((b=m=function(t){function e(){var t,n;s(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=l(this,(t=h(e)).call.apply(t,[this].concat(i))),n.state=n.constructor.createDefaultState(),n.handleAnimationEnd=function(){var t=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),S()(t)&&t()},n.handleAnimationStart=function(){var t=n.props.onAnimationStart
;n.setState({isAnimationFinished:!1}),S()(t)&&t()},n}return p(e,t),c(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.type,n=t.width,r=t.height,i=t.data,o=t.dataKey,a=t.aspectRatio,s=this.computeRoot({type:e,width:n,height:r,data:i,dataKey:o,aspectRatio:a}),u=s.formatRoot,c=s.currentRoot,l=s.nestIndex;this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}},{key:"computeRoot",value:function(t){var e=t.type,n=t.width,r=t.height,i=t.data,o=t.dataKey,a=t.aspectRatio,s=Y({depth:0,
node:{children:i,x:0,y:0,width:n,height:r},index:0,valueKey:o}),u=Z(s,a),c=this.state.nestIndex;return"nest"===e&&c.push(s),{formatRoot:u,currentRoot:s,nestIndex:c}}},{key:"componentWillReceiveProps",value:function(t){if(t.data!==this.props.data){var e=t.type,n=t.width,r=t.height,i=t.data,o=t.dataKey,a=t.aspectRatio,s=this.computeRoot({type:e,width:n,height:r,data:i,dataKey:o,aspectRatio:a});this.setState(g({},this.constructor.createDefaultState(),s,{nestIndex:[s.currentRoot]}))}}},{
key:"handleMouseEnter",value:function(t,e){var n=this.props,r=n.onMouseEnter,i=n.children;Object(U.i)(i,F.a)?this.setState({isTooltipActive:!0,activeNode:t},function(){r&&r(t,e)}):r&&r(t,e)}},{key:"handleMouseLeave",value:function(t,e){var n=this.props,r=n.onMouseLeave,i=n.children;Object(U.i)(i,F.a)?this.setState({isTooltipActive:!1,activeNode:null},function(){r&&r(t,e)}):r&&r(t,e)}},{key:"handleClick",value:function(t){var e=this.props,n=e.onClick;if("nest"===e.type&&t.children){
var r=this.props,i=r.width,o=r.height,a=r.dataKey,s=r.aspectRatio,u=Y({depth:0,node:g({},t,{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),c=Z(u,s),l=this.state.nestIndex;l.push(t),this.setState({formatRoot:c,currentRoot:u,nestIndex:l})}n&&n(t)}},{key:"handleNestIndex",value:function(t,e){var n=this.state.nestIndex,r=this.props,i=r.width,o=r.height,a=r.dataKey,s=r.aspectRatio,u=Y({depth:0,node:g({},t,{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),c=Z(u,s);n=n.slice(0,e+1),this.setState({
formatRoot:c,currentRoot:t,nestIndex:n})}},{key:"renderItem",value:function(t,e,n){var r=this,i=this.props,o=i.isAnimationActive,a=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.isUpdateAnimationActive,l=i.type,f=i.animationId,h=i.colorPanel,p=this.state.isAnimationFinished,d=e.width,v=e.height,y=e.x,m=e.y,b=e.depth,w=parseInt((2*Math.random()-1)*d,10),_={};return(n||"nest"===l)&&(_={onMouseEnter:this.handleMouseEnter.bind(this,e),onMouseLeave:this.handleMouseLeave.bind(this,e),
onClick:this.handleClick.bind(this,e)}),o?C.a.createElement(M.a,{begin:a,duration:s,isActive:o,easing:u,key:"treemap-".concat(f),from:{x:y,y:m,width:d,height:v},to:{x:y,y:m,width:d,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(n){var i=n.x,f=n.y,d=n.width,v=n.height;return C.a.createElement(M.a,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:a,easing:u,isActive:o,duration:s
},C.a.createElement(R.a,_,function(){return b>2&&!p?null:r.constructor.renderContentItem(t,g({},e,{isAnimationActive:o,isUpdateAnimationActive:!c,width:d,height:v,x:i,y:f}),l,h)}()))}):C.a.createElement(R.a,_,this.constructor.renderContentItem(t,g({},e,{isAnimationActive:!1,isUpdateAnimationActive:!1,width:d,height:v,x:y,y:m}),l,h))}},{key:"renderNode",value:function(t,e,n){var r=this,i=this.props,o=i.content,a=i.type,s=g({},Object(U.k)(this.props),e,{root:t}),u=!e.children||!e.children.length
;return!(this.state.currentRoot.children||[]).filter(function(t){return t.depth===e.depth&&t.name===e.name}).length&&t.depth&&"nest"===a?null:C.a.createElement(R.a,{key:"recharts-treemap-node-".concat(n),className:"recharts-treemap-depth-".concat(e.depth)},this.renderItem(o,s,u),e.children&&e.children.length?e.children.map(function(t,n){return r.renderNode(e,t,n)}):null)}},{key:"renderAllNodes",value:function(){var t=this.state.formatRoot;return t?this.renderNode(t,t,0):null}},{
key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.nameKey,r=Object(U.i)(e,F.a);if(!r)return null;var i=this.props,o=i.width,a=i.height,s=i.dataKey,u=this.state,c=u.isTooltipActive,l=u.activeNode,f={x:0,y:0,width:o,height:a},h=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,p=c&&l?[{payload:l,name:Object(q.w)(l,n,""),value:Object(q.w)(l,s)}]:[];return C.a.cloneElement(r,{viewBox:f,active:c,coordinate:h,label:"",payload:p})}},{key:"renderNestIndex",value:function(){
var t=this,e=this.props,n=e.nameKey,r=e.nestIndexContent,i=this.state.nestIndex;return C.a.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map(function(e,i){var o=_()(e,n,"root"),a=null;return C.a.isValidElement(r)&&(a=C.a.cloneElement(r,e,i)),a=S()(r)?r(e,i):o,C.a.createElement("div",{onClick:t.handleNestIndex.bind(t,e,i),key:"nest-index-".concat(Object(V.k)()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",
display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},a)}))}},{key:"render",value:function(){if(!Object(U.q)(this))return null;var t=this.props,e=t.width,n=t.height,r=t.className,a=t.style,s=t.children,u=t.type,c=o(t,["width","height","className","style","children","type"]),l=Object(U.k)(c);return C.a.createElement("div",{className:I()("recharts-wrapper",r),style:g({},a,{position:"relative",cursor:"default",width:e,height:n})},C.a.createElement(N.a,i({},l,{
width:e,height:"nest"===u?n-30:n}),this.renderAllNodes(),Object(U.g)(s)),this.renderTooltip(),"nest"===u&&this.renderNestIndex())}}],[{key:"createDefaultState",value:function(){return{isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,currentRoot:null,formatRoot:null,nestIndex:[]}}},{key:"renderContentItem",value:function(t,e,n,r){if(C.a.isValidElement(t))return C.a.cloneElement(t,e);if(S()(t))return t(e);var o=e.x,a=e.y,s=e.width,u=e.height,c=e.index,l=null
;s>10&&u>10&&e.children&&"nest"===n&&(l=C.a.createElement(B.a,{points:[{x:o+2,y:a+u/2},{x:o+6,y:a+u/2+3},{x:o+2,y:a+u/2+6}]}));var f=null,h=Object(W.c)(e.name);s>20&&u>20&&h.width<s&&h.height<u&&(f=C.a.createElement("text",{x:o+8,y:a+u/2+7,fontSize:14},e.name));var p=r||H.a;return C.a.createElement("g",null,C.a.createElement(L.a,i({fill:e.depth<2?p[c%p.length]:"rgba(255,255,255,0)",stroke:"#fff"},O()(e,"children"))),l,f)}}]),e}(k.Component),m.displayName="Treemap",m.propTypes={width:P.a.number,
height:P.a.number,data:P.a.array,style:P.a.object,aspectRatio:P.a.number,content:P.a.oneOfType([P.a.element,P.a.func]),fill:P.a.string,stroke:P.a.string,className:P.a.string,nameKey:P.a.oneOfType([P.a.string,P.a.number,P.a.func]),dataKey:P.a.oneOfType([P.a.string,P.a.number,P.a.func]),children:P.a.oneOfType([P.a.arrayOf(P.a.node),P.a.node]),type:P.a.oneOf(["flat","nest"]),colorPanel:P.a.array,nestIndexContent:P.a.oneOfType([P.a.element,P.a.func]),onMouseEnter:P.a.func,onMouseLeave:P.a.func,
onClick:P.a.func,isAnimationActive:P.a.bool,isUpdateAnimationActive:P.a.bool,animationBegin:P.a.number,animationDuration:P.a.number,animationEasing:P.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])},m.defaultProps={dataKey:"value",aspectRatio:.5*(1+Math.sqrt(5)),isAnimationActive:!Object(U.n)(),isUpdateAnimationActive:!Object(U.n)(),animationBegin:0,animationDuration:1500,animationEasing:"linear",type:"flat"},y=b))||y;e.a=tt},function(t,e,n){function r(t,e,n,D,I,N){
var R,L=e&S,U=e&E,F=e&j;if(n&&(R=I?n(t,D,I,N):n(t)),void 0!==R)return R;if(!x(t))return t;var B=b(t);if(B){if(R=v(t),!L)return l(t,R)}else{var z=g(t),q=z==C||z==A;if(w(t))return c(t,L);if(z==P||z==k||q&&!I){if(R=U||q?{}:m(t),!L)return U?h(t,u(R,t)):f(t,s(R,t))}else{if(!M[z])return I?t:{};R=y(t,z,L)}}N||(N=new i);var H=N.get(t);if(H)return H;if(N.set(t,R),O(t))return t.forEach(function(i){R.add(r(i,e,n,i,t,N))}),R;if(_(t))return t.forEach(function(i,o){R.set(o,r(i,e,n,o,t,N))}),R
;var W=F?U?d:p:U?keysIn:T,V=B?void 0:W(t);return o(V||t,function(i,o){V&&(o=i,i=t[o]),a(R,o,r(i,e,n,o,t,N))}),R}var i=n(886),o=n(2776),a=n(1376),s=n(2777),u=n(2778),c=n(2781),l=n(2782),f=n(2783),h=n(2784),p=n(1310),d=n(1379),g=n(663),v=n(2785),y=n(2786),m=n(2791),b=n(104),w=n(890),_=n(2793),x=n(200),O=n(2795),T=n(445),S=1,E=2,j=4,k="[object Arguments]",C="[object Function]",A="[object GeneratorFunction]",P="[object Object]",M={}
;M[k]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[P]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,
M["[object Error]"]=M[C]=M["[object WeakMap]"]=!1,t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}t.exports=n},function(t,e,n){function r(t,e){return t&&i(e,o(e),t)}var i=n(549),o=n(445);t.exports=r},function(t,e,n){function r(t,e){return t&&i(e,o(e),t)}var i=n(549),o=n(1377);t.exports=r},function(t,e,n){function r(t){if(!i(t))return a(t);var e=o(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n}
var i=n(200),o=n(894),a=n(2780),s=Object.prototype,u=s.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){function r(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}var i=n(213),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?i.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.exports=r
}).call(e,n(380)(t))},function(t,e){function n(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=n},function(t,e,n){function r(t,e){return i(t,o(t),e)}var i=n(549),o=n(888);t.exports=r},function(t,e,n){function r(t,e){return i(t,o(t),e)}var i=n(549),o=n(1378);t.exports=r},function(t,e){function n(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&i.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var r=Object.prototype,i=r.hasOwnProperty
;t.exports=n},function(t,e,n){function r(t,e,n){var r=t.constructor;switch(e){case y:return i(t);case c:case l:return new r(+t);case m:return o(t,n);case b:case w:case _:case x:case O:case T:case S:case E:case j:return u(t,n);case f:return new r;case h:case g:return new r(t);case p:return a(t);case d:return new r;case v:return s(t)}}
var i=n(915),o=n(2787),a=n(2788),s=n(2789),u=n(2790),c="[object Boolean]",l="[object Date]",f="[object Map]",h="[object Number]",p="[object RegExp]",d="[object Set]",g="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",m="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",S="[object Uint8ClampedArray]",E="[object Uint16Array]",j="[object Uint32Array]";t.exports=r
},function(t,e,n){function r(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var i=n(915);t.exports=r},function(t,e){function n(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}var r=/\w*$/;t.exports=n},function(t,e,n){function r(t){return a?Object(a.call(t)):{}}var i=n(442),o=i?i.prototype:void 0,a=o?o.valueOf:void 0;t.exports=r},function(t,e,n){function r(t,e){var n=e?i(t.buffer):t.buffer
;return new t.constructor(n,t.byteOffset,t.length)}var i=n(915);t.exports=r},function(t,e,n){function r(t){return"function"!=typeof t.constructor||a(t)?{}:i(o(t))}var i=n(2792),o=n(910),a=n(894);t.exports=r},function(t,e,n){var r=n(200),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(2794),i=n(662),o=n(893),a=o&&o.isMap,s=a?i(a):r;t.exports=s
},function(t,e,n){function r(t){return o(t)&&i(t)==a}var i=n(663),o=n(252),a="[object Map]";t.exports=r},function(t,e,n){var r=n(2796),i=n(662),o=n(893),a=o&&o.isSet,s=a?i(a):r;t.exports=s},function(t,e,n){function r(t){return o(t)&&i(t)==a}var i=n(663),o=n(252),a="[object Set]";t.exports=r},function(t,e,n){function r(t,e){return e=i(e,t),null==(t=a(t,e))||delete t[s(o(e))]}var i=n(641),o=n(1365),a=n(2798),s=n(540);t.exports=r},function(t,e,n){function r(t,e){return e.length<2?t:i(t,o(e,0,-1))}
var i=n(862),o=n(2799);t.exports=r},function(t,e){function n(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}t.exports=n},function(t,e,n){function r(t){return i(t)?void 0:t}var i=n(909);t.exports=r},function(t,e,n){function r(t){return a(o(t,void 0,i),t+"")}var i=n(2802),o=n(1321),a=n(1322);t.exports=r},function(t,e,n){function r(t){return(null==t?0:t.length)?i(t,1):[]}var i=n(895);t.exports=r
},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"]},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(null==t)return{};var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function o(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function a(){
return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),
n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){
v(t,e,n[e])})}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y,m,b,w=n(82),_=n.n(w),x=n(2805),O=n.n(x),T=n(1325),S=n.n(T),E=n(1367),j=n.n(E),k=n(0),C=n.n(k),A=n(49),P=n.n(A),M=n(66),D=n.n(M),I=n(538),N=n(113),R=n(653),L=n(452),U=n(60),F=n(55),B=n(135),z={x:0,y:0},q=function(t,e){var n=+t,r=e-n;return function(t){return n+r*t}},H=function(t){return t.y+t.dy/2},W=function(t){return t&&t.value||0},V=function(t,e){
return e.reduce(function(e,n){return e+W(t[n])},0)},Y=function(t,e,n){return n.reduce(function(n,r){var i=e[r],o=t[i.source];return n+H(o)*W(e[r])},0)},G=function(t,e,n){return n.reduce(function(n,r){var i=e[r],o=t[i.target];return n+H(o)*W(e[r])},0)},X=function(t,e){return t.y-e.y},K=function(t,e){for(var n=[],r=[],i=[],o=[],a=0,s=t.length;a<s;a++){var u=t[a];u.source===e&&(i.push(u.target),o.push(a)),u.target===e&&(n.push(u.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:o,
targetNodes:i}},$=function t(e,n){for(var r=n.targetNodes,i=0,o=r.length;i<o;i++){var a=e[r[i]];a&&(a.depth=Math.max(n.depth+1,a.depth),t(e,a))}},Q=function(t,e,n){for(var r=t.nodes,i=t.links,o=r.map(function(t,e){var n=K(i,e);return g({},t,n,{value:Math.max(V(i,n.sourceLinks),V(i,n.targetLinks)),depth:0})}),a=0,s=o.length;a<s;a++){var u=o[a];u.sourceNodes.length||$(o,u)}var c=j()(o,function(t){return t.depth}).depth;if(c>=1)for(var l=(e-n)/c,f=0,h=o.length;f<h;f++){var p=o[f]
;p.targetNodes.length||(p.depth=c),p.x=p.depth*l,p.dx=n}return{tree:o,maxDepth:c}},J=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];e[i.depth]||(e[i.depth]=[]),e[i.depth].push(i)}return e},Z=function(t,e,n,r){for(var i=S()(t.map(function(t){return(e-(t.length-1)*n)/O()(t,W)})),o=0,a=t.length;o<a;o++)for(var s=0,u=t[o].length;s<u;s++){var c=t[o][s];c.y=s,c.dy=c.value*i}return r.map(function(t){return g({},t,{dy:W(t)*i})})},tt=function(t,e,n){for(var r=0,i=t.length;r<i;r++){
var o=t[r],a=o.length;o.sort(X);for(var s=0,u=0;u<a;u++){var c=o[u],l=s-c.y;l>0&&(c.y+=l),s=c.y+c.dy+n}s=e+n;for(var f=a-1;f>=0;f--){var h=o[f],p=h.y+h.dy+n-s;if(!(p>0))break;h.y-=p,s=h.y}}},et=function(t,e,n,r){for(var i=0,o=e.length;i<o;i++)for(var a=e[i],s=0,u=a.length;s<u;s++){var c=a[s];if(c.sourceLinks.length){var l=V(n,c.sourceLinks),f=Y(t,n,c.sourceLinks),h=f/l;c.y+=(h-H(c))*r}}},nt=function(t,e,n,r){for(var i=e.length-1;i>=0;i--)for(var o=e[i],a=0,s=o.length;a<s;a++){var u=o[a]
;if(u.targetLinks.length){var c=V(n,u.targetLinks),l=G(t,n,u.targetLinks),f=l/c;u.y+=(f-H(u))*r}}},rt=function(t,e){for(var n=0,r=t.length;n<r;n++){var i=t[n],o=0,a=0;i.targetLinks.sort(function(n,r){return t[e[n].target].y-t[e[r].target].y}),i.sourceLinks.sort(function(n,r){return t[e[n].source].y-t[e[r].source].y});for(var s=0,u=i.targetLinks.length;s<u;s++){var c=e[i.targetLinks[s]];c&&(c.sy=o,o+=c.dy)}for(var l=0,f=i.sourceLinks.length;l<f;l++){var h=e[i.sourceLinks[l]];h&&(h.ty=a,a+=h.dy)}}
},it=function(t){var e=t.data,n=t.width,r=t.height,i=t.iterations,o=t.nodeWidth,a=t.nodePadding,s=e.links,u=Q(e,n,o),c=u.tree,l=J(c),f=Z(l,r,a,s);tt(l,r,a);for(var h=1,p=1;p<=i;p++)nt(c,l,f,h*=.99),tt(l,r,a),et(c,l,f,h),tt(l,r,a);return rt(c,f),{nodes:c,links:f}},ot=function(t,e){return"node"===e?{x:t.x+t.width/2,y:t.y+t.height/2}:{x:(t.sourceX+t.targetX)/2,y:(t.sourceY+t.targetY)/2}},at=function(t,e,n){var r=t.payload;if("node"===e)return[{payload:t,name:Object(B.w)(r,n,""),
value:Object(B.w)(r,"value")}];if(r.source&&r.target){var i=Object(B.w)(r.source,n,""),o=Object(B.w)(r.target,n,"");return[{payload:t,name:"".concat(i," - ").concat(o),value:Object(B.w)(r,"value")}]}return[]},st=Object(U.a)((b=m=function(t){function e(t){var n;return s(this,e),n=l(this,h(e).call(this,t)),n.state=n.constructor.createDefaultState(t),n}return p(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){
var e=this.props,n=e.data,r=e.width,i=e.height,o=e.margin,a=e.iterations,s=e.nodeWidth,u=e.nodePadding,c=e.nameKey;t.data===n&&t.width===r&&t.height===i&&Object(U.b)(t.margin,o)&&t.iterations===a&&t.nodeWidth===s&&t.nodePadding===u&&t.nameKey===c||this.setState(this.constructor.createDefaultState(t))}},{key:"handleMouseEnter",value:function(t,e,n){var r=this.props,i=r.onMouseEnter,o=r.children;Object(F.i)(o,R.a)?this.setState({activeElement:t,activeElementType:e,isTooltipActive:!0},function(){
i&&i(t,e,n)}):i&&i(t,e,n)}},{key:"handleMouseLeave",value:function(t,e,n){var r=this.props,i=r.onMouseLeave,o=r.children;Object(F.i)(o,R.a)?this.setState({isTooltipActive:!1},function(){i&&i(t,e,n)}):i&&i(t,e,n)}},{key:"renderLinks",value:function(t,e){var n=this,r=this.props,i=r.linkCurvature,o=r.link,s=r.margin,u=s.top||0,c=s.left||0;return C.a.createElement(N.a,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map(function(t,r){
var s=t.sy,l=t.ty,f=t.dy,h=e[t.source],p=e[t.target],d=h.x+h.dx+c,v=p.x+c,y=q(d,v),m=y(i),b=y(1-i),w=h.y+s+f/2+u,_=p.y+l+f/2+u,x=g({sourceX:d,targetX:v,sourceY:w,targetY:_,sourceControlX:m,targetControlX:b,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:r,payload:g({},t,{source:h,target:p})},Object(F.k)(o)),O={onMouseEnter:n.handleMouseEnter.bind(n,x,"link"),onMouseLeave:n.handleMouseLeave.bind(n,x,"link")};return C.a.createElement(N.a,a({key:"link".concat(r)
},O),n.constructor.renderLinkItem(o,x))}))}},{key:"renderNodes",value:function(t){var e=this,n=this.props,r=n.node,i=n.margin,o=i.top||0,s=i.left||0;return C.a.createElement(N.a,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map(function(t,n){var i=t.x,u=t.y,c=t.dx,l=t.dy,f=g({},Object(F.k)(r),{x:i+s,y:u+o,width:c,height:l,index:n,payload:t}),h={onMouseEnter:e.handleMouseEnter.bind(e,f,"node"),onMouseLeave:e.handleMouseLeave.bind(e,f,"node")};return C.a.createElement(N.a,a({
key:"node".concat(n)},h),e.constructor.renderNodeItem(r,f))}))}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.width,r=t.height,i=t.nameKey,o=Object(F.i)(e,R.a);if(!o)return null;var a=this.state,s=a.isTooltipActive,u=a.activeElement,c=a.activeElementType,l={x:0,y:0,width:n,height:r},f=u?ot(u,c):z,h=u?at(u,c,i):[];return C.a.cloneElement(o,{viewBox:l,active:s,coordinate:f,label:"",payload:h})}},{key:"render",value:function(){if(!Object(F.q)(this))return null
;var t=this.props,e=t.width,n=t.height,r=t.className,o=t.style,s=t.children,u=i(t,["width","height","className","style","children"]),c=this.state,l=c.links,f=c.nodes,h=Object(F.k)(u);return C.a.createElement("div",{className:D()("recharts-wrapper",r),style:g({},o,{position:"relative",cursor:"default",width:e,height:n})},C.a.createElement(I.a,a({},h,{width:e,height:n}),Object(F.g)(s),this.renderLinks(l,f),this.renderNodes(f)),this.renderTooltip())}}],[{key:"createDefaultState",value:function(t){
var e=t.data,n=t.width,r=t.height,i=t.margin,o=t.iterations,a=t.nodeWidth,s=t.nodePadding,u=n-(i&&i.left||0)-(i&&i.right||0),c=r-(i&&i.top||0)-(i&&i.bottom||0),l=it({data:e,width:u,height:c,iterations:o,nodeWidth:a,nodePadding:s}),f=l.links;return{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:l.nodes,links:f}}},{key:"renderLinkItem",value:function(t,e){if(C.a.isValidElement(t))return C.a.cloneElement(t,e);if(_()(t))return t(e)
;var n=e.sourceX,r=e.sourceY,o=e.sourceControlX,s=e.targetX,u=e.targetY,c=e.targetControlX,l=e.linkWidth,f=i(e,["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"]);return C.a.createElement("path",a({className:"recharts-sankey-link",d:"\n          M".concat(n,",").concat(r,"\n          C").concat(o,",").concat(r," ").concat(c,",").concat(u," ").concat(s,",").concat(u,"\n        "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},Object(F.k)(f)))}},{
key:"renderNodeItem",value:function(t,e){return C.a.isValidElement(t)?C.a.cloneElement(t,e):_()(t)?t(e):C.a.createElement(L.a,a({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},e))}}]),e}(k.Component),m.displayName="Sankey",m.propTypes=g({},F.c,F.a,{nameKey:P.a.oneOfType([P.a.string,P.a.number,P.a.func]),dataKey:P.a.oneOfType([P.a.string,P.a.number,P.a.func]),width:P.a.number,height:P.a.number,data:P.a.shape({nodes:P.a.array,links:P.a.arrayOf(P.a.shape({target:P.a.number,
source:P.a.number,value:P.a.number}))}),nodePadding:P.a.number,nodeWidth:P.a.number,linkCurvature:P.a.number,iterations:P.a.number,node:P.a.oneOfType([P.a.object,P.a.element,P.a.func]),link:P.a.oneOfType([P.a.object,P.a.element,P.a.func]),style:P.a.object,className:P.a.string,children:P.a.oneOfType([P.a.arrayOf(P.a.node),P.a.node]),margin:P.a.shape({top:P.a.number,right:P.a.number,bottom:P.a.number,left:P.a.number})}),m.defaultProps={nodePadding:10,nodeWidth:10,nameKey:"name",dataKey:"value",
linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}},y=b))||y;e.a=st},function(t,e,n){function r(t,e){return t&&t.length?o(t,i(e,2)):0}var i=n(254),o=n(2806);t.exports=r},function(t,e){function n(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}t.exports=n},function(t,e,n){"use strict";var r=n(49),i=n.n(r),o=n(282),a=n(1369),s=n(672),u=n(671),c=n(235);e.a=Object(o.a)({chartName:"RadarChart",GraphicalChild:a.a,axisComponents:[{
axisType:"angleAxis",AxisComp:s.a},{axisType:"radiusAxis",AxisComp:u.a}],formatAxisMap:c.b,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:i.a.oneOf(["centric"]),startAngle:i.a.number,endAngle:i.a.number,cx:i.a.oneOfType([i.a.number,i.a.string]),cy:i.a.oneOfType([i.a.number,i.a.string]),innerRadius:i.a.oneOfType([i.a.number,i.a.string]),outerRadius:i.a.oneOfType([i.a.number,i.a.string])}})},function(t,e,n){
"use strict";var r=n(282),i=n(914),o=n(454),a=n(455),s=n(673),u=n(317);e.a=Object(r.a)({chartName:"ScatterChart",GraphicalChild:i.a,eventType:"single",axisComponents:[{axisType:"xAxis",AxisComp:o.a},{axisType:"yAxis",AxisComp:a.a},{axisType:"zAxis",AxisComp:s.a}],formatAxisMap:u.b})},function(t,e,n){"use strict";var r=n(282),i=n(912),o=n(454),a=n(455),s=n(317);e.a=Object(r.a)({chartName:"AreaChart",GraphicalChild:i.a,axisComponents:[{axisType:"xAxis",AxisComp:o.a},{axisType:"yAxis",AxisComp:a.a
}],formatAxisMap:s.b})},function(t,e,n){"use strict";var r=n(49),i=n.n(r),o=n(282),a=n(672),s=n(671),u=n(235),c=n(1370);e.a=Object(o.a)({chartName:"RadialBarChart",GraphicalChild:c.a,legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:a.a},{axisType:"radiusAxis",AxisComp:s.a}],formatAxisMap:u.b,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:i.a.oneOf(["radial"]),startAngle:i.a.number,
endAngle:i.a.number,cx:i.a.oneOfType([i.a.number,i.a.string]),cy:i.a.oneOfType([i.a.number,i.a.string]),innerRadius:i.a.oneOfType([i.a.number,i.a.string]),outerRadius:i.a.oneOfType([i.a.number,i.a.string])}})},function(t,e,n){"use strict";var r=n(282),i=n(912),o=n(913),a=n(911),s=n(914),u=n(454),c=n(455),l=n(673),f=n(317);e.a=Object(r.a)({chartName:"ComposedChart",GraphicalChild:[a.a,i.a,o.a,s.a],axisComponents:[{axisType:"xAxis",AxisComp:u.a},{axisType:"yAxis",AxisComp:c.a},{axisType:"zAxis",
AxisComp:l.a}],formatAxisMap:f.b})},function(t,e,n){"use strict";var r=n(49),i=n.n(r),o=n(282),a=n(1380);e.a=Object(o.a)({chartName:"FunnelChart",GraphicalChild:a.a,eventType:"item",axisComponents:[],defaultProps:{layout:"centric"},propTypes:{layout:i.a.oneOf(["centric"])}})
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e,n){var r=e.match(t);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:e.slice(r[0].length)}}function i(t,e){var n=e.match(t)
;if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*m+o*b+a*w),rest:e.slice(n[0].length)}}function o(t,e){return r(_.anyDigitsSigned,t,e)}function a(t,e,n){switch(t){case 1:return r(_.singleDigit,e,n);case 2:return r(_.twoDigits,e,n);case 3:return r(_.threeDigits,e,n);case 4:return r(_.fourDigits,e,n);default:return r(new RegExp("^\\d{1,"+t+"}"),e,n)}}
function s(t,e,n){switch(t){case 1:return r(_.singleDigitSigned,e,n);case 2:return r(_.twoDigitsSigned,e,n);case 3:return r(_.threeDigitsSigned,e,n);case 4:return r(_.fourDigitsSigned,e,n);default:return r(new RegExp("^-?\\d{1,"+t+"}"),e,n)}}function u(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function c(t,e){var n,r=e>0,i=r?e:1-e;if(i<=50)n=t||100;else{var o=i+50
;n=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return r?n:1-n}function l(t){return t%400==0||t%4==0&&t%100!=0}var f=n(805),h=n(3125),p=n(3126),d=n(615),g=n(3127),v=n(3128),y=n(614),m=36e5,b=6e4,w=1e3,_={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,
twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},x={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
},O=[31,28,31,30,31,30,31,31,30,31,30,31],T=[31,29,31,30,31,30,31,31,30,31,30,31],S={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n){return t.setUTCFullYear(1===e?10:-9,0,1),t.setUTCHours(0,0,0,0),t}},y:{priority:130,
parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return a(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return a(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n){var r=Object(f.a)(t,n);if(e.isTwoDigitYear){var i=c(e.year,r);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}var o=r>0?e.year:1-e.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}},Y:{
priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return a(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return a(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n){var r=t.getUTCFullYear();if(e.isTwoDigitYear){var i=c(e.year,r);return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(d.a)(t,n)}var o=r>0?e.year:1-e.year
;return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(d.a)(t,n)}},R:{priority:130,parse:function(t,e,n,r){return"R"===e?s(4,t):s(e.length,t)},set:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),Object(y.a)(r)}},u:{priority:130,parse:function(t,e,n,r){return"u"===e?s(4,t):s(e.length,t)},set:function(t,e,n){return t.setUTCFullYear(e,0,1),t.setUTCHours(0,0,0,0),t}},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":
case"QQ":return a(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){
return e>=1&&e<=4},set:function(t,e,n){return t.setUTCMonth(3*(e-1),1),t.setUTCHours(0,0,0,0),t}},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return a(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",
context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n){return t.setUTCMonth(3*(e-1),1),t.setUTCHours(0,0,0,0),t}},M:{priority:110,parse:function(t,e,n,i){var o=function(t){return t-1};switch(e){case"M":return r(_.month,t,o);case"MM":return a(2,t,o);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:o});case"MMM":return n.month(t,{
width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n){return t.setUTCMonth(e,1),t.setUTCHours(0,0,0,0),t}},L:{priority:110,parse:function(t,e,n,i){
var o=function(t){return t-1};switch(e){case"L":return r(_.month,t,o);case"LL":return a(2,t,o);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:o});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{
width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n){return t.setUTCMonth(e,1),t.setUTCHours(0,0,0,0),t}},w:{priority:100,parse:function(t,e,n,i){switch(e){case"w":return r(_.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n){return Object(d.a)(Object(p.a)(t,e,n),n)}},I:{priority:100,parse:function(t,e,n,i){switch(e){case"I":return r(_.week,t)
;case"Io":return n.ordinalNumber(t,{unit:"week"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n){return Object(y.a)(Object(v.a)(t,e,n),n)}},d:{priority:90,parse:function(t,e,n,i){switch(e){case"d":return r(_.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return a(e.length,t)}},validate:function(t,e,n){var r=t.getUTCFullYear(),i=l(r),o=t.getUTCMonth();return i?e>=1&&e<=T[o]:e>=1&&e<=O[o]},set:function(t,e,n){
return t.setUTCDate(e),t.setUTCHours(0,0,0,0),t}},D:{priority:90,parse:function(t,e,n,i){switch(e){case"D":case"DD":return r(_.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return a(e.length,t)}},validate:function(t,e,n){return l(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n){return t.setUTCMonth(0,e),t.setUTCHours(0,0,0,0),t}},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",
context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",
context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n){return t=Object(h.a)(t,e,n),t.setUTCHours(0,0,0,0),t}},e:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return a(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"
})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},
set:function(t,e,n){return t=Object(h.a)(t,e,n),t.setUTCHours(0,0,0,0),t}},c:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return a(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{
width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n){return t=Object(h.a)(t,e,n),t.setUTCHours(0,0,0,0),t}},i:{
priority:90,parse:function(t,e,n,r){var i=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return a(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{
width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n){return t=Object(g.a)(t,e,n),
t.setUTCHours(0,0,0,0),t}},a:{priority:80,parse:function(t,e,n,r){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},
set:function(t,e,n){return t.setUTCHours(u(e),0,0,0),t}},b:{priority:80,parse:function(t,e,n,r){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",
context:"formatting"})}},set:function(t,e,n){return t.setUTCHours(u(e),0,0,0),t}},B:{priority:80,parse:function(t,e,n,r){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"
})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n){return t.setUTCHours(u(e),0,0,0),t}},h:{priority:70,parse:function(t,e,n,i){switch(e){case"h":return r(_.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=12},set:function(t,e,n){var r=t.getUTCHours()>=12;return r&&e<12?t.setUTCHours(e+12,0,0,0):r||12!==e?t.setUTCHours(e,0,0,0):t.setUTCHours(0,0,0,0),t}},H:{priority:70,
parse:function(t,e,n,i){switch(e){case"H":return r(_.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n){return t.setUTCHours(e,0,0,0),t}},K:{priority:70,parse:function(t,e,n,i){switch(e){case"K":return r(_.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n){
return t.getUTCHours()>=12&&e<12?t.setUTCHours(e+12,0,0,0):t.setUTCHours(e,0,0,0),t}},k:{priority:70,parse:function(t,e,n,i){switch(e){case"k":return r(_.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n){var r=e<=24?e%24:e;return t.setUTCHours(r,0,0,0),t}},m:{priority:60,parse:function(t,e,n,i){switch(e){case"m":return r(_.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:
return a(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n){return t.setUTCMinutes(e,0,0),t}},s:{priority:50,parse:function(t,e,n,i){switch(e){case"s":return r(_.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return a(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n){return t.setUTCSeconds(e,0),t}},S:{priority:40,parse:function(t,e,n,r){var i=function(t){return Math.floor(t*Math.pow(10,3-e.length))}
;return a(e.length,t,i)},set:function(t,e,n){return t.setUTCMilliseconds(e),t}},X:{priority:20,parse:function(t,e,n,r){switch(e){case"X":return i(x.basicOptionalMinutes,t);case"XX":return i(x.basic,t);case"XXXX":return i(x.basicOptionalSeconds,t);case"XXXXX":return i(x.extendedOptionalSeconds,t);case"XXX":default:return i(x.extended,t)}},set:function(t,e,n){return new Date(t.getTime()-e)}},x:{priority:20,parse:function(t,e,n,r){switch(e){case"x":return i(x.basicOptionalMinutes,t);case"xx":
return i(x.basic,t);case"xxxx":return i(x.basicOptionalSeconds,t);case"xxxxx":return i(x.extendedOptionalSeconds,t);case"xxx":default:return i(x.extended,t)}},set:function(t,e,n){return new Date(t.getTime()-e)}},t:{priority:10,parse:function(t,e,n,r){return o(t)},set:function(t,e,n){return new Date(1e3*e)}},T:{priority:10,parse:function(t,e,n,r){return o(t)},set:function(t,e,n){return new Date(e)}}};e.a=S},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},a=r.locale,s=a&&a.options&&a.options.weekStartsOn,u=null==s?0:Object(i.a)(s),c=null==r.weekStartsOn?u:Object(i.a)(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(o.a)(t,n),f=Object(i.a)(e),h=l.getUTCDay(),p=f%7,d=(p+7)%7,g=(d<c?7:0)+f-h;return l.setUTCDate(l.getUTCDate()+g),l}e.a=r;var i=n(44),o=n(23)
},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(i.a)(e),u=Object(a.a)(r,n)-s;return r.setUTCDate(r.getUTCDate()-7*u),r}e.a=r;var i=n(44),o=n(23),a=n(1161)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);r%7==0&&(r-=7)
;var a=Object(o.a)(t,n),s=a.getUTCDay(),u=r%7,c=(u+7)%7,l=(c<1?7:0)+r-s;return a.setUTCDate(a.getUTCDate()+l),a}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(i.a)(e),u=Object(a.a)(r,n)-s;return r.setUTCDate(r.getUTCDate()-7*u),r}e.a=r;var i=n(44),o=n(23),a=n(1159)
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){
"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(3809);Object.defineProperty(e,"DragDropManager",{enumerable:!0,get:function(){return r(i).default}});var o=n(3871);Object.defineProperty(e,"DragSource",{enumerable:!0,get:function(){return r(o).default}});var a=n(3872);Object.defineProperty(e,"DropTarget",{enumerable:!0,get:function(){return r(a).default}});var s=n(3873);Object.defineProperty(e,"createTestBackend",{
enumerable:!0,get:function(){return r(s).default}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){
return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3810),s=r(a),u=n(3814),c=r(u),l=n(721),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),h=n(3866),p=r(h),d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var r=(0,s.default)(c.default);this.context=n,this.store=r,this.monitor=new p.default(r),this.registry=this.monitor.registry,
this.backend=e(this),r.subscribe(this.handleRefCountChange.bind(this))}return o(t,[{key:"handleRefCountChange",value:function(){var t=this.store.getState().refCount>0;t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){
return this.registry}},{key:"getActions",value:function(){function t(t){return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=t.apply(e,i);void 0!==a&&n(a)}}var e=this,n=this.store.dispatch;return Object.keys(f).filter(function(t){return"function"==typeof f[t]}).reduce(function(e,n){var r=f[n];return e[n]=t(r),e},{})}}]),t}();e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){function r(){
y===v&&(y=v.slice())}function o(){return g}function s(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return r(),y.push(t),function(){if(e){e=!1,r();var n=y.indexOf(t);y.splice(n,1)}}}function l(t){if(!(0,a.default)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')
;if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,g=d(g,t)}finally{m=!1}for(var e=v=y,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");d=t,l({type:c.INIT})}function h(){var t,e=s;return t={subscribe:function(t){function n(){t.next&&t.next(o())}if("object"!=typeof t)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:e(n)}}},t[u.default]=function(){
return this},t}var p;if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var d=t,g=e,v=[],y=v,m=!1;return l({type:c.INIT}),p={dispatch:l,subscribe:s,getState:o,replaceReducer:f},p[u.default]=h,p}e.__esModule=!0,e.ActionTypes=void 0,e.default=i;var o=n(273),a=r(o),s=n(3811),u=r(s),c=e.ActionTypes={
INIT:"@@redux/INIT"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,r){var i,o=n(3813);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var a=Object(o.a)(i);e.default=a}.call(e,n(158),n(3812)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);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}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];return{dirtyHandlerIds:(0,
h.default)(t.dirtyHandlerIds,e,t.dragOperation),dragOffset:(0,a.default)(t.dragOffset,e),refCount:(0,l.default)(t.refCount,e),dragOperation:(0,u.default)(t.dragOperation,e),stateId:(0,d.default)(t.stateId)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(1571),a=r(o),s=n(3815),u=r(s),c=n(3853),l=r(c),f=n(1579),h=r(f),p=n(3865),d=r(p)},function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments[1];switch(e.type){
case s.BEGIN_DRAG:return i({},t,{itemType:e.itemType,item:e.item,sourceId:e.sourceId,isSourcePublic:e.isSourcePublic,dropResult:null,didDrop:!1});case s.PUBLISH_DRAG_SOURCE:return i({},t,{isSourcePublic:!0});case s.HOVER:return i({},t,{targetIds:e.targetIds});case u.REMOVE_TARGET:return-1===t.targetIds.indexOf(e.targetId)?t:i({},t,{targetIds:(0,a.default)(t.targetIds,e.targetId)});case s.DROP:return i({},t,{dropResult:e.dropResult,didDrop:!0,targetIds:[]});case s.END_DRAG:return i({},t,{
itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=r;var o=n(1573),a=function(t){return t&&t.__esModule?t:{default:t}}(o),s=n(721),u=n(727),c={itemType:null,item:null,sourceId:null,targetIds:[],
dropResult:null,didDrop:!1,isSourcePublic:null}},function(t,e,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(3817),o=n(3828),a=n(3834);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(3818),o=n(3824),a=n(3825),s=n(3826),u=n(3827);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e,n){function r(){
this.__data__=i?i(null):{},this.size=0}var i=n(722);t.exports=r},function(t,e,n){function r(t){return!(!a(t)||o(t))&&(i(t)?d:c).test(s(t))}var i=n(1576),o=n(3820),a=n(577),s=n(3822),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,h=l.toString,p=f.hasOwnProperty,d=RegExp("^"+h.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){return!!o&&o in t}
var i=n(3821),o=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(525),i=r["__core-js_shared__"];t.exports=i},function(t,e){function n(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,i=r.toString;t.exports=n},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t]
;return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(i){var n=e[t];return n===o?void 0:n}return s.call(e,t)?e[t]:void 0}var i=n(722),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}var i=n(722),o=Object.prototype,a=o.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,
n[t]=i&&void 0===e?o:e,this}var i=n(722),o="__lodash_hash_undefined__";t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var i=n(3829),o=n(3830),a=n(3831),s=n(3832),u=n(3833);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t)
;return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}var i=n(724),o=Array.prototype,a=o.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}var i=n(724);t.exports=r},function(t,e,n){function r(t){return i(this.__data__,t)>-1}var i=n(724);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(724);t.exports=r},function(t,e,n){
var r=n(723),i=n(525),o=r(i,"Map");t.exports=o},function(t,e,n){function r(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}var i=n(725);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return i(this,t).get(t)}var i=n(725);t.exports=r},function(t,e,n){function r(t){return i(this,t).has(t)}var i=n(725);t.exports=r},function(t,e,n){function r(t,e){
var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var i=n(725);t.exports=r},function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e,n){return e===e?a(t,e,n):i(t,o,n)}var i=n(3843),o=n(3844),a=n(3845);t.exports=r},function(t,e){function n(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o
;return-1}t.exports=n},function(t,e){function n(t){return t!==t}t.exports=n},function(t,e){function n(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}t.exports=n},function(t,e,n){function r(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=o(r.length-e,0),u=Array(s);++a<s;)u[a]=r[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=r[a];return c[e]=n(u),i(t,this,c)}}var i=n(3847),o=Math.max;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){
case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(3849),i=n(3852),o=i(r);t.exports=o},function(t,e,n){var r=n(3850),i=n(3851),o=n(1577),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e,n){var r=n(723),i=function(){try{
var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e){function n(t){var e=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(arguments[1].type){case i.ADD_SOURCE:case i.ADD_TARGET:return t+1;case i.REMOVE_SOURCE:
case i.REMOVE_TARGET:return t-1;default:return t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=n(727)},function(t,e,n){var r=n(3855),i=n(578),o=n(3856),a=n(726),s=i(function(t){return o(r(t,a))});t.exports=s},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}t.exports=n},function(t,e,n){function r(t,e,n){var r=t.length;if(r<2)return r?a(t[0]):[]
;for(var s=-1,u=Array(r);++s<r;)for(var c=t[s],l=-1;++l<r;)l!=s&&(u[s]=i(u[s]||c,t[l],e,n));return a(o(u,1),e,n)}var i=n(1574),o=n(1580),a=n(1582);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}t.exports=n},function(t,e,n){function r(t){return a(t)||o(t)||!!(s&&t&&t[s])}var i=n(839),o=n(1581),a=n(405),s=i?i.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){function r(t){return o(t)&&i(t)==a}
var i=n(631),o=n(526),a="[object Arguments]";t.exports=r},function(t,e,n){var r=n(3861),i=n(1583),o=n(1584),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},function(t,e,n){var r=n(723),i=n(525),o=r(i,"Set");t.exports=o},function(t,e,n){var r=n(1019),i=n(3863),o=n(578),a=n(3864),s=o(function(t){var e=r(t,a);return e.length&&e[0]===t[0]?i(e):[]});t.exports=s},function(t,e,n){function r(t,e,n){for(var r=n?a:o,f=t[0].length,h=t.length,p=h,d=Array(h),g=1/0,v=[];p--;){
var y=t[p];p&&e&&(y=s(y,u(e))),g=l(y.length,g),d[p]=!n&&(e||f>=120&&y.length>=120)?new i(p&&y):void 0}y=t[0];var m=-1,b=d[0];t:for(;++m<f&&v.length<g;){var w=y[m],_=e?e(w):w;if(w=n||0!==w?w:0,!(b?c(b,_):r(v,_,n))){for(p=h;--p;){var x=d[p];if(!(x?c(x,_):r(t[p],_,n)))continue t}b&&b.push(_),v.push(w)}}return v}var i=n(1015),o=n(1017),a=n(1018),s=n(1019),u=n(1020),c=n(1021),l=Math.min;t.exports=r},function(t,e,n){function r(t){return i(t)?t:[]}var i=n(726);t.exports=r},function(t,e,n){"use strict"
;function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,
"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(183),s=r(a),u=n(405),c=r(u),l=n(1572),f=r(l),h=n(3867),p=r(h),d=n(1571),g=n(1579),v=function(){function t(e){i(this,t),this.store=e,this.registry=new p.default(e)}return o(t,[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handlerIds;(0,
s.default)("function"==typeof t,"listener must be a function."),(0,s.default)(void 0===r||(0,c.default)(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===i||o===i+1&&!(0,g.areDirty)(n.dirtyHandlerIds,r)||t()}finally{i=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;(0,s.default)("function"==typeof t,"listener must be a function.")
;var n=this.store.getState().dragOffset,r=function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())};return this.store.subscribe(r)}},{key:"canDragSource",value:function(t){var e=this.registry.getSource(t);return(0,s.default)(e,"Expected to find a valid source."),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){var e=this.registry.getTarget(t);if((0,s.default)(e,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1
;var n=this.registry.getTargetType(t),r=this.getItemType();return(0,f.default)(n,r)&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){var e=this.registry.getSource(t,!0);return(0,s.default)(e,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t))}},{key:"isOverTarget",value:function(t){
var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),i=this.getItemType();if(!(0,f.default)(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(t);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",
value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){
return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,d.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,
d.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),t}();e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){(0,p.default)("function"==typeof t.canDrag,"Expected canDrag to be a function."),(0,p.default)("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),(0,
p.default)("function"==typeof t.endDrag,"Expected endDrag to be a function.")}function a(t){(0,p.default)("function"==typeof t.canDrop,"Expected canDrop to be a function."),(0,p.default)("function"==typeof t.hover,"Expected hover to be a function."),(0,p.default)("function"==typeof t.drop,"Expected beginDrag to be a function.")}function s(t,e){if(e&&(0,g.default)(t))return void t.forEach(function(t){return s(t,!1)});(0,
p.default)("string"==typeof t||"symbol"===(void 0===t?"undefined":f(t)),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function u(t){var e=(0,w.default)().toString();switch(t){case _.SOURCE:return"S"+e;case _.TARGET:return"T"+e;default:(0,p.default)(!1,"Unknown role: "+t)}}function c(t){switch(t[0]){case"S":return _.SOURCE;case"T":return _.TARGET;default:(0,p.default)(!1,"Cannot parse handler ID: "+t)}}
Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t
},h=n(183),p=r(h),d=n(405),g=r(d),v=n(3868),y=r(v),m=n(727),b=n(3870),w=r(b),_={SOURCE:"SOURCE",TARGET:"TARGET"},x=function(){function t(e){i(this,t),this.store=e,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return l(t,[{key:"addSource",value:function(t,e){s(t),o(e);var n=this.addHandler(_.SOURCE,t,e);return this.store.dispatch((0,m.addSource)(n)),n}},{key:"addTarget",value:function(t,e){s(t,!0),a(e);var n=this.addHandler(_.TARGET,t,e)
;return this.store.dispatch((0,m.addTarget)(n)),n}},{key:"addHandler",value:function(t,e,n){var r=u(t);return this.types[r]=e,this.handlers[r]=n,r}},{key:"containsHandler",value:function(t){var e=this;return Object.keys(this.handlers).some(function(n){return e.handlers[n]===t})}},{key:"getSource",value:function(t,e){return(0,p.default)(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.handlers[t]}},{key:"getTarget",value:function(t){return(0,
p.default)(this.isTargetId(t),"Expected a valid target ID."),this.handlers[t]}},{key:"getSourceType",value:function(t){return(0,p.default)(this.isSourceId(t),"Expected a valid source ID."),this.types[t]}},{key:"getTargetType",value:function(t){return(0,p.default)(this.isTargetId(t),"Expected a valid target ID."),this.types[t]}},{key:"isSourceId",value:function(t){return c(t)===_.SOURCE}},{key:"isTargetId",value:function(t){return c(t)===_.TARGET}},{key:"removeSource",value:function(t){var e=this
;(0,p.default)(this.getSource(t),"Expected an existing source."),this.store.dispatch((0,m.removeSource)(t)),(0,y.default)(function(){delete e.handlers[t],delete e.types[t]})}},{key:"removeTarget",value:function(t){var e=this;(0,p.default)(this.getTarget(t),"Expected an existing target."),this.store.dispatch((0,m.removeTarget)(t)),(0,y.default)(function(){delete e.handlers[t],delete e.types[t]})}},{key:"pinSource",value:function(t){var e=this.getSource(t);(0,
p.default)(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){(0,p.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),t}();e.default=x},function(t,e,n){"use strict";function r(){if(u.length)throw u.shift()}function i(t){var e;e=s.length?s.pop():new o,e.task=t,a(e)}function o(){this.task=null}var a=n(3869),s=[],u=[],c=a.makeRequestCallFromTimer(r);t.exports=i,
o.prototype.call=function(){try{this.task.call()}catch(t){i.onerror?i.onerror(t):(u.push(t),c())}finally{this.task=null,s[s.length]=this}}},function(t,e,n){"use strict";(function(e){function n(t){a.length||(o(),s=!0),a[a.length]=t}function r(){for(;u<a.length;){var t=u;if(u+=1,a[t].call(),u>c){for(var e=0,n=a.length-u;e<n;e++)a[e]=a[e+u];a.length-=u,u=0}}a.length=0,u=0,s=!1}function i(t){return function(){function e(){clearTimeout(n),clearInterval(r),t()}var n=setTimeout(e,0),r=setInterval(e,50)
}}t.exports=n;var o,a=[],s=!1,u=0,c=1024,l=void 0!==e?e:self,f=l.MutationObserver||l.WebKitMutationObserver;o="function"==typeof f?function(t){var e=1,n=new f(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}(r):i(r),n.requestFlush=o,n.makeRequestCallFromTimer=i}).call(e,n(158))},function(t,e,n){"use strict";function r(){return i++}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=0},function(t,e,n){"use strict";function r(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(){r(this,t)}return i(t,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",
value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){
return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(){r(this,t)}return i(t,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new u(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=i;var a=n(1583),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(){function t(e){r(this,t),this.actions=e.getActions()}return o(t,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){
return s.default}},{key:"connectDragPreview",value:function(){return s.default}},{key:"connectDropTarget",value:function(){return s.default}},{key:"simulateBeginDrag",value:function(t,e){this.actions.beginDrag(t,e)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(t,e){this.actions.hover(t,e)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),t}()
},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,
enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,s,u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),l=n(1),f=function(t){return t&&t.__esModule?t:{default:t}
}(l),h=n(1570),p=(s=a=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.backend=(0,h.unpackBackendForEs5Users)(t.backend),o.childContext=(0,h.createChildContext)(o.backend,{window:function(){return t&&t.window?t.window:n&&n.window?n.window:"undefined"!=typeof window?window:void 0}()}),o}return o(e,t),u(e,[{key:"componentWillReceiveProps",value:function(t){
if(t.backend!==this.props.backend||t.window!==this.props.window)throw new Error("DragDropContextProvider backend and window props must not change.")}},{key:"getChildContext",value:function(){return this.childContext}},{key:"render",value:function(){return c.Children.only(this.props.children)}}]),e}(c.Component),a.propTypes={backend:f.default.oneOfType([f.default.func,f.default.object]).isRequired,children:f.default.element.isRequired,window:f.default.object},a.defaultProps={window:void 0},
a.childContextTypes=h.CHILD_CONTEXT_TYPES,a.displayName="DragDropContextProvider",a.contextTypes={window:f.default.object},s);e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,
w.default)("function"==typeof t,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",t),(0,w.default)((0,m.default)(e),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',e),
function(n){var r,s,p=e.arePropsEqual,g=void 0===p?T.default:p,y=n.displayName||n.name||"Component",m=(s=r=function(e){function r(t,e){i(this,r);var n=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));return n.handleChange=n.handleChange.bind(n),n.manager=e.dragDropManager,(0,
w.default)("object"===c(n.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",y,y),n.state=n.getCurrentState(),n}return a(r,e),l(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,
w.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(t,e){return!g(t,this.props)||!(0,x.default)(e,this.state)}}]),l(r,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange),
this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var t=this.getCurrentState();(0,x.default)(t,this.state)||this.setState(t)}}},{key:"getCurrentState",value:function(){var e=this.manager.getMonitor();return t(e,this.props)}},{key:"render",value:function(){var t=this
;return h.default.createElement(n,u({},this.props,this.state,{ref:function(e){t.child=e}}))}}]),r}(f.Component),r.DecoratedComponent=n,r.displayName="DragLayer("+y+")",r.contextTypes={dragDropManager:d.default.object.isRequired},s);return(0,v.default)(m,n)}}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t
},c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=s
;var f=n(0),h=r(f),p=n(1),d=r(p),g=n(1023),v=r(g),y=n(273),m=r(y),b=n(183),w=r(b),_=n(1024),x=r(_),O=n(1585),T=r(O),S=n(728),E=r(S)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};l.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var i=t;"function"!=typeof t&&((0,a.default)((0,
x.default)(t),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t),i=function(){return t}),(0,a.default)((0,u.default)(e),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e);var o=(0,
v.default)(e);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),(0,a.default)((0,
u.default)(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(t){return(0,h.default)({connectBackend:function(t,e){return t.connectDragSource(e)},containerDisplayName:"DragSource",createHandler:o,registerHandler:d.default,createMonitor:m.default,createConnector:w.default,DecoratedComponent:t,getType:i,collect:n,options:r})}}
Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(183),a=r(o),s=n(273),u=r(s),c=n(728),l=r(c),f=n(1586),h=r(f),p=n(3881),d=r(p),g=n(3882),v=r(g),y=n(3883),m=r(y),b=n(3884),w=r(b),_=n(1589),x=r(_)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(1025),o=r(i);e.isDisposable=o.default;var a=n(3878),s=r(a);e.Disposable=s.default;var u=n(3879),c=r(u);e.CompositeDisposable=c.default;var l=n(3880),f=r(l)
;e.SerialDisposable=f.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){},a=function(){function t(e){r(this,t),this.isDisposed=!1,
this.action=e||o}return i(t,null,[{key:"empty",value:{dispose:o},enumerable:!0}]),t.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},t}();e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(1025),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=function(){function t(){
for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];r(this,t),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var a=0;a<n.length;a++)if(!o.default(n[a]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return t.prototype.add=function(t){this.isDisposed?t.dispose():this.disposables.push(t)},t.prototype.remove=function(t){if(this.isDisposed)return!1;var e=this.disposables.indexOf(t);return-1!==e&&(this.disposables.splice(e,1),t.dispose(),!0)},
t.prototype.dispose=function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;n<t;n++)e[n].dispose()}},t}();e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(1025),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=function(){function t(){
r(this,t),this.isDisposed=!1,this.current=null}return t.prototype.getDisposable=function(){return this.current},t.prototype.setDisposable=function(){var t=arguments.length<=0||void 0===arguments[0]?null:arguments[0];if(null!=t&&!o.default(t))throw new Error("Expected either an empty value or a valid disposable");var e=this.isDisposed,n=void 0;e||(n=this.current,this.current=t),n&&n.dispose(),e&&t&&t.dispose()},t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0
;var t=this.current;this.current=null,t&&t.dispose()}},t}();e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t,e,n){function r(){i.removeSource(o)}var i=n.getRegistry(),o=i.addSource(t,e);return{handlerId:o,unregister:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){
Object.keys(t).forEach(function(e){(0,u.default)(l.indexOf(e)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',l.join(", "),e),(0,
u.default)("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",e,e,t[e])}),f.forEach(function(e){(0,u.default)("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",e,e,t[e])});var e=function(){
function e(t){i(this,e),this.monitor=t,this.props=null,this.component=null}return a(e,[{key:"receiveProps",value:function(t){this.props=t}},{key:"receiveComponent",value:function(t){this.component=t}},{key:"canDrag",value:function(){return!t.canDrag||t.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(e,n){return t.isDragging?t.isDragging(this.props,this.monitor):n===e.getSourceId()}},{key:"beginDrag",value:function(){var e=t.beginDrag(this.props,this.monitor,this.component)
;return e}},{key:"endDrag",value:function(){t.endDrag&&t.endDrag(this.props,this.monitor,this.component)}}]),e}();return function(t){return new e(t)}}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=o;var s=n(183),u=r(s),c=n(273),l=(r(c),
["canDrag","beginDrag","isDragging","endDrag"]),f=["beginDrag"]},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new l(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),
r&&t(e,r),e}}();e.default=i;var a=n(183),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=!1,c=!1,l=function(){function t(e){r(this,t),this.internalMonitor=e.getMonitor()}return o(t,[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"canDrag",value:function(){(0,s.default)(!u,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return u=!0,
this.internalMonitor.canDragSource(this.sourceId)}finally{u=!1}}},{key:"isDragging",value:function(){(0,s.default)(!c,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return c=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{c=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){
return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){
return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){function e(){c&&(c(),c=null),i&&o&&(c=t.connectDragSource(i,o,s))}function n(){h&&(h(),h=null),i&&l&&(h=t.connectDragPreview(i,l,f))}
function r(t){t!==i&&(i=t,e(),n())}var i=void 0,o=void 0,s=void 0,c=void 0,l=void 0,f=void 0,h=void 0;return{receiveHandlerId:r,hooks:(0,a.default)({dragSource:function(t,n){t===o&&(0,u.default)(n,s)||(o=t,s=n,e())},dragPreview:function(t,e){t===l&&(0,u.default)(e,f)||(l=t,f=e,n())}})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(1587),a=r(o),s=n(1588),u=r(s)},function(t,e,n){"use strict";function r(t,e){var n=t.ref;return(0,
o.default)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,a.cloneElement)(t,{ref:function(t){e(t),n&&n(t)}}):(0,a.cloneElement)(t,{ref:e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=n(183),o=function(t){return t&&t.__esModule?t:{default:t}
}(i),a=n(0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};l.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var i=t;"function"!=typeof t&&((0,a.default)((0,
x.default)(t,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t),i=function(){return t}),(0,a.default)((0,
u.default)(e),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e);var o=(0,v.default)(e);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),(0,
a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(t){return(0,h.default)({connectBackend:function(t,e){return t.connectDropTarget(e)},containerDisplayName:"DropTarget",createHandler:o,registerHandler:d.default,createMonitor:m.default,createConnector:w.default,DecoratedComponent:t,getType:i,collect:n,options:r})}}
Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(183),a=r(o),s=n(273),u=r(s),c=n(728),l=r(c),f=n(1586),h=r(f),p=n(3887),d=r(p),g=n(3888),v=r(g),y=n(3889),m=r(y),b=n(3890),w=r(b),_=n(1589),x=r(_)},function(t,e,n){"use strict";function r(t,e,n){function r(){i.removeTarget(o)}var i=n.getRegistry(),o=i.addTarget(t,e);return{handlerId:o,unregister:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{
default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){Object.keys(t).forEach(function(e){(0,u.default)(l.indexOf(e)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',l.join(", "),e),(0,
u.default)("function"==typeof t[e],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",e,e,t[e])});var e=function(){function e(t){i(this,e),this.monitor=t,this.props=null,this.component=null}return a(e,[{key:"receiveProps",value:function(t){this.props=t}},{key:"receiveMonitor",value:function(t){this.monitor=t}},{key:"receiveComponent",value:function(t){this.component=t
}},{key:"canDrop",value:function(){return!t.canDrop||t.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){t.hover&&t.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(t.drop){var e=t.drop(this.props,this.monitor,this.component);return e}}}]),e}();return function(t){return new e(t)}}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,
"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=o;var s=n(183),u=r(s),c=n(273),l=(r(c),["canDrop","hover","drop"])},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new c(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n]
;r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=i;var a=n(183),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=!1,c=function(){function t(e){r(this,t),this.internalMonitor=e.getMonitor()}return o(t,[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"canDrop",value:function(){(0,
s.default)(!u,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return u=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{u=!1}}},{key:"isOver",value:function(t){return this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{
key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",
value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){function e(){s&&(s(),s=null),r&&i&&(s=t.connectDropTarget(r,i,o))}function n(t){t!==r&&(r=t,e())}var r=void 0,i=void 0,o=void 0,s=void 0;return{receiveHandlerId:n,hooks:(0,a.default)({dropTarget:function(t,n){
t===i&&(0,u.default)(n,o)||(i=t,o=n,e())}})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(1587),a=r(o),s=n(1588),u=r(s)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,
"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3892),s=r(a),u=n(3905),c=r(u),l=n(3906),f=r(l),h=n(1591),p=n(3909),d=n(3911),g=n(1026),v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(g),y=function(){function t(e){i(this,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),
this.context=e.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new f.default,this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,
this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),
this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),
this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this),this.isNodeInDocument=this.isNodeInDocument.bind(this)}return o(t,[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,
this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),
t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),
t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),
t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"connectDragPreview",value:function(t,e,n){var r=this;return this.sourcePreviewNodeOptions[t]=n,this.sourcePreviewNodes[t]=e,function(){delete r.sourcePreviewNodes[t],delete r.sourcePreviewNodeOptions[t]}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes[t]=e,this.sourceNodeOptions[t]=n;var i=function(e){return r.handleDragStart(e,t)},o=function(e){
return r.handleSelectStart(e,t)};return e.setAttribute("draggable",!0),e.addEventListener("dragstart",i),e.addEventListener("selectstart",o),function(){delete r.sourceNodes[t],delete r.sourceNodeOptions[t],e.removeEventListener("dragstart",i),e.removeEventListener("selectstart",o),e.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},i=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)}
;return e.addEventListener("dragenter",r),e.addEventListener("dragover",i),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",i),e.removeEventListener("drop",o)}}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions[t];return(0,s.default)(e||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){
return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourcePreviewNodeOptions[t];return(0,s.default)(e||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(t){return(0,p.getNodeClientOffset)(this.sourceNodes[t])}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType()
;return Object.keys(v).some(function(e){return v[e]===t})}},{key:"beginDragNativeItem",value:function(t){this.clearCurrentDragSourceNode();var e=(0,d.createNativeDragSource)(t);this.currentNativeSource=new e,this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem)}},{key:"endDragNativeItem",
value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"isNodeInDocument",value:function(t){return!(!document.body.contains(t)&&!this.window)&&this.window.document.body.contains(t)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var t=this.currentDragSourceNode;this.isNodeInDocument(t)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{
key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.currentDragSourceNodeOffset=(0,p.getNodeClientOffset)(t),this.currentDragSourceNodeOffsetChanged=!1;this.mouseMoveTimeoutTimer=setTimeout(function(){return e.mouseMoveTimeoutId=null,e.window.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){
return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.clearTimeout(this.mouseMoveTimeoutTimer),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),this.mouseMoveTimeoutTimer=null,!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var t=this.currentDragSourceNode
;return!!t&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,c.default)((0,p.getNodeClientOffset)(t),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(t,e){this.dragStartSourceIds.unshift(e)}},{key:"handleTopDragStart",value:function(t){var e=this,n=this.dragStartSourceIds
;this.dragStartSourceIds=null;var r=(0,p.getEventClientOffset)(t);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});var i=t.dataTransfer,o=(0,d.matchNativeItemType)(i);if(this.monitor.isDragging()){if("function"==typeof i.setDragImage){
var a=this.monitor.getSourceId(),s=this.sourceNodes[a],u=this.sourcePreviewNodes[a]||s,c=this.getCurrentSourcePreviewNodeOptions(),l=c.anchorX,f=c.anchorY,h=c.offsetX,g=c.offsetY,v={anchorX:l,anchorY:f},y={offsetX:h,offsetY:g},m=(0,p.getDragPreviewOffset)(s,u,r,v,y);i.setDragImage(u,m.x,m.y)}try{i.setData("application/json",{})}catch(t){}this.setCurrentDragSourceNode(t.target);this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout(function(){
return e.actions.publishDragSource()})}else if(o)this.beginDragNativeItem(o);else{if(!(i.types||t.target.hasAttribute&&t.target.hasAttribute("draggable")))return;t.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(t){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(t.target)&&!this.monitor.isDragging()){var e=t.dataTransfer,n=(0,d.matchNativeItemType)(e)
;n&&this.beginDragNativeItem(n)}}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleTopDragEnter",value:function(t){var e=this,n=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){this.altKeyPressed=t.altKey,(0,h.isFirefox)()||this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(t)});n.some(function(t){return e.monitor.canDropOnTarget(t)})&&(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect())}
}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(t,e){this.dragOverTargetIds.unshift(e)}},{key:"handleTopDragOver",value:function(t){var e=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer.dropEffect="none");this.altKeyPressed=t.altKey,this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(t)}),n.some(function(t){
return e.monitor.canDropOnTarget(t)})?(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(t.preventDefault(),t.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(t.preventDefault(),t.dataTransfer.dropEffect="move")}},{key:"handleTopDragLeaveCapture",value:function(t){this.isDraggingNativeItem()&&t.preventDefault(),this.enterLeaveCounter.leave(t.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{
key:"handleTopDropCapture",value:function(t){this.dropTargetIds=[],t.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(t.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}},{key:"handleTopDrop",value:function(t){var e=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:(0,p.getEventClientOffset)(t)}),this.actions.drop({
dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}},{key:"handleSelectStart",value:function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),t}()
;e.default=y},function(t,e,n){var r=n(578),i=n(1016),o=n(3893),a=n(3894),s=Object.prototype,u=s.hasOwnProperty,c=r(function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var l=e[n],f=a(l),h=-1,p=f.length;++h<p;){var d=f[h],g=t[d];(void 0===g||i(g,s[d])&&!u.call(t,d))&&(t[d]=l[d])}return t});t.exports=c},function(t,e,n){function r(t,e,n){if(!s(n))return!1;var r=typeof e;return!!("number"==r?o(n)&&a(e,n.length):"string"==r&&e in n)&&i(n[e],t)}
var i=n(1016),o=n(1022),a=n(1590),s=n(577);t.exports=r},function(t,e,n){function r(t){return a(t)?i(t,!0):o(t)}var i=n(3895),o=n(3902),a=n(1022);t.exports=r},function(t,e,n){function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),h=!n&&!r&&!l&&c(t),p=n||r||l||h,d=p?i(t.length,String):[],g=d.length;for(var v in t)!e&&!f.call(t,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||d.push(v);return d}
var i=n(3896),o=n(1581),a=n(405),s=n(3897),u=n(1590),c=n(3899),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},function(t,e,n){(function(t){var r=n(525),i=n(3898),o="object"==typeof e&&e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i;t.exports=l}).call(e,n(380)(t))},function(t,e){function n(){return!1}t.exports=n
},function(t,e,n){var r=n(3900),i=n(1020),o=n(3901),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e,n){function r(t){return a(t)&&o(t.length)&&!!s[i(t)]}var i=n(631),o=n(1578),a=n(526),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,
s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){(function(t){
var r=n(1214),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=u}).call(e,n(380)(t))},function(t,e,n){function r(t){if(!i(t))return a(t);var e=o(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n}var i=n(577),o=n(3903),a=n(3904),s=Object.prototype,u=s.hasOwnProperty;t.exports=r},function(t,e){function n(t){
var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}var r=Object.prototype;t.exports=n},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o+=1){if(!i.call(e,n[o])||t[n[o]]!==e[n[o]])return!1;if(t[n[o]]!==e[n[o]])return!1}return!0}
Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){
return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3907),s=r(a),u=n(1573),c=r(u),l=function(){function t(){i(this,t),this.entered=[]}return o(t,[{key:"enter",value:function(t){var e=this.entered.length,n=function(e){return document.documentElement.contains(e)&&(!e.contains||e.contains(t))};return this.entered=(0,s.default)(this.entered.filter(n),[t]),0===e&&this.entered.length>0}},{key:"leave",value:function(t){var e=this.entered.length;return this.entered=(0,
c.default)(this.entered.filter(function(t){return document.documentElement.contains(t)}),t),e>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),t}();e.default=l},function(t,e,n){var r=n(1580),i=n(578),o=n(1582),a=n(726),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache
;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(1575),o="Expected a function";r.Cache=i,t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.nodeType===f?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function i(t){return{x:t.clientX,y:t.clientY}}function o(t){return"IMG"===t.nodeName&&((0,u.isFirefox)()||!document.documentElement.contains(t))}
function a(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return(0,u.isSafari)()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function s(t,e,n,i,s){var c=o(e),f=c?t:e,h=r(f),p={x:n.x-h.x,y:n.y-h.y},d=t.offsetWidth,g=t.offsetHeight,v=i.anchorX,y=i.anchorY,m=a(c,e,d,g),b=m.dragPreviewWidth,w=m.dragPreviewHeight,_=s.offsetX,x=s.offsetY,O=0===_||_,T=0===x||x;return{x:O?_:function(){return new l.default([0,.5,1],[p.x,p.x/d*b,p.x+b-d]).interpolate(v)
}(),y:T?x:function(){var t=new l.default([0,.5,1],[p.y,p.y/g*w,p.y+w-g]),e=t.interpolate(y);return(0,u.isSafari)()&&c&&(e+=(window.devicePixelRatio-1)*w),e}()}}Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeClientOffset=r,e.getEventClientOffset=i,e.getDragPreviewOffset=s;var u=n(1591),c=n(3910),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=1},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){r(this,t);for(var i=e.length,o=[],a=0;a<i;a++)o.push(a);o.sort(function(t,n){return e[t]<e[n]?-1:1});for(var s=[],u=[],c=[],l=void 0,f=void 0,h=0;h<i-1;h++)l=e[h+1]-e[h],
f=n[h+1]-n[h],u.push(l),s.push(f),c.push(f/l);for(var p=[c[0]],d=0;d<u.length-1;d++){var g=c[d],v=c[d+1];if(g*v<=0)p.push(0);else{l=u[d];var y=u[d+1],m=l+y;p.push(3*m/((m+y)/g+(m+l)/v))}}p.push(c[c.length-1]);for(var b=[],w=[],_=void 0,x=0;x<p.length-1;x++){_=c[x];var O=p[x],T=1/u[x],S=O+p[x+1]-_-_;b.push((_-O-S)*T),w.push(S*T*T)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=b,this.c3s=w}return i(t,[{key:"interpolate",value:function(t){
var e=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=e.length-1;if(t===e[a])return n[a];for(var s=0,u=o.length-1,c=void 0;s<=u;){c=Math.floor(.5*(s+u));var l=e[c];if(l<t)s=c+1;else{if(!(l>t))return n[c];u=c-1}}a=Math.max(0,u);var f=t-e[a],h=f*f;return n[a]+r[a]*f+i[a]*h+o[a]*f*h}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e){var r=e[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,n,r)}return t}function i(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e,n){var r=e.reduce(function(e,n){return e||t.getData(n)},null);return null!=r?r:n}function s(t){var e=p[t],n=e.exposeProperty,o=e.matchesTypes,a=e.getData;return function(){function t(){var e,o;i(this,t),this.item=(e={},o={},o[n]=o[n]||{},o[n].get=function(){
return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},r(e,o),e)}return l(t,[{key:"mutateItemByReadingDataTransfer",value:function(t){delete this.item[n],this.item[n]=a(t,o)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}]),t}()}function u(t){var e=Array.prototype.slice.call(t.types||[])
;return Object.keys(p).filter(function(t){return p[t].matchesTypes.some(function(t){return e.indexOf(t)>-1})})[0]||null}Object.defineProperty(e,"__esModule",{value:!0});var c,l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.createNativeDragSource=s,e.matchNativeItemType=u;var f=n(1026),h=function(t){
if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f),p=(c={},o(c,h.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(t){return Array.prototype.slice.call(t.files)}}),o(c,h.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(t,e){return a(t,e,"").split("\n")}}),o(c,h.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(t,e){
return a(t,e,"")}}),c)},function(t,e,n){"use strict";function r(){return i||(i=new Image,i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var i=void 0
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),
e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){
return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),l=r(c),f=n(1),h=r(f),p=n(4304),d=r(p),g=n(4305),v=r(g),y=n(4313),m=function(){return!0},b=function(t){return t.trim().length>0},w=function(t){var e=t.containerProps,n=t.children;return l.default.createElement("div",e,n)},_=function(t){function e(t){var n=t.alwaysRenderSuggestions;i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return x.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,
highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r}return a(e,t),u(e,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(t){(0,
d.default)(t.suggestions,this.props.suggestions)?t.highlightFirstSuggestion&&t.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(t)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(t,e){var n=this.props,r=n.suggestions,i=n.onSuggestionHighlighted,o=n.highlightFirstSuggestion;if(!(0,
d.default)(r,t.suggestions)&&r.length>0&&o)return void this.highlightFirstSuggestion();if(i){var a=this.getHighlightedSuggestion();a!=e.highlightedSuggestion&&i({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown)}},{key:"updateHighlightedSuggestion",value:function(t,e,n){var r=this;this.setState(function(i){var o=i.valueBeforeUpDown;return null===e?o=null:null===o&&void 0!==n&&(o=n),{highlightedSectionIndex:t,
highlightedSuggestionIndex:e,highlightedSuggestion:null===e?null:r.getSuggestion(t,e),valueBeforeUpDown:o}})}},{key:"resetHighlightedSuggestion",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState(function(e){var n=e.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:t?null:n}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{
key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(t,e){var n=this.props,r=n.suggestions,i=n.multiSection,o=n.getSectionSuggestions;return i?o(r[t])[e]:r[e]}},{key:"getHighlightedSuggestion",value:function(){var t=this.state,e=t.highlightedSectionIndex,n=t.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(e,n)}
},{key:"getSuggestionValueByIndex",value:function(t,e){return(0,this.props.getSuggestionValue)(this.getSuggestion(t,e))}},{key:"getSuggestionIndices",value:function(t){var e=t.getAttribute("data-section-index"),n=t.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof e?parseInt(e,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(t){var e=t;do{if(null!==e.getAttribute("data-suggestion-index"))return e;e=e.parentNode}while(null!==e)
;throw console.error("Clicked element:",t),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(t,e,n){var r=this.props.inputProps,i=r.value,o=r.onChange;e!==i&&o(t,{newValue:e,method:n})}},{key:"willRenderSuggestions",value:function(t){var e=t.suggestions,n=t.inputProps,r=t.shouldRenderSuggestions,i=n.value;return e.length>0&&r(i)}},{key:"getQuery",value:function(){var t=this.props.inputProps,e=t.value,n=this.state.valueBeforeUpDown;return(null===n?e:n).trim()
}},{key:"render",value:function(){
var t=this,e=this.props,n=e.suggestions,r=e.renderInputComponent,i=e.onSuggestionsFetchRequested,o=e.renderSuggestion,a=e.inputProps,u=e.multiSection,c=e.renderSectionTitle,f=e.id,h=e.getSectionSuggestions,p=e.theme,d=e.getSuggestionValue,g=e.alwaysRenderSuggestions,b=e.highlightFirstSuggestion,w=this.state,_=w.isFocused,x=w.isCollapsed,O=w.highlightedSectionIndex,T=w.highlightedSuggestionIndex,S=w.valueBeforeUpDown,E=g?m:this.props.shouldRenderSuggestions,j=a.value,k=a.onFocus,C=a.onKeyDown,A=this.willRenderSuggestions(this.props),P=g||_&&!x&&A,M=P?n:[],D=s({},a,{
onFocus:function(e){if(!t.justSelectedSuggestion&&!t.justClickedOnSuggestionsContainer){var n=E(j);t.setState({isFocused:!0,isCollapsed:!n}),k&&k(e),n&&i({value:j,reason:"input-focused"})}},onBlur:function(e){if(t.justClickedOnSuggestionsContainer)return void t.input.focus();t.blurEvent=e,t.justSelectedSuggestion||(t.onBlur(),t.onSuggestionsClearRequested())},onChange:function(e){var n=e.target.value,r=E(n);t.maybeCallOnChange(e,n,"type"),t.setState(s({},b?{}:{highlightedSectionIndex:null,
highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:"input-changed"}):t.onSuggestionsClearRequested()},onKeyDown:function(e,r){var o=e.keyCode;switch(o){case 40:case 38:if(x)E(j)&&(i({value:j,reason:"suggestions-revealed"}),t.revealSuggestions());else if(n.length>0){var a=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex,u=void 0;u=null===s?null===S?j:S:t.getSuggestionValueByIndex(a,s),
t.updateHighlightedSuggestion(a,s,j),t.maybeCallOnChange(e,u,40===o?"down":"up")}e.preventDefault(),t.justPressedUpDown=!0,setTimeout(function(){t.justPressedUpDown=!1});break;case 13:if(229===e.keyCode)break;var c=t.getHighlightedSuggestion();if(P&&!g&&t.closeSuggestions(),null!=c){var l=d(c);t.maybeCallOnChange(e,l,"enter"),t.onSuggestionSelected(e,{suggestion:c,suggestionValue:l,suggestionIndex:T,sectionIndex:O,method:"enter"}),t.justSelectedSuggestion=!0,setTimeout(function(){
t.justSelectedSuggestion=!1})}break;case 27:P&&e.preventDefault();var f=P&&!g;if(null===S){if(!f){t.maybeCallOnChange(e,"","escape"),E("")?i({value:"",reason:"escape-pressed"}):t.onSuggestionsClearRequested()}}else t.maybeCallOnChange(e,S,"escape");f?(t.onSuggestionsClearRequested(),t.closeSuggestions()):t.resetHighlightedSuggestion()}C&&C(e)}}),I={query:this.getQuery()};return l.default.createElement(v.default,{multiSection:u,items:M,renderInputComponent:r,
renderItemsContainer:this.renderSuggestionsContainer,renderItem:o,renderItemData:I,renderSectionTitle:c,getSectionItems:h,highlightedSectionIndex:O,highlightedItemIndex:T,inputProps:D,itemProps:this.itemProps,theme:(0,y.mapToAutowhateverTheme)(p),id:f,ref:this.storeAutowhateverRef})}}]),e}(c.Component);_.propTypes={suggestions:h.default.array.isRequired,onSuggestionsFetchRequested:function(t,e){
if("function"!=typeof t[e])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(t,e){var n=t[e];if(!1===t.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:h.default.func,
onSuggestionHighlighted:h.default.func,renderInputComponent:h.default.func,renderSuggestionsContainer:h.default.func,getSuggestionValue:h.default.func.isRequired,renderSuggestion:h.default.func.isRequired,inputProps:function(t,e){var n=t[e];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:h.default.func,alwaysRenderSuggestions:h.default.bool,
multiSection:h.default.bool,renderSectionTitle:function(t,e){var n=t[e];if(!0===t.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(t,e){var n=t[e];if(!0===t.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},
focusInputOnSuggestionClick:h.default.bool,highlightFirstSuggestion:h.default.bool,theme:h.default.object,id:h.default.string},_.defaultProps={renderSuggestionsContainer:w,shouldRenderSuggestions:b,alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:y.defaultTheme,id:"1"};var x=function(){var t=this;this.onDocumentMouseDown=function(e){t.justClickedOnSuggestionsContainer=!1
;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(e){null!==e&&(t.autowhatever=e)},this.onSuggestionMouseEnter=function(e,n){var r=n.sectionIndex,i=n.itemIndex;t.updateHighlightedSuggestion(r,i),t.justMouseEntered=!0,setTimeout(function(){t.justMouseEntered=!1})},
this.highlightFirstSuggestion=function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)},this.onSuggestionMouseDown=function(){t.justSelectedSuggestion=!0},this.onSuggestionsClearRequested=function(){var e=t.props.onSuggestionsClearRequested;e&&e()},this.onSuggestionSelected=function(e,n){var r=t.props,i=r.alwaysRenderSuggestions,o=r.onSuggestionSelected,a=r.onSuggestionsFetchRequested;o&&o(e,n),i?a({value:n.suggestionValue,reason:"suggestion-selected"
}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()},this.onSuggestionClick=function(e){var n=t.props,r=n.alwaysRenderSuggestions,i=n.focusInputOnSuggestionClick,o=t.getSuggestionIndices(t.findSuggestionElement(e.target)),a=o.sectionIndex,s=o.suggestionIndex,u=t.getSuggestion(a,s),c=t.props.getSuggestionValue(u);t.maybeCallOnChange(e,c,"click"),t.onSuggestionSelected(e,{suggestion:u,suggestionValue:c,suggestionIndex:s,sectionIndex:a,method:"click"}),r||t.closeSuggestions(),
!0===i?t.input.focus():t.onBlur(),setTimeout(function(){t.justSelectedSuggestion=!1})},this.onBlur=function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,i=n.value,o=n.onBlur,a=t.getHighlightedSuggestion(),s=r(i);t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),o&&o(t.blurEvent,{highlightedSuggestion:a})},this.resetHighlightedSuggestionOnMouseLeave=function(){
t.resetHighlightedSuggestion(!1)},this.itemProps=function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.resetHighlightedSuggestionOnMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionMouseDown,onClick:t.onSuggestionClick}},this.renderSuggestionsContainer=function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,
query:t.getQuery()})}};e.default=_},function(t,e){t.exports=function(t,e){if(t===e)return!0;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}},function(t,e,n){"use strict";t.exports=n(4306).default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){
if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{
value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e
;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),h=n(1),p=r(h),d=n(4307),g=r(d),v=n(4308),y=r(v),m=n(4310),b=r(m),w=n(4311),_=r(w),x={},O=function(t){
return f.default.createElement("input",t)},T=function(t){var e=t.containerProps,n=t.children;return f.default.createElement("div",e,n)},S={container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",
itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"},E=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.storeInputReference=function(t){
null!==t&&(n.input=t)},n.storeItemsContainerReference=function(t){null!==t&&(n.itemsContainer=t)},n.onHighlightedItemChange=function(t){n.highlightedItem=t},n.getItemId=function(t,e){return null===e?null:"react-autowhatever-"+n.props.id+"-"+(null===t?"":"section-"+t)+"-item-"+e},n.onFocus=function(t){var e=n.props.inputProps;n.setState({isInputFocused:!0}),e.onFocus&&e.onFocus(t)},n.onBlur=function(t){var e=n.props.inputProps;n.setState({isInputFocused:!1}),e.onBlur&&e.onBlur(t)},
n.onKeyDown=function(t){var e=n.props,r=e.inputProps,i=e.highlightedSectionIndex,o=e.highlightedItemIndex;switch(t.key){case"ArrowDown":case"ArrowUp":var a="ArrowDown"===t.key?"next":"prev",s=n.sectionIterator[a]([i,o]),c=u(s,2),l=c[0],f=c[1];r.onKeyDown(t,{newHighlightedSectionIndex:l,newHighlightedItemIndex:f});break;default:r.onKeyDown(t,{highlightedSectionIndex:i,highlightedItemIndex:o})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(t),n.setSectionIterator(t),
n.setTheme(t),n}return a(e,t),c(e,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"componentWillReceiveProps",value:function(t){t.items!==this.props.items&&this.setSectionsItems(t),t.items===this.props.items&&t.multiSection===this.props.multiSection||this.setSectionIterator(t),t.theme!==this.props.theme&&this.setTheme(t)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(t){
t.multiSection&&(this.sectionsItems=t.items.map(function(e){return t.getSectionItems(e)}),this.sectionsLengths=this.sectionsItems.map(function(t){return t.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(t){return 0===t}))}},{key:"setSectionIterator",value:function(t){this.sectionIterator=(0,g.default)({multiSection:t.multiSection,data:t.multiSection?this.sectionsLengths:t.items.length})}},{key:"setTheme",value:function(t){this.theme=(0,y.default)(t.theme)}},{
key:"renderSections",value:function(){var t=this;if(this.allSectionsAreEmpty)return null;var e=this.theme,n=this.props,r=n.id,i=n.items,o=n.renderItem,a=n.renderItemData,s=n.renderSectionTitle,u=n.highlightedSectionIndex,c=n.highlightedItemIndex,l=n.itemProps;return i.map(function(n,i){var h="react-autowhatever-"+r+"-",p=h+"section-"+i+"-",d=0===i;return f.default.createElement("div",e(p+"container","sectionContainer",d&&"sectionContainerFirst"),f.default.createElement(b.default,{section:n,
renderSectionTitle:s,theme:e,sectionKeyPrefix:p}),f.default.createElement(_.default,{items:t.sectionsItems[i],itemProps:l,renderItem:o,renderItemData:a,sectionIndex:i,highlightedItemIndex:u===i?c:null,onHighlightedItemChange:t.onHighlightedItemChange,getItemId:t.getItemId,theme:e,keyPrefix:h,ref:t.storeItemsListReference}))})}},{key:"renderItems",value:function(){var t=this.props.items;if(0===t.length)return null
;var e=this.theme,n=this.props,r=n.id,i=n.renderItem,o=n.renderItemData,a=n.highlightedSectionIndex,s=n.highlightedItemIndex,u=n.itemProps;return f.default.createElement(_.default,{items:t,itemProps:u,renderItem:i,renderItemData:o,highlightedItemIndex:null===a?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:e,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var t=this.highlightedItem;if(t){
var e=this.itemsContainer,n=t.offsetParent===e?t.offsetTop:t.offsetTop-e.offsetTop,r=e.scrollTop;n<r?r=n:n+t.offsetHeight>r+e.offsetHeight&&(r=n+t.offsetHeight-e.offsetHeight),r!==e.scrollTop&&(e.scrollTop=r)}}},{key:"render",value:function(){
var t=this.theme,e=this.props,n=e.id,r=e.multiSection,i=e.renderInputComponent,o=e.renderItemsContainer,a=e.highlightedSectionIndex,u=e.highlightedItemIndex,c=this.state.isInputFocused,l=r?this.renderSections():this.renderItems(),h=null!==l,p=this.getItemId(a,u),d=t("react-autowhatever-"+n+"-container","container",h&&"containerOpen"),g="react-autowhatever-"+n,v=i(s({type:"text",value:"",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-owns":g,"aria-expanded":h,
"aria-activedescendant":p},t("react-autowhatever-"+n+"-input","input",h&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=o({containerProps:s({id:g},t("react-autowhatever-"+n+"-items-container","itemsContainer",h&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:l});return f.default.createElement("div",d,v,y)}}]),e}(l.Component)
;E.propTypes={id:p.default.string,multiSection:p.default.bool,renderInputComponent:p.default.func,renderItemsContainer:p.default.func,items:p.default.array.isRequired,renderItem:p.default.func,renderItemData:p.default.object,renderSectionTitle:p.default.func,getSectionItems:p.default.func,inputProps:p.default.object,itemProps:p.default.oneOfType([p.default.object,p.default.func]),highlightedSectionIndex:p.default.number,highlightedItemIndex:p.default.number,
theme:p.default.oneOfType([p.default.object,p.default.array])},E.defaultProps={id:"1",multiSection:!1,renderInputComponent:O,renderItemsContainer:T,renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:x,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},inputProps:x,itemProps:x,highlightedSectionIndex:null,highlightedItemIndex:null,theme:S},
e.default=E},function(t,e,n){"use strict";var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.exports=function(t){
function e(t){for(null===t?t=0:t++;t<s.length&&0===s[t];)t++;return t===s.length?null:t}function n(t){for(null===t?t=s.length-1:t--;t>=0&&0===s[t];)t--;return-1===t?null:t}function i(t){var n=r(t,2),i=n[0],o=n[1];return u?null===o||o===s[i]-1?(i=e(i),null===i?[null,null]:[i,0]):[i,o+1]:0===s||o===s-1?[null,null]:null===o?[null,0]:[null,o+1]}function o(t){var e=r(t,2),i=e[0],o=e[1];return u?null===o||0===o?(i=n(i),
null===i?[null,null]:[i,s[i]-1]):[i,o-1]:0===s||0===o?[null,null]:null===o?[null,s-1]:[null,o-1]}function a(t){return null===i(t)[1]}var s=t.data,u=t.multiSection;return{next:i,prev:o,isLast:a}}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{
for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(4309),a=function(t){return t&&t.__esModule?t:{default:t}}(o),s=function(t){return t};e.default=function(t){
var e=Array.isArray(t)&&2===t.length?t:[t,null],n=i(e,2),o=n[0],u=n[1];return function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var c=n.map(function(t){return o[t]}).filter(s);return"string"==typeof c[0]||"function"==typeof u?{key:t,className:u?u.apply(void 0,r(c)):c.join(" ")}:{key:t,style:a.default.apply(void 0,[{}].concat(r(c)))}}},t.exports=e.default},function(t,e,n){"use strict";function r(t){
if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function i(t){var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t))),e.filter(function(e){return o.call(t,e)})}var o=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(t,e){for(var n,o,a=r(t),s=1;s<arguments.length;s++){n=arguments[s],o=i(Object(n));for(var u=0;u<o.length;u++)a[o[u]]=n[o[u]]}return a}
},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e)
;t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}
}(),u=n(0),c=r(u),l=n(1),f=r(l),h=n(1062),p=r(h),d=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"shouldComponentUpdate",value:function(t){return(0,p.default)(t,this.props)}},{key:"render",value:function(){var t=this.props,e=t.section,n=t.renderSectionTitle,r=t.theme,i=t.sectionKeyPrefix,o=n(e);return o?c.default.createElement("div",r(i+"title","sectionTitle"),o):null}}]),e}(u.Component);d.propTypes={
section:f.default.any.isRequired,renderSectionTitle:f.default.func.isRequired,theme:f.default.func.isRequired,sectionKeyPrefix:f.default.string.isRequired},e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
;return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){
var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),l=r(c),f=n(1),h=r(f),p=n(4312),d=r(p),g=n(1062),v=r(g),y=function(t){function e(){var t,n,r,a;i(this,e)
;for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=o(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.storeHighlightedItemReference=function(t){r.props.onHighlightedItemChange(null===t?null:t.item)},a=n,o(r,a)}return a(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t){return(0,v.default)(t,this.props,["itemProps"])}},{key:"render",value:function(){
var t=this,e=this.props,n=e.items,r=e.itemProps,i=e.renderItem,o=e.renderItemData,a=e.sectionIndex,u=e.highlightedItemIndex,c=e.getItemId,f=e.theme,h=e.keyPrefix,p=null===a?h:h+"section-"+a+"-",g="function"==typeof r;return l.default.createElement("ul",s({role:"listbox"},f(p+"items-list","itemsList")),n.map(function(e,n){var h=0===n,v=n===u,y=p+"item-"+n,m=g?r({sectionIndex:a,itemIndex:n}):r,b=s({id:c(a,n)},f(y,"item",h&&"itemFirst",v&&"itemHighlighted"),m)
;return v&&(b.ref=t.storeHighlightedItemReference),l.default.createElement(d.default,s({},b,{sectionIndex:a,isHighlighted:v,itemIndex:n,item:e,renderItem:i,renderItemData:o}))}))}}]),e}(c.Component);y.propTypes={items:h.default.array.isRequired,itemProps:h.default.oneOfType([h.default.object,h.default.func]),renderItem:h.default.func.isRequired,renderItemData:h.default.object.isRequired,sectionIndex:h.default.number,highlightedItemIndex:h.default.number,
onHighlightedItemChange:h.default.func.isRequired,getItemId:h.default.func.isRequired,theme:h.default.func.isRequired,keyPrefix:h.default.string.isRequired},y.defaultProps={sectionIndex:null},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}
}(),l=n(0),f=r(l),h=n(1),p=r(h),d=n(1062),g=r(d),v=function(t){function e(){var t,n,r,i;o(this,e);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.storeItemReference=function(t){null!==t&&(r.item=t)},r.onMouseEnter=function(t){var e=r.props,n=e.sectionIndex,i=e.itemIndex;r.props.onMouseEnter(t,{sectionIndex:n,itemIndex:i})},r.onMouseLeave=function(t){
var e=r.props,n=e.sectionIndex,i=e.itemIndex;r.props.onMouseLeave(t,{sectionIndex:n,itemIndex:i})},r.onMouseDown=function(t){var e=r.props,n=e.sectionIndex,i=e.itemIndex;r.props.onMouseDown(t,{sectionIndex:n,itemIndex:i})},r.onClick=function(t){var e=r.props,n=e.sectionIndex,i=e.itemIndex;r.props.onClick(t,{sectionIndex:n,itemIndex:i})},i=n,a(r,i)}return s(e,t),c(e,[{key:"shouldComponentUpdate",value:function(t){return(0,g.default)(t,this.props,["renderItemData"])}},{key:"render",
value:function(){var t=this.props,e=t.isHighlighted,n=t.item,r=t.renderItem,o=t.renderItemData,a=i(t,["isHighlighted","item","renderItem","renderItemData"]);return delete a.sectionIndex,delete a.itemIndex,"function"==typeof a.onMouseEnter&&(a.onMouseEnter=this.onMouseEnter),"function"==typeof a.onMouseLeave&&(a.onMouseLeave=this.onMouseLeave),"function"==typeof a.onMouseDown&&(a.onMouseDown=this.onMouseDown),"function"==typeof a.onClick&&(a.onClick=this.onClick),f.default.createElement("li",u({
role:"option"},a,{ref:this.storeItemReference}),r(n,u({isHighlighted:e},o)))}}]),e}(l.Component);v.propTypes={sectionIndex:p.default.number,isHighlighted:p.default.bool.isRequired,itemIndex:p.default.number.isRequired,item:p.default.any.isRequired,renderItem:p.default.func.isRequired,renderItemData:p.default.object.isRequired,onMouseEnter:p.default.func,onMouseLeave:p.default.func,onMouseDown:p.default.func,onClick:p.default.func},e.default=v},function(t,e,n){"use strict"
;Object.defineProperty(e,"__esModule",{value:!0});e.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",
suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},e.mapToAutowhateverTheme=function(t){var e={};for(var n in t)switch(n){case"suggestionsContainer":e.itemsContainer=t[n];break;case"suggestionsContainerOpen":
e.itemsContainerOpen=t[n];break;case"suggestion":e.item=t[n];break;case"suggestionFirst":e.itemFirst=t[n];break;case"suggestionHighlighted":e.itemHighlighted=t[n];break;case"suggestionsList":e.itemsList=t[n];break;default:e[n]=t[n]}return e}
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){
"use strict";(function(e){function r(){return+new Date}function i(){this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument="undefined"!=typeof document,this._lastCapturedException=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!0,maxMessageLength:0,
stackTraceLimit:50},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=window.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=r(),this._wrappedBuiltIns=[];for(var t in this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}
var o=n(5108),a=n(5109),s=n(1810),u=s.isFunction,c=s.isUndefined,l=s.isError,f=s.isEmptyObject,h=s.hasKey,p=s.joinRegExp,d=s.each,g=s.objectMerge,v=s.truncate,y=s.urlencode,m=s.uuid4,b="source protocol user pass host port path".split(" "),w=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;i.prototype={VERSION:"2.2.0",debug:!1,TraceKit:o,config:function(t,e){var n=this;if(this._globalServer)return this._logDebug("error","Error: Raven has already been configured"),this
;if(!t)return this;e&&d(e,function(t,e){"tags"===t||"extra"===t?n._globalContext[t]=e:n._globalOptions[t]=e});var r=this._parseDSN(t),i=r.path.lastIndexOf("/"),a=r.path.substr(1,i);return this._dsn=t,this._globalOptions.ignoreErrors.push(/^Script error\.?$/),this._globalOptions.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),this._globalOptions.ignoreErrors=p(this._globalOptions.ignoreErrors),
this._globalOptions.ignoreUrls=!!this._globalOptions.ignoreUrls.length&&p(this._globalOptions.ignoreUrls),this._globalOptions.whitelistUrls=!!this._globalOptions.whitelistUrls.length&&p(this._globalOptions.whitelistUrls),this._globalOptions.includePaths=p(this._globalOptions.includePaths),this._globalKey=r.user,this._globalSecret=r.pass&&r.pass.substr(1),this._globalProject=r.path.substr(i+1),this._globalServer=this._getGlobalServer(r),
this._globalEndpoint=this._globalServer+"/"+a+"api/"+this._globalProject+"/store/",this._globalOptions.fetchContext&&(o.remoteFetching=!0),this._globalOptions.linesOfContext&&(o.linesOfContext=this._globalOptions.linesOfContext),o.collectWindowErrors=!!this._globalOptions.collectWindowErrors,this},install:function(){var t=this;return this.isSetup()&&!this._isRavenInstalled&&(o.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),this._wrapBuiltIns(),this._drainPlugins(),
this._isRavenInstalled=!0),Error.stackTraceLimit=this._globalOptions.stackTraceLimit,this},context:function(t,e,n){return u(t)&&(n=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,n)},wrap:function(t,e){function n(){for(var n=[],i=arguments.length,o=!t||t&&!1!==t.deep;i--;)n[i]=o?r.wrap(t,arguments[i]):arguments[i];try{return e.apply(this,n)}catch(e){throw r._ignoreNextOnError(),r.captureException(e,t),e}}var r=this;if(c(e)&&!u(t))return t;if(u(t)&&(e=t,t=void 0),!u(e))return e;try{
if(e.__raven__)return e}catch(t){return e}if(e.__raven_wrapper__)return e.__raven_wrapper__;for(var i in e)h(e,i)&&(n[i]=e[i]);return e.__raven_wrapper__=n,n.prototype=e.prototype,n.__raven__=!0,n.__inner__=e,n},uninstall:function(){return o.report.uninstall(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(t,e){if(!l(t))return this.captureMessage(t,e);this._lastCapturedException=t;try{
var n=o.computeStackTrace(t);this._handleStackInfo(n,e)}catch(e){if(t!==e)throw e}return this},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t))return this._send(g({message:t+""},e)),this},addPlugin:function(t){var e=Array.prototype.slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},
setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(JSON.stringify(this._globalContext))},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){return this._globalOptions.dataCallback=t,this},setShouldSendCallback:function(t){
return this._globalOptions.shouldSendCallback=t,this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var t=window.RavenConfig
;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(window.document){t=t||{};var e=t.eventId||this.lastEventId();if(!e)throw new a("Missing eventId");var n=t.dsn||this._dsn;if(!n)throw new a("Missing DSN");var r=encodeURIComponent,i="";i+="?eventId="+r(e),i+="&dsn="+r(n);var o=t.user||this._globalContext.user;o&&(o.name&&(i+="&name="+r(o.name)),o.email&&(i+="&email="+r(o.email)));var s=this._getGlobalServer(this._parseDSN(n)),u=document.createElement("script");u.async=!0,
u.src=s+"/api/embed/error-page/"+i,(document.head||document.body).appendChild(u)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,r;if(this._hasDocument){e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),document.createEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!0)):(n=document.createEventObject(),n.eventType=t);for(r in e)h(e,r)&&(n[r]=e[r])
;if(document.createEvent)document.dispatchEvent(n);else try{document.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(t){}}},_wrapBuiltIns:function(){function t(t,e,n,i){var o=t[e];t[e]=n(o),i||r._wrappedBuiltIns.push([t,e,o])}function n(t){return function(e,n){var i=[].slice.call(arguments),o=i[0];return u(o)&&(i[0]=r.wrap(o)),t.apply?t.apply(this,i):t(i[0],i[1])}}var r=this;t(window,"setTimeout",n),t(window,"setInterval",n),
window.requestAnimationFrame&&t(window,"requestAnimationFrame",function(t){return function(e){return t(r.wrap(e))}}),
"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".replace(/\w+/g,function(e){var n=window[e]&&window[e].prototype
;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(t(n,"addEventListener",function(t){return function(e,n,i,o){try{n&&n.handleEvent&&(n.handleEvent=r.wrap(n.handleEvent))}catch(t){}return t.call(this,e,r.wrap(n),i,o)}}),t(n,"removeEventListener",function(t){return function(e,n,r,i){return n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n),t.call(this,e,n,r,i)}}))}),"XMLHttpRequest"in window&&t(XMLHttpRequest.prototype,"send",function(e){return function(n){var i=this
;return"onreadystatechange onload onerror onprogress".replace(/\w+/g,function(e){e in i&&"[object Function]"===Object.prototype.toString.call(i[e])&&t(i,e,function(t){return r.wrap(t)},!0)}),e.apply(this,arguments)}});var i=e||window.$;i&&i.fn&&i.fn.ready&&t(i.fn,"ready",function(t){return function(e){return t.call(this,r.wrap(e))}})},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){t=this._wrappedBuiltIns.shift();var e=t[0],n=t[1],r=t[2];e[n]=r}},_drainPlugins:function(){
var t=this;d(this._plugins,function(e,n){var r=n[0],i=n[1];r.apply(t,[t].concat(i))})},_parseDSN:function(t){var e=w.exec(t),n={},r=7;try{for(;r--;)n[b[r]]=e[r]||""}catch(e){throw new a("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},
_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var n=this,r=[];t.stack&&t.stack.length&&d(t.stack,function(t,e){var i=n._normalizeFrame(e);i&&r.push(i)}),this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,r.slice(0,this._globalOptions.stackTraceLimit),e)},_normalizeFrame:function(t){if(t.url){var e,n={filename:t.url,lineno:t.line,colno:t.column,
function:t.func||"?"},r=this._extractContextFromFrame(t);if(r){var i=["pre_context","context_line","post_context"];for(e=3;e--;)n[i[e]]=r[e]}return n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n}},_extractContextFromFrame:function(t){if(t.context&&this._globalOptions.fetchContext){for(var e=t.context,n=~~(e.length/2),r=e.length,i=!1;r--;)if(e[r].length>300){i=!0
;break}if(i){if(c(t.column))return;return[[],e[n].substr(t.column,50),[]]}return[e.slice(0,n),e[n],e.slice(n+1)]}},_processException:function(t,e,n,r,i,o){var a,s;if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e))&&(e+="",e=v(e,this._globalOptions.maxMessageLength),s=t+": "+e,s=v(s,this._globalOptions.maxMessageLength),i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),
(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var u=g({exception:{values:[{type:t,value:e,stacktrace:a}]},culprit:n,message:s},o);this._send(u)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message=v(t.message,e),t.exception){var n=t.exception.values[0];n.value=v(n.value,e)}return t},_getHttpData:function(){
if(this._hasDocument&&document.location&&document.location.href){var t={headers:{"User-Agent":navigator.userAgent}};return t.url=document.location.href,document.referrer&&(t.headers.Referer=document.referrer),t}},_send:function(t){var e=this,n=this._globalOptions,i={project:this._globalProject,logger:n.logger,platform:"javascript"},o=this._getHttpData();if(o&&(i.request=o),t=g(i,t),t.tags=g(g({},this._globalContext.tags),t.tags),t.extra=g(g({},this._globalContext.extra),t.extra),
t.extra["session:duration"]=r()-this._startTime,f(t.tags)&&delete t.tags,this._globalContext.user&&(t.user=this._globalContext.user),n.release&&(t.release=n.release),n.serverName&&(t.server_name=n.serverName),u(n.dataCallback)&&(t=n.dataCallback(t)||t),t&&!f(t)&&(!u(n.shouldSendCallback)||n.shouldSendCallback(t))&&(this._lastEventId=t.event_id||(t.event_id=m()),t=this._trimPacket(t),this._logDebug("debug","Raven about to send:",t),this.isSetup())){var a={sentry_version:"7",
sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(a.sentry_secret=this._globalSecret);var s=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:s,auth:a,data:t,options:n,onSuccess:function(){e._triggerEvent("success",{data:t,src:s})},onError:function(){e._triggerEvent("failure",{data:t,src:s})}})}},_makeImageRequest:function(t){t.auth.sentry_data=JSON.stringify(t.data);var e=this._newImage(),n=t.url+"?"+y(t.auth),r=t.options.crossOrigin
;(r||""===r)&&(e.crossOrigin=r),e.onload=t.onSuccess,e.onerror=e.onabort=t.onError,e.src=n},_makeXhrRequest:function(t){function e(){200===n.status?t.onSuccess&&t.onSuccess():t.onError&&t.onError()}var n,r=t.url;n=new XMLHttpRequest,"withCredentials"in n?n.onreadystatechange=function(){4===n.readyState&&e()}:(n=new XDomainRequest,r=r.replace(/^https?:/,""),n.onload=e),n.open("POST",r+"?"+y(t.auth)),n.send(JSON.stringify(t.data))},_makeRequest:function(t){
return("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest?this._makeXhrRequest:this._makeImageRequest)(t)},_newImage:function(){return document.createElement("img")},_logDebug:function(t){this._originalConsoleMethods[t]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){c(e)?delete this._globalContext[t]:this._globalContext[t]=g(this._globalContext[t]||{},e)}},
i.prototype.setUser=i.prototype.setUserContext,i.prototype.setReleaseContext=i.prototype.setRelease,t.exports=i}).call(e,n(13))},function(t,e,n){"use strict";function r(){return"undefined"==typeof document?"":document.location.href}var i=n(1810),o=i.hasKey,a=i.isString,s=i.isUndefined,u={remoteFetching:!1,collectWindowErrors:!0,linesOfContext:7,debug:!1},c=[].slice,l="?";u.report=function(){function t(t){s(),g.push(t)}function e(t){for(var e=g.length-1;e>=0;--e)g[e]===t&&g.splice(e,1)}
function n(){l(),g=[]}function i(t,e){var n=null;if(!e||u.collectWindowErrors){for(var r in g)if(o(g,r))try{g[r].apply(null,[t].concat(c.call(arguments,2)))}catch(t){n=t}if(n)throw n}}function a(t,e,n,o,a){var s=null;if(m)u.computeStackTrace.augmentStackTraceWithInitialElement(m,e,n,t),f();else if(a)s=u.computeStackTrace(a),i(s,!0);else{var c={url:e,line:n,column:o};c.func=u.computeStackTrace.guessFunctionName(c.url,c.line),c.context=u.computeStackTrace.gatherContext(c.url,c.line),s={message:t,
url:r(),stack:[c]},i(s,!0)}return!!p&&p.apply(this,arguments)}function s(){d||(p=window.onerror,window.onerror=a,d=!0)}function l(){d&&(window.onerror=p,d=!1,p=void 0)}function f(){var t=m,e=v;v=null,m=null,y=null,i.apply(null,[t,!1].concat(e))}function h(t,e){var n=c.call(arguments,1);if(m){if(y===t)return;f()}var r=u.computeStackTrace(t);if(m=r,y=t,v=n,window.setTimeout(function(){y===t&&f()},r.incomplete?2e3:0),!1!==e)throw t}var p,d,g=[],v=null,y=null,m=null;return h.subscribe=t,
h.unsubscribe=e,h.uninstall=n,h}(),u.computeStackTrace=function(){function t(t){if(!u.remoteFetching)return"";try{var e=function(){try{return new window.XMLHttpRequest}catch(t){return new window.ActiveXObject("Microsoft.XMLHTTP")}}();return e.open("GET",t,!1),e.send(""),e.responseText}catch(t){return""}}function e(e){if(!a(e))return[];if(!o(_,e)){var n="",r="";try{r=document.domain}catch(t){}-1!==e.indexOf(r)&&(n=t(e)),_[e]=n?n.split("\n"):[]}return _[e]}function n(t,n){
var r,i=/function ([^(]*)\(([^)]*)\)/,o=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",u=e(t);if(!u.length)return l;for(var c=0;c<10;++c)if(a=u[n-c]+a,!s(a)){if(r=o.exec(a))return r[1];if(r=i.exec(a))return r[1]}return l}function i(t,n){var r=e(t);if(!r.length)return null;var i=[],o=Math.floor(u.linesOfContext/2),a=o+u.linesOfContext%2,c=Math.max(0,n-o-1),l=Math.min(r.length,n+a-1);n-=1;for(var f=c;f<l;++f)s(r[f])||i.push(r[f]);return i.length>0?i:null}function c(t){
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function f(t){return c(t).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function h(t,n){for(var r,i,o=0,a=n.length;o<a;++o)if((r=e(n[o])).length&&(r=r.join("\n"),i=t.exec(r)))return{url:n[o],line:r.substring(0,i.index).split("\n").length,column:i.index-r.lastIndexOf("\n",i.index)-1};return null}function p(t,n,r){var i,o=e(n),a=new RegExp("\\b"+c(t)+"\\b")
;return r-=1,o&&o.length>r&&(i=a.exec(o[r]))?i.index:null}function d(t){if("undefined"!=typeof document){for(var e,n,r,i,o=[window.location.href],a=document.getElementsByTagName("script"),s=""+t,u=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,l=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=0;p<a.length;++p){var d=a[p];d.src&&o.push(d.src)}if(r=u.exec(s)){var g=r[1]?"\\s+"+r[1]:"",v=r[2].split(",").join("\\s*,\\s*");e=c(r[3]).replace(/;$/,";?"),
n=new RegExp("function"+g+"\\s*\\(\\s*"+v+"\\s*\\)\\s*{\\s*"+e+"\\s*}")}else n=new RegExp(c(s).replace(/\s+/g,"\\s+"));if(i=h(n,o))return i;if(r=l.exec(s)){var y=r[1];if(e=f(r[2]),n=new RegExp("on"+y+"=[\\'\"]\\s*"+e+"\\s*[\\'\"]","i"),i=h(n,o[0]))return i;if(n=new RegExp(e),i=h(n,o))return i}return null}}function g(t){if(!s(t.stack)&&t.stack){
for(var e,o,a=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=t.stack.split("\n"),h=[],d=/^(.*) is undefined$/.exec(t.message),g=0,v=f.length;g<v;++g){if(e=a.exec(f[g])){var y=e[2]&&-1!==e[2].indexOf("native");o={url:y?null:e[2],
func:e[1]||l,args:y?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=c.exec(f[g]))o={url:e[2],func:e[1]||l,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=u.exec(f[g])))continue;o={url:e[3],func:e[1]||l,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!o.func&&o.line&&(o.func=n(o.url,o.line)),o.line&&(o.context=i(o.url,o.line)),h.push(o)}
return h.length?(h[0].line&&!h[0].column&&d?h[0].column=p(d[1],h[0].url,h[0].line):h[0].column||s(t.columnNumber)||(h[0].column=t.columnNumber+1),{name:t.name,message:t.message,url:r(),stack:h}):null}}function v(t){var e=t.stacktrace;if(!s(t.stacktrace)&&t.stacktrace){for(var o,a=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,u=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,c=e.split("\n"),l=[],f=0;f<c.length;f+=2){var h=null
;if((o=a.exec(c[f]))?h={url:o[2],line:+o[1],column:null,func:o[3],args:[]}:(o=u.exec(c[f]))&&(h={url:o[6],line:+o[1],column:+o[2],func:o[3]||o[4],args:o[5]?o[5].split(","):[]}),h){if(!h.func&&h.line&&(h.func=n(h.url,h.line)),h.line)try{h.context=i(h.url,h.line)}catch(t){}h.context||(h.context=[c[f+1]]),l.push(h)}}return l.length?{name:t.name,message:t.message,url:r(),stack:l}:null}}function y(t){var a=t.message.split("\n");if(a.length<4)return null
;var s,u=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,c=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,l=/^\s*Line (\d+) of function script\s*$/i,p=[],d=document.getElementsByTagName("script"),g=[];for(var v in d)o(d,v)&&!d[v].src&&g.push(d[v]);for(var y=2;y<a.length;y+=2){var m=null;if(s=u.exec(a[y]))m={url:s[2],func:s[3],args:[],line:+s[1],column:null};else if(s=c.exec(a[y])){m={url:s[3],func:s[4],
args:[],line:+s[1],column:null};var b=+s[1],w=g[s[2]-1];if(w){var _=e(m.url);if(_){_=_.join("\n");var x=_.indexOf(w.innerText);x>=0&&(m.line=b+_.substring(0,x).split("\n").length)}}}else if(s=l.exec(a[y])){var O=window.location.href.replace(/#.*$/,""),T=new RegExp(f(a[y+1])),S=h(T,[O]);m={url:O,func:"",args:[],line:S?S.line:s[1],column:null}}if(m){m.func||(m.func=n(m.url,m.line));var E=i(m.url,m.line),j=E?E[Math.floor(E.length/2)]:null
;E&&j.replace(/^\s*/,"")===a[y+1].replace(/^\s*/,"")?m.context=E:m.context=[a[y+1]],p.push(m)}}return p.length?{name:t.name,message:a[0],url:r(),stack:p}:null}function m(t,e,r,o){var a={url:e,line:r};if(a.url&&a.line){t.incomplete=!1,a.func||(a.func=n(a.url,a.line)),a.context||(a.context=i(a.url,a.line));var s=/ '([^']+)' /.exec(o);if(s&&(a.column=p(s[1],a.url,a.line)),t.stack.length>0&&t.stack[0].url===a.url){if(t.stack[0].line===a.line)return!1
;if(!t.stack[0].line&&t.stack[0].func===a.func)return t.stack[0].line=a.line,t.stack[0].context=a.context,!1}return t.stack.unshift(a),t.partial=!0,!0}return t.incomplete=!0,!1}function b(t,e){for(var i,o,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],f={},h=!1,g=b.caller;g&&!h;g=g.caller)if(g!==w&&g!==u.report){if(o={url:null,func:l,line:null,column:null},g.name?o.func=g.name:(i=s.exec(g.toString()))&&(o.func=i[1]),void 0===o.func)try{
o.func=i.input.substring(0,i.input.indexOf("{"))}catch(t){}if(a=d(g)){o.url=a.url,o.line=a.line,o.func===l&&(o.func=n(o.url,o.line));var v=/ '([^']+)' /.exec(t.message||t.description);v&&(o.column=p(v[1],a.url,a.line))}f[""+g]?h=!0:f[""+g]=!0,c.push(o)}e&&c.splice(0,e);var y={name:t.name,message:t.message,url:r(),stack:c};return m(y,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),y}function w(t,e){var n=null;e=null==e?0:+e;try{if(n=v(t))return n}catch(t){if(u.debug)throw t
}try{if(n=g(t))return n}catch(t){if(u.debug)throw t}try{if(n=y(t))return n}catch(t){if(u.debug)throw t}try{if(n=b(t,e+1))return n}catch(t){if(u.debug)throw t}return{name:t.name,message:t.message,url:r()}}var _={};return w.augmentStackTraceWithInitialElement=m,w.computeStackTraceFromStackProp=g,w.guessFunctionName=n,w.gatherContext=i,w}(),t.exports=u},function(t,e,n){"use strict";function r(t){this.name="RavenConfigError",this.message=t}r.prototype=new Error,r.prototype.constructor=r,t.exports=r
},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){n(5144),n(5153),n(5162),n(5175),n(424),n(5181),n(532),n(850),n(15),n(13),n(1516),n(1136),n(1202),n(5259),n(1249),n(603),n(1087),n(0),n(1682),n(225),n(406),n(129),n(11),n(5281),n(855),n(4),n(5282),n(1239),n(633),n(1683),n(1685),t.exports=n(10)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5145);n.n(r)},function(t,e,n){n(5146),n(772),t.exports=n(228).Symbol},function(t,e,n){"use strict"
;var r=n(195),i=n(341),o=n(342),a=n(415),s=n(416),u=n(1091).KEY,c=n(594),l=n(1092),f=n(596),h=n(595),p=n(168),d=n(1816),g=n(5147),v=n(5148),y=n(5150),m=n(1821),b=n(297),w=n(418),_=n(1089),x=n(768),O=n(1098),T=n(5152),S=n(1824),E=n(344),j=n(770),k=S.f,C=E.f,A=T.f,P=r.Symbol,M=r.JSON,D=M&&M.stringify,I=p("_hidden"),N=p("toPrimitive"),R={}.propertyIsEnumerable,L=l("symbol-registry"),U=l("symbols"),F=l("op-symbols"),B=Object.prototype,z="function"==typeof P,q=r.QObject,H=!q||!q.prototype||!q.prototype.findChild,W=o&&c(function(){
return 7!=O(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(B,e);r&&delete B[e],C(t,e,n),r&&t!==B&&C(B,e,r)}:C,V=function(t){var e=U[t]=O(P.prototype);return e._k=t,e},Y=z&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},G=function(t,e,n){return t===B&&G(F,e,n),b(t),e=_(e,!0),b(n),i(U,e)?(n.enumerable?(i(t,I)&&t[I][e]&&(t[I][e]=!1),n=O(n,{enumerable:x(0,!1)})):(i(t,I)||C(t,I,x(1,{})),t[I][e]=!0),
W(t,e,n)):C(t,e,n)},X=function(t,e){b(t);for(var n,r=y(e=w(e)),i=0,o=r.length;o>i;)G(t,n=r[i++],e[n]);return t},K=function(t,e){return void 0===e?O(t):X(O(t),e)},$=function(t){var e=R.call(this,t=_(t,!0));return!(this===B&&i(U,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(U,t)||i(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=w(t),e=_(e,!0),t!==B||!i(U,e)||i(F,e)){var n=k(t,e);return!n||!i(U,e)||i(t,I)&&t[I][e]||(n.enumerable=!0),n}},J=function(t){
for(var e,n=A(w(t)),r=[],o=0;n.length>o;)i(U,e=n[o++])||e==I||e==u||r.push(e);return r},Z=function(t){for(var e,n=t===B,r=A(n?F:w(t)),o=[],a=0;r.length>a;)!i(U,e=r[a++])||n&&!i(B,e)||o.push(U[e]);return o};z||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(F,n),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),W(this,t,x(1,n))};return o&&H&&W(B,t,{configurable:!0,set:e}),V(t)},
s(P.prototype,"toString",function(){return this._k}),S.f=Q,E.f=G,n(1823).f=T.f=J,n(1097).f=$,n(1820).f=Z,o&&!n(769)&&s(B,"propertyIsEnumerable",$,!0),d.f=function(t){return V(p(t))}),a(a.G+a.W+a.F*!z,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)p(tt[et++]);for(var tt=j(p.store),et=0;tt.length>et;)g(tt[et++]);a(a.S+a.F*!z,"Symbol",{for:function(t){
return i(L,t+="")?L[t]:L[t]=P(t)},keyFor:function(t){if(Y(t))return v(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!z,"Object",{create:K,defineProperty:G,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),M&&a(a.S+a.F*(!z||c(function(){var t=P();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Y(t)){
for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,D.apply(M,r)}}}),P.prototype[N]||n(343)(P.prototype,N,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(195),i=n(228),o=n(769),a=n(1816),s=n(344).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}
},function(t,e,n){var r=n(770),i=n(418);t.exports=function(t,e){for(var n,o=i(t),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===e)return n}},function(t,e,n){var r=n(1094),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(770),i=n(1820),o=n(1097);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(344),i=n(297),o=n(770)
;t.exports=n(342)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e,n){var r=n(418),i=n(1823).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})
;var r=n(5154),i=(n.n(r),n(5156)),o=(n.n(i),n(5160));n.n(o)},function(t,e,n){n(5155),t.exports=n(228).Array},function(t,e,n){"use strict";var r=n(415),i=n(1819)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(773)("includes")},function(t,e,n){n(5157),t.exports=n(228).Array.find},function(t,e,n){"use strict";var r=n(415),i=n(1825)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){
return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(773)("find")},function(t,e,n){var r=n(5159);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(298),i=n(1821),o=n(168)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){n(5161),t.exports=n(228).Array.findIndex},function(t,e,n){"use strict"
;var r=n(415),i=n(1825)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(773)(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5163),i=(n.n(r),n(5173));n.n(i)},function(t,e,n){n(772),n(1100),n(1102),n(5168),t.exports=n(228).Map},function(t,e,n){var r=n(1094),i=n(771);t.exports=function(t){return function(e,n){
var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(1098),i=n(768),o=n(596),a={};n(343)(a,n(168)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(341),i=n(1826),o=n(1095)("IE_PROTO"),a=Object.prototype
;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(773),i=n(1827),o=n(598),a=n(418);t.exports=n(1101)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),
o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r=n(1828);t.exports=n(1830)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){var r=n(297);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){
var r=n(598),i=n(168)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(1099),i=n(168)("iterator"),o=n(598);t.exports=n(228).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(298),i=n(1832).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){n(772),n(1100),n(1102),
n(5174),t.exports=n(228).Set},function(t,e,n){"use strict";var r=n(1828);t.exports=n(1830)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5176);n.n(r)},function(t,e,n){n(772),n(1100),n(1102),n(5177),t.exports=n(228).Promise},function(t,e,n){"use strict"
;var r,i,o,a=n(769),s=n(195),u=n(417),c=n(1099),l=n(415),f=n(298),h=(n(297),n(1090)),p=n(1104),d=n(1105),g=(n(1832).set,n(5178)),v=n(1833).set,y=n(5180)(),m=s.TypeError,b=s.process,w=s.Promise,b=s.process,_="process"==c(b),x=function(){},O=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(168)("species")]=function(t){t(x,x)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof e}catch(t){}}(),T=function(t,e){return t===e||t===w&&e===o},S=function(t){var e
;return!(!f(t)||"function"!=typeof(e=t.then))&&e},E=function(t){return T(w,t)?new j(t):new i(t)},j=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw m("Bad Promise constructor");e=t,n=r}),this.resolve=h(e),this.reject=h(n)},k=function(t){try{t()}catch(t){return{error:t}}},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{
a?(i||(2==t._h&&M(t),t._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?u(m("Promise-chain cycle")):(o=S(n))?o.call(n,s,u):s(n)):u(r)}catch(t){u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){v.call(s,function(){var e,n,r,i=t._v;if(P(t)&&(e=k(function(){_?b.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=_||P(t)?2:1),t._a=void 0,e)throw e.error})
},P=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!P(e.promise))return!1;return!0},M=function(t){v.call(s,function(){var e;_?b.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw m("Promise can't be resolved itself");(e=S(t))?y(function(){var r={
_w:n,_d:!1};try{e.call(t,u(I,r,1),u(D,r,1))}catch(t){D.call(r,t)}}):(n._v=t,n._s=1,C(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};O||(w=function(t){p(this,w,"Promise","_h"),h(t),r.call(this);try{t(u(I,this,1),u(D,this,1))}catch(t){D.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(1103)(w.prototype,{then:function(t,e){var n=E(g(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,
n.domain=_?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),j=function(){var t=new r;this.promise=t,this.resolve=u(I,t,1),this.reject=u(D,t,1)}),l(l.G+l.W+l.F*!O,{Promise:w}),n(596)(w,"Promise"),n(1829)("Promise"),o=n(228).Promise,l(l.S+l.F*!O,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(a||!O),"Promise",{resolve:function(t){
if(t instanceof w&&T(t.constructor,this))return t;var e=E(this);return(0,e.resolve)(t),e.promise}}),l(l.S+l.F*!(O&&n(1831)(function(t){w.all(t).catch(x)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=k(function(){var n=[],o=0,a=1;d(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=k(function(){d(t,!1,function(t){
e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){var r=n(297),i=n(1090),o=n(168)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:
return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(195),i=n(1833).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(597)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(o){var l=!0,f=document.createTextNode("");new o(c).observe(f,{
characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var h=s.resolve();n=function(){h.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(234);n.d(e,"addDays",function(){return r.a});var i=n(852);n.d(e,"addHours",function(){return i.a});var o=n(1834);n.d(e,"addISOWeekYears",function(){return o.a});var a=n(511)
;n.d(e,"addMilliseconds",function(){return a.a});var s=n(998);n.d(e,"addMinutes",function(){return s.a});var u=n(537);n.d(e,"addMonths",function(){return u.a});var c=n(1836);n.d(e,"addQuarters",function(){return c.a});var l=n(679);n.d(e,"addSeconds",function(){return l.a});var f=n(374);n.d(e,"addWeeks",function(){return f.a});var h=n(854);n.d(e,"addYears",function(){return h.a});var p=n(5182);n.d(e,"areIntervalsOverlapping",function(){return p.a});var d=n(5183);n.d(e,"closestIndexTo",function(){
return d.a});var g=n(5184);n.d(e,"closestTo",function(){return g.a});var v=n(413);n.d(e,"compareAsc",function(){return v.a});var y=n(5185);n.d(e,"compareDesc",function(){return y.a});var m=n(497);n.d(e,"differenceInCalendarDays",function(){return m.a});var b=n(1837);n.d(e,"differenceInCalendarISOWeekYears",function(){return b.a});var w=n(5186);n.d(e,"differenceInCalendarISOWeeks",function(){return w.a});var _=n(1838);n.d(e,"differenceInCalendarMonths",function(){return _.a});var x=n(5187)
;n.d(e,"differenceInCalendarQuarters",function(){return x.a});var O=n(1840);n.d(e,"differenceInCalendarWeeks",function(){return O.a});var T=n(1841);n.d(e,"differenceInCalendarYears",function(){return T.a});var S=n(1073);n.d(e,"differenceInDays",function(){return S.a});var E=n(5188);n.d(e,"differenceInHours",function(){return E.a});var j=n(5189);n.d(e,"differenceInISOWeekYears",function(){return j.a});var k=n(588);n.d(e,"differenceInMilliseconds",function(){return k.a});var C=n(5190)
;n.d(e,"differenceInMinutes",function(){return C.a});var A=n(1106);n.d(e,"differenceInMonths",function(){return A.a});var P=n(5191);n.d(e,"differenceInQuarters",function(){return P.a});var M=n(1107);n.d(e,"differenceInSeconds",function(){return M.a});var D=n(5192);n.d(e,"differenceInWeeks",function(){return D.a});var I=n(5193);n.d(e,"differenceInYears",function(){return I.a});var N=n(1843);n.d(e,"eachDayOfInterval",function(){return N.a});var R=n(5194);n.d(e,"eachWeekOfInterval",function(){
return R.a});var L=n(1108);n.d(e,"eachWeekendOfInterval",function(){return L.a});var U=n(5195);n.d(e,"eachWeekendOfMonth",function(){return U.a});var F=n(5196);n.d(e,"eachWeekendOfYear",function(){return F.a});var B=n(1074);n.d(e,"endOfDay",function(){return B.a});var z=n(5197);n.d(e,"endOfDecade",function(){return z.a});var q=n(5198);n.d(e,"endOfHour",function(){return q.a});var H=n(5199);n.d(e,"endOfISOWeek",function(){return H.a});var W=n(5200);n.d(e,"endOfISOWeekYear",function(){return W.a})
;var V=n(5201);n.d(e,"endOfMinute",function(){return V.a});var Y=n(1109);n.d(e,"endOfMonth",function(){return Y.a});var G=n(5202);n.d(e,"endOfQuarter",function(){return G.a});var X=n(5203);n.d(e,"endOfSecond",function(){return X.a});var K=n(1847);n.d(e,"endOfWeek",function(){return K.a});var $=n(1846);n.d(e,"endOfYear",function(){return $.a});var Q=n(170);n.d(e,"format",function(){return Q.a});var J=n(5204);n.d(e,"formatDistance",function(){return J.a});var Z=n(5205)
;n.d(e,"formatDistanceStrict",function(){return Z.a});var tt=n(5206);n.d(e,"formatRelative",function(){return tt.a});var et=n(81);n.d(e,"fromUnixTime",function(){return et.a});var nt=n(361);n.d(e,"getDate",function(){return nt.a});var rt=n(999);n.d(e,"getDay",function(){return rt.a});var it=n(5207);n.d(e,"getDayOfYear",function(){return it.a});var ot=n(853);n.d(e,"getDaysInMonth",function(){return ot.a});var at=n(5208);n.d(e,"getDaysInYear",function(){return at.a});var st=n(5209)
;n.d(e,"getDecade",function(){return st.a});var ut=n(1542);n.d(e,"getHours",function(){return ut.a});var ct=n(1849);n.d(e,"getISODay",function(){return ct.a});var lt=n(1850);n.d(e,"getISOWeek",function(){return lt.a});var ft=n(499);n.d(e,"getISOWeekYear",function(){return ft.a});var ht=n(5210);n.d(e,"getISOWeeksInYear",function(){return ht.a});var pt=n(5211);n.d(e,"getMilliseconds",function(){return pt.a});var dt=n(1002);n.d(e,"getMinutes",function(){return dt.a});var gt=n(512)
;n.d(e,"getMonth",function(){return gt.a});var vt=n(5212);n.d(e,"getOverlappingDaysInIntervals",function(){return vt.a});var yt=n(1839);n.d(e,"getQuarter",function(){return yt.a});var mt=n(5213);n.d(e,"getSeconds",function(){return mt.a});var bt=n(1252);n.d(e,"getTime",function(){return bt.a});var wt=n(147);n.d(e,"getUnixTime",function(){return wt.a});var _t=n(1851);n.d(e,"getWeek",function(){return _t.a});var xt=n(5214);n.d(e,"getWeekOfMonth",function(){return xt.a});var Ot=n(1852)
;n.d(e,"getWeekYear",function(){return Ot.a});var Tt=n(5215);n.d(e,"getWeeksInMonth",function(){return Tt.a});var St=n(1731);n.d(e,"getYear",function(){return St.a});var Et=n(942);n.d(e,"isAfter",function(){return Et.a});var jt=n(943);n.d(e,"isBefore",function(){return jt.a});var kt=n(5216);n.d(e,"isDate",function(){return kt.a});var Ct=n(5217);n.d(e,"isEqual",function(){return Ct.a});var At=n(5218);n.d(e,"isFirstDayOfMonth",function(){return At.a});var Pt=n(5219);n.d(e,"isFriday",function(){
return Pt.a});var Mt=n(5220);n.d(e,"isLastDayOfMonth",function(){return Mt.a});var Dt=n(1848);n.d(e,"isLeapYear",function(){return Dt.a});var It=n(5221);n.d(e,"isMonday",function(){return It.a});var Nt=n(276);n.d(e,"isSameDay",function(){return Nt.a});var Rt=n(5222);n.d(e,"isSameHour",function(){return Rt.a});var Lt=n(5223);n.d(e,"isSameISOWeek",function(){return Lt.a});var Ut=n(5224);n.d(e,"isSameISOWeekYear",function(){return Ut.a});var Ft=n(5225);n.d(e,"isSameMinute",function(){return Ft.a})
;var Bt=n(5226);n.d(e,"isSameMonth",function(){return Bt.a});var zt=n(5227);n.d(e,"isSameQuarter",function(){return zt.a});var qt=n(5228);n.d(e,"isSameSecond",function(){return qt.a});var Ht=n(1001);n.d(e,"isSameWeek",function(){return Ht.a});var Wt=n(5229);n.d(e,"isSameYear",function(){return Wt.a});var Vt=n(5230);n.d(e,"isSaturday",function(){return Vt.a});var Yt=n(1844);n.d(e,"isSunday",function(){return Yt.a});var Gt=n(5231);n.d(e,"isThursday",function(){return Gt.a});var Xt=n(5232)
;n.d(e,"isTuesday",function(){return Xt.a});var Kt=n(613);n.d(e,"isValid",function(){return Kt.a});var $t=n(5233);n.d(e,"isWednesday",function(){return $t.a});var Qt=n(1845);n.d(e,"isWeekend",function(){return Qt.a});var Jt=n(5234);n.d(e,"isWithinInterval",function(){return Jt.a});var Zt=n(5235);n.d(e,"lastDayOfDecade",function(){return Zt.a});var te=n(5236);n.d(e,"lastDayOfISOWeek",function(){return te.a});var ee=n(5237);n.d(e,"lastDayOfISOWeekYear",function(){return ee.a});var ne=n(1853)
;n.d(e,"lastDayOfMonth",function(){return ne.a});var re=n(5238);n.d(e,"lastDayOfQuarter",function(){return re.a});var ie=n(1857);n.d(e,"lastDayOfWeek",function(){return ie.a});var oe=n(5239);n.d(e,"lastDayOfYear",function(){return oe.a});var ae=n(5240);n.d(e,"max",function(){return ae.a});var se=n(5241);n.d(e,"min",function(){return se.a});var ue=n(944);n.d(e,"parse",function(){return ue.a});var ce=n(5242);n.d(e,"roundToNearestMinutes",function(){return ce.a});var le=n(5243)
;n.d(e,"setDate",function(){return le.a});var fe=n(5244);n.d(e,"setDay",function(){return fe.a});var he=n(5245);n.d(e,"setDayOfYear",function(){return he.a});var pe=n(1665);n.d(e,"setHours",function(){return pe.a});var de=n(5246);n.d(e,"setISODay",function(){return de.a});var ge=n(5247);n.d(e,"setISOWeek",function(){return ge.a});var ve=n(1835);n.d(e,"setISOWeekYear",function(){return ve.a});var ye=n(5248);n.d(e,"setMilliseconds",function(){return ye.a});var me=n(5249)
;n.d(e,"setMinutes",function(){return me.a});var be=n(1858);n.d(e,"setMonth",function(){return be.a});var we=n(5250);n.d(e,"setQuarter",function(){return we.a});var _e=n(5251);n.d(e,"setSeconds",function(){return _e.a});var xe=n(5252);n.d(e,"setWeek",function(){return xe.a});var Oe=n(5253);n.d(e,"setWeekYear",function(){return Oe.a});var Te=n(5254);n.d(e,"setYear",function(){return Te.a});var Se=n(441);n.d(e,"startOfDay",function(){return Se.a});var Ee=n(5255);n.d(e,"startOfDecade",function(){
return Ee.a});var je=n(1060);n.d(e,"startOfHour",function(){return je.a});var ke=n(419);n.d(e,"startOfISOWeek",function(){return ke.a});var Ce=n(599);n.d(e,"startOfISOWeekYear",function(){return Ce.a});var Ae=n(1854);n.d(e,"startOfMinute",function(){return Ae.a});var Pe=n(774);n.d(e,"startOfMonth",function(){return Pe.a});var Me=n(1855);n.d(e,"startOfQuarter",function(){return Me.a});var De=n(1856);n.d(e,"startOfSecond",function(){return De.a});var Ie=n(328);n.d(e,"startOfWeek",function(){
return Ie.a});var Ne=n(1111);n.d(e,"startOfWeekYear",function(){return Ne.a});var Re=n(1110);n.d(e,"startOfYear",function(){return Re.a});var Le=n(536);n.d(e,"subDays",function(){return Le.a});var Ue=n(1253);n.d(e,"subHours",function(){return Ue.a});var Fe=n(1842);n.d(e,"subISOWeekYears",function(){return Fe.a});var Be=n(616);n.d(e,"subMilliseconds",function(){return Be.a});var ze=n(5256);n.d(e,"subMinutes",function(){return ze.a});var qe=n(1254);n.d(e,"subMonths",function(){return qe.a})
;var He=n(5257);n.d(e,"subQuarters",function(){return He.a});var We=n(5258);n.d(e,"subSeconds",function(){return We.a});var Ve=n(1255);n.d(e,"subWeeks",function(){return Ve.a});var Ye=n(1256);n.d(e,"subYears",function(){return Ye.a});var Ge=n(23);n.d(e,"toDate",function(){return Ge.a})},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present")
;var r=t||{},o=e||{},a=Object(i.a)(r.start,n).getTime(),s=Object(i.a)(r.end,n).getTime(),u=Object(i.a)(o.start,n).getTime(),c=Object(i.a)(o.end,n).getTime();if(!(a<=s&&u<=c))throw new RangeError("Invalid interval");return a<c&&u<s}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n);if(isNaN(r))return NaN;var o,a=r.getTime()
;o=null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e);var s,u;return o.forEach(function(t,e){var r=Object(i.a)(t,n);if(isNaN(r))return s=NaN,void(u=NaN);var o=Math.abs(a-r.getTime());(null==s||o<u)&&(s=e,u=o)}),s}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n);if(isNaN(r))return new Date(NaN);var o,a=r.getTime()
;o=null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e);var s,u;return o.forEach(function(t){var e=Object(i.a)(t,n);if(isNaN(e))return s=new Date(NaN),void(u=NaN);var r=Math.abs(a-e.getTime());(null==s||r<u)&&(s=e,u=r)}),s}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n),a=r.getTime()-o.getTime()
;return a>0?-1:a<0?1:a}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(o.a)(e,n),u=r.getTime()-Object(i.a)(r),c=s.getTime()-Object(i.a)(s);return Math.round((u-c)/a)}e.a=r;var i=n(269),o=n(419),a=6048e5},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(o.a)(e,n);return 4*(r.getFullYear()-a.getFullYear())+(Object(i.a)(r,n)-Object(i.a)(a,n))}e.a=r;var i=n(1839),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,e,n)/o;return r>0?Math.floor(r):Math.ceil(r)}e.a=r;var i=n(588),o=36e5
},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),u=Object(i.a)(e,n),c=Object(a.a)(r,u,n),l=Math.abs(Object(o.a)(r,u,n));r=Object(s.a)(r,c*l,n);var f=Object(a.a)(r,u,n)===-c,h=c*(l-f);return 0===h?0:h}e.a=r;var i=n(23),o=n(1837),a=n(413),s=n(1842)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,e,n)/o;return r>0?Math.floor(r):Math.ceil(r)}e.a=r;var i=n(588),o=6e4},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,e,n)/3;return r>0?Math.floor(r):Math.ceil(r)}e.a=r;var i=n(1106)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,e,n)/7;return r>0?Math.floor(r):Math.ceil(r)}e.a=r;var i=n(1073)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),s=Object(i.a)(e,n),u=Object(a.a)(r,s,n),c=Math.abs(Object(o.a)(r,s,n));r.setFullYear(r.getFullYear()-u*c)
;var l=Object(a.a)(r,s,n)===-u,f=u*(c-l);return 0===f?0:f}e.a=r;var i=n(23),o=n(1841),a=n(413)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=Object(i.a)(n.start,e),s=Object(i.a)(n.end,e),u=s.getTime();if(!(r.getTime()<=u))throw new RangeError("Invalid interval");var c=Object(o.a)(r,e),l=Object(o.a)(s,e);c.setHours(15),l.setHours(15),u=l.getTime()
;for(var f=[],h=c;h.getTime()<=u;)h.setHours(0),f.push(Object(i.a)(h,e)),h=Object(a.a)(h,1),h.setHours(15);return f}e.a=r;var i=n(23),o=n(328),a=n(374)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 arguments required, but only "+arguments.length+" present");var n=Object(o.a)(t,e),r=Object(a.a)(t,e);return Object(i.a)({start:n,end:r})}e.a=r;var i=n(1108),o=n(774),a=n(1109)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 arguments required, but only "+arguments.length+" present");var n=Object(o.a)(t,e),r=Object(a.a)(t,e);return Object(i.a)({start:n,end:r})}e.a=r;var i=n(1108),o=n(1110),a=n(1846)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear(),o=9+10*Math.floor(r/10);return n.setFullYear(o,11,31),n.setHours(23,59,59,999),n}e.a=r
;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return n.setMinutes(59,59,999),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(o.a)(e);return n.weekStartsOn=1,Object(i.a)(t,n)}e.a=r;var i=n(1847),o=n(500)},function(t,e,n){
"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=Object(o.a)(r,e);return a.setMilliseconds(a.getMilliseconds()-1),a}e.a=r;var i=n(499),o=n(419)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e)
;return n.setSeconds(59,999),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getMonth(),o=r-r%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e)
;return n.setMilliseconds(999),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},g=r.locale||l.a;if(!g.formatDistance)throw new RangeError("locale must contain formatDistance property");var v=Object(o.a)(t,e,r);if(isNaN(v))return"Invalid Date";var y=Object(c.a)(r);y.addSuffix=Boolean(r.addSuffix),y.comparison=v;var m,b;v>0?(m=Object(a.a)(e,r),
b=Object(a.a)(t,r)):(m=Object(a.a)(t,r),b=Object(a.a)(e,r));var w,_=Object(s.a)(b,m,r),x=(Object(i.a)(b)-Object(i.a)(m))/1e3,O=Math.round((_-x)/60)
;if(O<2)return r.includeSeconds?_<5?g.formatDistance("lessThanXSeconds",5,y):_<10?g.formatDistance("lessThanXSeconds",10,y):_<20?g.formatDistance("lessThanXSeconds",20,y):_<40?g.formatDistance("halfAMinute",null,y):_<60?g.formatDistance("lessThanXMinutes",1,y):g.formatDistance("xMinutes",1,y):0===O?g.formatDistance("lessThanXMinutes",1,y):g.formatDistance("xMinutes",O,y);if(O<45)return g.formatDistance("xMinutes",O,y);if(O<90)return g.formatDistance("aboutXHours",1,y);if(O<f){
var T=Math.round(O/60);return g.formatDistance("aboutXHours",T,y)}if(O<h)return g.formatDistance("xDays",1,y);if(O<p){var S=Math.round(O/f);return g.formatDistance("xDays",S,y)}if(O<d)return w=Math.round(O/p),g.formatDistance("aboutXMonths",w,y);if((w=Object(u.a)(b,m,r))<12){var E=Math.round(O/p);return g.formatDistance("xMonths",E,y)}var j=w%12,k=Math.floor(w/12);return j<3?g.formatDistance("aboutXYears",k,y):j<9?g.formatDistance("overXYears",k,y):g.formatDistance("almostXYears",k+1,y)}e.a=r
;var i=n(269),o=n(413),a=n(23),s=n(1107),u=n(1106),c=n(500),l=n(510),f=1440,h=2520,p=43200,d=86400},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},p=r.locale||c.a;if(!p.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var d=Object(o.a)(t,e,r);if(isNaN(d))return"Invalid Date";var g=Object(u.a)(r);g.addSuffix=Boolean(r.addSuffix),
g.comparison=d;var v,y;d>0?(v=Object(a.a)(e,r),y=Object(a.a)(t,r)):(v=Object(a.a)(t,r),y=Object(a.a)(e,r));var m,b=null==r.roundingMethod?"round":String(r.roundingMethod);if("floor"===b)m=Math.floor;else if("ceil"===b)m=Math.ceil;else{if("round"!==b)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");m=Math.round}var w,_=Object(s.a)(y,v,n),x=(Object(i.a)(y)-Object(i.a)(v))/1e3,O=m((_-x)/60)
;if("second"===(w=null==r.unit?O<1?"second":O<60?"minute":O<l?"hour":O<f?"day":O<h?"month":"year":String(r.unit)))return p.formatDistance("xSeconds",_,g);if("minute"===w)return p.formatDistance("xMinutes",O,g);if("hour"===w){var T=m(O/60);return p.formatDistance("xHours",T,g)}if("day"===w){var S=m(O/l);return p.formatDistance("xDays",S,g)}if("month"===w){var E=m(O/f);return p.formatDistance("xMonths",E,g)}if("year"===w){var j=m(O/h);return p.formatDistance("xYears",j,g)}
throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}e.a=r;var i=n(269),o=n(413),a=n(23),s=n(1107),u=n(500),c=n(510),l=1440,f=43200,h=525600},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),l=Object(o.a)(e,n),f=n||{},h=f.locale||u.a;if(!h.localize)throw new RangeError("locale must contain localize property")
;if(!h.formatLong)throw new RangeError("locale must contain formatLong property");if(!h.formatRelative)throw new RangeError("locale must contain formatRelative property");var p=Object(s.a)(r,l,f);if(isNaN(p))return"Invalid Date";var d;d=p<-6?"other":p<-1?"lastWeek":p<0?"yesterday":p<1?"today":p<2?"tomorrow":p<7?"nextWeek":"other";var g=Object(c.a)(r,Object(i.a)(r),f),v=Object(c.a)(l,Object(i.a)(l),f),y=h.formatRelative(d,g,v,f);return Object(a.a)(r,y,f)}e.a=r
;var i=n(269),o=n(23),a=n(170),s=n(497),u=n(510),c=n(616)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return Object(a.a)(n,Object(o.a)(n,e),e)+1}e.a=r;var i=n(23),o=n(1110),a=n(497)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e)
;return isNaN(n)?NaN:Object(o.a)(n,e)?366:365}e.a=r;var i=n(23),o=n(1848)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear();return 10*Math.floor(r/10)}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=Object(i.a)(t,e),r=Object(i.a)(Object(o.a)(n,60,e),e),s=r.valueOf()-n.valueOf();return Math.round(s/a)}e.a=r;var i=n(599),o=n(374),a=6048e5},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getMilliseconds()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=t||{},a=e||{},s=Object(i.a)(r.start,n).getTime(),u=Object(i.a)(r.end,n).getTime(),c=Object(i.a)(a.start,n).getTime(),l=Object(i.a)(a.end,n).getTime();if(!(s<=u&&c<=l))throw new RangeError("Invalid interval");if(!(s<l&&c<u))return 0;var f=c<s?s:c,h=l>u?u:l,p=h-f;return Math.ceil(p/o)}e.a=r;var i=n(23),o=864e5},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(t,e).getSeconds()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,u=r&&r.options&&r.options.weekStartsOn,c=null==u?0:Object(i.a)(u),l=null==n.weekStartsOn?c:Object(i.a)(n.weekStartsOn)
;if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Object(s.a)(Object(a.a)(t,e),e),h=Object(s.a)(t,e),p=f<l?7-l:f,d=p>h?7-l:0;return Math.ceil((Object(o.a)(t,e)+d)/7)}e.a=r;var i=n(44),o=n(361),a=n(774),s=n(999)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(i.a)(Object(o.a)(t,e),Object(a.a)(t,e),e)+1}e.a=r
;var i=n(1840),o=n(1853),a=n(774)},function(t,e,n){"use strict";function r(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}e.a=r},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n)
;return r.getTime()===o.getTime()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 1===Object(i.a)(t,e).getDate()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 5===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict"
;function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e);return Object(o.a)(n,e).getTime()===Object(a.a)(n,e).getTime()}e.a=r;var i=n(23),o=n(1074),a=n(1109)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 1===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r;var i=n(1060)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(n);return r.weekStartsOn=1,Object(i.a)(t,e,r)}e.a=r;var i=n(1001),o=n(500)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r;var i=n(599)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r;var i=n(1854)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r;var i=n(1855)},function(t,e,n){
"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getTime()===o.getTime()}e.a=r;var i=n(1856)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(t,n),o=Object(i.a)(e,n);return r.getFullYear()===o.getFullYear()}e.a=r;var i=n(23)
},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 6===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 4===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 2===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return 3===Object(i.a)(t,e).getDay()}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=e||{},o=Object(i.a)(t,n).getTime(),a=Object(i.a)(r.start,n).getTime(),s=Object(i.a)(r.end,n).getTime();if(!(a<=s))throw new RangeError("Invalid interval");return o>=a&&o<=s}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present")
;var n=Object(i.a)(t,e),r=n.getFullYear(),o=9+10*Math.floor(r/10);return n.setFullYear(o+1,0,0),n.setHours(0,0,0,0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(o.a)(e);return n.weekStartsOn=1,Object(i.a)(t,n)}e.a=r;var i=n(1857),o=n(500)},function(t,e,n){"use strict";function r(t,e){
if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var a=Object(o.a)(r,e);return a.setDate(a.getDate()-1),a}e.a=r;var i=n(499),o=n(419)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getMonth(),o=r-r%3+3;return n.setMonth(o,0),
n.setHours(0,0,0,0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n
;n=null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t);var r;return n.forEach(function(t){var n=Object(i.a)(t,e);(void 0===r||r<n||isNaN(n))&&(r=n)}),r}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n;n=null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t);var r;return n.forEach(function(t){var n=Object(i.a)(t,e)
;(void 0===r||r>n||isNaN(n))&&(r=n)}),r}e.a=r;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=1===arguments.length?1:Object(o.a)(e);if(2===arguments.length&&"number"!=typeof e&&"string"!=typeof e&&(n=e,r=1),!r||r>30||r<1)throw new RangeError("nearestTo must be between 1 and 30")
;var a=Object(i.a)(t,n),s=a.getSeconds(),u=a.getMinutes()+s/60,c=Math.floor(u/r)*r,l=u%r,f=Math.round(l/r)*r;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),c+f)}e.a=r;var i=n(23),o=n(44)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setDate(a),r}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},s=r.locale,u=s&&s.options&&s.options.weekStartsOn,c=null==u?0:Object(i.a)(u),l=null==r.weekStartsOn?c:Object(i.a)(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Object(o.a)(t,r),h=Object(i.a)(e),p=f.getDay(),d=h%7,g=(d+7)%7,v=(g<l?7:0)+h-p;return Object(a.a)(f,v,r)}e.a=r;var i=n(44),o=n(23),a=n(234)},function(t,e,n){
"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setMonth(0),r.setDate(a),r}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),u=Object(i.a)(e),c=Object(s.a)(r,n),l=u-c;return Object(a.a)(r,l,n)}e.a=r
;var i=n(44),o=n(23),a=n(234),s=n(1849)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(i.a)(e),u=Object(a.a)(r,n)-s;return r.setDate(r.getDate()-7*u),r}e.a=r;var i=n(44),o=n(23),a=n(1850)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present")
;var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setMilliseconds(a),r}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setMinutes(a),r}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present")
;var r=Object(o.a)(t,n),s=Object(i.a)(e),u=Math.floor(r.getMonth()/3)+1,c=s-u;return Object(a.a)(r,r.getMonth()+3*c,n)}e.a=r;var i=n(44),o=n(23),a=n(1858)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return r.setSeconds(a),r}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),s=Object(i.a)(e),u=Object(a.a)(r,n)-s;return r.setDate(r.getDate()-7*u),r}e.a=r;var i=n(44),o=n(23),a=n(1851)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present")
;var r=n||{},u=r.locale,c=u&&u.options&&u.options.firstWeekContainsDate,l=null==c?1:Object(i.a)(c),f=null==r.firstWeekContainsDate?l:Object(i.a)(r.firstWeekContainsDate),h=Object(o.a)(t,n),p=Object(i.a)(e),d=Object(s.a)(h,Object(a.a)(h,n),n),g=new Date(0);return g.setFullYear(p,0,f),g.setHours(0,0,0,0),h=Object(a.a)(g,n),h.setDate(h.getDate()+d),h}e.a=r;var i=n(44),o=n(23),a=n(1111),s=n(497)},function(t,e,n){"use strict";function r(t,e,n){
if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(t,n),a=Object(i.a)(e);return isNaN(r)?new Date(NaN):(r.setFullYear(a),r)}e.a=r;var i=n(44),o=n(23)},function(t,e,n){"use strict";function r(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(i.a)(t,e),r=n.getFullYear(),o=10*Math.floor(r/10);return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}e.a=r
;var i=n(23)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(998)},function(t,e,n){"use strict";function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(1836)},function(t,e,n){"use strict"
;function r(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(i.a)(e);return Object(o.a)(t,-r,n)}e.a=r;var i=n(44),o=n(679)},function(t,e,n){"use strict";var r={codecs:n(5260),mp4:n(5262),flv:n(5272),mp2t:n(5277)};r.mp4.tools=n(1863),r.flv.tools=n(5278),r.mp2t.tools=n(5279),t.exports=r},function(t,e,n){t.exports={adts:n(1112),h264:n(1113)}},function(t,e,n){"use strict";var r;r=function(t){var e=t.byteLength,n=0,r=0
;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+r},this.loadWord=function(){var i=t.byteLength-e,o=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");o.set(t.subarray(i,i+a)),n=new DataView(o.buffer).getUint32(0),r=8*a,e-=a},this.skipBits=function(t){var i;r>t?(n<<=t,r-=t):(t-=r,i=Math.floor(t/8),t-=8*i,e-=i,this.loadWord(),n<<=t,r-=t)},this.readBits=function(t){var i=Math.min(r,t),o=n>>>32-i;return r-=i,r>0?n<<=i:e>0&&this.loadWord(),
i=t-i,i>0?o<<i|this.readBits(i):o},this.skipLeadingZeros=function(){var t;for(t=0;t<r;++t)if(0!=(n&2147483648>>>t))return n<<=t,r-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb()
;return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},t.exports=r},function(t,e,n){t.exports={generator:n(1859),probe:n(1114),Transmuxer:n(1115).Transmuxer,AudioSegmentStream:n(1115).AudioSegmentStream,VideoSegmentStream:n(1115).VideoSegmentStream,CaptionParser:n(5271)}},function(t,e){var n=function(t){return t>>>0};t.exports={toUnsigned:n}},function(t,e){var n=function(t){
var e,n,r=[],i=[];for(r.byteLength=0,e=0;e<t.length;e++)n=t[e],"access_unit_delimiter_rbsp"===n.nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.push(r)),r=[n],r.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.push(r),i},r=function(t){var e,n,r=[],i=[]
;for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,e=0;e<t.length;e++)n=t[e],n.keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),r=[n],r.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},i=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},o=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},a=function(t,e){
var n=o();return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},s=function(t,e){var n,r,i,o,s,u=e||0,c=[];for(n=0;n<t.length;n++)for(o=t[n],r=0;r<o.length;r++)s=o[r],i=a(s,u),u+=i.size,c.push(i);return c},u=function(t){var e,n,r,i,o,a,s=0,u=t.byteLength,c=t.nalCount,l=u+4*c,f=new Uint8Array(l),h=new DataView(f.buffer);for(e=0;e<t.length;e++)for(i=t[e],
n=0;n<i.length;n++)for(o=i[n],r=0;r<o.length;r++)a=o[r],h.setUint32(s,a.data.byteLength),s+=4,f.set(a.data,s),s+=a.data.byteLength;return f};t.exports={groupNalsIntoFrames:n,groupFramesIntoGops:r,extendFirstKeyFrame:i,generateSampleTable:s,concatenateNalData:u}},function(t,e,n){var r=n(5266),i=n(5267),o=function(t){var e,n,r=0;for(e=0;e<t.length;e++)n=t[e],r+=n.data.byteLength;return r},a=function(t,e,n,o){var a,s,u,c=0,l=0,f=0,h=0
;if(e.length&&(a=i.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),c=Math.ceil(9e4/(t.samplerate/1024)),n&&o&&(l=a-Math.max(n,o),f=Math.floor(l/c),h=f*c),!(f<1||h>45e3))){for(s=r[t.samplerate],s||(s=e[0].data),u=0;u<f;u++)e.splice(u,0,{data:s});t.baseMediaDecodeTime-=Math.floor(i.videoTsToAudioTs(h,t.samplerate))}},s=function(t,e,n){return e.minSegmentDts>=n?t:(e.minSegmentDts=1/0,t.filter(function(t){return t.dts>=n&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),
e.minSegmentPts=e.minSegmentDts,!0)}))},u=function(t){var e,n,r=[];for(e=0;e<t.length;e++)n=t[e],r.push({size:n.data.byteLength,duration:1024});return r},c=function(t){var e,n,r=0,i=new Uint8Array(o(t));for(e=0;e<t.length;e++)n=t[e],i.set(n.data,r),r+=n.data.byteLength;return i};t.exports={prefixWithSilence:a,trimAdtsFramesByEarliestDts:s,generateSampleTable:u,concatenateFrameData:c}},function(t,e){var n=[33,16,5,32,164,27],r=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],i=function(t){
for(var e=[];t--;)e.push(0);return e},o={96e3:[n,[227,64],i(154),[56]],88200:[n,[231],i(170),[56]],64e3:[n,[248,192],i(240),[56]],48e3:[n,[255,192],i(268),[55,148,128],i(54),[112]],44100:[n,[255,192],i(268),[55,163,128],i(84),[112]],32e3:[n,[255,192],i(268),[55,234],i(226),[112]],24e3:[n,[255,192],i(268),[55,255,128],i(268),[111,112],i(126),[224]],16e3:[n,[255,192],i(268),[55,255,128],i(268),[111,255],i(269),[223,108],i(195),[1,192]],
12e3:[r,i(268),[3,127,248],i(268),[6,255,240],i(268),[13,255,224],i(268),[27,253,128],i(259),[56]],11025:[r,i(268),[3,127,248],i(268),[6,255,240],i(268),[13,255,224],i(268),[27,255,192],i(268),[55,175,128],i(108),[112]],8e3:[r,i(268),[3,121,16],i(47),[7]]};t.exports=function(t){return Object.keys(t).reduce(function(e,n){return e[n]=new Uint8Array(t[n].reduce(function(t,e){return t.concat(e)},[])),e},{})}(o)},function(t,e){var n,r,i,o,a,s;n=function(t){return 9e4*t},r=function(t,e){return t*e},
i=function(t){return t/9e4},o=function(t,e){return t/e},a=function(t,e){return n(o(t,e))},s=function(t,e){return r(i(t),e)},t.exports={secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:i,audioTsToSeconds:o,audioTsToVideoTs:a,videoTsToAudioTs:s}},function(t,e){var n=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),
void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},r=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts
},i=function(t,e){var n,r,i=t.minSegmentDts;return e||(i-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===t.type&&(r=t.samplerate/9e4,n*=r,n=Math.floor(n)),n};t.exports={clearDtsInfo:r,calculateTrackBaseMediaDecodeTime:i,collectDtsInfo:n}},function(t,e,n){"use strict";var r,i=n(264),o=n(600),a=function(t,e,n){var r,i="";for(r=e;r<n;r++)i+="%"+("00"+t[r].toString(16)).slice(-2);return i},s=function(t,e,n){return decodeURIComponent(a(t,e,n))
},u=function(t,e,n){return unescape(a(t,e,n))},c=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},l={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=s(t.data,1,e),t.value=s(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=s(t.data,1,e),t.url=s(t.data,e+1,t.data.length);break}},PRIV:function(t){var e
;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=u(t.data,0,e);break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};r=function(t){var e,n={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},i=0,a=[],s=0;if(r.prototype.init.call(this),this.dispatchType=o.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,r,o,u,f,h;if("timed-metadata"===t.type){
if(t.dataAlignmentIndicator&&(s=0,a.length=0),0===a.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))return void(n.debug&&console.log("Skipping unrecognized metadata packet"));if(a.push(t),s+=t.data.byteLength,1===a.length&&(i=c(t.data.subarray(6,10)),i+=10),!(s<i)){for(e={data:new Uint8Array(i),frames:[],pts:a[0].pts,dts:a[0].dts},f=0;f<i;)e.data.set(a[0].data.subarray(0,i-f),f),f+=a[0].data.byteLength,
s-=a[0].data.byteLength,a.shift();r=10,64&e.data[5]&&(r+=4,r+=c(e.data.subarray(10,14)),i-=c(e.data.subarray(16,20)));do{if((o=c(e.data.subarray(r+4,r+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if(h=String.fromCharCode(e.data[r],e.data[r+1],e.data[r+2],e.data[r+3]),u={id:h,data:e.data.subarray(r+10,r+o+10)},u.key=u.id,l[u.id]&&(l[u.id](u),"com.apple.streaming.transportStreamTimestamp"===u.owner)){
var p=u.data,d=(1&p[3])<<30|p[4]<<22|p[5]<<14|p[6]<<6|p[7]>>>2;d*=4,d+=3&p[7],u.timeStamp=d,void 0===e.pts&&void 0===e.dts&&(e.pts=u.timeStamp,e.dts=u.timeStamp),this.trigger("timestamp",u)}e.frames.push(u),r+=10,r+=o}while(r<i);this.trigger("data",e)}}}},r.prototype=new i,t.exports=r},function(t,e,n){"use strict";var r,i=n(264),o=n(1117);r=function(){var t=new Uint8Array,e=0;r.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var r,i,a,s,u=0,c=0
;for(t.length?(s=t.length,t=new Uint8Array(n.byteLength+s),t.set(t.subarray(0,s)),t.set(n,s)):t=n;t.length-c>=3;)if(t[c]!=="I".charCodeAt(0)||t[c+1]!=="D".charCodeAt(0)||t[c+2]!=="3".charCodeAt(0))if(255!=(255&t[c])||240!=(240&t[c+1]))c++;else{if(t.length-c<7)break;if(u=o.parseAdtsSize(t,c),c+u>t.length)break;a={type:"audio",data:t.subarray(c,c+u),pts:e,dts:e},this.trigger("data",a),c+=u}else{if(t.length-c<10)break;if(u=o.parseId3TagSize(t,c),c+u>t.length)break;i={type:"timed-metadata",
data:t.subarray(c,c+u)},this.trigger("data",i),c+=u}r=t.length-c,t=r>0?t.subarray(c):new Uint8Array}},r.prototype=new i,t.exports=r},function(t,e,n){"use strict";var r=n(1861).discardEmulationPreventionBytes,i=n(1860).CaptionStream,o=n(1114),a=n(1863),s=function(t,e){for(var n=t,r=0;r<e.length;r++){var i=e[r];if(n<i.size)return i;n-=i.size}return null},u=function(t,e,n){var i,o,a,u,c=new DataView(t.buffer,t.byteOffset,t.byteLength),l=[];for(o=0;o+4<t.length;o+=a)if(a=c.getUint32(o),o+=4,
!(a<=0))switch(31&t[o]){case 6:var f=t.subarray(o+1,o+1+a),h=s(o,e);i={nalUnitType:"sei_rbsp",size:a,data:f,escapedRBSP:r(f),trackId:n},h?(i.pts=h.pts,i.dts=h.dts,u=h):(i.pts=u.pts,i.dts=u.dts),l.push(i)}return l},c=function(t,e,n){var r=e,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,s=n.trackId,u=[];return t.forEach(function(t){var e=a.parseTrun(t),n=e.samples;n.forEach(function(t){void 0===t.duration&&(t.duration=i),void 0===t.size&&(t.size=o),t.trackId=s,t.dts=r,
void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),t.pts=r+t.compositionTimeOffset,r+=t.duration}),u=u.concat(n)}),u},l=function(t,e){var n=o.findBox(t,["moof","traf"]),r=o.findBox(t,["mdat"]),i={},s=[];return r.forEach(function(t,e){var r=n[e];s.push({mdat:t,traf:r})}),s.forEach(function(t){var n,r,s=t.mdat,l=t.traf,f=o.findBox(l,["tfhd"]),h=a.parseTfhd(f[0]),p=h.trackId,d=o.findBox(l,["tfdt"]),g=d.length>0?a.parseTfdt(d[0]).baseMediaDecodeTime:0,v=o.findBox(l,["trun"])
;e===p&&v.length>0&&(n=c(v,g,h),r=u(s,n,p),i[p]||(i[p]=[]),i[p]=i[p].concat(r))}),i},f=function(t,e,n){var r;return e?(r=l(t,e),{seiNals:r[e],timescale:n}):null},h=function(){var t,e,n,r,o,a=!1;this.isInitialized=function(){return a},this.init=function(){t=new i,a=!0,t.on("data",function(t){t.startTime=t.startPts/r,t.endTime=t.endPts/r,o.captions.push(t),o.captionStreams[t.stream]=!0})},this.isNewInit=function(t,e){
return!(t&&0===t.length||e&&"object"==typeof e&&0===Object.keys(e).length)&&(n!==t[0]||r!==e[n])},this.parse=function(t,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(!n||!r)return e.push(t),null;for(;e.length>0;){var u=e.shift();this.parse(u,i,a)}return null!==(s=f(t,n,r))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),o):null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null
;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;t.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}
;t.exports=h},function(t,e,n){t.exports={tag:n(1118),Transmuxer:n(5273),getFlvHeader:n(5276)}},function(t,e,n){"use strict";var r,i,o,a,s,u,c=n(264),l=n(1118),f=n(1116),h=n(1112),p=n(1113).H264Stream,d=n(5274),g=n(5275);a=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts?t.timelineStartInfo.pts=e.pts:t.timelineStartInfo.pts=Math.min(t.timelineStartInfo.pts,e.pts)),
"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts?t.timelineStartInfo.dts=e.dts:t.timelineStartInfo.dts=Math.min(t.timelineStartInfo.dts,e.dts))},s=function(t,e){var n=new l(l.METADATA_TAG);return n.dts=e,n.pts=e,n.writeMetaDataDouble("videocodecid",7),n.writeMetaDataDouble("width",t.width),n.writeMetaDataDouble("height",t.height),n},u=function(t,e){var n,r=new l(l.VIDEO_TAG,!0);for(r.dts=e,r.pts=e,r.writeByte(1),r.writeByte(t.profileIdc),r.writeByte(t.profileCompatibility),
r.writeByte(t.levelIdc),r.writeByte(255),r.writeByte(225),r.writeShort(t.sps[0].length),r.writeBytes(t.sps[0]),r.writeByte(t.pps.length),n=0;n<t.pps.length;++n)r.writeShort(t.pps[n].length),r.writeBytes(t.pps[n]);return r},o=function(t){var e,n=[],r=[];o.prototype.init.call(this),this.push=function(e){a(t,e),t&&(t.audioobjecttype=e.audioobjecttype,t.channelcount=e.channelcount,t.samplerate=e.samplerate,t.samplingfrequencyindex=e.samplingfrequencyindex,t.samplesize=e.samplesize,
t.extraData=t.audioobjecttype<<11|t.samplingfrequencyindex<<7|t.channelcount<<3),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),n.push(e)},this.flush=function(){var i,o,a,s=new g;if(0===n.length)return void this.trigger("done","AudioSegmentStream");for(a=-1/0;n.length;)i=n.shift(),r.length&&i.pts>=r[0]&&(a=r.shift(),this.writeMetaDataTags(s,a)),(t.extraData!==e||i.pts-a>=1e3)&&(this.writeMetaDataTags(s,i.pts),e=t.extraData,a=i.pts),o=new l(l.AUDIO_TAG),o.pts=i.pts,o.dts=i.dts,
o.writeBytes(i.data),s.push(o.finalize());r.length=0,e=null,this.trigger("data",{track:t,tags:s.list}),this.trigger("done","AudioSegmentStream")},this.writeMetaDataTags=function(e,n){var r;r=new l(l.METADATA_TAG),r.pts=n,r.dts=n,r.writeMetaDataDouble("audiocodecid",10),r.writeMetaDataBoolean("stereo",2===t.channelcount),r.writeMetaDataDouble("audiosamplerate",t.samplerate),r.writeMetaDataDouble("audiosamplesize",16),e.push(r.finalize()),r=new l(l.AUDIO_TAG,!0),r.pts=n,r.dts=n,
r.view.setUint16(r.position,t.extraData),r.position+=2,r.length=Math.max(r.length,r.position),e.push(r.finalize())},this.onVideoKeyFrame=function(t){r.push(t)}},o.prototype=new c,i=function(t){var e,n,r=[];i.prototype.init.call(this),this.finishFrame=function(r,i){if(i){if(e&&t&&t.newMetadata&&(i.keyFrame||0===r.length)){var o=s(e,i.dts).finalize(),a=u(t,i.dts).finalize();o.metaDataTag=a.metaDataTag=!0,r.push(o),r.push(a),t.newMetadata=!1,this.trigger("keyframe",i.dts)}i.endNalUnit(),
r.push(i.finalize()),n=null}},this.push=function(e){a(t,e),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),r.push(e)},this.flush=function(){for(var i,o=new g;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();if(0===r.length)return void this.trigger("done","VideoSegmentStream");for(;r.length;)i=r.shift(),"seq_parameter_set_rbsp"===i.nalUnitType?(t.newMetadata=!0,e=i.config,t.width=e.width,t.height=e.height,t.sps=[i.data],t.profileIdc=e.profileIdc,t.levelIdc=e.levelIdc,
t.profileCompatibility=e.profileCompatibility,n.endNalUnit()):"pic_parameter_set_rbsp"===i.nalUnitType?(t.newMetadata=!0,t.pps=[i.data],n.endNalUnit()):"access_unit_delimiter_rbsp"===i.nalUnitType?(n&&this.finishFrame(o,n),n=new l(l.VIDEO_TAG),n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.endNalUnit()),n.startNalUnit(),n.writeBytes(i.data);n&&this.finishFrame(o,n),this.trigger("data",{track:t,tags:o.list}),
this.trigger("done","VideoSegmentStream")}},i.prototype=new c,r=function(t){var e,n,a,s,u,c,l,g,v,y,m,b,w=this;r.prototype.init.call(this),t=t||{},this.metadataStream=new f.MetadataStream,t.metadataStream=this.metadataStream,e=new f.TransportPacketStream,n=new f.TransportParseStream,a=new f.ElementaryStream,s=new f.TimestampRolloverStream("video"),u=new f.TimestampRolloverStream("audio"),c=new f.TimestampRolloverStream("timed-metadata"),l=new h,g=new p,b=new d(t),e.pipe(n).pipe(a),
a.pipe(s).pipe(g),a.pipe(u).pipe(l),a.pipe(c).pipe(this.metadataStream).pipe(b),m=new f.CaptionStream,g.pipe(m).pipe(b),a.on("data",function(t){var e,n,r;if("metadata"===t.type){for(e=t.tracks.length;e--;)"video"===t.tracks[e].type?n=t.tracks[e]:"audio"===t.tracks[e].type&&(r=t.tracks[e]);n&&!v&&(b.numberOfTracks++,v=new i(n),g.pipe(v).pipe(b)),r&&!y&&(b.numberOfTracks++,y=new o(r),l.pipe(y).pipe(b),v&&v.on("keyframe",y.onVideoKeyFrame))}}),this.push=function(t){e.push(t)},this.flush=function(){
e.flush()},this.resetCaptions=function(){m.reset()},b.on("data",function(t){w.trigger("data",t)}),b.on("done",function(){w.trigger("done")})},r.prototype=new c,t.exports=r},function(t,e,n){"use strict";var r=n(264),i=function(t){this.numberOfTracks=0,this.metadataStream=t.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,this.processedTracks=0,i.prototype.init.call(this),
this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):("video"===t.track.type&&(this.videoTrack=t.track,this.videoTags=t.tags,this.pendingTracks++),void("audio"===t.track.type&&(this.audioTrack=t.track,this.audioTags=t.tags,this.pendingTracks++)))}};i.prototype=new r,i.prototype.flush=function(t){var e,n,r,i,o={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks<this.numberOfTracks){
if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(0===this.pendingTracks&&++this.processedTracks<this.numberOfTracks)return}if(this.processedTracks+=this.pendingTracks,this.pendingTracks=0,!(this.processedTracks<this.numberOfTracks)){for(this.videoTrack?i=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(i=this.audioTrack.timelineStartInfo.pts),o.tags.videoTags=this.videoTags,o.tags.audioTags=this.audioTags,r=0;r<this.pendingCaptions.length;r++)n=this.pendingCaptions[r],
n.startTime=n.startPts-i,n.startTime/=9e4,n.endTime=n.endPts-i,n.endTime/=9e4,o.captionStreams[n.stream]=!0,o.captions.push(n);for(r=0;r<this.pendingMetadata.length;r++)e=this.pendingMetadata[r],e.cueTime=e.pts-i,e.cueTime/=9e4,o.metadata.push(e);o.metadata.dispatchType=this.metadataStream.dispatchType,this.videoTrack=null,this.audioTrack=null,this.videoTags=[],this.audioTags=[],this.pendingCaptions.length=0,this.pendingMetadata.length=0,this.pendingTracks=0,this.processedTracks=0,
this.trigger("data",o),this.trigger("done")}},t.exports=i},function(t,e,n){"use strict";var r=function(){var t=this;this.list=[],this.push=function(t){this.list.push({bytes:t.bytes,dts:t.dts,pts:t.pts,keyFrame:t.keyFrame,metaDataTag:t.metaDataTag})},Object.defineProperty(this,"length",{get:function(){return t.list.length}})};t.exports=r},function(t,e,n){"use strict";var r=n(1118),i=function(t,e,n){var i,o,a,s=new Uint8Array(9),u=new DataView(s.buffer);return t=t||0,e=void 0===e||e,
n=void 0===n||n,u.setUint8(0,70),u.setUint8(1,76),u.setUint8(2,86),u.setUint8(3,1),u.setUint8(4,(e?4:0)|(n?1:0)),u.setUint32(5,s.byteLength),t<=0?(o=new Uint8Array(s.byteLength+4),o.set(s),o.set([0,0,0,0],s.byteLength),o):(i=new r(r.METADATA_TAG),i.pts=i.dts=0,i.writeMetaDataDouble("duration",t),a=i.finalize().length,o=new Uint8Array(s.byteLength+a),o.set(s),o.set(u.byteLength,a),o)};t.exports=i},function(t,e,n){t.exports=n(1116)},function(t,e,n){"use strict";var r={8:"audio",9:"video",
18:"metadata"},i=function(t){return"0x"+("00"+t.toString(16)).slice(-2).toUpperCase()},o=function(t){for(var e,n=[];t.byteLength>0;)e=0,n.push(i(t[e++])),t=t.subarray(e);return n.join(" ")},a=function(t,e){var n=["AVC Sequence Header","AVC NALU","AVC End-of-Sequence"],r=t[1]&parseInt("01111111",2)<<16|t[2]<<8|t[3];return e=e||{},e.avcPacketType=n[t[0]],e.CompositionTime=t[1]&parseInt("10000000",2)?-r:r,1===t[0]?e.nalUnitTypeRaw=o(t.subarray(4,100)):e.data=o(t.subarray(4)),e},s=function(t,e){
var n=["Unknown","Keyframe (for AVC, a seekable frame)","Inter frame (for AVC, a nonseekable frame)","Disposable inter frame (H.263 only)","Generated keyframe (reserved for server use only)","Video info/command frame"],r=t[0]&parseInt("00001111",2);return e=e||{},e.frameType=n[(t[0]&parseInt("11110000",2))>>>4],e.codecID=r,7===r?a(t.subarray(1),e):e},u=function(t,e){var n=["AAC Sequence Header","AAC Raw"];return e=e||{},e.aacPacketType=n[t[0]],e.data=o(t.subarray(1)),e},c=function(t,e){
var n=["Linear PCM, platform endian","ADPCM","MP3","Linear PCM, little endian","Nellymoser 16-kHz mono","Nellymoser 8-kHz mono","Nellymoser","G.711 A-law logarithmic PCM","G.711 mu-law logarithmic PCM","reserved","AAC","Speex","MP3 8-Khz","Device-specific sound"],r=["5.5-kHz","11-kHz","22-kHz","44-kHz"],i=(t[0]&parseInt("11110000",2))>>>4;return e=e||{},e.soundFormat=n[i],e.soundRate=r[(t[0]&parseInt("00001100",2))>>>2],e.soundSize=(t[0]&parseInt("00000010",2))>>>1?"16-bit":"8-bit",
e.soundType=t[0]&parseInt("00000001",2)?"Stereo":"Mono",10===i?u(t.subarray(1),e):e},l=function(t){return{tagType:r[t[0]],dataSize:t[1]<<16|t[2]<<8|t[3],timestamp:t[7]<<24|t[4]<<16|t[5]<<8|t[6],streamID:t[8]<<16|t[9]<<8|t[10]}},f=function(t){var e=l(t);switch(t[0]){case 8:c(t.subarray(11),e);break;case 9:s(t.subarray(11),e)}return e},h=function(t){var e,n,r=9,i=[];for(r+=4;r<t.byteLength;)e=t[r+1]<<16,e|=t[r+2]<<8,e|=t[r+3],e+=11,n=t.subarray(r,r+e),i.push(f(n)),r+=e+4;return i},p=function(t){
return JSON.stringify(t,null,2)};t.exports={inspectTag:f,inspect:h,textify:p}},function(t,e,n){"use strict";var r=n(600),i=n(1862).handleRollover,o={};o.ts=n(5280),o.aac=n(1117);var a=function(t,e){for(var n,r=0,i=188;i<t.byteLength;)if(71!==t[r]||71!==t[i])r++,i++;else{switch(n=t.subarray(r,i),o.ts.parseType(n,e.pid)){case"pat":e.pid||(e.pid=o.ts.parsePat(n));break;case"pmt":e.table||(e.table=o.ts.parsePmt(n))}if(e.pid&&e.table)return;r+=188,i+=188}},s=function(t,e,n){
for(var r,i,a,s,u=0,c=188,l=!1;c<=t.byteLength;)if(71!==t[u]||71!==t[c]&&c!==t.byteLength)u++,c++;else{switch(r=t.subarray(u,c),o.ts.parseType(r,e.pid)){case"pes":i=o.ts.parsePesType(r,e.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;u+=188,c+=188}for(c=t.byteLength,u=c-188,l=!1;u>=0;)if(71!==t[u]||71!==t[c]&&c!==t.byteLength)u--,c--;else{switch(r=t.subarray(u,c),o.ts.parseType(r,e.pid)){case"pes":
i=o.ts.parsePesType(r,e.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;u-=188,c-=188}},u=function(t,e,n){for(var r,i,a,s,u,c,l,f=0,h=188,p=!1,d={data:[],size:0};h<t.byteLength;)if(71!==t[f]||71!==t[h])f++,h++;else{switch(r=t.subarray(f,h),o.ts.parseType(r,e.pid)){case"pes":if(i=o.ts.parsePesType(r,e.table),a=o.ts.parsePayloadUnitStartIndicator(r),
"video"===i&&(a&&!p&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),p=!0),!n.firstKeyFrame)){if(a&&0!==d.size){for(u=new Uint8Array(d.size),c=0;d.data.length;)l=d.data.shift(),u.set(l,c),c+=l.byteLength;o.ts.videoPacketContainsKeyFrame(u)&&(n.firstKeyFrame=o.ts.parsePesTime(u),n.firstKeyFrame.type="video"),d.size=0}d.data.push(r),d.size+=r.byteLength}}if(p&&n.firstKeyFrame)break;f+=188,h+=188}for(h=t.byteLength,f=h-188,p=!1;f>=0;)if(71!==t[f]||71!==t[h])f--,h--;else{
switch(r=t.subarray(f,h),o.ts.parseType(r,e.pid)){case"pes":i=o.ts.parsePesType(r,e.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),p=!0)}if(p)break;f-=188,h-=188}},c=function(t,e){if(t.audio&&t.audio.length){var n=e;void 0===n&&(n=t.audio[0].dts),t.audio.forEach(function(t){t.dts=i(t.dts,n),t.pts=i(t.pts,n),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4})}if(t.video&&t.video.length){var r=e;if(void 0===r&&(r=t.video[0].dts),
t.video.forEach(function(t){t.dts=i(t.dts,r),t.pts=i(t.pts,r),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4}),t.firstKeyFrame){var o=t.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/9e4,o.ptsTime=o.dts/9e4}}},l=function(t){for(var e,n=!1,r=0,i=null,a=null,s=0,u=0;t.length-u>=3;){switch(o.aac.parseType(t,u)){case"timed-metadata":if(t.length-u<10){n=!0;break}if((s=o.aac.parseId3TagSize(t,u))>t.length){n=!0;break}null===a&&(e=t.subarray(u,u+s),a=o.aac.parseAacTimestamp(e)),u+=s;break
;case"audio":if(t.length-u<7){n=!0;break}if((s=o.aac.parseAdtsSize(t,u))>t.length){n=!0;break}null===i&&(e=t.subarray(u,u+s),i=o.aac.parseSampleRate(e)),r++,u+=s;break;default:u++}if(n)return null}if(null===i||null===a)return null;var c=9e4/i;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*r*c,pts:a+1024*r*c}]}},f=function(t){var e={pid:null,table:null},n={};a(t,e);for(var i in e.table)if(e.table.hasOwnProperty(i)){var o=e.table[i];switch(o){case r.H264_STREAM_TYPE:n.video=[],
u(t,e,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(t,e,n),0===n.audio.length&&delete n.audio}}return n},h=function(t,e){var n,r=o.aac.isLikelyAacData(t);return(n=r?l(t):f(t))&&(n.audio||n.video)?(c(n,e),n):null};t.exports={inspect:h,parseAudioPes_:s}},function(t,e,n){"use strict";var r=n(600),i=function(t){var e=31&t[1];return e<<=8,e|=t[2]},o=function(t){return!!(64&t[1])},a=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},s=function(t,e){var n=i(t)
;return 0===n?"pat":n===e?"pmt":e?"pes":null},u=function(t){var e=o(t),n=4+a(t);return e&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},c=function(t){var e={},n=o(t),r=4+a(t);if(n&&(r+=t[r]+1),1&t[r+5]){var i,s,u;i=(15&t[r+1])<<8|t[r+2],s=3+i-4,u=(15&t[r+10])<<8|t[r+11];for(var c=12+u;c<s;){var l=r+c;e[(31&t[l+1])<<8|t[l+2]]=t[l],c+=5+((15&t[l+3])<<8|t[l+4])}return e}},l=function(t,e){switch(e[i(t)]){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}},f=function(t){if(!o(t))return null;var e=4+a(t);if(e>=t.byteLength)return null;var n,r=null;return n=t[e+7],192&n&&(r={},r.pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,r.pts*=4,r.pts+=(6&t[e+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,r.dts*=4,r.dts+=(6&t[e+18])>>>1)),r},h=function(t){switch(t){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}},p=function(t){for(var e,n=4+a(t),r=t.subarray(n),i=0,o=0,s=!1;o<r.byteLength-3;o++)if(1===r[o+2]){i=o+5;break}for(;i<r.byteLength;)switch(r[i]){case 0:if(0!==r[i-1]){i+=2;break}if(0!==r[i-2]){i++;break}o+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===(e=h(31&r[o+3]))&&(s=!0)
;do{i++}while(1!==r[i]&&i<r.length);o=i-2,i+=3;break;case 1:if(0!==r[i-1]||0!==r[i-2]){i+=3;break}e=h(31&r[o+3]),"slice_layer_without_partitioning_rbsp_idr"===e&&(s=!0),o=i-2,i+=3;break;default:i+=3}return r=r.subarray(o),i-=o,o=0,r&&r.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===(e=h(31&r[o+3]))&&(s=!0),s};t.exports={parseType:s,parsePat:u,parsePmt:c,parsePayloadUnitStartIndicator:o,parsePesType:l,parsePesTime:f,videoPacketContainsKeyFrame:p}},function(t,e,n){"use strict"
;function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1240),o=r(i),a=n(1241),s=r(a);t.exports={TransitionGroup:s.default,CSSTransitionGroup:o.default}},function(t,e,n){(function(r){var i;!function(){var o={};(function(t){function e(){e=function(){},Hs.Symbol||(Hs.Symbol=Ws)}function n(){e();var t=Hs.Symbol.iterator;t||(t=Hs.Symbol.iterator=Hs.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&qs(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return i(this)}}),
n=function(){}}function i(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return n(),t={next:t},t[Hs.Symbol.iterator]=function(){return this},t}function a(t){n();var e=t[Symbol.iterator];return e?e.call(t):i(t)}function s(t,e){if(e){for(var n=Hs,r=t.split("."),i=0;i<r.length-1;i++){var o=r[i];o in n||(n[o]={}),n=n[o]}r=r[r.length-1],i=n[r],o=e(i),o!=i&&null!=o&&qs(n,r,{configurable:!0,writable:!0,value:o})}}function u(t,e){var n=t.split("."),r=Vs
;n[0]in r||!r.execScript||r.execScript("var "+n[0]);for(var i;n.length&&(i=n.shift());)n.length||void 0===e?r=r[i]?r[i]:r[i]={}:r[i]=e}function c(t,e){function n(){}n.prototype=e.prototype,t.df=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.bf=function(t,n,r){return e.prototype[n].apply(t,Array.prototype.slice.call(arguments,2))}}function l(t){this.c=Math.exp(Math.log(.5)/t),this.b=this.a=0}function f(t,e,n){var r=Math.pow(t.c,e);n=n*(1-r)+r*t.a,isNaN(n)||(t.a=n,t.b+=e)}function h(t){
return t.a/(1-Math.pow(t.c,t.b))}function p(){this.b=new l(2),this.c=new l(5),this.a=0}function d(){}function g(){}function v(t,e,n,r){this.severity=t,this.category=e,this.code=n,this.data=Array.prototype.slice.call(arguments,3),this.handled=!1}function y(t){var e;t instanceof y?(m(this,t.fa),this.Aa=t.Aa,this.ja=t.ja,b(this,t.Oa),this.Y=t.Y,w(this,S(t.a)),this.va=t.va):t&&(e=String(t).match(Ys))?(m(this,e[1]||"",!0),this.Aa=_(e[2]||""),this.ja=_(e[3]||"",!0),b(this,e[4]),this.Y=_(e[5]||"",!0),
w(this,e[6]||"",!0),this.va=_(e[7]||"")):this.a=new T(null)}function m(t,e,n){t.fa=n?_(e,!0):e,t.fa&&(t.fa=t.fa.replace(/:$/,""))}function b(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.Oa=e}else t.Oa=null}function w(t,e,n){e instanceof T?t.a=e:(n||(e=x(e,$s)),t.a=new T(e))}function _(t,e){return t?e?decodeURI(t):decodeURIComponent(t):""}function x(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,O),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}
function O(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}function T(t){this.b=t||null}function S(t){var e=new T;if(e.b=t.b,t.a){var n,r={};for(n in t.a)r[n]=t.a[n].concat();e.a=r,e.c=t.c}return e}function E(){var t,e,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function j(t,e,n){var r=C();this.j=null==t.maxAttempts?r.maxAttempts:t.maxAttempts,this.f=null==t.baseDelay?r.baseDelay:t.baseDelay,this.i=null==t.fuzzFactor?r.fuzzFactor:t.fuzzFactor,
this.h=null==t.backoffFactor?r.backoffFactor:t.backoffFactor,this.a=0,this.b=this.f,this.c=e||!1,this.g=n||null,this.c&&(this.a=1)}function k(t){if(t.a>=t.j){if(!t.c)return Promise.reject();t.a=1,t.b=t.f}var e=new E;return t.a?(A(t,e.resolve,t.b*(1+(2*Math.random()-1)*t.i)),t.b*=t.h):e.resolve(),t.a++,e}function C(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0}}function A(t,e,n){if(t.g)if(t.g()||0==n)e();else{var r=Math.min(200,n);P(function(){A(this,e,n-r)
}.bind(t),r)}else P(e,n)}function P(e,n){t.setTimeout(e,n)}function M(t,e,n,r,i){var o,a=i in r;for(o in e){var s=i+"."+o,u=a?r[i]:n[o];(a||o in t)&&(void 0===e[o]?void 0===u||a?delete t[o]:t[o]=u:u.constructor==Object&&e[o]&&e[o].constructor==Object?(t[o]||(t[o]=u),M(t[o],e[o],u,r,s)):typeof e[o]==typeof u&&null!=e[o]&&e[o].constructor==u.constructor&&(t[o]=e[o]))}}function D(t){function e(t){switch(typeof t){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":
return t;default:if(!t)return t;if(0<=n.indexOf(t))return null;var r=t.constructor==Array;if(t.constructor!=Object&&!r)return null;n.push(t);var i,o=r?[]:{};for(i in t)o[i]=e(t[i]);return r&&(o.length=t.length),o}}var n=[];return e(t)}function I(t,e){return t.reduce(function(t,e,n){return e.catch(t.bind(null,n))}.bind(null,e),Promise.reject())}function N(t,e){return t.concat(e)}function R(){}function L(t){return null!=t}function U(t,e,n){return n.indexOf(t)==e}function F(t){this.f=!1,this.a=[],
this.b=[],this.c=[],this.g=t||null}function B(t,e,n){n=n||3;var r=Js[t];(!r||n>=r.je)&&(Js[t]={je:n,he:e})}function z(t,e){return{uris:t,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:e}}function q(t,e,n,r,i,o,a){if(t.f||a())return Promise.reject();var s=new y(n.uris[i]),u=s.fa;if(u||(u=location.protocol,u=u.slice(0,-1),m(s,u),n.uris[i]=s.toString()),!(u=(u=Js[u])?u.he:null))return Promise.reject(new v(2,1,1e3,s));var c=Date.now()
;return u(n.uris[i],n,e).then(function(t){void 0==t.timeMs&&(t.timeMs=Date.now()-c);var n=Date.now(),r=Promise.resolve();return this.c.forEach(function(n){r=r.then(function(){return Promise.resolve(n(e,t))}.bind(this))}.bind(this)),r=r.catch(function(t){var e=2;throw t instanceof v&&(e=t.severity),new v(e,1,1007,t)}),r.then(function(){return t.timeMs+=Date.now()-n,t.timeMs+=o,t})}.bind(t)).catch(function(t){if(t&&1==t.severity)return i=(i+1)%n.uris.length,
a()?Promise.reject():k(r).then(function(){return q(this,e,n,r,i,o,a)}.bind(this),function(){throw t});throw t}.bind(t))}function H(t,e){for(var n=[],r=0;r<t.length;++r){for(var i=!1,o=0;o<n.length&&!(i=e?e(t[r],n[o]):t[r]===n[o]);++o);i||n.push(t[r])}return n}function W(t,e,n){for(var r=0;r<t.length;++r)if(n(t[r],e))return r;return-1}function V(t,e){var n=t.indexOf(e);-1<n&&t.splice(n,1)}function Y(t,e){var n=0;return t.forEach(function(t){n+=e(t)?1:0}),n}function G(){this.a={}}function X(){
this.a=new G}function K(t,e,n,r){t.a&&(e=new J(e,n,r),t.a.push(n,e))}function $(t,e,n,r){K(t,e,n,function(t){this.ia(e,n),r(t)}.bind(t))}function Q(t){if(t.a){var e,n=t.a,r=[];for(e in n.a)r.push.apply(r,n.a[e]);for(n=0;n<r.length;++n)r[n].ia();t.a.a={}}}function J(t,e,n){this.target=t,this.type=e,this.a=n,this.target.addEventListener(e,n,!1)}function Z(e,n){var r,i=n||{};for(r in i)this[r]=i[r];this.defaultPrevented=this.cancelable=this.bubbles=!1,
this.timeStamp=t.performance&&t.performance.now?t.performance.now():Date.now(),this.type=e,this.isTrusted=!1,this.target=this.currentTarget=null,this.a=!1}function tt(t,e){if(0==e.length)return t;var n=e.map(function(t){return new y(t)});return t.map(function(t){return new y(t)}).map(function(t){return n.map(t.resolve.bind(t))}).reduce(N,[]).map(function(t){return t.toString()})}function et(t,e){return{keySystem:t,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,
audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:e||[],keyIds:[]}}function nt(t){return!t||0==Object.keys(t).length}function rt(t){return Object.keys(t).map(function(e){return t[e]})}function it(t,e){return Object.keys(t).every(function(n){return e(n,t[n])})}function ot(t,e){Object.keys(t).forEach(function(n){e(n,t[n])})}function at(t,e){var n=t;return e&&(n+='; codecs="'+e+'"'),n}function st(t){if(!t)return"";t=new Uint8Array(t),
239==t[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),t=escape(ft(t));try{return decodeURIComponent(t)}catch(t){throw new v(2,2,2004)}}function ut(t,e,n){if(!t)return"";if(!n&&0!=t.byteLength%2)throw new v(2,2,2004);if(t instanceof ArrayBuffer)var r=t;else n=new Uint8Array(t.byteLength),n.set(new Uint8Array(t)),r=n.buffer;t=Math.floor(t.byteLength/2),n=new Uint16Array(t),r=new DataView(r);for(var i=0;i<t;i++)n[i]=r.getUint16(2*i,e);return ft(n)}function ct(t){var e=new Uint8Array(t)
;if(239==e[0]&&187==e[1]&&191==e[2])return st(e);if(254==e[0]&&255==e[1])return ut(e.subarray(2),!1);if(255==e[0]&&254==e[1])return ut(e.subarray(2),!0);var n=function(t,e){return t.byteLength<=e||32<=t[e]&&126>=t[e]}.bind(null,e);if(0==e[0]&&0==e[2])return ut(t,!1);if(0==e[1]&&0==e[3])return ut(t,!0);if(n(0)&&n(1)&&n(2)&&n(3))return st(t);throw new v(2,2,2003)}function lt(t){t=encodeURIComponent(t),t=unescape(t);for(var e=new Uint8Array(t.length),n=0;n<t.length;++n)e[n]=t.charCodeAt(n)
;return e.buffer}function ft(t){for(var e="",n=0;n<t.length;n+=16e3)e+=String.fromCharCode.apply(null,t.subarray(n,n+16e3));return e}function ht(t){this.a=null,this.b=function(){this.a=null,t()}.bind(this)}function pt(t,e){t.cancel(),t.a=setTimeout(t.b,1e3*e)}function dt(t,e){t.cancel();var n=function(){this.b(),this.a=setTimeout(n,1e3*e)}.bind(t);t.a=setTimeout(n,1e3*e)}function gt(e,n){var r=void 0==n||n,i=t.btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_")
;return r?i:i.replace(/=*$/,"")}function vt(e){e=t.atob(e.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(e.length),r=0;r<e.length;++r)n[r]=e.charCodeAt(r);return n}function yt(e){for(var n=new Uint8Array(e.length/2),r=0;r<e.length;r+=2)n[r/2]=t.parseInt(e.substr(r,2),16);return n}function mt(t){for(var e="",n=0;n<t.length;++n){var r=t[n].toString(16);1==r.length&&(r="0"+r),e+=r}return e}function bt(t,e){if(!t&&!e)return!0;if(!t||!e||t.length!=e.length)return!1
;for(var n=0;n<t.length;++n)if(t[n]!=e[n])return!1;return!0}function wt(t){for(var e=0,n=0;n<arguments.length;++n)e+=arguments[n].length;e=new Uint8Array(e);var r=0;for(n=0;n<arguments.length;++n)e.set(arguments[n],r),r+=arguments[n].length;return e}function _t(t){this.s=t,this.l=this.j=this.u=null,this.L=!1,this.b=null,this.g=new X,this.a=[],this.m=[],this.i=new E,this.f=null,this.h=function(e){this.i.reject(e),t.onError(e)}.bind(this),this.A={},this.I=new ht(this.ke.bind(this)),
this.da=this.c=!1,this.K=[],this.ca=!1,this.w=new ht(this.ie.bind(this)),dt(this.w,1),this.i.catch(function(){})}function xt(t,e){if(!t.j)return $(t.g,e,"encrypted",function(){this.h(new v(2,6,6010))}.bind(t)),Promise.resolve();t.l=e,$(t.g,t.l,"play",t.Nd.bind(t));var n=t.l.setMediaKeys(t.j);n=n.catch(function(t){return Promise.reject(new v(2,6,6003,t.message))});var r=null
;return t.b.serverCertificate&&t.b.serverCertificate.length&&(r=t.j.setServerCertificate(t.b.serverCertificate).then(function(){}).catch(function(t){return Promise.reject(new v(2,6,6004,t.message))})),Promise.all([n,r]).then(function(){if(this.c)return Promise.reject();Tt(this),this.b.initData.length||this.m.length||K(this.g,this.l,"encrypted",this.Cd.bind(this))}.bind(t)).catch(function(t){return this.c?Promise.resolve():Promise.reject(t)}.bind(t))}function Ot(t,e){
return Promise.all(e.map(function(t){return Dt(this,t).then(function(t){if(t){for(var e=new E,n=0;n<this.a.length;n++)if(this.a[n].ga==t){this.a[n].na=e;break}return Promise.all([t.remove(),e])}}.bind(this))}.bind(t)))}function Tt(t){var e=t.b?t.b.initData:[];return e.forEach(function(t){It(this,t.initDataType,t.initData)}.bind(t)),t.m.forEach(function(t){Dt(this,t)}.bind(t)),e.length||t.m.length||t.i.resolve(),t.i}function St(t){return t.a.map(function(t){return t.ga.sessionId})}
function Et(e,n,r,i,o){var a=Ct(e),s=At(e,n);n.periods.forEach(function(e){e.variants.forEach(function(e){a&&(e.drmInfos=[a]),s&&(e.drmInfos=s),e.drmInfos.forEach(function(n){kt(this,n),t.cast&&t.cast.__platform__&&"com.microsoft.playready"==n.keySystem&&(n.keySystem="com.chromecast.playready");var a=i[n.keySystem];a||(a={audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:r?"required":"optional",sessionTypes:[r?"persistent-license":"temporary"],
label:n.keySystem,drmInfos:[]},i[n.keySystem]=a,o.push(n.keySystem)),a.drmInfos.push(n),n.distinctiveIdentifierRequired&&(a.distinctiveIdentifier="required"),n.persistentStateRequired&&(a.persistentState="required");var s=[];e.video&&s.push(e.video),e.audio&&s.push(e.audio),s.forEach(function(t){("video"==t.type?a.videoCapabilities:a.audioCapabilities).push({robustness:("video"==t.type?n.videoRobustness:n.audioRobustness)||"",contentType:at(t.mimeType,t.codecs)})}.bind(this))}.bind(this))
}.bind(this))}.bind(e))}function jt(t,e,n){if(1==n.length&&""==n[0])return Promise.reject(new v(2,6,6e3));var r=new E,i=r;return[!0,!1].forEach(function(t){n.forEach(function(n){var r=e[n];r.drmInfos.some(function(t){return!!t.licenseServerUri})==t&&(0==r.audioCapabilities.length&&delete r.audioCapabilities,0==r.videoCapabilities.length&&delete r.videoCapabilities,i=i.catch(function(){return this.c?Promise.reject():navigator.requestMediaKeySystemAccess(n,[r])}.bind(this)))}.bind(this))
}.bind(t)),i=i.catch(function(){return Promise.reject(new v(2,6,6001))}),i=i.then(function(t){if(this.c)return Promise.reject();var n=0<=navigator.userAgent.indexOf("Edge/"),r=t.getConfiguration();return this.u=(r.audioCapabilities||[]).concat(r.videoCapabilities||[]).map(function(t){return t.contentType}),n&&(this.u=null),n=e[t.keySystem],Pt(this,t.keySystem,n,n.drmInfos),this.b.licenseServerUri?t.createMediaKeys():Promise.reject(new v(2,6,6012))}.bind(t)).then(function(t){
if(this.c)return Promise.reject();this.j=t,this.L=!0}.bind(t)).catch(function(t){return this.c?Promise.resolve():(this.u=this.b=null,t instanceof v?Promise.reject(t):Promise.reject(new v(2,6,6002,t.message)))}.bind(t)),r.reject(),i}function kt(t,e){var n=e.keySystem;if(n){if(!e.licenseServerUri){var r=t.f.servers[n];r&&(e.licenseServerUri=r)}e.keyIds||(e.keyIds=[]),(n=t.f.advanced[n])&&(e.distinctiveIdentifierRequired||(e.distinctiveIdentifierRequired=n.distinctiveIdentifierRequired),
e.persistentStateRequired||(e.persistentStateRequired=n.persistentStateRequired),e.videoRobustness||(e.videoRobustness=n.videoRobustness),e.audioRobustness||(e.audioRobustness=n.audioRobustness),e.serverCertificate||(e.serverCertificate=n.serverCertificate))}}function Ct(e){if(nt(e.f.clearKeys))return null;var n,r=[],i=[];for(n in e.f.clearKeys){var o=e.f.clearKeys[n],a=yt(n);o=yt(o),a={kty:"oct",kid:gt(a,!1),k:gt(o,!1)},r.push(a),i.push(a.kid)}return e=JSON.stringify({keys:r}),
i=JSON.stringify({kids:i}),i=[{initData:new Uint8Array(lt(i)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+t.btoa(e),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:i,keyIds:[]}}function At(t,e){var n=t.f,r=Object.keys(n.servers);return!r.length||e.periods.some(function(t){return t.variants.some(function(t){return t.drmInfos.length})})?null:r.map(function(t){
return{keySystem:t,licenseServerUri:n.servers[t],distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]}})}function Pt(t,e,n,r){var i=[],o=[],a=[],s=[];Mt(r,i,o,a,s),t.b={keySystem:e,licenseServerUri:i[0],distinctiveIdentifierRequired:"required"==n.distinctiveIdentifier,persistentStateRequired:"required"==n.persistentState,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",
videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:o[0],initData:a,keyIds:s}}function Mt(t,e,n,r,i){function o(t,e){return!(!t.keyId||t.keyId!=e.keyId)||t.initDataType==e.initDataType&&bt(t.initData,e.initData)}t.forEach(function(t){if(-1==e.indexOf(t.licenseServerUri)&&e.push(t.licenseServerUri),t.serverCertificate&&-1==W(n,t.serverCertificate,bt)&&n.push(t.serverCertificate),t.initData&&t.initData.forEach(function(t){-1==W(r,t,o)&&r.push(t)}),
t.keyIds)for(var a=0;a<t.keyIds.length;++a)-1==i.indexOf(t.keyIds[a])&&i.push(t.keyIds[a])})}function Dt(t,e){try{var n=t.j.createSession("persistent-license")}catch(e){var r=new v(2,6,6005,e.message);return t.h(r),Promise.reject(r)}K(t.g,n,"message",t.Cc.bind(t)),K(t.g,n,"keystatuseschange",t.yc.bind(t));var i={initData:null,ga:n,loaded:!1,Sb:1/0,na:null};return t.a.push(i),n.load(e).then(function(t){if(!this.c){if(t)return i.loaded=!0,this.a.every(function(t){return t.loaded
})&&this.i.resolve(),n;this.a.splice(this.a.indexOf(i),1),this.h(new v(2,6,6013))}}.bind(t),function(t){this.c||(this.a.splice(this.a.indexOf(i),1),this.h(new v(2,6,6005,t.message)))}.bind(t))}function It(t,e,n){try{var r=t.da?t.j.createSession("persistent-license"):t.j.createSession()}catch(e){return void t.h(new v(2,6,6005,e.message))}K(t.g,r,"message",t.Cc.bind(t)),K(t.g,r,"keystatuseschange",t.yc.bind(t)),t.a.push({initData:n,ga:r,loaded:!1,Sb:1/0,na:null}),
r.generateRequest(e,n.buffer).catch(function(t){if(!this.c){for(var e=0;e<this.a.length;++e)if(this.a[e].ga==r){this.a.splice(e,1);break}this.h(new v(2,6,6006,t.message))}}.bind(t))}function Nt(t,e){for(var n,r=e.target,i=0;i<t.a.length;i++)if(t.a[i].ga==r){n=t.a[i];break}i=z([t.b.licenseServerUri],t.f.retryParameters),i.body=e.message,i.method="POST","com.microsoft.playready"!=t.b.keySystem&&"com.chromecast.playready"!=t.b.keySystem||Rt(i),t.s.Ya.request(2,i).then(function(t){
return this.c?Promise.reject():r.update(t.data).then(function(){this.s.onEvent(new Z("drmsessionupdate")),n&&(n.na&&n.na.resolve(),setTimeout(function(){n.loaded=!0,this.a.every(function(t){return t.loaded})&&this.i.resolve()}.bind(this),5e3))}.bind(this))}.bind(t),function(t){if(this.c)return Promise.resolve();t=new v(2,6,6007,t),this.h(t),n&&n.na&&n.na.reject(t)}.bind(t)).catch(function(t){if(this.c)return Promise.resolve();t=new v(2,6,6008,t.message),this.h(t),n&&n.na&&n.na.reject(t)
}.bind(t))}function Rt(t){var e=ut(t.body,!0,!0);if(-1==e.indexOf("PlayReadyKeyMessage"))t.headers["Content-Type"]="text/xml; charset=utf-8";else{e=(new DOMParser).parseFromString(e,"application/xml");for(var n=e.getElementsByTagName("HttpHeader"),r=0;r<n.length;++r)t.headers[n[r].querySelector("name").textContent]=n[r].querySelector("value").textContent;t.body=vt(e.querySelector("Challenge").textContent).buffer}}function Lt(){var t=[],e=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{
contentType:'video/webm; codecs="vp8"'}],n=[{videoCapabilities:e,persistentState:"required",sessionTypes:["persistent-license"]},{videoCapabilities:e}],r={};return"org.w3.clearkey com.widevine.alpha com.microsoft.playready com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" ").forEach(function(e){var i=navigator.requestMediaKeySystemAccess(e,n).then(function(t){var n=t.getConfiguration().sessionTypes;return n=!!n&&0<=n.indexOf("persistent-license"),
0<=navigator.userAgent.indexOf("Tizen 3")&&(n=!1),r[e]={persistentState:n},t.createMediaKeys()}).catch(function(){r[e]=null});t.push(i)}),Promise.all(t).then(function(){return r})}function Ut(t,e){var n=t.keySystem();return 0==e.drmInfos.length||e.drmInfos.some(function(t){return t.keySystem==n})}function Ft(t,e){if(!t.length)return e;if(!e.length)return t;for(var n=[],r=0;r<t.length;r++)for(var i=0;i<e.length;i++)if(t[r].keySystem==e[i].keySystem){var o=t[r];i=e[i];var a=[]
;a=a.concat(o.initData||[]),a=a.concat(i.initData||[]);var s=[];s=s.concat(o.keyIds),s=s.concat(i.keyIds),n.push({keySystem:o.keySystem,licenseServerUri:o.licenseServerUri||i.licenseServerUri,distinctiveIdentifierRequired:o.distinctiveIdentifierRequired||i.distinctiveIdentifierRequired,persistentStateRequired:o.persistentStateRequired||i.persistentStateRequired,videoRobustness:o.videoRobustness||i.videoRobustness,audioRobustness:o.audioRobustness||i.audioRobustness,
serverCertificate:o.serverCertificate||i.serverCertificate,initData:a,keyIds:s});break}return n}function Bt(t){return!t||1==t.length&&1e-6>t.end(0)-t.start(0)?null:t.length?t.end(t.length-1):null}function zt(t,e){return!(!t||!t.length||1==t.length&&1e-6>t.end(0)-t.start(0))&&(e>=t.start(0)&&e<=t.end(t.length-1))}function qt(t,e){if(!t||!t.length||1==t.length&&1e-6>t.end(0)-t.start(0))return 0;for(var n=0,r=t.length-1;0<=r&&t.end(r)>e;--r)n+=t.end(r)-Math.max(t.start(r),e);return n}
function Ht(t){if(!t)return[];for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e}function Wt(){this.a=new muxjs.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.b=null,this.c=[],this.a.on("data",this.g.bind(this)),this.a.on("done",this.f.bind(this))}function Vt(t,e){var n=e.replace("mp2t","mp4");"audio"==t&&(n=n.replace("video","audio"));var r=/avc1\.(66|77|100)\.(\d+)/.exec(n);if(r){var i="avc1.",o=r[1],a=Number(r[2])
;i=("66"==o?i+"4200":"77"==o?i+"4d00":i+"6400")+(a>>4).toString(16),i+=(15&a).toString(16),n=n.replace(r[0],i)}return n}function Yt(t,e){t.b=new E,t.c=[];var n=new Uint8Array(e);return t.a.push(n),t.a.flush(),t.b}function Gt(t){this.c=null,this.f=t,this.i=this.g=0,this.h=1/0,this.b=this.a=null}function Xt(t,e,n,r){return Promise.resolve().then(function(){if(this.c&&this.f)if(null==n||null==r)this.c.parseInit(new Uint8Array(e));else{var t={periodStart:this.g,segmentStart:this.g+n,
segmentEnd:this.g+r};t=this.c.parseMedia(new Uint8Array(e),t).filter(function(t){return t.startTime>=this.i&&t.startTime<this.h}.bind(this)),this.f.append(t),null==this.a&&(this.a=Math.max(n,this.i)),this.b=Math.min(r,this.h)}}.bind(t))}function Kt(t,e,n){this.g=t,this.f=e,this.l=n,this.b={},this.a=null,this.c={},this.i=new X,this.j=!1,this.h={}}function $t(){var t={}
;return'video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="av1",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").forEach(function(e){
t[e]=!!eu[e]||MediaSource.isTypeSupported(e);var n=e.split(";")[0];t[n]=t[n]||t[e]}),t}function Qt(t,e){t.a||(t.a=new Gt(t.l)),t.a.c=new eu[e]}function Jt(t,e){if("text"==e)var n=t.a.a;else n=Zt(t,e),n=!n||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function Zt(t,e){try{return t.b[e].buffered}catch(t){return null}}function te(t,e,n,r,i){return"text"==e?Xt(t.a,n,r,i):t.h[e]?Yt(t.h[e],n).then(function(t){
return re(this,e,this.Rc.bind(this,e,t.buffer))}.bind(t)):re(t,e,t.Rc.bind(t,e,n))}function ee(t,e){return"text"==e?t.a?t.a.remove(0,1/0):Promise.resolve():re(t,e,t.Sc.bind(t,e,0,t.f.duration))}function ne(t,e,n,r,i){return"text"==e?(t.a.g=n,t=t.a,t.i=r,t.h=i,Promise.resolve()):Promise.all([re(t,e,t.Yc.bind(t,e)),re(t,e,t.Be.bind(t,e,n)),re(t,e,t.ye.bind(t,e,r,i))])}function re(t,e,n){if(t.j)return Promise.reject();if(n={start:n,p:new E},t.c[e].push(n),1==t.c[e].length)try{n.start()}catch(r){
"QuotaExceededError"==r.name?n.p.reject(new v(2,3,3017,e)):n.p.reject(new v(2,3,3015,r)),oe(t,e)}return n.p}function ie(t,e){if(t.j)return Promise.reject();var n,r=[];for(n in t.b){var i=new E,o={start:function(t){t.resolve()}.bind(null,i),p:i};t.c[n].push(o),r.push(i),1==t.c[n].length&&o.start()}return Promise.all(r).then(function(){var t;try{e()}catch(t){var n=Promise.reject(new v(2,3,3015,t))}for(t in this.b)oe(this,t);return n}.bind(t),function(){return Promise.reject()}.bind(t))}
function oe(t,e){t.c[e].shift();var n=t.c[e][0];if(n)try{n.start()}catch(r){n.p.reject(new v(2,3,3015,r)),oe(t,e)}}function ae(t,e,n){return n==e||t>=nu&&n==e.split("-")[0]||t>=ru&&n.split("-")[0]==e.split("-")[0]}function se(t){t=t.toLowerCase().split("-");var e=iu[t[0]];return e&&(t[0]=e),t.join("-")}function ue(t,e,n){var r=t.video
;return!(r&&(r.width<e.minWidth||r.width>e.maxWidth||r.width>n.width||r.height<e.minHeight||r.height>e.maxHeight||r.height>n.height||r.width*r.height<e.minPixels||r.width*r.height>e.maxPixels)||t.bandwidth<e.minBandwidth||t.bandwidth>e.maxBandwidth)}function ce(t,e,n){var r=!1;return t.variants.forEach(function(t){var i=t.allowedByApplication;t.allowedByApplication=ue(t,e,n),i!=t.allowedByApplication&&(r=!0)}),r}function le(t,e,n,r){r.variants=r.variants.filter(function(r){
return!(t&&t.L&&!Ut(t,r))&&(fe(r.audio,t,e)&&fe(r.video,t,n))}),r.textStreams=r.textStreams.filter(function(t){return!!eu[at(t.mimeType,t.codecs)]})}function fe(e,n,r){if(!e)return!0;var i=null;n&&n.L&&(i=n.u),n=at(e.mimeType,e.codecs);var o,a=at(e.mimeType,e.codecs),s=e.mimeType;for(o in tu){var u=e[o],c=tu[o];u&&(s+="; "+c+'="'+u+'"')}
return!(!(eu[a]||MediaSource.isTypeSupported(s)||t.muxjs&&"mp2t"==a.split(";")[0].split("/")[1]&&MediaSource.isTypeSupported(Vt(e.type,a)))||i&&e.encrypted&&0>i.indexOf(n)||r&&(e.mimeType!=r.mimeType||e.codecs.split(".")[0]!=r.codecs.split(".")[0]))}function he(t){var e=t.audio,n=t.video,r=e?e.codecs:null,i=n?n.codecs:null,o=[];i&&o.push(i),r&&o.push(r);var a=[];n&&a.push(n.mimeType),e&&a.push(e.mimeType),a=a[0]||null;var s=[];e&&s.push(e.kind),n&&s.push(n.kind),s=s[0]||null;var u=[]
;return e&&u.push.apply(u,e.roles),n&&u.push.apply(u,n.roles),u=H(u),t={id:t.id,active:!1,type:"variant",bandwidth:t.bandwidth,language:t.language,label:null,kind:s,width:null,height:null,frameRate:null,mimeType:a,codecs:o.join(", "),audioCodec:r,videoCodec:i,primary:t.primary,roles:u,videoId:null,audioId:null,channelsCount:null,audioBandwidth:null,videoBandwidth:null},n&&(t.videoId=n.id,t.width=n.width||null,t.height=n.height||null,t.frameRate=n.frameRate||null,
t.videoBandwidth=n.bandwidth||null),e&&(t.audioId=e.id,t.channelsCount=e.channelsCount,t.audioBandwidth=e.bandwidth||null,t.label=e.label),t}function pe(t){return{id:t.id,active:!1,type:"text",bandwidth:0,language:t.language,label:t.label,kind:t.kind||null,width:null,height:null,frameRate:null,mimeType:t.mimeType,codecs:t.codecs||null,audioCodec:null,videoCodec:null,primary:t.primary,roles:t.roles,videoId:null,audioId:null,channelsCount:null,audioBandwidth:null,videoBandwidth:null}}
function de(t){var e=[],n=we(t.variants);return t=t.textStreams,n.forEach(function(t){e.push(he(t))}),t.forEach(function(t){e.push(pe(t))}),e}function ge(t,e,n){return we(t.variants).map(function(t){var r=he(t);return t.video&&t.audio?r.active=n==t.video.id&&e==t.audio.id:t.video?r.active=n==t.video.id:t.audio&&(r.active=e==t.audio.id),r})}function ve(t,e){return t.textStreams.map(function(t){var n=pe(t);return n.active=e==t.id,n})}function ye(t,e){
for(var n=0;n<t.variants.length;n++)if(t.variants[n].id==e.id)return t.variants[n];return null}function me(t,e){for(var n=0;n<t.textStreams.length;n++)if(t.textStreams[n].id==e.id)return t.textStreams[n];return null}function be(t){return t.allowedByApplication&&t.allowedByKeySystem}function we(t){return t.filter(function(t){return be(t)})}function _e(t,e,n,r){var i=we(t),o=i;t=i.filter(function(t){return t.primary}),t.length&&(o=t);var a=o.length?o[0].language:"";if(o=o.filter(function(t){
return t.language==a}),e){var s=se(e);[ru,nu,0].forEach(function(t){var e=!1;i.forEach(function(n){s=se(s);var i=se(n.language);ae(t,s,i)&&(e?o.push(n):(o=[n],e=!0),r&&(r.audio=!0))})})}return n&&(e=Oe(o,n),e.length)?e:(e=o.map(function(t){return(t.audio?t.audio.roles:[]).concat(t.video?t.video.roles:[])}).reduce(N,[]),e.length?Oe(o,e[0]):o)}function xe(t,e,n,r){var i=t,o=t.filter(function(t){return t.primary});o.length&&(i=o);var a=i.length?i[0].language:"";if(i=i.filter(function(t){
return t.language==a}),e){var s=se(e);[ru,nu,0].forEach(function(e){var n=!1;t.forEach(function(t){var o=se(t.language);ae(e,s,o)&&(n?i.push(t):(i=[t],n=!0),r&&(r.text=!0))})})}return e=n?Te(i,n):i.filter(function(t){return 0==t.roles.length}),e.length?e:(e=i.map(function(t){return t.roles}).reduce(N,[]),e.length?Te(i,e[0]):i)}function Oe(t,e){return t.filter(function(t){return t.audio&&0<=t.audio.roles.indexOf(e)||t.video&&0<=t.video.roles.indexOf(e)})}function Te(t,e){
return t.filter(function(t){return 0<=t.roles.indexOf(e)})}function Se(t,e,n){for(var r=0;r<n.length;r++)if(n[r].audio==t&&n[r].video==e)return n[r];return null}function Ee(t,e,n){function r(t,e){return null==t?null==e:e.id==t}for(var i=0;i<n.length;i++)if(r(t,n[i].audio)&&r(e,n[i].video))return n[i];return null}function je(t,e){for(var n=t.periods.length-1;0<n;--n)if(e+Zs>=t.periods[n].startTime)return n;return 0}function ke(t,e){for(var n=0;n<t.periods.length;++n){var r=t.periods[n]
;if("text"==e.type){for(var i=0;i<r.textStreams.length;++i)if(r.textStreams[i]==e)return n}else for(i=0;i<r.variants.length;++i){var o=r.variants[i];if(o.audio==e||o.video==e||o.video&&o.video.trickModeVideo==e)return n}}return-1}function Ce(){this.h=null,this.c=!1,this.b=new p,this.g=[],this.i=!1,this.a=this.f=null}function Ae(t,e){return e.filter(function(e){return ue(e,t,{width:1/0,height:1/0})}).sort(function(t,e){return t.bandwidth-e.bandwidth})}function Pe(t){
return JSON.stringify(t,function(t,e){if("function"!=typeof e){if(e instanceof Event||e instanceof Z){var n,r={};for(n in e){var i=e[n];i&&"object"==typeof i?"detail"==n&&(r[n]=i):n in Event||(r[n]=i)}return r}if(e instanceof TimeRanges)for(r={__type__:"TimeRanges",length:e.length,start:[],end:[]},n=0;n<e.length;++n)r.start.push(e.start(n)),r.end.push(e.end(n));else r="number"==typeof e?isNaN(e)?"NaN":isFinite(e)?e:0>e?"-Infinity":"Infinity":e;return r}})}function Me(t){
return JSON.parse(t,function(t,e){return"NaN"==e?NaN:"-Infinity"==e?-1/0:"Infinity"==e?1/0:e&&"object"==typeof e&&"TimeRanges"==e.__type__?De(e):e})}function De(t){return{length:t.length,start:function(e){return t.start[e]},end:function(e){return t.end[e]}}}function Ie(t,e,n,r,i,o){this.K=t,this.g=e,this.L=n,this.j=!1,this.A=r,this.I=i,this.u=o,this.b=this.h=!1,this.w="",this.i=null,this.l=this.wc.bind(this),this.m=this.Jd.bind(this),this.a={video:{},player:{}},this.s=0,this.c={},this.f=null}
function Ne(t){var e=yu;e.removeUpdateListener(t.l),e.removeMessageListener("urn:x-cast:com.google.shaka.v2",t.m)}function Re(t){for(var e in t.c){var n=t.c[e];delete t.c[e],n.reject(new v(1,7,7e3))}}function Le(t){t=Pe(t),yu.sendMessage("urn:x-cast:com.google.shaka.v2",t,function(){},g)}function Ue(){this.Bb=new G,this.jb=this}function Fe(t,e,n){Ue.call(this),this.c=t,this.b=e,this.i=this.g=this.f=this.j=this.h=null,
this.a=new Ie(n,this.Ge.bind(this),this.He.bind(this),this.Ie.bind(this),this.Je.bind(this),this.oc.bind(this)),Be(this)}function Be(t){t.a.init(),t.i=new X,ou.forEach(function(t){K(this.i,this.c,t,this.Ue.bind(this))}.bind(t)),cu.forEach(function(t){K(this.i,this.b,t,this.ge.bind(this))}.bind(t)),t.h={};for(var e in t.c)Object.defineProperty(t.h,e,{configurable:!1,enumerable:!0,get:t.Te.bind(t,e),set:t.Ve.bind(t,e)});t.j={};for(e in t.b)Object.defineProperty(t.j,e,{configurable:!1,
enumerable:!0,get:t.fe.bind(t,e)});t.f=new Ue,t.f.jb=t.h,t.g=new Ue,t.g.jb=t.j}function ze(t,e,n,r){Ue.call(this),this.a=t,this.b=e,this.s={video:t,player:e},this.u=n||function(){},this.w=r||function(t){return t},this.m=!1,this.g=!0,this.f=0,this.l=!1,this.i=!0,this.j=this.h=this.c=null,qe(this)}function qe(e){var n=cast.receiver.CastReceiverManager.getInstance();n.onSenderConnected=e.Bc.bind(e),n.onSenderDisconnected=e.Bc.bind(e),n.onSystemVolumeChanged=e.fd.bind(e),
e.h=n.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.h.onMessage=e.Ed.bind(e),e.c=n.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.c.onMessage=e.Td.bind(e),n.start(),ou.forEach(function(t){this.a.addEventListener(t,this.Fc.bind(this,"video"))}.bind(e)),cu.forEach(function(t){this.b.addEventListener(t,this.Fc.bind(this,"player"))}.bind(e)),
cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.b.ac(3840,2160):e.b.ac(1920,1080),e.a.addEventListener("loadeddata",function(){this.l=!0}.bind(e)),e.b.addEventListener("loading",function(){this.g=!1,He(this)}.bind(e)),e.a.addEventListener("playing",function(){this.g=!1,He(this)}.bind(e)),e.a.addEventListener("pause",function(){He(this)}.bind(e)),e.b.addEventListener("unloading",function(){this.g=!0,He(this)}.bind(e)),
e.a.addEventListener("ended",function(){t.setTimeout(function(){this.a&&this.a.ended&&(this.g=!0,He(this))}.bind(this),5e3)}.bind(e))}function He(t){Promise.resolve().then(function(){this.dispatchEvent(new Z("caststatuschanged")),Ve(this)||Xe(this,0)}.bind(t))}function We(t,e,n){for(var r in e.player)t.b[r](e.player[r]);t.u(n),n=Promise.resolve();var i=t.a.autoplay;e.manifest&&(t.a.autoplay=!1,n=t.b.load(e.manifest,e.startTime),n.catch(function(t){this.b.dispatchEvent(new Z("error",{detail:t}))
}.bind(t))),n.then(function(){for(var t in e.video){var n=e.video[t];this.a[t]=n}for(t in e.playerAfterLoad)n=e.playerAfterLoad[t],this.b[t](n);this.a.autoplay=i,e.manifest&&(this.a.play(),Xe(this,0))}.bind(t))}function Ve(t){return!(!t.i||!t.a.duration&&!t.b.P())&&(Ye(t),t.i=!1,!0)}function Ye(t){Xe(t,0,{contentId:t.b.Ib(),streamType:t.b.P()?"LIVE":"BUFFERED",duration:t.a.duration,contentType:""})}function Ge(t,e,n,r){t.m&&(t=Pe(e),r?n.getCastChannel(r).send(t):n.broadcast(t))}
function Xe(t,e,n){var r=t.a.playbackRate,i=mu;i=t.g?i.IDLE:t.b.sc()?i.Tc:t.a.paused?i.Vc:i.Wc,r={mediaSessionId:0,playbackRate:r,playerState:i,currentTime:t.a.currentTime,supportedMediaCommands:15,volume:{level:t.a.volume,muted:t.a.muted}},n&&(r.media=n),Ge(t,{requestId:e,type:"MEDIA_STATUS",status:[r]},t.h)}function Ke(t,e){var n=$e(t,e);return 1!=n.length?null:n[0]}function $e(t,e){return Array.prototype.filter.call(t.childNodes,function(t){return t instanceof Element&&t.tagName==e})}
function Qe(t){var e=t.firstChild;return e&&e.nodeType==Node.TEXT_NODE?t.textContent.trim():null}function Je(t,e,n,r){var i=null;return t=t.getAttribute(e),null!=t&&(i=n(t)),null==i?void 0!=r?r:null:i}function Ze(t){return t?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),t=Date.parse(t),isNaN(t)?null:Math.floor(t/1e3)):null}function tn(t){
return t&&(t=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(t))?(t=31536e3*Number(t[1]||null)+2592e3*Number(t[2]||null)+86400*Number(t[3]||null)+3600*Number(t[4]||null)+60*Number(t[5]||null)+Number(t[6]||null),isFinite(t)?t:null):null}function en(t){var e=/([0-9]+)-([0-9]+)/.exec(t);return e?(t=Number(e[1]),isFinite(t)?(e=Number(e[2]),isFinite(e)?{start:t,end:e}:null):null):null}function nn(t){return t=Number(t),0==t%1?t:null}function rn(t){
return t=Number(t),0==t%1&&0<t?t:null}function on(t){return t=Number(t),0==t%1&&0<=t?t:null}function an(t){var e;return t=(e=t.match(/^(\d+)\/(\d+)$/))?Number(e[1]/e[2]):Number(t),isNaN(t)?null:t}function sn(t,e,n){t=ln(t);var r=null,i=[],o=[],a=t.map(function(t){return t.keyId}).filter(L);if(a.length&&1<a.filter(U).length)throw new v(2,4,4010);n||(o=t.filter(function(t){return"urn:mpeg:dash:mp4protection:2011"!=t.Lc||(r=t.init||r,!1)}),o.length&&(i=cn(r,e,o),0==i.length&&(i=[et("",r)]))),
!t.length||!n&&o.length||(i=rt(bu).map(function(t){return et(t,r)}));var s=a[0]||null;return s&&i.forEach(function(t){t.initData.forEach(function(t){t.keyId=s})}),{kc:s,cf:r,drmInfos:i,nc:!0}}function un(t,e,n,r){var i=sn(t,e,r);if(n.nc)t=1==n.drmInfos.length&&!n.drmInfos[0].keySystem,e=0==i.drmInfos.length,(0==n.drmInfos.length||t&&!e)&&(n.drmInfos=i.drmInfos),n.nc=!1;else if(0<i.drmInfos.length&&(n.drmInfos=n.drmInfos.filter(function(t){return i.drmInfos.some(function(e){
return e.keySystem==t.keySystem})}),0==n.drmInfos.length))throw new v(2,4,4008);return i.kc||n.kc}function cn(t,e,n){return n.map(function(n){var r=bu[n.Lc];return r?[et(r,n.init||t)]:e(n.node)||[]}).reduce(N,[])}function ln(t){return t.map(function(t){var e=t.getAttribute("schemeIdUri"),n=t.getAttribute("cenc:default_KID"),r=$e(t,"cenc:pssh").map(Qe);if(!e)return null;if(e=e.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase(),0<=n.indexOf(" ")))throw new v(2,4,4009);var i=[];try{
i=r.map(function(t){return{initDataType:"cenc",initData:vt(t),keyId:null}})}catch(t){throw new v(2,4,4007)}return{node:t,Lc:e,keyId:n,init:0<i.length?i:null}}).filter(L)}function fn(e,n,r,i,o){null!=o&&(o=Math.round(o));var a={RepresentationID:n,Number:r,Bandwidth:i,Time:o};return e.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)d)?\$/g,function(e,n,r){if("$$"==e)return"$";var i=a[n];return null==i?e:("RepresentationID"==n&&r&&(r=void 0),e=i.toString(),r=t.parseInt(r,10)||1,
Array(Math.max(0,r-e.length)+1).join("0")+e)})}function hn(t,e){var n=pn(t,e,"timescale"),r=1;n&&(r=rn(n)||1),n=pn(t,e,"duration"),(n=rn(n||""))&&(n/=r);var i=pn(t,e,"startNumber"),o=Number(pn(t,e,"presentationTimeOffset"))||0,a=on(i||"");null!=i&&null!=a||(a=1);var s=dn(t,e,"SegmentTimeline");if(i=null,s){i=r;var u=t.M.duration||1/0;s=$e(s,"S");for(var c=[],l=0,f=0;f<s.length;++f){var h=s[f],p=Je(h,"t",on),d=Je(h,"d",on);if(h=Je(h,"r",nn),null!=p&&(p-=o),!d)break;if(p=null!=p?p:l,
0>(h=h||0))if(f+1<s.length){if(null==(h=Je(s[f+1],"t",on)))break;if(p>=h)break;h=Math.ceil((h-p)/d)-1}else{if(1/0==u)break;if(p/i>=u)break;h=Math.ceil((u*i-p)/d)-1}0<c.length&&p!=l&&(c[c.length-1].end=p/i);for(var g=0;g<=h;++g)l=p+d,c.push({start:p/i,end:l/i,Re:p}),p=l}i=c}return{timescale:r,R:n,za:a,aa:o/r||0,gc:o,H:i}}function pn(t,e,n){return[e(t.v),e(t.T),e(t.Z)].filter(L).map(function(t){return t.getAttribute(n)}).reduce(function(t,e){return t||e})}function dn(t,e,n){
return[e(t.v),e(t.T),e(t.Z)].filter(L).map(function(t){return Ke(t,n)}).reduce(function(t,e){return t||e})}function gn(t,e){var n=new DOMParser;try{var r=st(t),i=n.parseFromString(r,"text/xml")}catch(t){}if(i&&i.documentElement.tagName==e)var o=i.documentElement;return o&&0<o.getElementsByTagName("parsererror").length?null:o}function vn(t,e,n,r,i,o){for(var a=t.getAttribute("xlink:href"),s=t.getAttribute("xlink:actuate")||"onRequest",u=0;u<t.attributes.length;u++){var c=t.attributes[u].nodeName
;-1!=c.indexOf("xlink:")&&(t.removeAttribute(c),--u)}if(5<=o)return Promise.reject(new v(2,4,4028));if("onLoad"!=s)return Promise.reject(new v(2,4,4027));var l=tt([r],[a]);return i.request(0,z(l,e)).then(function(r){if(!(r=gn(r.data,t.tagName)))return Promise.reject(new v(2,4,4001,a));for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(;r.childNodes.length;){var s=r.childNodes[0];r.removeChild(s),t.appendChild(s)}for(s=0;s<r.attributes.length;s++){
var u=r.attributes[s].nodeName,c=r.getAttribute(u);t.setAttribute(u,c)}return yn(t,e,n,l[0],i,o+1)}.bind(t))}function yn(t,e,n,r,i,o){if(o=o||0,t.getAttribute("xlink:href")){var a=vn(t,e,n,r,i,o);return n&&(a=a.catch(function(){return yn(t,e,n,r,i,o)})),a}for(a=0;a<t.childNodes.length;a++){var s=t.childNodes[a];s instanceof Element&&"urn:mpeg:dash:resolve-to-zero:2013"==s.getAttribute("xlink:href")&&(t.removeChild(s),--a)}var u=[];for(a=0;a<t.childNodes.length;a++)s=t.childNodes[a],
s.nodeType==Node.ELEMENT_NODE&&(s=yn(s,e,n,r,i,o),u.push(s));return Promise.all(u).then(function(){return t})}function mn(t,e,n){this.a=t,this.O=e,this.D=n}function bn(t,e,n,r,i,o){this.position=t,this.startTime=e,this.endTime=n,this.a=r,this.O=i,this.D=o}function wn(t,e){this.G=t,this.b=e==wu,this.a=0}function _n(){throw new v(2,3,3e3)}function xn(){this.c=[],this.b=[],this.a=!1}function On(t){for(;t.o.ea()&&!t.la.a;)t.la.xb(t.start,t.o,t.Dc)}function Tn(t){
for(var e=t.o.C();0<e&&!t.la.a;--e)t.la.xb(t.start,t.o,t.Dc)}function Sn(t){return function(e){t(e.o.Pa(e.o.G.byteLength-e.o.U()))}}function En(t){for(var e=0,n=0;n<t.length;n++)e=e<<8|t.charCodeAt(n);return e}function jn(t,e,n,r){var i,o=(new xn).W("sidx",function(t){i=kn(e,r,n,t)});if(t&&o.parse(t),i)return i;throw new v(2,3,3004)}function kn(t,e,n,r){var i=[];r.o.F(4);var o=r.o.C();if(0==o)throw new v(2,3,3005);if(0==r.version)var a=r.o.C(),s=r.o.C();else a=r.o.Qa(),s=r.o.Qa();r.o.F(2)
;var u=r.o.ab();for(t=t+r.size+s,s=0;s<u;s++){var c=r.o.C(),l=(2147483648&c)>>>31;c&=2147483647;var f=r.o.C();if(r.o.F(4),1==l)throw new v(2,3,3006);i.push(new bn(i.length,a/o-e,(a+f)/o-e,function(){return n},t,t+c-1)),a+=f,t+=c}return r.la.stop(),i}function Cn(t){this.a=t}function An(t,e){for(;t.a.length;){var n=t.a[t.a.length-1];if(!(n.startTime>=e))break;t.a.pop()}for(;t.a.length&&(n=t.a[0],0>=n.endTime);)t.a.shift();0!=t.a.length&&(n=t.a[0],
n.startTime<Zs&&(t.a[0]=new bn(n.position,0,n.endTime,n.a,n.O,n.D)),n=t.a[t.a.length-1],t.a[t.a.length-1]=new bn(n.position,n.startTime,e,n.a,n.O,n.D))}function Pn(t){this.b=t,this.a=new wn(t,0),_u||(_u=[new Uint8Array([255]),new Uint8Array([127,255]),new Uint8Array([63,255,255]),new Uint8Array([31,255,255,255]),new Uint8Array([15,255,255,255,255]),new Uint8Array([7,255,255,255,255,255]),new Uint8Array([3,255,255,255,255,255,255]),new Uint8Array([1,255,255,255,255,255,255,255])])}function Mn(t){
var e=Dn(t);if(7<e.length)throw new v(2,3,3002);for(var n=0,r=0;r<e.length;r++)n=256*n+e[r];e=n,n=Dn(t);t:{for(r=0;r<_u.length;r++)if(bt(n,_u[r])){r=!0;break t}r=!1}if(r)n=t.b.byteLength-t.a.U();else{if(8==n.length&&224&n[1])throw new v(2,3,3001);r=n[0]&(1<<8-n.length)-1;for(var i=1;i<n.length;i++)r=256*r+n[i];n=r}return n=t.a.U()+n<=t.b.byteLength?n:t.b.byteLength-t.a.U(),r=new DataView(t.b.buffer,t.b.byteOffset+t.a.U(),n),t.a.F(n),new In(e,r)}function Dn(t){var e,n=t.a.$()
;for(e=1;8>=e&&!(n&1<<8-e);e++);if(8<e)throw new v(2,3,3002);var r=new Uint8Array(e);for(r[0]=n,n=1;n<e;n++)r[n]=t.a.$();return r}function In(t,e){this.id=t,this.a=e}function Nn(t){if(8<t.a.byteLength)throw new v(2,3,3002);if(8==t.a.byteLength&&224&t.a.getUint8(0))throw new v(2,3,3001);for(var e=0,n=0;n<t.a.byteLength;n++){e=256*e+t.a.getUint8(n)}return e}function Rn(){}function Ln(t,e,n,r,i,o){function a(){return i}var s=[];t=new Pn(t.a);for(var u=null,c=null;t.ea();){var l=Mn(t);if(187==l.id){
var f=Un(l);f&&(l=n*f.Se,f=e+f.ne,null!=u&&s.push(new bn(s.length,u-o,l-o,a,c,f-1)),u=l,c=f)}}return null!=u&&s.push(new bn(s.length,u-o,r-o,a,c,null)),s}function Un(t){var e=new Pn(t.a);if(t=Mn(e),179!=t.id)throw new v(2,3,3013);if(t=Nn(t),e=Mn(e),183!=e.id)throw new v(2,3,3012);e=new Pn(e.a);for(var n=0;e.ea();){var r=Mn(e);if(241==r.id){n=Nn(r);break}}return{Se:t,ne:n}}function Fn(t,e){var n=dn(t,e,"Initialization");if(!n)return null;var r=t.v.ba,i=n.getAttribute("sourceURL")
;i&&(r=tt(t.v.ba,[i])),i=0;var o=null;return(n=Je(n,"range",en))&&(i=n.start,o=n.end),new mn(function(){return r},i,o)}function Bn(t,e){var n=Number(pn(t,qn,"presentationTimeOffset"))||0,r=pn(t,qn,"timescale"),i=1;r&&(i=rn(r)||1),n=n/i||0,r=Fn(t,qn);var o=t.v.contentType;if(i=t.v.mimeType.split("/")[1],"text"!=o&&"mp4"!=i&&"webm"!=i)throw new v(2,4,4006);if("webm"==i&&!r)throw new v(2,4,4005);o=dn(t,qn,"RepresentationIndex");var a=pn(t,qn,"indexRange"),s=t.v.ba;if(a=en(a||""),o){
var u=o.getAttribute("sourceURL");u&&(s=tt(t.v.ba,[u])),a=Je(o,"range",en,a)}if(!a)throw new v(2,4,4002);return i=zn(t,e,r,s,a.start,a.end,i,n),{createSegmentIndex:i.createSegmentIndex,findSegmentPosition:i.findSegmentPosition,getSegmentReference:i.getSegmentReference,initSegmentReference:r,aa:n}}function zn(t,e,n,r,i,o,a,s){var u=t.presentationTimeline,c=!t.Ea||!t.M.Lb,l=t.M.index,f=t.M.duration,h=e,p=null;return{createSegmentIndex:function(){var t=[h(r,i,o),"webm"==a?h(n.a(),n.O,n.D):null]
;return h=null,Promise.all(t).then(function(t){var e=t[0];t=t[1]||null,e="mp4"==a?jn(e,i,r,s):(new Rn).parse(e,t,r,s),u.Za(e,0==l),p=new Cn(e),c&&An(p,f)})},findSegmentPosition:function(t){return p.find(t)},getSegmentReference:function(t){return p.get(t)}}}function qn(t){return t.bb}function Hn(t,e){var n=Fn(t,Wn),r=Yn(t),i=hn(t,Wn),o=i.za;0==o&&(o=1);var a=0;if(i.R?a=i.R*(o-1):i.H&&0<i.H.length&&(a=i.H[0].start),r={R:i.R,startTime:a,za:o,aa:i.aa,H:i.H,La:r},
!r.R&&!r.H&&1<r.La.length)throw new v(2,4,4002);if(!r.R&&!t.M.duration&&!r.H&&1==r.La.length)throw new v(2,4,4002);if(r.H&&0==r.H.length)throw new v(2,4,4002);return o=i=null,t.Z.id&&t.v.id&&(o=t.Z.id+","+t.v.id,i=e[o]),a=Vn(t.M.duration,r.za,t.v.ba,r),i?(i.Pb(a),o=t.presentationTimeline.Ja(),i.Fb(o-t.M.start)):(t.presentationTimeline.Za(a,0==t.M.index),i=new Cn(a),o&&t.Ea&&(e[o]=i)),t.Ea&&t.M.Lb||An(i,t.M.duration),{createSegmentIndex:Promise.resolve.bind(Promise),
findSegmentPosition:i.find.bind(i),getSegmentReference:i.get.bind(i),initSegmentReference:n,aa:r.aa}}function Wn(t){return t.qa}function Vn(t,e,n,r){var i=r.La.length;r.H&&r.H.length!=r.La.length&&(i=Math.min(r.H.length,r.La.length));for(var o=[],a=r.startTime,s=0;s<i;s++){var u=r.La[s],c=tt(n,[u.zd]),l=null!=r.R?a+r.R:r.H?r.H[s].end:a+t;o.push(new bn(s+e,a,l,function(t){return t}.bind(null,c),u.start,u.end)),a=l}return o}function Yn(t){return[t.v.qa,t.T.qa,t.Z.qa].filter(L).map(function(t){
return $e(t,"SegmentURL")}).reduce(function(t,e){return 0<t.length?t:e}).map(function(e){e.getAttribute("indexRange")&&!t.rc&&(t.rc=!0);var n=e.getAttribute("media");return e=Je(e,"mediaRange",en,{start:0,end:null}),{zd:n,start:e.start,end:e.end}})}function Gn(t,e,n,r){var i=Qn(t),o=hn(t,Xn),a=pn(t,Xn,"media"),s=pn(t,Xn,"index");if(o={R:o.R,timescale:o.timescale,za:o.za,aa:o.aa,gc:o.gc,H:o.H,Ob:a,Xa:s},a=0+(o.Xa?1:0),a+=o.H?1:0,0==(a+=o.R?1:0))throw new v(2,4,4002);if(1!=a&&(o.Xa&&(o.H=null),
o.R=null),!o.Xa&&!o.Ob)throw new v(2,4,4002);if(o.Xa){if("mp4"!=(n=t.v.mimeType.split("/")[1])&&"webm"!=n)throw new v(2,4,4006);if("webm"==n&&!i)throw new v(2,4,4005);r=fn(o.Xa,t.v.id,null,t.bandwidth||null,null),r=tt(t.v.ba,[r]),t=zn(t,e,i,r,0,null,n,o.aa)}else o.R?(r||t.presentationTimeline.wb(o.R),t=Kn(t,o)):(r=e=null,t.Z.id&&t.v.id&&(r=t.Z.id+","+t.v.id,e=n[r]),a=$n(t,o),e?(e.Pb(a),n=t.presentationTimeline.Ja(),e.Fb(n-t.M.start)):(t.presentationTimeline.Za(a,0==t.M.index),e=new Cn(a),
r&&t.Ea&&(n[r]=e)),t.Ea&&t.M.Lb||An(e,t.M.duration),t={createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:e.find.bind(e),getSegmentReference:e.get.bind(e)});return{createSegmentIndex:t.createSegmentIndex,findSegmentPosition:t.findSegmentPosition,getSegmentReference:t.getSegmentReference,initSegmentReference:i,aa:o.aa}}function Xn(t){return t.eb}function Kn(t,e){var n=t.M.duration,r=e.R,i=e.za,o=e.timescale,a=e.Ob,s=t.bandwidth||null,u=t.v.id,c=t.v.ba;return{
createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(t){return 0>t||n&&t>=n?null:Math.floor(t/r)},getSegmentReference:function(t){var e=t*r,l=e+r;return n&&(l=Math.min(l,n)),0>l||n&&e>=n?null:new bn(t,e,l,function(){var n=fn(a,u,t+i,s,e*o);return tt(c,[n])},0,null)}}}function $n(t,e){for(var n=[],r=0;r<e.H.length;r++){var i=r+e.za;n.push(new bn(i,e.H[r].start,e.H[r].end,function(t,e,n,r,i,o){return t=fn(t,e,i,n,o),tt(r,[t]).map(function(t){return t.toString()})
}.bind(null,e.Ob,t.v.id,t.bandwidth||null,t.v.ba,i,e.H[r].Re+e.gc),0,null))}return n}function Qn(t){var e=pn(t,Xn,"initialization");if(!e)return null;var n=t.v.id,r=t.bandwidth||null,i=t.v.ba;return new mn(function(){var t=fn(e,n,null,r,null);return tt(i,[t])},0,null)}function Jn(){var t,e={};for(t in xu)e[t]=!0;for(t in Ou)e[t]=!0;return["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"].forEach(function(t){e[t]=!!xu[t]}),
["mpd","m3u8","ism"].forEach(function(t){e[t]=!!Ou[t]}),e}function Zn(t,e,n,r){var i=r;return i||(r=new y(t).Y.split("/").pop().split("."),1<r.length&&(r=r.pop().toLowerCase(),i=Ou[r])),i?Promise.resolve(i):(n=z([t],n),n.method="HEAD",e.request(0,n).then(function(e){return(e=e.headers["content-type"])&&(e=e.toLowerCase()),(i=xu[e])?i:Promise.reject(new v(2,4,4e3,t))},function(t){return t.severity=2,Promise.reject(t)}))}function tr(t,e){this.c=t,this.l=e,this.f=this.a=1/0,this.b=1,
this.j=this.g=0,this.i=!0,this.h=0}function er(){this.a=this.b=null,this.g=[],this.c=null,this.i=[],this.h=1,this.j={},this.l=0,this.f=null}function nr(t){return t.a.networkingEngine.request(0,z(t.g,t.b.retryParameters),function(){return!this.a}.bind(t)).then(function(t){if(this.a)return rr(this,t.data,t.uri)}.bind(t))}function rr(t,e,n){if(!(e=gn(e,"MPD")))throw new v(2,4,4001,n);return yn(e,t.b.retryParameters,t.b.dash.xlinkFailGracefully,n,t.a.networkingEngine).then(function(t){
return ir(this,t,n)}.bind(t))}function ir(t,e,n){n=[n];var r=$e(e,"Location").map(Qe).filter(L);0<r.length&&(n=t.g=r),r=$e(e,"BaseURL").map(Qe),n=tt(n,r);var i=Je(e,"minBufferTime",tn);t.l=Je(e,"minimumUpdatePeriod",tn,-1);var o=Je(e,"availabilityStartTime",Ze);r=Je(e,"timeShiftBufferDepth",tn);var a=Je(e,"suggestedPresentationDelay",tn),s=Je(e,"maxSegmentDuration",tn),u=e.getAttribute("type")||"static";if(t.c)var c=t.c.presentationTimeline;else{
var l=Math.max(t.b.dash.defaultPresentationDelay,1.5*i);c=new tr(o,null!=a?a:l)}o=or(t,{Ea:"static"!=u,presentationTimeline:c,Z:null,M:null,T:null,v:null,bandwidth:0,rc:!1},n,e),a=o.duration;var f=o.periods;return c.yb("static"==u),"static"!=u&&o.lc||c.ha(a||1/0),c.bc(null!=r?r:1/0),c.wb(s||1),t.c?Promise.resolve():(e=$e(e,"UTCTiming"),r=c.P(),dr(t,n,e,r).then(function(t){this.a&&(c.Oc(t),this.c={presentationTimeline:c,periods:f,offlineSessionIds:[],minBufferTime:i||0})}.bind(t)))}
function or(t,e,n,r){var i=Je(r,"mediaPresentationDuration",tn),o=[],a=0;r=$e(r,"Period");for(var s=0;s<r.length;s++){var u=r[s];a=Je(u,"start",tn,a);var c=Je(u,"duration",tn),l=null;if(s!=r.length-1){var f=Je(r[s+1],"start",tn);null!=f&&(l=f-a)}else null!=i&&(l=i-a);if(null==l&&(l=c),u=ar(t,e,n,{start:a,duration:l,node:u,index:s,Lb:null==l||s==r.length-1}),o.push(u),c=e.Z.id,-1==t.i.indexOf(c)&&(t.i.push(c),t.c&&(t.a.filterNewPeriod(u),t.c.periods.push(u))),null==l){a=null;break}a+=l}
return null==t.c&&t.a.filterAllPeriods(o),null!=i?{periods:o,duration:i,lc:!1}:{periods:o,duration:a,lc:!0}}function ar(t,e,n,r){e.Z=lr(r.node,null,n),e.M=r,e.Z.id||(e.Z.id="__shaka_period_"+r.start),$e(r.node,"EventStream").forEach(t.de.bind(t,r.start,r.duration)),n=$e(r.node,"AdaptationSet").map(t.be.bind(t,e)).filter(L);var i=n.map(function(t){return t.pe}).reduce(N,[]),o=i.filter(U);if(e.Ea&&i.length!=o.length)throw new v(2,4,4018);var a=n.filter(function(t){return!t.fc})
;if(n.filter(function(t){return t.fc}).forEach(function(t){var e=t.streams[0],n=t.fc;a.forEach(function(t){t.id==n&&t.streams.forEach(function(t){t.trickModeVideo=e})})}),i=sr(a,"video"),o=sr(a,"audio"),!i.length&&!o.length)throw new v(2,4,4004);for(o.length||(o=[null]),i.length||(i=[null]),e=[],n=0;n<o.length;n++)for(var s=0;s<i.length;s++)ur(t,o[n],i[s],e);for(t=sr(a,"text"),i=[],n=0;n<t.length;n++)i.push.apply(i,t[n].streams);return{startTime:r.start,textStreams:i,variants:e}}
function sr(t,e){return t.filter(function(t){return t.contentType==e})}function ur(t,e,n,r){if(e||n)if(e&&n){var i=e.drmInfos,o=n.drmInfos;if(i.length&&o.length?0<Ft(i,o).length:1){var a=Ft(e.drmInfos,n.drmInfos);for(i=0;i<e.streams.length;i++)for(var s=0;s<n.streams.length;s++)o=(n.streams[s].bandwidth||0)+(e.streams[i].bandwidth||0),o={id:t.h++,language:e.language,primary:e.Nb||n.Nb,audio:e.streams[i],video:n.streams[s],bandwidth:o,drmInfos:a,allowedByApplication:!0,allowedByKeySystem:!0},
r.push(o)}}else for(a=e||n,i=0;i<a.streams.length;i++)o=a.streams[i].bandwidth||0,o={id:t.h++,language:a.language||"und",primary:a.Nb,audio:e?a.streams[i]:null,video:n?a.streams[i]:null,bandwidth:o,drmInfos:a.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0},r.push(o)}function cr(e,n){0>e.l||(e.f=t.setTimeout(e.Ke.bind(e),1e3*Math.max(Math.max(3,e.l)-n,0)))}function lr(t,e,n){e=e||{contentType:"",mimeType:"",codecs:"",containsEmsgBoxes:!1,frameRate:void 0,Rb:null},n=n||e.ba
;var r=$e(t,"BaseURL").map(Qe),i=t.getAttribute("contentType")||e.contentType,o=t.getAttribute("mimeType")||e.mimeType,a=t.getAttribute("codecs")||e.codecs,s=Je(t,"frameRate",an)||e.frameRate,u=!!$e(t,"InbandEventStream").length,c=$e(t,"AudioChannelConfiguration");return c=fr(c)||e.Rb,i||(i=gr(o,a)),{ba:tt(n,r),bb:Ke(t,"SegmentBase")||e.bb,qa:Ke(t,"SegmentList")||e.qa,eb:Ke(t,"SegmentTemplate")||e.eb,width:Je(t,"width",on)||e.width,height:Je(t,"height",on)||e.height,contentType:i,mimeType:o,
codecs:a,frameRate:s,containsEmsgBoxes:u||e.containsEmsgBoxes,id:t.getAttribute("id"),Rb:c}}function fr(t){for(var e=0;e<t.length;++e){var n=t[e],r=n.getAttribute("schemeIdUri");if(r&&(n=n.getAttribute("value")))switch(r){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(r=parseInt(n,10)))continue;return r
;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(r=parseInt(n,16)){for(t=0;r;)1&r&&++t,r>>=1;return t}}}return null}function hr(t){var e=0+(t.bb?1:0);return e+=t.qa?1:0,0==(e+=t.eb?1:0)?"text"==t.contentType||"application"==t.contentType:(1!=e&&(t.bb&&(t.qa=null),t.eb=null),!0)}function pr(t,e,n,r){return e=tt(e,[n]),e=z(e,t.b.retryParameters),e.method=r,t.a.networkingEngine.request(0,e).then(function(t){if("HEAD"==r){
if(!t.headers||!t.headers.date)return 0;t=t.headers.date}else t=st(t.data);return t=Date.parse(t),isNaN(t)?0:t-Date.now()})}function dr(t,e,n,r){n=n.map(function(t){return{scheme:t.getAttribute("schemeIdUri"),value:t.getAttribute("value")}});var i=t.b.dash.clockSyncUri;return r&&!n.length&&i&&n.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),I(n,function(t){var n=t.value;switch(t.scheme){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":
return pr(this,e,n,"HEAD");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":return pr(this,e,n,"GET");case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return t=Date.parse(n),isNaN(t)?0:t-Date.now();case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:return Promise.reject()}}.bind(t)).catch(function(){
return 0})}function gr(t,e){return eu[at(t,e)]?"text":t.split("/")[0]}function vr(t,e,n,r){this.uri=t,this.type=e,this.a=n,this.segments=r||null}function yr(t,e,n,r){this.id=t,this.name=e,this.a=n,this.value=r||null}function mr(t,e){this.name=t,this.value=e}function br(t,e,n){return n=n||null,(t=t.getAttribute(e))?t.value:n}function wr(t,e){this.a=e,this.uri=t}function _r(t,e){return t.filter(function(t){return t.name==e})}function xr(t,e){var n=_r(t,e);return n.length?n[0]:null}
function Or(t,e,n){return t.filter(function(t){var r=t.getAttribute("TYPE");return t=t.getAttribute("GROUP-ID"),r.value==e&&t.value==n})}function Tr(t,e){return tt([t],[e])[0]}function Sr(t){this.b=t,this.a=0}function Er(t,e){e.lastIndex=t.a;var n=e.exec(t.b);return n=null==n?null:{position:n.index,length:n[0].length,se:n},t.a==t.b.length||null==n||n.position!=t.a?null:(t.a+=n.length,n.se)}function jr(t){return t.a==t.b.length?null:(t=Er(t,/[^ \t\n]*/gm))?t[0]:null}function kr(){this.a=0}
function Cr(t,e,n){e=st(e),e=e.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var r=e.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new v(2,4,4015);e=0;for(var i=[],o=1;o<r.length;)if(/^#(?!EXT)/m.test(r[o]))o+=1;else{var a=r[o];if(a=Pr(t.a++,a),0<=Tu.indexOf(a.name))e=1;else if(0<=Su.indexOf(a.name)){if(1!=e)throw new v(2,4,4017);return r=r.splice(o,r.length-o),t=Ar(t,r,i),new vr(n,e,i,t)}i.push(a),o+=1,"EXT-X-STREAM-INF"==a.name&&(a.a.push(new mr("URI",r[o])),o+=1)}
return new vr(n,e,i)}function Ar(t,e,n){var r=[],i=[];return e.forEach(function(t){if(/^(#EXT)/.test(t))t=Pr(this.a++,t),0<=Tu.indexOf(t.name)?n.push(t):i.push(t);else{if(/^#(?!EXT)/m.test(t))return[];r.push(new wr(t.trim(),i)),i=[]}}.bind(t)),r}function Pr(t,e){var n=e.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new v(2,4,4016);var r=n[1],i=n[2];if(n=[],i&&0<=i.indexOf("=")){i=new Sr(i);for(var o,a=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;o=Er(i,a);)n.push(new mr(o[1],o[2]||o[3]))
}else if(i)return new yr(t,r,n,i);return new yr(t,r,n)}function Mr(t){return new Promise(function(e){var n=Mr.parse(t);e({uri:t,data:n.data,headers:{"content-type":n.contentType}})})}function Dr(){this.h=this.c=null,this.I=1,this.u={},this.A={},this.L={},this.a={},this.b=null,this.l="",this.s=new kr,this.j=this.i=null,this.f=Cu,this.m=null,this.g=0,this.w=1/0}function Ir(t,e,n){ri(t,n).then(function(t){var r=Au,i=Cr(this.s,t.data,n);if(1!=i.type)throw new v(2,4,4017)
;t=xr(i.a,"EXT-X-MEDIA-SEQUENCE");var o=e.stream;Xr(this,i,t?Number(t.value):0,o.mimeType,o.codecs).then(function(t){e.cb.a=t,t=t[t.length-1],xr(i.a,"EXT-X-ENDLIST")&&(oi(this,r.oa),this.b.ha(t.endTime))}.bind(this))}.bind(t))}function Nr(t,e,n){if(e=Cr(t.s,e,n),0!=e.type)throw new v(2,4,4022);return Rr(t,e).then(function(t){this.c.filterAllPeriods([t]);var e,n=1/0,r=0,i=0,o=1/0;for(e in this.a){var a=this.a[e];n=Math.min(n,a.Qb),r=Math.max(r,a.Qb),i=Math.max(i,a.yd),
"text"!=a.stream.type&&(o=Math.min(o,a.duration))}a=null;var s=0;if(this.f!=Au.oa&&(a=Date.now()/1e3-i,s=3*this.g),this.b=new tr(a,s),this.b.yb(this.f==Au.oa),this.b.wb(this.g),this.f!=Au.oa){for(n=3*this.g,this.b.Pc(n),this.i=this.w,this.f==Au.hc&&this.b.bc(n),n=0;95443.7176888889<=r;)n+=95443.7176888889,r-=95443.7176888889;if(n)for(e in this.a)a=this.a[e],95443.7176888889>a.Qb&&(a.stream.presentationTimeOffset=-n,a.cb.offset(n))}else for(e in this.b.ha(o),this.a)a=this.a[e],
a.stream.presentationTimeOffset=n,a.cb.offset(-n),An(a.cb,o);this.m={presentationTimeline:this.b,periods:[t],offlineSessionIds:[],minBufferTime:0}}.bind(t))}function Rr(t,e){var n=e.a,r=_r(e.a,"EXT-X-MEDIA").filter(function(t){return"SUBTITLES"==ei(t,"TYPE")}.bind(t)).map(function(t){return zr(this,t)}.bind(t));return Promise.all(r).then(function(t){var r=_r(n,"EXT-X-STREAM-INF").map(function(t){return Lr(this,t,e)}.bind(this));return Promise.all(r).then(function(e){return{startTime:0,
variants:e.reduce(N,[]),textStreams:t}}.bind(this))}.bind(t))}function Lr(t,e,n){var r=br(e,"CODECS","avc1.42E01E,mp4a.40.2").split(","),i=e.getAttribute("RESOLUTION"),o=null,a=null,s=br(e,"FRAME-RATE"),u=Number(ei(e,"BANDWIDTH"));if(i){var c=i.value.split("x");o=c[0],a=c[1]}n=_r(n.a,"EXT-X-MEDIA");var l=br(e,"AUDIO"),f=br(e,"VIDEO");if(l?n=Or(n,"AUDIO",l):f&&(n=Or(n,"VIDEO",f)),c=Zr("text",r)){var h=br(e,"SUBTITLES");h&&(h=Or(n,"SUBTITLES",h),h.length&&(t.u[h[0].id].stream.codecs=c)),
r.splice(r.indexOf(c),1)}n=n.map(function(t){return qr(this,t,r)}.bind(t));var p=[],d=[];return Promise.all(n).then(function(t){if(l?p=t:f&&(d=t),t=!1,p.length||d.length)if(p.length)if(ei(e,"URI")==p[0].Zb){var n="audio";t=!0}else n="video";else n="audio";else 1==r.length?(n=Zr("video",r),n=i||s||n?"video":"audio"):(n="video",r=[r.join(",")]);return t?Promise.resolve():Wr(this,e,r,n)}.bind(t)).then(function(t){return t&&("audio"==t.stream.type?p=[t]:d=[t]),d&&Ur(d),p&&Ur(p),Fr(this,p,d,u,o,a,s)
}.bind(t))}function Ur(t){t.forEach(function(t){var e=t.stream.codecs.split(",");e=e.filter(function(t){return"mp4a.40.34"!=t}),t.stream.codecs=e.join(",")})}function Fr(t,e,n,r,i,o,a){n.forEach(function(t){(t=t.stream)&&(t.width=Number(i)||void 0,t.height=Number(o)||void 0,t.frameRate=Number(a)||void 0)}.bind(t)),e.length||(e=[null]),n.length||(n=[null]);for(var s=[],u=0;u<e.length;u++)for(var c=0;c<n.length;c++){
var l=e[u]?e[u].stream:null,f=n[c]?n[c].stream:null,h=e[u]?e[u].drmInfos:null,p=n[c]?n[c].drmInfos:null;if(l&&f){if(!(h.length&&p.length?0<Ft(h,p).length:1))continue;var d=Ft(h,p)}else l?d=h:f&&(d=p);h=(n[u]?n[u].Zb:"")+" - "+(e[u]?e[u].Zb:""),t.A[h]||(l=Br(t,l,f,r,d),s.push(l),t.A[h]=l)}return s}function Br(t,e,n,r,i){return{id:t.I++,language:e?e.language:"und",primary:!!e&&e.primary||!!n&&n.primary,audio:e,video:n,bandwidth:r,drmInfos:i,allowedByApplication:!0,allowedByKeySystem:!0}}
function zr(t,e){return ei(e,"TYPE"),qr(t,e,[]).then(function(t){return t.stream})}function qr(t,e,n){var r=ei(e,"URI");if(r=Tr(t.l,r),t.a[r])return Promise.resolve(t.a[r]);var i=ei(e,"TYPE").toLowerCase();"subtitles"==i&&(i="text");var o=se(br(e,"LANGUAGE","und")),a=br(e,"NAME"),s=e.getAttribute("DEFAULT"),u=e.getAttribute("AUTOSELECT"),c=br(e,"CHANNELS");return Vr(t,r,n,i,o,!!s||!!u,a,"audio"==i?Hr(c):null).then(function(t){return this.a[r]?this.a[r]:(this.u[e.id]=t,this.a[r]=t)}.bind(t))}
function Hr(t){return t?(t=t.split("/")[0],parseInt(t,10)):null}function Wr(t,e,n,r){var i=ei(e,"URI");return i=Tr(t.l,i),t.a[i]?Promise.resolve(t.a[i]):Vr(t,i,n,r,"und",!1,null,null).then(function(t){return this.a[i]?this.a[i]:this.a[i]=t}.bind(t))}function Vr(t,e,n,r,i,o,a,s){var u=e;e=Tr(t.l,e);var c,l,f="";return ri(t,e).then(function(t){if(c=Cr(this.s,t.data,e),1!=c.type)throw new v(2,4,4017);t=c;var i=Au,o=xr(t.a,"EXT-X-PLAYLIST-TYPE"),a=xr(t.a,"EXT-X-ENDLIST");if(a=o&&"VOD"==o.value||a,
o=o&&"EVENT"==o.value&&!a,o=!a&&!o,a?oi(this,i.oa):(o?oi(this,i.hc):oi(this,i.Uc),t=ni(t.a,"EXT-X-TARGETDURATION"),t=Number(t.value),this.g=Math.max(t,this.g),this.w=Math.min(t,this.w)),1==n.length)f=n[0];else{if(null==(t=Zr(r,n)))throw new v(2,4,4025,n);f=t}return ti(this,r,f,c)}.bind(t)).then(function(t){return l=t,t=xr(c.a,"EXT-X-MEDIA-SEQUENCE"),Xr(this,c,t?Number(t.value):0,l,f)}.bind(t)).then(function(t){var e=t[0].startTime,n=t[t.length-1].endTime,h=n-e;t=new Cn(t);var p=Yr(c),d=void 0
;"text"==r&&(d="subtitle");var g=[];c.segments.forEach(function(t){t=_r(t.a,"EXT-X-KEY"),g.push.apply(g,t)});var y=!1,m=[],b=null;if(g.forEach(function(t){if("NONE"!=ei(t,"METHOD")){y=!0;var e=ei(t,"KEYFORMAT");(t=(e=ku[e])?e(t):null)&&(t.keyIds.length&&(b=t.keyIds[0]),m.push(t))}}),y&&!m.length)throw new v(2,4,4026);return p={id:this.I++,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:t.find.bind(t),getSegmentReference:t.get.bind(t),initSegmentReference:p,
presentationTimeOffset:0,mimeType:l,codecs:f,kind:d,encrypted:y,keyId:b,language:i,label:a||null,type:r,primary:o,trickModeVideo:null,containsEmsgBoxes:!1,frameRate:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:[],channelsCount:s},this.L[p.id]=t,{stream:p,cb:t,drmInfos:m,Zb:u,Qb:e,yd:n,duration:h}}.bind(t))}function Yr(t){var e=_r(t.a,"EXT-X-MAP");if(!e.length)return null;if(1<e.length)throw new v(2,4,4020);e=e[0];var n=ei(e,"URI"),r=Tr(t.uri,n);return t=0,n=null,
(e=br(e,"BYTERANGE"))&&(t=e.split("@"),e=Number(t[0]),t=Number(t[1]),n=t+e-1),new mn(function(){return[r]},t,n)}function Gr(t,e,n,r,i){var o=n.a,a=Tr(t.uri,n.uri);t=ni(o,"EXTINF").value.split(","),t=i+Number(t[0]),n=0;var s=null;return(o=xr(o,"EXT-X-BYTERANGE"))&&(n=o.value.split("@"),o=Number(n[0]),n=n[1]?Number(n[1]):e.D+1,s=n+o-1),new bn(r,i,t,function(){return[a]},n,s)}function Xr(t,e,n,r,i){var o=e.segments,a=[],s=Tr(e.uri,o[0].uri),u=Gr(e,null,o[0],n,0),c=Yr(e)
;return $r(t,e.uri,c,u,r,i).then(function(t){s.split("/").pop();for(var r=0;r<o.length;++r){var i=a[a.length-1];i=Gr(e,i,o[r],n+r,0==r?t:i.endTime),a.push(i)}return a}.bind(t))}function Kr(t,e){var n=t.c.networkingEngine,r=z(e.a(),t.h.retryParameters),i={},o=e.O;i.Range="bytes="+o+"-"+(o+2048-1);var a={};return 0==o&&null==e.D||(o="bytes="+o+"-",null!=e.D&&(o+=e.D),a.Range=o),r.headers=i,n.request(1,r).catch(function(){
return d("Unable to fetch a partial HLS segment! Falling back to a full segment request, which is expensive!  Your server should support Range requests and CORS preflights.",r.uris[0]),r.headers=a,n.request(1,r)})}function $r(t,e,n,r,i,o){return t.m&&(e=t.a[e].cb.get(r.position))?Promise.resolve(e.startTime):(r=[Kr(t,r)],"video/mp4"!=i&&"audio/mp4"!=i||(n?r.push(Kr(t,n)):r.push(r[0])),Promise.all(r).then(function(t){if("video/mp4"==i||"audio/mp4"==i)return Qr(t[0].data,t[1].data)
;if("audio/mpeg"==i)return 0;if("video/mp2t"==i)return Jr(t[0].data);if("application/mp4"==i||0==i.indexOf("text/")){t=t[0].data;var e=at(i,o);if(eu[e]){var n=new Gt(null);n.c=new eu[e],t=n.Kb(t)}else t=0;return t}throw new v(2,4,4030)}.bind(t)))}function Qr(t,e){var n=0;if((new xn).B("moov",On).B("trak",On).B("mdia",On).W("mdhd",function(t){t.o.F(0==t.version?8:16),n=t.o.C(),t.la.stop()}).parse(e,!0),!n)throw new v(2,4,4030);var r=0,i=!1
;if((new xn).B("moof",On).B("traf",On).W("tfdt",function(t){r=(0==t.version?t.o.C():t.o.Qa())/n,i=!0,t.la.stop()}).parse(t,!0),!i)throw new v(2,4,4030);return r}function Jr(t){function e(){throw new v(2,4,4030)}t=new wn(new DataView(t),0);for(var n=0,r=0;;){if(n=t.U(),r=t.$(),71!=r&&e(),16384&t.ab()||e(),r=(48&t.$())>>4,0!=r&&2!=r||e(),3==r&&(r=t.$(),t.F(r)),1==t.C()>>8)return t.F(3),n=t.$()>>6,0!=n&&1!=n||e(),0==t.$()&&e(),n=t.$(),r=t.ab(),t=t.ab(),
(1073741824*((14&n)>>1)+((65534&r)<<14|(65534&t)>>1))/9e4;t.seek(n+188),r=t.$(),71!=r&&(t.seek(n+192),r=t.$()),71!=r&&(t.seek(n+204),r=t.$()),71!=r&&e(),t.Kc(1)}}function Zr(t,e){for(var n=Eu[t],r=0;r<n.length;r++)for(var i=0;i<e.length;i++)if(n[r].test(e[i].trim()))return e[i].trim();return"text"==t?"":null}function ti(t,e,n,r){r=Tr(r.uri,r.segments[0].uri);var i=new y(r).Y.split(".").pop(),o=ju[e][i]
;return o?Promise.resolve(o):"text"==e?n&&"vtt"!=n?Promise.resolve("application/mp4"):Promise.resolve("text/vtt"):(e=z([r],t.h.retryParameters),e.method="HEAD",t.c.networkingEngine.request(1,e).then(function(t){if(!(t=t.headers["content-type"]))throw new v(2,4,4021,i);return t.split(";")[0]}))}function ei(t,e){var n=t.getAttribute(e);if(!n)throw new v(2,4,4023,e);return n.value}function ni(t,e){var n=xr(t,e);if(!n)throw new v(2,4,4024,e);return n}function ri(t,e){
return t.c.networkingEngine.request(0,z([e],t.h.retryParameters),function(){return!this.c}.bind(t))}function ii(e,n){null!=e.i&&null!=n&&(e.j=t.setTimeout(e.K.bind(e),1e3*n))}function oi(e,n){e.f=n,e.b&&e.b.yb(e.f==Au.oa),e.f==Au.oa&&null!=e.j&&(t.clearTimeout(e.j),e.j=null,e.i=null)}function ai(t,e,n,r){this.a=t,this.u=e,this.s=n,this.w=r,this.h=new X,this.b=null,this.g=!1,this.m=t.readyState,this.c=!1,this.j=this.A=-1,this.f=this.i=!1,e=this.l.bind(this),K(this.h,t,"waiting",e),
this.b=new ht(e),dt(this.b,.25)}function si(t,e,n){this.a=t,this.j=e,this.i=n,this.b=new X,this.g=1,this.h=!1,this.c=null,this.f=new ht(this.Bd.bind(this)),0<t.readyState?this.zc():($(this.b,t,"loadedmetadata",this.zc.bind(this)),K(this.b,t,"timeupdate",function(){pt(this.f,.1)}.bind(this))),K(this.b,t,"ratechange",this.Pd.bind(this))}function ui(t){return 0<t.a.readyState?t.a.currentTime:t.i}function ci(t,e){0<t.a.readyState?fi(t,t.a.currentTime,e):(t.i=e,setTimeout(t.j,0))}function li(t,e){
null!=t.c&&(t.c.cancel(),t.c=null),t.g=e,t.a.playbackRate=t.h||0>e?0:e,!t.h&&0>e&&(t.c=new ht(function(){this.a.currentTime+=e/4}.bind(t)),dt(t.c,.25))}function fi(t,e,n){t.a.currentTime=n;var r=0,i=function(){!this.a||10<=r++||this.a.currentTime!=e||(this.a.currentTime=n,setTimeout(i,100))}.bind(t);setTimeout(i,100)}function hi(t,e,n,r,i,o){this.b=t,this.c=e,this.h=n,this.i=i,this.f=null,this.g=new ai(t,e,n,o),e=this.Rd.bind(this),null==r&&(r=this.c.presentationTimeline,
r=1/0>r.S()?r.Va():r.Ha()),r=di(this,vi(this,r)),this.a=new si(t,e,r),this.f=new ht(this.Od.bind(this)),dt(this.f,.25)}function pi(t){var e=ui(t.a);return 0<t.b.readyState&&(t.b.paused||(e=vi(t,e))),e}function di(t,e){var n=t.c.presentationTimeline.S();return e>=n?n-t.h.durationBackoff:e}function gi(t,e){var n=zt.bind(null,t.b.buffered),r=1*Math.max(t.c.minBufferTime||0,t.h.rebufferingGoal),i=t.c.presentationTimeline,o=i.Ga(0),a=i.Ha(),s=i.S(),u=i.Ga(r),c=i.Ga(5);return r=i.Ga(r+5),
e>=s?di(t,e):e>a?a:e<o?n(c)?c:r:e>=u||n(e)?e:r}function vi(t,e){var n=t.c.presentationTimeline.Va();return e<n?n:(n=t.c.presentationTimeline.Ha(),e>n?n:e)}function yi(t,e,n,r,i,o,a){this.a=t,this.w=e,this.g=n,this.u=r,this.l=i,this.h=o,this.A=a,this.c=[],this.j=new X,this.b=!1,this.i=-1,this.f=null,bi(this)}function mi(t){var e=D(t);return e.eventElement=t.eventElement,e}function bi(e){wi(e),e.f=t.setTimeout(e.I.bind(e),250)}function wi(e){e.f&&(t.clearTimeout(e.f),e.f=null)}function _i(t,e){
this.a=e,this.b=t,this.h=null,this.i=1,this.m=Promise.resolve(),this.g=[],this.j={},this.c={},this.s=!1,this.A=null,this.w=this.f=this.l=!1,this.u=0}function xi(t){var e=pi(t.a.Na);return t.b.periods[je(t.b,e)]}function Oi(t){var e=t.c.video||t.c.audio;return e?t.b.periods[e.xa]:null}function Ti(t){return Ei(t,"audio")}function Si(t){return Ei(t,"video")}function Ei(t,e){var n=t.c[e];return n?n.pa||n.stream:null}function ji(t,e){ee(t.a.J,"text"),t.u++,t.w=!1;var n=t.u;return t.a.J.init({text:e
}),Ri(t,[e]).then(function(){if(this.u==n&&!this.c.text&&!this.w){var t=pi(this.a.Na);this.c.text=Ii(e,je(this.b,t)),$i(this,this.c.text,0)}}.bind(t))}function ki(t,e){var n=t.c.video;if(n){var r=n.stream;if(r)if(e){var i=r.trickModeVideo;if(i){var o=n.pa;o||(Ai(t,i,!1),n.pa=r)}}else(o=n.pa)&&(n.pa=null,Ai(t,o,!0))}}function Ci(t,e,n){e.video&&Ai(t,e.video,n),e.audio&&Ai(t,e.audio,n)}function Ai(t,e,n){var r=t.c[e.type];if(!r&&"text"==e.type&&t.h.ignoreTextStreamFailures)ji(t,e);else if(r){
var i=ke(t.b,e);n&&i!=r.xa?Mi(t):(r.pa&&(e.trickModeVideo?(r.pa=e,e=e.trickModeVideo):r.pa=null),(i=t.g[i])&&i.Ra&&(i=t.j[e.id])&&i.Ra&&r.stream!=e&&("text"==e.type&&Qt(t.a.J,at(e.mimeType,e.codecs)),r.stream=e,r.vb=!0,n&&(r.ua?r.Ab=!0:r.ya?(r.sa=!0,r.Ab=!0):(Qi(r),Ki(t,r,!0)))))}}function Pi(t){var e=pi(t.a.Na);Object.keys(t.c).every(function(t){var n=this.a.J;return"text"==t?(t=n.a,t=e>=t.a&&e<t.b):(t=Zt(n,t),t=zt(t,e)),t}.bind(t))||Mi(t)}function Mi(t){for(var e in t.c){var n=t.c[e]
;n.ua||n.sa||(n.ya?n.sa=!0:null==Jt(t.a.J,e)?null==n.ra&&$i(t,n,0):(Qi(n),Ki(t,n,!1)))}}function Di(t,e,n){var r=pi(t.a.Na),i=je(t.b,r),o={};return r=[],e.variant&&e.variant.audio&&(o.audio=e.variant.audio,r.push(e.variant.audio)),e.variant&&e.variant.video&&(o.video=e.variant.video,r.push(e.variant.video)),e.text&&(o.text=e.text,r.push(e.text)),t.a.J.init(o),Li(t),Ri(t,r).then(function(){if(!this.f)for(var t in o){var e=o[t];this.c[t]||(this.c[t]=Ii(e,i,n),$i(this,this.c[t],0))}}.bind(t))}
function Ii(t,e,n){return{stream:t,type:t.type,Ka:null,ka:null,pa:null,vb:!0,xa:e,endOfStream:!1,ya:!1,ra:null,sa:!1,Ab:!1,ua:!1,Yb:!1,Wa:!1,Ic:n||0}}function Ni(t,e){var n=t.g[e];if(n)return n.N;n={N:new E,Ra:!1},t.g[e]=n;var r=t.b.periods[e].variants.map(function(t){var e=[];return t.audio&&e.push(t.audio),t.video&&e.push(t.video),t.video&&t.video.trickModeVideo&&e.push(t.video.trickModeVideo),e}).reduce(N,[]).filter(U);return r.push.apply(r,t.b.periods[e].textStreams),t.m=t.m.then(function(){
if(!this.f)return Ri(this,r)}.bind(t)).then(function(){this.f||(this.g[e].N.resolve(),this.g[e].Ra=!0)}.bind(t)).catch(function(t){this.f||(this.g[e].N.reject(),delete this.g[e],this.a.onError(t))}.bind(t)),n.N}function Ri(t,e){e.map(function(t){return t.id}).filter(U);for(var n=[],r=0;r<e.length;++r){var i=e[r],o=t.j[i.id];o?n.push(o.N):(t.j[i.id]={N:new E,Ra:!1},n.push(i.createSegmentIndex()))}return Promise.all(n).then(function(){if(!this.f)for(var t=0;t<e.length;++t){var n=this.j[e[t].id]
;n.Ra||(n.N.resolve(),n.Ra=!0)}}.bind(t)).catch(function(t){if(!this.f){for(var n=0;n<e.length;n++)this.j[e[n].id].N.reject(),delete this.j[e[n].id];return Promise.reject(t)}}.bind(t))}function Li(t){var e=t.b.presentationTimeline.S();1/0>e?t.a.J.ha(e):t.a.J.ha(Math.pow(2,32))}function Ui(t,e){var n=pi(t.a.Na),r=e.Ka&&e.ka?t.b.periods[ke(t.b,e.Ka)].startTime+e.ka.endTime:Math.max(n,e.Ic),i=ke(t.b,e.stream),o=je(t.b,r),a=t.a.J,s=e.type;return"text"==s?(a=a.a,
a=null==a.b||a.b<n?0:a.b-Math.max(n,a.a)):(a=Zt(a,s),a=qt(a,n)),s=Math.max(t.i*Math.max(t.b.minBufferTime||0,t.h.rebufferingGoal),t.i*t.h.bufferingGoal),r>=t.b.presentationTimeline.S()?(e.endOfStream=!0,null):(e.endOfStream=!1,e.xa=o,o!=i?null:a>=s?.5:(r=t.a.J,o=e.type,r="text"==o?r.a.b:Bt(Zt(r,o)),e.ka&&e.stream==e.Ka?(o=e.ka.position+1,
r=Fi(t,e,i,o)):(o=e.ka?e.stream.findSegmentPosition(Math.max(0,t.b.periods[ke(t.b,e.Ka)].startTime+e.ka.endTime-t.b.periods[i].startTime)):e.stream.findSegmentPosition(Math.max(0,(r||n)-t.b.periods[i].startTime)),null==o?r=null:(a=null,null==r&&(a=Fi(t,e,i,Math.max(0,o-1))),r=a||Fi(t,e,i,o))),r?(e.Ic=0,Bi(t,e,n,i,r),null):1))}function Fi(t,e,n,r){return n=t.b.periods[n],(e=e.stream.getSegmentReference(r))?(r=t.b.presentationTimeline,t=r.Ja(),r=r.Ia(),
n.startTime+e.endTime<t||n.startTime+e.startTime>r?null:e):null}function Bi(t,e,n,r,i){var o=t.b.periods[r],a=e.stream,s=t.b.presentationTimeline.S(),u=t.b.periods[r+1];r=qi(t,e,r,Math.max(0,o.startTime-.1),u?u.startTime:s),e.ya=!0,e.vb=!1,s=Xi(t,i),Promise.all([r,s]).then(function(t){if(!this.f&&!this.l)return Hi(this,e,n,o,a,i,t[1])}.bind(t)).then(function(){this.f||this.l||(e.ya=!1,e.Yb=!1,e.sa||this.a.$a(),$i(this,e,0),Vi(this,a))}.bind(t)).catch(function(t){this.f||this.l||(e.ya=!1,
"text"==e.type&&this.h.ignoreTextStreamFailures?delete this.c.text:3017==t.code?zi(this,e,t):(e.Wa=!0,t.severity=2,Ji(this,t)))}.bind(t))}function zi(t,e,n){if(!rt(t.c).some(function(t){return t!=e&&t.Yb})){var r=Math.round(100*t.i);if(20<r)t.i-=.2;else{if(!(4<r))return e.Wa=!0,t.l=!0,void t.a.onError(n);t.i-=.04}e.Yb=!0}$i(t,e,4)}function qi(t,e,n,r,i){return e.vb?(n=ne(t.a.J,e.type,t.b.periods[n].startTime-e.stream.presentationTimeOffset,r,i),
e.stream.initSegmentReference?(t=Xi(t,e.stream.initSegmentReference).then(function(t){if(!this.f)return te(this.a.J,e.type,t,null,null)}.bind(t)).catch(function(t){return e.vb=!0,Promise.reject(t)}),Promise.all([n,t])):n):Promise.resolve()}function Hi(t,e,n,r,i,o,a){return i.containsEmsgBoxes&&(new xn).W("emsg",t.ce.bind(t,r,o)).parse(a),Wi(t,e,n).then(function(){if(!this.f)return te(this.a.J,e.type,a,o.startTime,o.endTime)}.bind(t)).then(function(){if(!this.f)return e.Ka=i,e.ka=o,
Promise.resolve()}.bind(t))}function Wi(t,e,n){var r=Math.max(t.h.bufferBehind,t.b.presentationTimeline.b),i=Jt(t.a.J,e.type);return null==i?Promise.resolve():(n=n-i-r,0>=n?Promise.resolve():t.a.J.remove(e.type,i,i+n).then(function(){}.bind(t)))}function Vi(t,e){if(!t.s&&(t.s=rt(t.c).every(function(t){return"text"==t.type||!t.sa&&!t.ua&&t.ka}),t.s)){var n=ke(t.b,e);for(t.g[n]||Ni(t,n).then(function(){this.a.tc()}.bind(t)).catch(R),n=0;n<t.b.periods.length;++n)Ni(t,n).catch(R);t.a.Ud&&t.a.Ud()}}
function Yi(t,e){if(e.xa!=ke(t.b,e.stream)){var n=e.xa,r=rt(t.c);r.every(function(t){return t.xa==n})&&r.every(Gi)&&Ni(t,n).then(function(){if(!this.f&&r.every(function(t){var e=ke(this.b,t.stream);return Gi(t)&&t.xa==n&&e!=n}.bind(this))){var t=this.b.periods[n],e=this.a.uc(t),i={};e.variant&&e.variant.video&&(i.video=e.variant.video),e.variant&&e.variant.audio&&(i.audio=e.variant.audio),e.text&&(i.text=e.text);for(var o in this.c)if(!i[o]&&"text"!=o)return void this.a.onError(new v(2,5,5005))
;for(o in i)if(!this.c[o]){if("text"!=o)return void this.a.onError(new v(2,5,5005));Di(this,{text:i.text},t.startTime),delete i[o]}for(o in this.c)(t=i[o])?(Ai(this,t,!1),$i(this,this.c[o],0)):delete this.c[o];this.a.tc()}}.bind(t)).catch(R)}}function Gi(t){return!t.ya&&null==t.ra&&!t.sa&&!t.ua}function Xi(t,e){var n=z(e.a(),t.h.retryParameters);if(0!=e.O||null!=e.D){var r="bytes="+e.O+"-";null!=e.D&&(r+=e.D),n.headers.Range=r}return t.a.Ya.request(1,n).then(function(t){return t.data})}
function Ki(t,e,n){e.sa=!1,e.Ab=!1,e.ua=!0,ee(t.a.J,e.type).then(function(){if(!this.f&&n){var t=this.a.J,r=e.type;return"text"==r?Promise.resolve():re(t,r,t.gd.bind(t,r))}}.bind(t)).then(function(){this.f||(e.Ka=null,e.ka=null,e.ua=!1,e.endOfStream=!1,$i(this,e,0))}.bind(t))}function $i(e,n,r){n.ra=t.setTimeout(e.Me.bind(e,n),1e3*r)}function Qi(e){null!=e.ra&&(t.clearTimeout(e.ra),e.ra=null)}function Ji(t,e){k(t.A).then(function(){this.a.onError(e),e.handled||this.h.failureCallback(e)}.bind(t))
}function Zi(t,e){return new Promise(function(n,r){var i=new Zi.c;i.open(e.method,t,!0),i.responseType="arraybuffer",i.timeout=e.retryParameters.timeout,i.withCredentials=e.allowCrossSiteCredentials,i.onload=function(e){e=e.target;var i=e.getAllResponseHeaders().trim().split("\r\n").reduce(function(t,e){var n=e.split(": ");return t[n[0].toLowerCase()]=n.slice(1).join(": "),t},{});if(200<=e.status&&299>=e.status&&202!=e.status)e.responseURL&&(t=e.responseURL),n({uri:t,data:e.response,headers:i,
fromCache:!!i["x-shaka-from-cache"]});else{var o=null;try{o=ct(e.response)}catch(t){}r(new v(401==e.status||403==e.status?2:1,1,1001,t,e.status,o,i))}},i.onerror=function(){r(new v(1,1,1002,t))},i.ontimeout=function(){r(new v(1,1,1003,t))};for(var o in e.headers)i.setRequestHeader(o,e.headers[o]);i.send(e.body)})}function to(){this.b=null,this.a=[]}function eo(){if(!t.indexedDB)return Promise.resolve();var e=t.indexedDB.deleteDatabase("shaka_offline_db"),n=new E;return e.onsuccess=function(){
n.resolve()},e.onerror=lo.bind(null,e,n),n}function no(t,e){return io(t,e)}function ro(t,e,n){var r;return uo(t,e,"readonly",function(t){r=t.get(n)}).then(function(){return r.result})}function io(t,e){return uo(t,"manifest-v3","readonly",function(t){t.openCursor().onsuccess=function(t){(t=t.target.result)&&(e(t.key,t.value),t.continue())}})}function oo(t,e,n){return uo(t,"manifest-v3","readwrite",function(t){t.put(n,e)})}function ao(t,e,n){var r;return uo(t,e,"readwrite",function(t){
t.add(n).onsuccess=function(t){r=t.target.result}}).then(function(){return r})}function so(t,e,n,r){return uo(t,e,"readwrite",function(t){n.forEach(function(e){t.delete(e).onsuccess=function(){r&&r(e)}})})}function uo(t,e,n,r){var i={transaction:t.b.transaction([e],n),N:new E};return i.transaction.oncomplete=function(){t.a.splice(t.a.indexOf(i),1),i.N.resolve()},i.transaction.onabort=function(e){t.a.splice(t.a.indexOf(i),1),lo(i.transaction,i.N,e)},i.transaction.onerror=po(),
e=i.transaction.objectStore(e),r(e),t.a.push(i),i.N}function co(t,e,n){function r(){var e=o.pop();e?i(e,r):(t.reject(new v(1,9,9010,a)),n.abort())}function i(t,e){n.objectStore(t).openCursor().onsuccess=function(t){(t=t.target.result)?(a.push(t.value.originalManifestUri),t.continue()):e()}}var o=["manifest","manifest-v2"].filter(function(t){return e.objectStoreNames.contains(t)}),a=[];r()}function lo(t,e,n){e.reject(t.error?new v(2,9,9001,t.error):new v(2,9,9002)),n.preventDefault()}
function fo(t){function e(){return new Promise(function(t){setTimeout(t,1e3)})}var n=t||0,r=0<n;t=ho(r);for(var i=0;i<n;i++)t=t.then(function(t){return t||e().then(function(){return ho(r)})});return t.then(function(t){return t||Promise.reject(new v(2,9,9001,"Failed to issue upgrade after "+n+" retries"))})}function ho(e){var n=new E,r=!1,i=t.indexedDB.open("shaka_offline_db",3);return i.onupgradeneeded=function(t){var e=t.target.transaction,i=e.db,o={autoIncrement:!0}
;0==t.oldVersion?(i.createObjectStore("manifest-v3",o),i.createObjectStore("segment-v3",o)):co(n,i,e),r=!0},i.onsuccess=function(t){t=t.target.result,e&&!r?(t.close(),n.resolve(null)):n.resolve(t)},i.onerror=po(function(){n.reject(new v(2,9,9001,"Failed to open IndexedDB Connection",i.error.message))}),n}function po(t){return function(e){e.preventDefault(),t&&t(e)}}function go(t,e,n){this.b={},this.i=[],this.h=t,this.j=e,this.m=n,this.g=this.a=null,this.f=this.c=0,this.l=[]}function vo(t,e){
t.l.push(e)}function yo(t,e,n,r,i){t.b[e]=t.b[e]||[],t.b[e].push({uris:n.a(),O:n.O,D:n.D,jc:r,Vd:i})}function mo(t,e){t.c=0,t.f=0,rt(t.b).forEach(function(t){t.forEach(this.s.bind(this))}.bind(t)),t.a=e;var n=rt(t.b).map(function(t){var e=0,n=function(){return this.a?e>=t.length?Promise.resolve():bo(this,t[e++]).then(n):Promise.reject(new v(2,9,9002))}.bind(this);return n()}.bind(t));return t.b={},t.g=Promise.all(n).then(function(){return ao(this.h,"manifest-v3",e)}.bind(t)).then(function(t){
return this.i=[],t}.bind(t)),t.g}function bo(t,e){var n=z(e.uris,t.m);0==e.O&&null==e.D||(n.headers.Range="bytes="+e.O+"-"+(null==e.D?"":e.D));var r;return t.j.request(1,n).then(function(t){return this.a?(r=t.data.byteLength,ao(this.h,"segment-v3",{data:t.data})):Promise.reject(new v(2,9,9002))}.bind(t)).then(function(t){if(!this.a)return Promise.reject(new v(2,9,9002));this.a.size+=r,this.f+=null==e.D?e.jc:e.D-e.O+1,this.i.push(t),e.Vd(t),wo(this)}.bind(t))}function wo(t){
var e=0==t.c?0:t.f/t.c,n=t.a.size;t.l.forEach(function(t){t(e,n)})}function _o(t){return(t=/^offline:manifest\/([0-9]+)$/.exec(t))?Number(t[1]):null}function xo(t,e,n){var r=void 0==e.expiration?1/0:e.expiration,i=e.presentationTimeline.S();return e=de(e.periods[0]),{offlineUri:null,originalManifestUri:t,duration:i,size:0,expiration:r,tracks:e,appMetadata:n}}function Oo(t,e){var n=To(e.periods[0],[],new tr(null,0)),r=e.appMetadata||{};return n=de(n),{offlineUri:t,
originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:e.expiration,tracks:n,appMetadata:r}}function To(t,e,n){var r=t.streams.filter(Co);return e=Eo(r,t.streams.filter(Ao),e),r=t.streams.filter(Po).map(jo),t.streams.forEach(function(t,e){var r=t.segments.map(function(t,e){return So(e,t)});n.Za(r,0==e)}),{startTime:t.startTime,variants:e,textStreams:r}}function So(t,e){var n="offline:segment/"+e.dataKey;return new bn(t,e.startTime,e.endTime,function(){return[n]
},0,null)}function Eo(t,e,n){var r={},i=[];return i.push.apply(i,t),i.push.apply(i,e),i.forEach(function(t){t.variantIds.forEach(function(t){r[t]||(r[t]={id:t,language:"",primary:!1,audio:null,video:null,bandwidth:0,drmInfos:n,allowedByApplication:!0,allowedByKeySystem:!0})})}),t.forEach(function(t){var e=jo(t);t.variantIds.forEach(function(t){t=r[t],t.language=e.language,t.primary=t.primary||e.primary,t.audio=e})}),e.forEach(function(t){var e=jo(t);t.variantIds.forEach(function(t){t=r[t],
t.primary=t.primary||e.primary,t.video=e})}),rt(r)}function jo(t){var e=t.segments.map(function(t,e){return So(e,t)});return e=new Cn(e),e={id:t.id,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:e.find.bind(e),getSegmentReference:e.get.bind(e),initSegmentReference:null,presentationTimeOffset:t.presentationTimeOffset,mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate||void 0,kind:t.kind,encrypted:t.encrypted,keyId:t.keyId,
language:t.language,label:t.label||null,type:t.contentType,primary:t.primary,trickModeVideo:null,containsEmsgBoxes:!1,roles:[],channelsCount:null},null!=t.initSegmentKey&&(e.initSegmentReference=ko(t.initSegmentKey)),e}function ko(t){var e="offline:segment/"+t;return new mn(function(){return[e]},0,null)}function Co(t){return"audio"==t.contentType}function Ao(t){return"video"==t.contentType}function Po(t){return"text"==t.contentType}function Mo(){return Io().then(function(){var t=new to
;return t.init().then(function(){return t})})}function Do(){return Io().then(function(){return eo()})}function Io(){return null!=t.indexedDB?Promise.resolve():Promise.reject(new v(2,9,9e3))}function No(){this.a=-1}function Ro(t){var e=new tr(null,0);e.ha(t.duration);var n=t.drmInfo?[t.drmInfo]:[];return{presentationTimeline:e,minBufferTime:2,offlineSessionIds:t.sessionIds,periods:t.periods.map(function(t){return To(t,n,e)})}}function Lo(t){if(null!=_o(t))return Lo.a(t)
;var e=(e=/^offline:segment\/([0-9]+)$/.exec(t))?Number(e[1]):null;return null!=e?Lo.b(e,t):Promise.reject(new v(2,1,9004,t))}function Uo(t,e,n){this.startTime=t,this.endTime=e,this.payload=n,this.region={x:0,y:0,width:100,height:100},this.position=null,this.positionAlign=Pu,this.size=100,this.textAlign=Mu,this.writingDirection=Ru,this.lineInterpretation=Lu,this.line=null,this.lineHeight="",this.lineAlign=Uu,this.displayAlign=Iu,this.fontSize=this.backgroundColor=this.color="",
this.fontWeight=Bu,this.fontStyle=zu,this.fontFamily="",this.textDecoration=[],this.wrapLine=!0,this.id=""}function Fo(t){this.a=null;for(var e=0;e<t.textTracks.length;++e){var n=t.textTracks[e];n.mode="disabled","Shaka Player TextTrack"==n.label&&(this.a=n)}this.a||(this.a=t.addTextTrack("subtitles","Shaka Player TextTrack")),this.a.mode="hidden",this.b=this.a.cues}function Bo(t){if(t.startTime>=t.endTime)return null;var e=new VTTCue(t.startTime,t.endTime,t.payload);e.lineAlign=t.lineAlign,
e.positionAlign=t.positionAlign,e.size=t.size;try{e.align=t.textAlign}catch(t){}return"center"==t.textAlign&&"center"!=e.align&&(e.align="middle"),2==t.writingDirection?e.vertical="lr":3==t.writingDirection&&(e.vertical="rl"),1==t.lineInterpretation&&(e.snapToLines=!1),null!=t.line&&(e.line=t.line),null!=t.position&&(e.position=t.position),e}function zo(t,e){for(var n=t.b,r=[],i=0;i<n.length;++i)e(n[i])&&r.push(n[i]);for(i=0;i<r.length;++i)t.a.removeCue(r[i])}function qo(){
this.a=Promise.resolve(),this.b=this.c=this.f=!1,this.i=new Promise(function(t){this.g=t}.bind(this)),this.l=[],this.j=[]}function Ho(t){return t.f||(t.a=t.a.then(function(t){return this.c=!0,this.l.forEach(function(t){t()}),Promise.resolve(t)}.bind(t),function(t){return this.c=!0,this.b?(this.g(),Promise.reject(this.h)):Promise.reject(t)}.bind(t))),t.f=!0,t.a}function Wo(t,e){Ue.call(this),this.L=!1,this.f=t,this.qb=!1,this.u=null,this.m=new X,
this.h=this.Cb=this.b=this.i=this.a=this.w=this.g=this.nb=this.ca=this.da=this.l=this.s=null,this.Xc=1e9,this.lb=[],this.pb=!1,this.ta=!0,this.K=this.Ta=this.Da=null,this.ic=!1,this.A=null,this.ob=[],this.I={},this.c=na(this),this.mb={width:1/0,height:1/0},this.j=ra(),this.kb=0,this.Ba=this.c.preferredAudioLanguage,this.Ca=this.c.preferredTextLanguage,this.hb=this.ib="",e&&e(this),this.s=new F(this.Ee.bind(this)),this.nb=Go(this),K(this.m,this.f,"error",this.Xd.bind(this))}function Vo(t){
if(!t.Da)return Promise.resolve();var e=Promise.resolve();return t.i&&(e=t.i.stop(),t.i=null),t=t.Da.cancel(new v(2,7,7e3)),Promise.all([e,t])}function Yo(t){function e(t){return(t.video?t.video.codecs.split(".")[0]:"")+"-"+(t.audio?t.audio.codecs.split(".")[0]:"")}var n={};t.b.periods.forEach(function(t){t.variants.forEach(function(t){var r=e(t);r in n||(n[r]=[]),n[r].push(t)})});var r=null,i=1/0;ot(n,function(t,e){var n=0,o=0;e.forEach(function(t){n+=t.bandwidth||0,++o});var a=n/o;a<i&&(r=t,
i=a)}),t.b.periods.forEach(function(t){t.variants=t.variants.filter(function(t){return e(t)==r})})}function Go(e){e.da=new MediaSource;var n=new E;return K(e.m,e.da,"sourceopen",n.resolve),e.f.src=t.URL.createObjectURL(e.da),n}function Xo(t){if(t.i&&t.i.configure(t.c.manifest),t.l&&t.l.configure(t.c.drm),t.a){t.a.configure(t.c.streaming);try{t.b.periods.forEach(t.sb.bind(t))}catch(e){t.Sa(e)}var e=Ti(t.a),n=Si(t.a),r=xi(t.a)
;(e=Se(e,n,r.variants))&&e.allowedByApplication&&e.allowedByKeySystem||ua(t,r)}t.h&&(t.h.configure(t.c.abr),t.c.abr.enabled&&!t.ta?t.h.enable():t.h.disable())}function Ko(t){var e=[];return t.forEach(function(t){if(t){var n=t.language;t.roles.length?t.roles.forEach(function(t){e.push({language:n,role:t})}):e.push({language:n,role:""})}else e.push({language:"und",role:""})}),H(e,function(t,e){return t.language==e.language&&t.role==e.role})}function $o(t,e,n){e.video&&Jo(t,e.video),
e.audio&&Jo(t,e.audio);var r=Oi(t.a);e!=Se(Ti(t.a),Si(t.a),r?r.variants:[])&&t.j.switchHistory.push({timestamp:Date.now()/1e3,id:e.id,type:"variant",fromAdaptation:n,bandwidth:e.bandwidth})}function Qo(t,e,n){Jo(t,e),t.j.switchHistory.push({timestamp:Date.now()/1e3,id:e.id,type:"text",fromAdaptation:n,bandwidth:null})}function Jo(t,e){var n=ke(t.b,e);t.I[n]||(t.I[n]={}),t.I[n][e.type]=e.id}function Zo(t){t.m&&(t.m.ia(t.da,"sourceopen"),t.m.ia(t.f,"loadeddata"),t.m.ia(t.f,"playing"),
t.m.ia(t.f,"pause"),t.m.ia(t.f,"ended")),t.f&&(t.f.removeAttribute("src"),t.f.load());var e=Promise.all([t.h?t.h.stop():null,t.l?t.l.destroy():null,t.ca?t.ca.destroy():null,t.g?t.g.destroy():null,t.w?t.w.destroy():null,t.a?t.a.destroy():null,t.i?t.i.stop():null,t.u?t.u.destroy():null]);return t.ta=!0,t.l=null,t.ca=null,t.g=null,t.w=null,t.a=null,t.i=null,t.u=null,t.b=null,t.Cb=null,t.nb=null,t.da=null,t.ob=[],t.I={},t.j=ra(),e}function ta(t){return t.i?Zo(t).then(function(){this.L||(this.Qc(!1),
this.nb=Go(this))}.bind(t)):Promise.resolve()}function ea(){return{".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0)}}}function na(t){var e=5e5;return navigator.connection&&navigator.connection.type&&(e=1e6*navigator.connection.downlink),{drm:{retryParameters:C(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1},manifest:{
retryParameters:C(),dash:{customScheme:function(t){if(t)return null},clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,defaultPresentationDelay:10}},streaming:{retryParameters:C(),failureCallback:t.dd.bind(t),rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1},abrFactory:Ce,textDisplayFactory:function(t){return new Fo(t)}.bind(null,t.f),abr:{enabled:!0,defaultBandwidthEstimate:e,
switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minBandwidth:0,maxBandwidth:1/0}},preferredAudioLanguage:"",preferredTextLanguage:"",restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0}}function ra(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,
droppedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:0,bufferingTime:0,switchHistory:[],stateHistory:[]}}function ia(t,e,n){t.ta?(t.K=e,t.ic=n||!1):Ci(t.a,e,n||!1)}function oa(t){if(t.b){var e=Date.now()/1e3;t.pb?t.j.bufferingTime+=e-t.kb:t.j.playTime+=e-t.kb,t.kb=e}}function aa(t,e){function n(t,e){if(!t)return null;var n=t.findSegmentPosition(e-o.startTime);return null==n?null:(n=t.getSegmentReference(n))?n.startTime+o.startTime:null}var r=Ti(t.a),i=Si(t.a),o=xi(t.a)
;return r=n(r,e),i=n(i,e),null!=i&&null!=r?Math.max(i,r):null!=i?i:null!=r?r:e}function sa(t,e){return e&&e.length?(t.h.setVariants(e),t.h.chooseVariant()):(t.Sa(new v(2,4,4012)),null)}function ua(t,e){var n=_e(e.variants,t.Ba,t.ib),r=xe(e.textStreams,t.Ca,t.hb);(n=sa(t,n))&&($o(t,n,!0),ia(t,n,!0)),(r=r[0])&&t.Mb()&&(Qo(t,r,!0),t.ta?t.A=r:Ai(t.a,r,!0)),ca(t)}function ca(t){Promise.resolve().then(function(){this.L||this.dispatchEvent(new Z("adaptation"))}.bind(t))}function la(t){
Promise.resolve().then(function(){this.L||this.dispatchEvent(new Z("trackschanged"))}.bind(t))}function fa(t){t.dispatchEvent(new Z("texttrackvisibility"))}function ha(t){if(!t||t.constructor!=Wo)throw new v(2,9,9008);this.g=null,this.a=t,this.b=ma(this),this.f=null,this.l=!1,this.c=this.s=this.h=this.i=null}function pa(){return null!=t.indexedDB}function da(t,e,n,r,i){if(n.presentationTimeline.P()||n.presentationTimeline.wa())throw new v(2,9,9005,e);t.h=n,t.f=i,t.j(n.periods),t.s=xo(e,n,r)
;var o=xa(t,e,r);return mo(t.c,o).then(function(t){return Oo("offline:manifest/"+t,o)})}function ga(t,e){function n(t){6013!=t.code&&(a=t)}var r=_o(e);if(null==r)return Promise.reject(new v(2,9,9004,e));var i,o,a=null;return ba(t).then(function(){return Sa(this),this.g.Fa(r)}.bind(t)).then(function(t){if(Sa(this),!t)throw new v(2,9,9003,e);return i=t,t=Ro(i),o=new _t({Ya:this.a.s,onError:n,Tb:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),
o.configure(this.a.getConfiguration().drm),o.init(t,this.b.usePersistentLicense||!1)}.bind(t)).then(function(){return Ot(o,i.sessionIds)}.bind(t)).then(function(){return o.destroy()}.bind(t)).then(function(){if(Sa(this),a)throw a;return va(this,e,r,i)}.bind(t))}function va(t,e,n,r){function i(){u++,o(a,u/c)}var o=t.b.progressCallback,a=Oo(e,r),s=Ea(r),u=0,c=s.length+1;return Promise.resolve().then(function(){return Sa(this),so(this.g,"segment-v3",s,i)}.bind(t)).then(function(){return Sa(this),
so(this.g,"manifest-v3",[n],i)}.bind(t))}function ya(t,e,n,r){function i(){}var o,a,s,u=t.a.s,c=t.a.getConfiguration();return Zn(e,u,c.manifest.retryParameters,r).then(function(t){return Sa(this),s=new t,s.configure(c.manifest),s.start(e,{networkingEngine:u,filterAllPeriods:this.j.bind(this),filterNewPeriod:this.m.bind(this),onTimelineRegionAdded:function(){},onEvent:function(){},onError:n})}.bind(t)).then(function(t){return Sa(this),o=t,a=new _t({Ya:u,onError:n,Tb:i,
onExpirationUpdated:function(){},onEvent:function(){}}),a.configure(c.drm),a.init(o,this.b.usePersistentLicense||!1)}.bind(t)).then(function(){return Sa(this),_a(o)}.bind(t)).then(function(){return Sa(this),Tt(a)}.bind(t)).then(function(){return Sa(this),s.stop()}.bind(t)).then(function(){return Sa(this),{manifest:o,ed:a}}.bind(t)).catch(function(t){if(s)return s.stop().then(function(){throw t});throw t})}function ma(t){return{trackSelectionCallback:t.u.bind(t),progressCallback:function(t,e){
if(t||e)return null},usePersistentLicense:!0}}function ba(e){if(null==t.indexedDB)return Promise.reject(new v(2,9,9e3));if(e.g)return Promise.resolve();var n=e.a.s,r=e.a.getConfiguration().streaming.retryParameters;return Mo().then(function(t){this.g=t,this.c=new go(t,n,r),vo(this.c,function(t,e){var n=this.s;n.size=e,this.b.progressCallback(n,t)}.bind(this))}.bind(e))}function wa(t){var e=t.f?t.f.destroy():Promise.resolve();return t.f=null,t.h=null,t.l=!1,t.i=null,e}function _a(t){
var e=t.periods.map(function(t){return t.variants}).reduce(N,[]).map(function(t){var e=[];return t.audio&&e.push(t.audio),t.video&&e.push(t.video),e}).reduce(N,[]).filter(U);return t=t.periods.map(function(t){return t.textStreams}).reduce(N,[]),e.push.apply(e,t),Promise.all(e.map(function(t){return t.createSegmentIndex()}))}function xa(t,e,n){var r=t.h.periods.map(t.w.bind(t)),i=t.f.b,o=St(t.f);if(i&&t.b.usePersistentLicense){if(!o.length)throw new v(2,9,9007,e);i.initData=[]}return{
originalManifestUri:e,duration:t.h.presentationTimeline.S(),size:0,expiration:t.f.ub(),periods:r,sessionIds:t.b.usePersistentLicense?o:[],drmInfo:i,appMetadata:n}}function Oa(t,e,n,r){var i={id:e.id,primary:e.primary,presentationTimeOffset:e.presentationTimeOffset||0,contentType:e.type,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,kind:e.kind,language:e.language,label:e.label,width:e.width||null,height:e.height||null,initSegmentKey:null,encrypted:e.encrypted,keyId:e.keyId,
segments:[],variantIds:[]};return null!=r&&i.variantIds.push(r),r=t.h.presentationTimeline.Ja(),Ta(e,r,function(t){var r=t.startTime,o=t.endTime;yo(this.c,e.type,t,(o-r)*n/8,function(t){i.segments.push({startTime:r,endTime:o,dataKey:t})})}.bind(t)),(r=e.initSegmentReference)&&yo(t.c,e.contentType,r,0,function(t){i.initSegmentKey=t}),i}function Ta(t,e,n){e=t.findSegmentPosition(e);for(var r=null==e?null:t.getSegmentReference(e);r;)n(r),r=t.getSegmentReference(++e)}function Sa(t){
if(!t.a)throw new v(2,9,9002)}function Ea(t){var e=[];return t.periods.forEach(function(t){t.streams.forEach(function(t){null!=t.initSegmentKey&&e.push(t.initSegmentKey),t.segments.forEach(function(t){e.push(t.dataKey)})})}),e}function ja(t){Wu.push(t)}function ka(t){var e=t.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if("function"==typeof Event)var n=new Event(e,t);else n=document.createEvent("Event"),n.initEvent(e,t.bubbles,t.cancelable);t.target.dispatchEvent(n)}function Ca(t,e,n){
if("input"==t)switch(this.type){case"range":t="change"}Vu.call(this,t,e,n)}function Aa(t){this.f=[],this.b=[],this.a=[],(new xn).W("pssh",this.c.bind(this)).parse(t.buffer)}function Pa(t,e){try{var n=new Ma(t,e);return Promise.resolve(n)}catch(t){return Promise.reject(t)}}function Ma(t,e){this.keySystem=t;for(var n=!1,r=0;r<e.length;++r){var i=e[r],o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:i.initDataTypes,
sessionTypes:["temporary"],label:i.label},a=!1;if(i.audioCapabilities)for(var s=0;s<i.audioCapabilities.length;++s){var u=i.audioCapabilities[s];if(u.contentType){a=!0;var c=u.contentType.split(";")[0];MSMediaKeys.isTypeSupported(this.keySystem,c)&&(o.audioCapabilities.push(u),n=!0)}}if(i.videoCapabilities)for(s=0;s<i.videoCapabilities.length;++s)u=i.videoCapabilities[s],u.contentType&&(a=!0,c=u.contentType.split(";")[0],
MSMediaKeys.isTypeSupported(this.keySystem,c)&&(o.videoCapabilities.push(u),n=!0));if(a||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==i.persistentState&&(n=!1),n)return void(this.a=o)}throw n=Error("Unsupported keySystem"),n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function Da(t){var e=this.mediaKeys;return e&&e!=t&&Na(e,null),delete this.mediaKeys,(this.mediaKeys=t)?Na(t,this):Promise.resolve()}function Ia(t){this.a=new MSMediaKeys(t),
this.b=new X}function Na(t,e){function n(){e.msSetMediaKeys(r.a),e.removeEventListener("loadedmetadata",n)}if(Q(t.b),!e)return Promise.resolve();K(t.b,e,"msneedkey",La);var r=t;try{return 1<=e.readyState?e.msSetMediaKeys(t.a):e.addEventListener("loadedmetadata",n),Promise.resolve()}catch(t){return Promise.reject(t)}}function Ra(t){Ue.call(this),this.c=null,this.g=t,this.b=this.a=null,this.f=new X,this.sessionId="",this.expiration=NaN,this.closed=new E,this.keyStatuses=new Ba}function La(t){
var e=document.createEvent("CustomEvent");e.initCustomEvent("encrypted",!1,!1,null),e.initDataType="cenc";var n=t.initData;if(n){var r=new Aa(n);if(1>=r.a.length)t=n;else{var i=[];for(t=0;t<r.a.length;t++)i.push(n.subarray(r.a[t].start,r.a[t].end+1));for(n=H(i,Ua),t=r=0;t<n.length;t++)r+=n[t].length;for(r=new Uint8Array(r),t=i=0;t<n.length;t++)r.set(n[t],i),i+=n[t].length;t=r}}else t=n;e.initData=t,this.dispatchEvent(e)}function Ua(t,e){return bt(t,e)}function Fa(t,e){var n=t.keyStatuses
;n.size=void 0==e?0:1,n.a=e,t.dispatchEvent(new Z("keystatuseschange"))}function Ba(){this.size=0,this.a=void 0}function za(){return Promise.reject(Error("The key system specified is not supported."))}function qa(t){return null==t?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function Ha(){throw new TypeError("Illegal constructor.")}function Wa(){throw new TypeError("Illegal constructor.")}function Va(e){Gu=e,Xu=new Uint8Array([0]).buffer,
navigator.requestMediaKeySystemAccess=Ga,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Xa,t.MediaKeys=$a,t.MediaKeySystemAccess=Ka}function Ya(t){var e=Gu;return e?e+t.charAt(0).toUpperCase()+t.slice(1):t}function Ga(t,e){try{var n=new Ka(t,e);return Promise.resolve(n)}catch(t){return Promise.reject(t)}}function Xa(t){var e=this.mediaKeys;return e&&e!=t&&Qa(e,null),delete this.mediaKeys,
(this.mediaKeys=t)&&Qa(t,this),Promise.resolve()}function Ka(t,e){this.a=this.keySystem=t;var n=!1;"org.w3.clearkey"==t&&(this.a="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var o=0;o<e.length;++o){var a=e[o],s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:a.initDataTypes,sessionTypes:["temporary"],label:a.label},u=!1
;if(a.audioCapabilities)for(var c=0;c<a.audioCapabilities.length;++c){var l=a.audioCapabilities[c];if(l.contentType){u=!0;var f=l.contentType.split(";")[0];i.canPlayType(f,this.a)&&(s.audioCapabilities.push(l),r=!0)}}if(a.videoCapabilities)for(c=0;c<a.videoCapabilities.length;++c)l=a.videoCapabilities[c],l.contentType&&(u=!0,i.canPlayType(l.contentType,this.a)&&(s.videoCapabilities.push(l),r=!0));if(u||(r=i.canPlayType("video/mp4",this.a)||i.canPlayType("video/webm",this.a)),
"required"==a.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):r=!1),r)return void(this.b=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=t&&"com.widevine.alpha"!=t||(n="None of the requested configurations were supported."),n=Error(n),n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function $a(t){this.g=t,this.b=null,this.a=new X,this.c=[],this.f={}}function Qa(t,e){t.b=e,Q(t.a);var n=Gu;e&&(K(t.a,e,n+"needkey",t.ae.bind(t)),
K(t.a,e,n+"keymessage",t.$d.bind(t)),K(t.a,e,n+"keyadded",t.Yd.bind(t)),K(t.a,e,n+"keyerror",t.Zd.bind(t)))}function Ja(t,e){var n=t.f[e];return n||((n=t.c.shift())?(n.sessionId=e,t.f[e]=n):null)}function Za(t,e,n){Ue.call(this),this.f=t,this.h=!1,this.a=this.b=null,this.c=e,this.g=n,this.sessionId="",this.expiration=NaN,this.closed=new E,this.keyStatuses=new ns}function ts(t,e,n){if(t.h)return Promise.reject(Error("The session is already initialized."));t.h=!0;try{
if("persistent-license"==t.g)if(n)var r=new Uint8Array(lt("LOAD_SESSION|"+n));else{var i=lt("PERSISTENT|"),o=new Uint8Array(i.byteLength+e.byteLength);o.set(new Uint8Array(i),0),o.set(new Uint8Array(e),i.byteLength),r=o}else r=new Uint8Array(e)}catch(t){return Promise.reject(t)}t.b=new E;var a=Ya("generateKeyRequest");try{t.f[a](t.c,r)}catch(e){if("InvalidStateError"!=e.name)return t.b=null,Promise.reject(e);setTimeout(function(){try{this.f[a](this.c,r)}catch(t){this.b.reject(t),this.b=null}
}.bind(t),10)}return t.b}function es(t,e){var n=t.keyStatuses;n.size=void 0==e?0:1,n.a=e,t.dispatchEvent(new Z("keystatuseschange"))}function ns(){this.size=0,this.a=void 0}function rs(){var t=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var e=t.apply(this,arguments);return e.abort=function(){},e}}function is(){var t=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(e,n){return t.call(this,e,n-.001)}}function os(){
var t=MediaSource.prototype.endOfStream;MediaSource.prototype.endOfStream=function(){for(var e=0,n=0;n<this.sourceBuffers.length;++n){var r=this.sourceBuffers[n];r=r.buffered.end(r.buffered.length-1),e=Math.max(e,r)}if(!isNaN(this.duration)&&e<this.duration)for(this.qc=!0,n=0;n<this.sourceBuffers.length;++n)r=this.sourceBuffers[n],r.mc=!1;return t.apply(this,arguments)};var e=!1,n=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=n.apply(this,arguments)
;return t.mediaSource_=this,t.addEventListener("updateend",as,!1),e||(this.addEventListener("sourceclose",ss,!1),e=!0),t}}function as(t){var e=t.target,n=e.mediaSource_;if(n.qc){for(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e.mc=!0,t=0;t<n.sourceBuffers.length;++t)if(0==n.sourceBuffers[t].mc)return;n.qc=!1}}function ss(t){t=t.target;for(var e=0;e<t.sourceBuffers.length;++e)t.sourceBuffers[e].removeEventListener("updateend",as,!1)
;t.removeEventListener("sourceclose",ss,!1)}function us(){var t=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(e){return"mp2t"!=e.split(/ *; */)[0].split("/")[1]&&t(e)}}function cs(){var t=MediaSource.isTypeSupported,e=/^dv(?:he|av)\./;MediaSource.isTypeSupported=function(n){for(var r=n.split(/ *; */),i=r[0],o={},a=1;a<r.length;++a){var s=r[a].split("="),u=s[0];s=s[1].replace(/"(.*)"/,"$1"),o[u]=s}if(!(r=o.codecs))return t(n);var c=!1,l=!1;n=r.split(",").filter(function(t){
return e.test(t)?(l=!0,!1):(/^(hev|hvc)1\.2/.test(t)&&(c=!0),!0)}),l&&(c=!1),o.codecs=n.join(","),c&&(o.eotf="smpte2084");for(u in o)s=o[u],i+="; "+u+'="'+s+'"';return cast.__platform__.canDisplayType(i)}}function ls(t){if(this.c=[],this.b=[],this.V=Ku,t)try{t(this.ma.bind(this),this.a.bind(this))}catch(t){this.a(t)}}function fs(t){var e=new ls;return e.ma(void 0),e.then(function(){return t})}function hs(t){var e=new ls;return e.a(t),e}function ps(t){function e(t,e,n){t.V==Ku&&(i[e]=n,
++r==i.length&&t.ma(i))}var n=new ls;if(!t.length)return n.ma([]),n;for(var r=0,i=Array(t.length),o=n.a.bind(n),a=0;a<t.length;++a)t[a]&&t[a].then?t[a].then(e.bind(null,n,a),o):e(n,a,t[a]);return n}function ds(t){for(var e=new ls,n=e.ma.bind(e),r=e.a.bind(e),i=0;i<t.length;++i)t[i]&&t[i].then?t[i].then(n,r):n(t[i]);return e}function gs(t,e,n){Qu.push(function(){if(n&&"function"==typeof n){try{var t=n(this.f)}catch(t){return void e.a(t)}try{var r=t&&t.then}catch(t){return void e.a(t)}
t instanceof ls?t==e?e.a(new TypeError("Chaining cycle detected")):t.then(e.ma.bind(e),e.a.bind(e)):r?vs(t,r,e):e.ma(t)}else 1==this.V?e.ma(this.f):e.a(this.f)}.bind(t)),null==$u&&($u=ms(ys))}function vs(t,e,n){try{var r=!1;e.call(t,function(t){if(!r){r=!0;try{var e=t&&t.then}catch(t){return void n.a(t)}e?vs(t,e,n):n.ma(t)}},n.a.bind(n))}catch(t){n.a(t)}}function ys(){for(;Qu.length;){null!=$u&&(bs($u),$u=null);var t=Qu;Qu=[];for(var e=0;e<t.length;++e)t[e]()}}function ms(){return 0}
function bs(){}function ws(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function _s(e,n,r){return new t.TextTrackCue(e,n,r)}function xs(e,n,r){return new t.TextTrackCue(e+"-"+n+"-"+r,e,n,r)}function Os(){}function Ts(t){var e=[];if(!t)return e;for(var n=t.childNodes,r=0;r<n.length;r++){var i="span"==n[r].nodeName&&"p"==t.nodeName
;n[r].nodeType!=Node.ELEMENT_NODE||"br"==n[r].nodeName||i||(i=Ts(n[r]),e=e.concat(i))}return e.length||e.push(t),e}function Ss(t,e){for(var n=t.childNodes,r=0;r<n.length;r++)if("br"==n[r].nodeName&&0<r)n[r-1].textContent+="\n";else if(0<n[r].childNodes.length)Ss(n[r],e);else if(e){var i=n[r].textContent.trim();i=i.replace(/\s+/g," "),n[r].textContent=i}}function Es(t,e){for(var n=e.split(" "),r=0;r<n.length;r++)switch(n[r]){case"underline":
0>t.textDecoration.indexOf("underline")&&t.textDecoration.push("underline");break;case"noUnderline":0<=t.textDecoration.indexOf("underline")&&V(t.textDecoration,"underline");break;case"lineThrough":0>t.textDecoration.indexOf("lineThrough")&&t.textDecoration.push("lineThrough");break;case"noLineThrough":0<=t.textDecoration.indexOf("lineThrough")&&V(t.textDecoration,"lineThrough");break;case"overline":0>t.textDecoration.indexOf("overline")&&t.textDecoration.push("overline");break;case"noOverline":
0<=t.textDecoration.indexOf("overline")&&V(t.textDecoration,"overline")}}function js(t,e,n,r){return(t=Cs(t,n,r))?t:ks(e,n,r)}function ks(t,e,n){for(var r=Ts(t),i=0;i<r.length;i++){var o=r[i].getAttribute(n);if(o)return o}return(t=As(t,"style",e))?t.getAttribute(n):null}function Cs(t,e,n){return(t=As(t,"style",e))?t.getAttribute(n):null}function As(t,e,n){if(!t||1>n.length)return null;var r=null,i=t;for(t=null;i&&!(t=i.getAttribute(e))&&(i=i.parentNode)instanceof Element;);
if(e=t)for(t=0;t<n.length;t++)if(n[t].getAttribute("xml:id")==e){r=n[t];break}return r}function Ps(t,e){var n=null;if(Ju.test(t)){n=Ju.exec(t);var r=Number(n[1]),i=Number(n[2]),o=Number(n[3]),a=Number(n[4]);a+=(Number(n[5])||0)/e.b,o+=a/e.frameRate,n=o+60*i+3600*r}else Zu.test(t)?n=Ms(Zu,t):tc.test(t)?n=Ms(tc,t):ec.test(t)?(n=ec.exec(t),n=Number(n[1])/e.frameRate):nc.test(t)?(n=nc.exec(t),n=Number(n[1])/e.a):rc.test(t)&&(n=Ms(rc,t));return n}function Ms(t,e){var n=t.exec(e)
;return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function Ds(t,e,n,r){this.frameRate=Number(t)||30,this.b=Number(e)||1,this.a=Number(r),0==this.a&&(this.a=t?this.frameRate*this.b:1),n&&(t=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=t[1]/t[2])}function Is(){this.a=new Os}function Ns(){}function Rs(t,e){var n;(n=/^align:(start|middle|center|end|left|right)$/.exec(e))?(n=n[1],
t.textAlign="middle"==n?Mu:Du[n.toUpperCase()]):(n=/^vertical:(lr|rl)$/.exec(e))?t.writingDirection="lr"==n[1]?2:3:(n=/^size:([\d.]+)%$/.exec(e))?t.size=Number(n[1]):(n=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(e))?(t.position=Number(n[1]),n[2]&&(n=n[2],t.positionAlign="line-left"==n||"start"==n?"line-left":"line-right"==n||"end"==n?"line-right":"center")):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(e))?(t.lineInterpretation=1,t.line=Number(n[1]),
n[2]&&(t.lineAlign=Fu[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(e))&&(t.lineInterpretation=Lu,t.line=Number(n[1]),n[2]&&(t.lineAlign=Fu[n[2].toUpperCase()]))}function Ls(t){if(null==(t=Er(t,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3})/g)))return null;var e=Number(t[2]),n=Number(t[3]);return 59<e||59<n?null:Number(t[4])/1e3+n+60*e+3600*(Number(t[1])||0)}function Us(){this.a=null}function Fs(t,e,n){var r,i,o;return(new xn).B("payl",Sn(function(t){r=st(t)
})).B("iden",Sn(function(t){i=st(t)})).B("sttg",Sn(function(t){o=st(t)})).parse(t),r?Bs(r,i,o,e,n):null}function Bs(t,e,n,r,i){if(t=new Uo(r,i,t),e&&(t.id=e),n)for(e=new Sr(n),n=jr(e);n;)Rs(t,n),Er(e,/[ \t]+/gm),n=jr(e);return t}var zs,qs="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},Hs=void 0!==t&&t===this?this:void 0!==r&&null!=r?r:this,Ws=function(){var t=0;return function(e){
return"jscomp_symbol_"+(e||"")+t++}}();s("Promise",function(t){function e(t){this.V=0,this.f=void 0,this.a=[];var e=this.c();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}}function n(){this.a=null}function r(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;n.prototype.b=function(t){null==this.a&&(this.a=[],this.f()),this.a.push(t)},n.prototype.f=function(){var t=this;this.c(function(){t.h()})};var i=Hs.setTimeout;n.prototype.c=function(t){i(t,0)},n.prototype.h=function(){
for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];delete t[e];try{n()}catch(t){this.g(t)}}}this.a=null},n.prototype.g=function(t){this.c(function(){throw t})},e.prototype.c=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.l),reject:t(this.b)}},e.prototype.l=function(t){if(t===this)this.b(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.m(t);else{t:switch(typeof t){
case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.j(t):this.g(t)}},e.prototype.j=function(t){var e=void 0;try{e=t.then}catch(t){return void this.b(t)}"function"==typeof e?this.s(e,t):this.g(t)},e.prototype.b=function(t){this.h(2,t)},e.prototype.g=function(t){this.h(1,t)},e.prototype.h=function(t,e){if(0!=this.V)throw Error("Cannot settle("+t+", "+e|"): Promise already settled in state"+this.V);this.V=t,this.f=e,this.i()},e.prototype.i=function(){if(null!=this.a){
for(var t=this.a,e=0;e<t.length;++e)t[e].call(),t[e]=null;this.a=null}};var o=new n;return e.prototype.m=function(t){var e=this.c();t.rb(e.resolve,e.reject)},e.prototype.s=function(t,e){var n=this.c();try{t.call(e,n.resolve,n.reject)}catch(t){n.reject(t)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(t){o(t)}}:e}var i,o,a=new e(function(t,e){i=t,o=e});return this.rb(r(t,i),r(n,o)),a},e.prototype.catch=function(t){
return this.then(void 0,t)},e.prototype.rb=function(t,e){function n(){switch(r.V){case 1:t(r.f);break;case 2:e(r.f);break;default:throw Error("Unexpected state: "+r.V)}}var r=this;null==this.a?o.b(n):this.a.push(function(){o.b(n)})},e.resolve=r,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var i=a(t),o=i.next();!o.done;o=i.next())r(o.value).rb(e,n)})},e.all=function(t){var n=a(t),i=n.next();return i.done?r([]):new e(function(t,e){
var o=[],a=0;do{o.push(void 0),a++,r(i.value).rb(function(e){return function(n){o[e]=n,0==--a&&t(o)}}(o.length-1),e),i=n.next()}while(!i.done)})},e}),s("Array.prototype.find",function(t){return t||function(t,e){t:{var n=this;n instanceof String&&(n=String(n));for(var r=n.length,i=0;i<r;i++){var o=n[i];if(t.call(e,o,i,n)){n=o;break t}}n=void 0}return n}});var Vs=this;Vs.Ye=!0,p.prototype.getBandwidthEstimate=function(t){return 128e3>this.a?t:Math.min(h(this.b),h(this.c))},
t.console&&t.console.log.bind&&(d=console.warn.bind(console)),u("shaka.util.Error",v),v.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")},v.Severity={RECOVERABLE:1,CRITICAL:2},v.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9},v.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,
INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,
WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,
DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,
HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,
ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,LOAD_INTERRUPTED:7e3,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,
STORE_ALREADY_IN_PROGRESS:9006,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,CONTENT_UNSUPPORTED_BY_BROWSER:9009,UNSUPPORTED_UPGRADE_REQUEST:9010};var Ys=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;zs=y.prototype,zs.fa="",zs.Aa="",zs.ja="",zs.Oa=null,zs.Y="",zs.va="",zs.toString=function(){var t=[],e=this.fa;if(e&&t.push(x(e,Gs,!0),":"),e=this.ja){t.push("//");var n=this.Aa;n&&t.push(x(n,Gs,!0),"@"),
t.push(encodeURIComponent(e).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e=this.Oa,null!=e&&t.push(":",String(e))}return(e=this.Y)&&(this.ja&&"/"!=e.charAt(0)&&t.push("/"),t.push(x(e,"/"==e.charAt(0)?Ks:Xs,!0))),(e=this.a.toString())&&t.push("?",e),(e=this.va)&&t.push("#",x(e,Qs)),t.join("")},zs.resolve=function(t){var e=new y(this);"data"===e.fa&&(e=new y);var n=!!t.fa;n?m(e,t.fa):n=!!t.Aa,n?e.Aa=t.Aa:n=!!t.ja,n?e.ja=t.ja:n=null!=t.Oa;var r=t.Y;if(n)b(e,t.Oa);else if(n=!!t.Y){
if("/"!=r.charAt(0))if(this.ja&&!this.Y)r="/"+r;else{var i=e.Y.lastIndexOf("/");-1!=i&&(r=e.Y.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}r=o.join("/")}}return n?e.Y=r:n=""!==t.a.toString(),n?w(e,S(t.a)):n=!!t.va,n&&(e.va=t.va),e}
;var Gs=/[#\/\?@]/g,Xs=/[#\?:]/g,Ks=/[#\?]/g,$s=/[#\?@]/g,Qs=/#/g;T.prototype.a=null,T.prototype.c=null,T.prototype.add=function(t,e){if(!this.a&&(this.a={},this.c=0,this.b))for(var n=this.b.split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("="),o=null;if(0<=i){var a=n[r].substring(0,i);o=n[r].substring(i+1)}else a=n[r];a=decodeURIComponent(a.replace(/\+/g," ")),o=o||"",this.add(a,decodeURIComponent(o.replace(/\+/g," ")))}return this.b=null,
(n=this.a.hasOwnProperty(t)&&this.a[t])||(this.a[t]=n=[]),n.push(e),this.c++,this},T.prototype.toString=function(){if(this.b)return this.b;if(!this.a)return"";var t,e=[];for(t in this.a)for(var n=encodeURIComponent(t),r=this.a[t],i=0;i<r.length;i++){var o=n;""!==r[i]&&(o+="="+encodeURIComponent(r[i])),e.push(o)}return this.b=e.join("&")},E.prototype.resolve=function(){},E.prototype.reject=function(){},u("shaka.net.NetworkingEngine",F),F.RequestType={MANIFEST:0,SEGMENT:1,LICENSE:2,APP:3},
F.PluginPriority={Ze:1,af:2,We:3};var Js={};F.registerScheme=B,F.unregisterScheme=function(t){delete Js[t]},F.prototype.le=function(t){this.b.push(t)},F.prototype.registerRequestFilter=F.prototype.le,F.prototype.Pe=function(t){var e=this.b;0<=(t=e.indexOf(t))&&e.splice(t,1)},F.prototype.unregisterRequestFilter=F.prototype.Pe,F.prototype.bd=function(){this.b=[]},F.prototype.clearAllRequestFilters=F.prototype.bd,F.prototype.me=function(t){this.c.push(t)},
F.prototype.registerResponseFilter=F.prototype.me,F.prototype.Qe=function(t){var e=this.c;0<=(t=e.indexOf(t))&&e.splice(t,1)},F.prototype.unregisterResponseFilter=F.prototype.Qe,F.prototype.cd=function(){this.c=[]},F.prototype.clearAllResponseFilters=F.prototype.cd,F.prototype.destroy=function(){this.f=!0,this.b=[],this.c=[];for(var t=[],e=0;e<this.a.length;++e)t.push(this.a[e].catch(R));return Promise.all(t)},F.prototype.destroy=F.prototype.destroy,F.prototype.request=function(t,e,n){
var r=n||function(){return!1};if(this.f)return Promise.reject();e.method=e.method||"GET",e.headers=e.headers||{},e.retryParameters=e.retryParameters?D(e.retryParameters):C(),e.uris=D(e.uris);var i=Date.now(),o=Promise.resolve();return this.b.forEach(function(n){o=o.then(n.bind(null,t,e))}),o=o.catch(function(t){throw new v(2,1,1006,t)}),o=o.then(function(){var o=Date.now()-i,a=new j(e.retryParameters,!1,n);return k(a).then(function(){return q(this,t,e,a,0,o,r)}.bind(this))}.bind(this)),
this.a.push(o),o.then(function(e){return 0<=this.a.indexOf(o)&&this.a.splice(this.a.indexOf(o),1),this.g&&!e.fromCache&&1==t&&this.g(e.timeMs,e.data.byteLength),e}.bind(this)).catch(function(t){return t&&(t.severity=2),0<=this.a.indexOf(o)&&this.a.splice(this.a.indexOf(o),1),Promise.reject(t)}.bind(this))},F.prototype.request=F.prototype.request,G.prototype.push=function(t,e){this.a.hasOwnProperty(t)?this.a[t].push(e):this.a[t]=[e]},G.prototype.get=function(t){return(t=this.a[t])?t.slice():null
},G.prototype.remove=function(t,e){var n=this.a[t];if(n)for(var r=0;r<n.length;++r)n[r]==e&&(n.splice(r,1),--r)},X.prototype.destroy=function(){return Q(this),this.a=null,Promise.resolve()},X.prototype.ia=function(t,e){if(this.a)for(var n=this.a.get(e)||[],r=0;r<n.length;++r){var i=n[r];i.target==t&&(i.ia(),this.a.remove(e,i))}},J.prototype.ia=function(){this.target.removeEventListener(this.type,this.a,!1),this.a=this.target=null},Z.prototype.preventDefault=function(){
this.cancelable&&(this.defaultPrevented=!0)},Z.prototype.stopImmediatePropagation=function(){this.a=!0},Z.prototype.stopPropagation=function(){};var Zs=1/15,tu={codecs:"codecs",frameRate:"framerate",bandwidth:"bitrate",width:"width",height:"height",channelsCount:"channels"};u("shaka.util.StringUtils.fromUTF8",st),u("shaka.util.StringUtils.fromUTF16",ut),u("shaka.util.StringUtils.fromBytesAutoDetect",ct),u("shaka.util.StringUtils.toUTF8",lt),ht.prototype.cancel=function(){
null!=this.a&&(clearTimeout(this.a),this.a=null)},u("shaka.util.Uint8ArrayUtils.toBase64",gt),u("shaka.util.Uint8ArrayUtils.fromBase64",vt),u("shaka.util.Uint8ArrayUtils.fromHex",yt),u("shaka.util.Uint8ArrayUtils.toHex",mt),u("shaka.util.Uint8ArrayUtils.equal",bt),u("shaka.util.Uint8ArrayUtils.concat",wt),zs=_t.prototype,zs.destroy=function(){this.c=!0;var t=[];return this.a.forEach(function(e){e=e.ga.close().catch(R);var n=new Promise(function(t){setTimeout(t,1e3)});t.push(Promise.race([e,n]))
}),this.i.reject(),this.g&&t.push(this.g.destroy()),this.l&&t.push(this.l.setMediaKeys(null).catch(R)),this.w&&(this.w.cancel(),this.w=null),this.I&&(this.I.cancel(),this.I=null),this.g=this.l=this.j=this.u=this.b=null,this.a=[],this.m=[],this.s=this.h=this.f=null,Promise.all(t)},zs.configure=function(t){this.f=t},zs.init=function(t,e){var n={},r=[];return this.da=e,this.m=t.offlineSessionIds,Et(this,t,e||0<t.offlineSessionIds.length,n,r),r.length?jt(this,n,r):(this.L=!0,Promise.resolve())},
zs.keySystem=function(){return this.b?this.b.keySystem:""},zs.ub=function(){var t=this.a.map(function(t){return t=t.ga.expiration,isNaN(t)?1/0:t});return Math.min.apply(Math,t)},zs.Cd=function(t){for(var e=new Uint8Array(t.initData),n=0;n<this.a.length;++n)if(bt(e,this.a[n].initData))return;It(this,t.initDataType,e)},zs.Cc=function(t){this.f.delayLicenseRequestUntilPlayed&&this.l.paused&&!this.ca?this.K.push(t):Nt(this,t)},zs.yc=function(t){t=t.target;var e
;for(e=0;e<this.a.length&&this.a[e].ga!=t;++e);if(e!=this.a.length){var n=!1;t.keyStatuses.forEach(function(t,r){if("string"==typeof r){var i=r;r=t,t=i}if("com.microsoft.playready"==this.b.keySystem&&16==r.byteLength){i=new DataView(r);var o=i.getUint32(0,!0),a=i.getUint16(4,!0),s=i.getUint16(6,!0);i.setUint32(0,o,!1),i.setUint16(4,a,!1),i.setUint16(6,s,!1)}"com.microsoft.playready"==this.b.keySystem&&"status-pending"==t&&(t="usable"),"status-pending"!=t&&(this.a[e].loaded=!0,
this.a.every(function(t){return t.loaded})&&this.i.resolve()),"expired"==t&&(n=!0),i=mt(new Uint8Array(r)),this.A[i]=t}.bind(this));var r=t.expiration-Date.now();(0>r||n&&1e3>r)&&!this.a[e].na&&(this.a.splice(e,1),t.close()),pt(this.I,.5)}},zs.ke=function(){function t(t,e){return"expired"==e}!nt(this.A)&&it(this.A,t)&&this.h(new v(2,6,6014)),this.s.Tb(this.A)},zs.Nd=function(){for(var t=0;t<this.K.length;t++)Nt(this,this.K[t]);this.ca=!0,this.K=[]},zs.ie=function(){this.a.forEach(function(t){
var e=t.Sb,n=t.ga.expiration;isNaN(n)&&(n=1/0),n!=e&&(this.s.onExpirationUpdated(t.ga.sessionId,n),t.Sb=n)}.bind(this))},Wt.prototype.destroy=function(){return this.a.dispose(),this.a=null,Promise.resolve()},Wt.prototype.g=function(t){var e=new Uint8Array(t.data.byteLength+t.initSegment.byteLength);e.set(t.initSegment,0),e.set(t.data,t.initSegment.byteLength),this.c.push(e)},Wt.prototype.f=function(){var t=wt.apply(null,this.c);this.b.resolve(t)};var eu={}
;u("shaka.text.TextEngine.registerParser",function(t,e){eu[t]=e}),u("shaka.text.TextEngine.unregisterParser",function(t){delete eu[t]}),Gt.prototype.destroy=function(){return this.f=this.c=null,Promise.resolve()},Gt.prototype.ze=function(t){this.f=t},Gt.prototype.setDisplayer=Gt.prototype.ze,Gt.prototype.Kb=function(t){var e={periodStart:0,segmentStart:null,segmentEnd:0};try{return this.c.parseMedia(new Uint8Array(t),e)[0].startTime}catch(t){throw new v(2,2,2009,t)}},
Gt.prototype.remove=function(t,e){return Promise.resolve().then(function(){!this.f||!this.f.remove(t,e)||null==this.a||e<=this.a||t>=this.b||(t<=this.a&&e>=this.b?this.a=this.b=null:t<=this.a&&e<this.b?this.a=e:t>this.a&&e>=this.b&&(this.b=t))}.bind(this))},zs=Kt.prototype,zs.destroy=function(){this.j=!0;var t,e=[];for(t in this.c){var n=this.c[t],r=n[0];for(this.c[t]=n.slice(0,1),r&&e.push(r.p.catch(R)),r=1;r<n.length;++r)n[r].p.catch(R),n[r].p.reject()}this.a&&e.push(this.a.destroy())
;for(t in this.h)e.push(this.h[t].destroy());return Promise.all(e).then(function(){this.i.destroy(),this.l=this.a=this.f=this.g=this.i=null,this.b={},this.h={},this.c={}}.bind(this))},zs.init=function(e){for(var n in e){var r=e[n];r=at(r.mimeType,r.codecs),"text"==n?Qt(this,r):(!MediaSource.isTypeSupported(r)&&t.muxjs&&"mp2t"==r.split(";")[0].split("/")[1]&&MediaSource.isTypeSupported(Vt(n,r))&&(this.h[n]=new Wt,r=Vt(n,r)),r=this.f.addSourceBuffer(r),K(this.i,r,"error",this.Le.bind(this,n)),
K(this.i,r,"updateend",this.Ma.bind(this,n)),this.b[n]=r,this.c[n]=[])}},zs.Gb=function(){var t=this.a&&null!=this.a.a?[{start:this.a.a,end:this.a.b}]:[];return{total:Ht(this.g.buffered),audio:Ht(Zt(this,"audio")),video:Ht(Zt(this,"video")),text:t}},zs.remove=function(t,e,n){return"text"==t?this.a.remove(e,n):re(this,t,this.Sc.bind(this,t,e,n))},zs.endOfStream=function(t){return ie(this,function(){t?this.f.endOfStream(t):this.f.endOfStream()}.bind(this))},zs.ha=function(t){
return ie(this,function(){this.f.duration=t}.bind(this))},zs.S=function(){return this.f.duration},zs.Rc=function(t,e){this.b[t].appendBuffer(e)},zs.Sc=function(t,e,n){n<=e?this.Ma(t):this.b[t].remove(e,n)},zs.Yc=function(t){var e=this.b[t].appendWindowStart,n=this.b[t].appendWindowEnd;this.b[t].abort(),this.b[t].appendWindowStart=e,this.b[t].appendWindowEnd=n,this.Ma(t)},zs.gd=function(t){this.g.currentTime-=.001,this.Ma(t)},zs.Be=function(t,e){0>e&&(e+=.001),this.b[t].timestampOffset=e,
this.Ma(t)},zs.ye=function(t,e,n){this.b[t].appendWindowStart=0,this.b[t].appendWindowEnd=n,this.b[t].appendWindowStart=e,this.Ma(t)},zs.Le=function(t){this.c[t][0].p.reject(new v(2,3,3014,this.g.error?this.g.error.code:0))},zs.Ma=function(t){var e=this.c[t][0];e&&(e.p.resolve(),oe(this,t))};var nu=1,ru=2,iu={aar:"aa",abk:"ab",afr:"af",aka:"ak",alb:"sq",amh:"am",ara:"ar",arg:"an",arm:"hy",asm:"as",ava:"av",ave:"ae",aym:"ay",aze:"az",bak:"ba",bam:"bm",baq:"eu",bel:"be",ben:"bn",bih:"bh",bis:"bi",
bod:"bo",bos:"bs",bre:"br",bul:"bg",bur:"my",cat:"ca",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cor:"kw",cos:"co",cre:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",div:"dv",dut:"nl",dzo:"dz",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",ful:"ff",geo:"ka",ger:"de",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gre:"el",grn:"gn",guj:"gu",hat:"ht",hau:"ha",heb:"he",her:"hz",hin:"hi",hmo:"ho",hrv:"hr",hun:"hu",hye:"hy",ibo:"ig",
ice:"is",ido:"io",iii:"ii",iku:"iu",ile:"ie",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",jav:"jv",jpn:"ja",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",khm:"km",kik:"ki",kin:"rw",kir:"ky",kom:"kv",kon:"kg",kor:"ko",kua:"kj",kur:"ku",lao:"lo",lat:"la",lav:"lv",lim:"li",lin:"ln",lit:"lt",ltz:"lb",lub:"lu",lug:"lg",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",mkd:"mk",mlg:"mg",mlt:"mt",mon:"mn",mri:"mi",msa:"ms",mya:"my",nau:"na",nav:"nv",nbl:"nr",nde:"nd",ndo:"ng",nep:"ne",
nld:"nl",nno:"nn",nob:"nb",nor:"no",nya:"ny",oci:"oc",oji:"oj",ori:"or",orm:"om",oss:"os",pan:"pa",per:"fa",pli:"pi",pol:"pl",por:"pt",pus:"ps",que:"qu",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sin:"si",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",sqi:"sq",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swe:"sv",tah:"ty",tam:"ta",tat:"tt",tel:"te",tgk:"tg",tgl:"tl",tha:"th",tib:"bo",tir:"ti",ton:"to",tsn:"tn",tso:"ts",tuk:"tk",
tur:"tr",twi:"tw",uig:"ug",ukr:"uk",urd:"ur",uzb:"uz",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xho:"xh",yid:"yi",yor:"yo",zha:"za",zho:"zh",zul:"zu"};u("shaka.abr.SimpleAbrManager",Ce),Ce.prototype.stop=function(){this.h=null,this.c=!1,this.g=[],this.f=null},Ce.prototype.stop=Ce.prototype.stop,Ce.prototype.init=function(t){this.h=t},Ce.prototype.init=Ce.prototype.init,Ce.prototype.chooseVariant=function(){
var t=Ae(this.a.restrictions,this.g),e=this.b.getBandwidthEstimate(this.a.defaultBandwidthEstimate);if(this.g.length&&!t.length)throw new v(2,4,4012);for(var n=t[0]||null,r=0;r<t.length;++r){var i=t[r],o=(t[r+1]||{bandwidth:1/0}).bandwidth/this.a.bandwidthUpgradeTarget;e>=i.bandwidth/this.a.bandwidthDowngradeTarget&&e<=o&&(n=i)}return this.f=Date.now(),n},Ce.prototype.chooseVariant=Ce.prototype.chooseVariant,Ce.prototype.enable=function(){this.c=!0},Ce.prototype.enable=Ce.prototype.enable,
Ce.prototype.disable=function(){this.c=!1},Ce.prototype.disable=Ce.prototype.disable,Ce.prototype.segmentDownloaded=function(t,e){var n=this.b;if(!(16e3>e)){var r=8e3*e/t,i=t/1e3;n.a+=e,f(n.b,i,r),f(n.c,i,r)}if(null!=this.f&&this.c)t:{if(this.i){if(Date.now()-this.f<1e3*this.a.switchInterval)break t}else{if(!(128e3<=this.b.a))break t;this.i=!0}n=this.chooseVariant(),this.b.getBandwidthEstimate(this.a.defaultBandwidthEstimate),this.h(n)}},
Ce.prototype.segmentDownloaded=Ce.prototype.segmentDownloaded,Ce.prototype.getBandwidthEstimate=function(){return this.b.getBandwidthEstimate(this.a.defaultBandwidthEstimate)},Ce.prototype.getBandwidthEstimate=Ce.prototype.getBandwidthEstimate,Ce.prototype.setVariants=function(t){this.g=t},Ce.prototype.setVariants=Ce.prototype.setVariants,Ce.prototype.configure=function(t){this.a=t},Ce.prototype.configure=Ce.prototype.configure
;var ou="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),au="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),su=["loop","playbackRate"],uu=["pause","play"],cu="adaptation buffering emsg error loading streaming texttrackvisibility timelineregionadded timelineregionenter timelineregionexit trackschanged unloading".split(" "),lu={drmInfo:20,getAudioLanguages:2,
getAudioLanguagesAndRoles:2,getBufferedInfo:2,getConfiguration:2,getExpiration:2,getManifestUri:2,getPlaybackRate:2,getTextLanguages:2,getTextLanguagesAndRoles:2,getTextTracks:2,getStats:5,getVariantTracks:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1},fu={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20
},hu=[["getConfiguration","configure"]],pu=[["isTextTrackVisible","setTextTrackVisibility"]],du="addTextTrack cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack setTextTrackVisibility trickPlay".split(" "),gu=["load","unload"],vu=!1,yu=null;zs=Ie.prototype,zs.destroy=function(){return Re(this),yu&&Ne(this),this.I=this.A=this.g=null,this.b=this.h=!1,this.m=this.l=this.f=this.c=this.a=this.i=null,Promise.resolve()},
zs.X=function(){return this.b},zs.Xb=function(){return this.w},zs.init=function(){if(t.chrome&&chrome.cast&&chrome.cast.isAvailable){delete t.__onGCastApiAvailable,this.h=!0,this.g();var e=new chrome.cast.SessionRequest(this.K);e=new chrome.cast.ApiConfig(e,this.xc.bind(this),this.Qd.bind(this),"origin_scoped"),chrome.cast.initialize(e,function(){},function(){}),vu&&setTimeout(this.g.bind(this),20),(e=yu)&&e.status!=chrome.cast.SessionStatus.STOPPED?this.xc(e):yu=null
}else t.__onGCastApiAvailable=function(t){t&&this.init()}.bind(this)},zs.$b=function(t){this.i=t,this.b&&Le({type:"appData",appData:this.i})},zs.cast=function(t){return this.h?vu?this.b?Promise.reject(new v(1,8,8002)):(this.f=new E,chrome.cast.requestSession(this.Ub.bind(this,t),this.vc.bind(this)),this.f):Promise.reject(new v(1,8,8001)):Promise.reject(new v(1,8,8e3))},zs.tb=function(){this.b&&(Re(this),yu&&(Ne(this),yu.stop(function(){},function(){}),yu=null))},zs.get=function(t,e){
if("video"==t){if(0<=uu.indexOf(e))return this.Hc.bind(this,t,e)}else if("player"==t){if(fu[e]&&!this.get("player","isLive")())return function(){};if(0<=du.indexOf(e))return this.Hc.bind(this,t,e);if(0<=gu.indexOf(e))return this.oe.bind(this,t,e);if(lu[e])return this.Ec.bind(this,t,e)}return this.Ec(t,e)},zs.set=function(t,e,n){this.a[t][e]=n,Le({type:"set",targetName:t,property:e,value:n})},zs.Ub=function(t,e){yu=e,e.addUpdateListener(this.l),
e.addMessageListener("urn:x-cast:com.google.shaka.v2",this.m),this.wc(),Le({type:"init",initState:t,appData:this.i}),this.f.resolve()},zs.vc=function(t){var e=8003;switch(t.code){case"cancel":e=8004;break;case"timeout":e=8005;break;case"receiver_unavailable":e=8006}this.f.reject(new v(2,8,e,t))},zs.Ec=function(t,e){return this.a[t][e]},zs.Hc=function(t,e){Le({type:"call",targetName:t,methodName:e,args:Array.prototype.slice.call(arguments,2)})},zs.oe=function(t,e){
var n=Array.prototype.slice.call(arguments,2),r=new E,i=this.s.toString();return this.s++,this.c[i]=r,Le({type:"asyncCall",targetName:t,methodName:e,args:n,id:i}),r},zs.xc=function(t){var e=this.u();this.f=new E,this.j=!0,this.Ub(e,t)},zs.Qd=function(t){vu="available"==t,this.g()},zs.wc=function(){var t=!!yu&&"connected"==yu.status;if(this.b&&!t){this.I();for(var e in this.a)this.a[e]={};Re(this)}this.w=(this.b=t)?yu.receiver.friendlyName:"",this.g()},zs.Jd=function(t,e){var n=Me(e)
;switch(n.type){case"event":var r=n.targetName,i=n.event;this.A(r,new Z(i.type,i));break;case"update":i=n.update;for(r in i){n=this.a[r]||{};for(var o in i[r])n[o]=i[r][o]}this.j&&(this.L(),this.j=!1);break;case"asyncComplete":if(r=n.id,o=n.error,n=this.c[r],delete this.c[r],n)if(o){r=new v(o.severity,o.category,o.code);for(i in o)r[i]=o[i];n.reject(r)}else n.resolve()}},Ue.prototype.addEventListener=function(t,e){this.Bb.push(t,e)},Ue.prototype.removeEventListener=function(t,e){
this.Bb.remove(t,e)},Ue.prototype.dispatchEvent=function(t){for(var e=this.Bb.get(t.type)||[],n=0;n<e.length;++n){t.target=this.jb,t.currentTarget=this.jb;var r=e[n];try{r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){}if(t.a)break}return t.defaultPrevented},c(Fe,Ue),u("shaka.cast.CastProxy",Fe),Fe.prototype.destroy=function(t){return t&&this.a&&this.a.tb(),t=[this.i?this.i.destroy():null,this.b?this.b.destroy():null,this.a?this.a.destroy():null],
this.a=this.i=this.j=this.h=this.b=this.c=null,Promise.all(t)},Fe.prototype.destroy=Fe.prototype.destroy,Fe.prototype.vd=function(){return this.h},Fe.prototype.getVideo=Fe.prototype.vd,Fe.prototype.nd=function(){return this.j},Fe.prototype.getPlayer=Fe.prototype.nd,Fe.prototype.Zc=function(){return!!this.a&&(this.a.h&&vu)},Fe.prototype.canCast=Fe.prototype.Zc,Fe.prototype.X=function(){return!!this.a&&this.a.X()},Fe.prototype.isCasting=Fe.prototype.X,Fe.prototype.Xb=function(){
return this.a?this.a.Xb():""},Fe.prototype.receiverName=Fe.prototype.Xb,Fe.prototype.cast=function(){var t=this.oc();return this.a.cast(t).then(function(){return this.b.zb()}.bind(this))},Fe.prototype.cast=Fe.prototype.cast,Fe.prototype.$b=function(t){this.a.$b(t)},Fe.prototype.setAppData=Fe.prototype.$b,Fe.prototype.Ne=function(){var t=this.a;if(t.b){var e=t.u();chrome.cast.requestSession(t.Ub.bind(t,e),t.vc.bind(t))}},Fe.prototype.suggestDisconnect=Fe.prototype.Ne,Fe.prototype.tb=function(){
this.a.tb()},Fe.prototype.forceDisconnect=Fe.prototype.tb,zs=Fe.prototype,zs.oc=function(){var t={video:{},player:{},playerAfterLoad:{},manifest:this.b.Ib(),startTime:null};return this.c.pause(),su.forEach(function(e){t.video[e]=this.c[e]}.bind(this)),this.c.ended||(t.startTime=this.c.currentTime),hu.forEach(function(e){var n=e[1];e=this.b[e[0]](),t.player[n]=e}.bind(this)),pu.forEach(function(e){var n=e[1];e=this.b[e[0]](),t.playerAfterLoad[n]=e}.bind(this)),t},zs.Ge=function(){
this.dispatchEvent(new Z("caststatuschanged"))},zs.He=function(){this.f.dispatchEvent(new Z(this.h.paused?"pause":"play"))},zs.Je=function(){hu.forEach(function(t){var e=t[1];t=this.a.get("player",t[0])(),this.b[e](t)}.bind(this));var t=this.a.get("player","getManifestUri")(),e=this.a.get("video","ended"),n=Promise.resolve(),r=this.c.autoplay,i=null;e||(i=this.a.get("video","currentTime")),t&&(this.c.autoplay=!1,n=this.b.load(t,i),n.catch(function(t){this.b.dispatchEvent(new Z("error",{detail:t
}))}.bind(this)));var o={};su.forEach(function(t){o[t]=this.a.get("video",t)}.bind(this)),n.then(function(){su.forEach(function(t){this.c[t]=o[t]}.bind(this)),pu.forEach(function(t){var e=t[1];t=this.a.get("player",t[0])(),this.b[e](t)}.bind(this)),this.c.autoplay=r,t&&this.c.play()}.bind(this))},zs.Te=function(t){if("addEventListener"==t)return this.f.addEventListener.bind(this.f);if("removeEventListener"==t)return this.f.removeEventListener.bind(this.f)
;if(this.a.X()&&0==Object.keys(this.a.a.video).length){var e=this.c[t];if("function"!=typeof e)return e}return this.a.X()?this.a.get("video",t):(e=this.c[t],"function"==typeof e&&(e=e.bind(this.c)),e)},zs.Ve=function(t,e){this.a.X()?this.a.set("video",t,e):this.c[t]=e},zs.Ue=function(t){this.a.X()||this.f.dispatchEvent(new Z(t.type,t))},zs.fe=function(t){
return"addEventListener"==t?this.g.addEventListener.bind(this.g):"removeEventListener"==t?this.g.removeEventListener.bind(this.g):"getMediaElement"==t?function(){return this.h}.bind(this):"getNetworkingEngine"==t?this.b.pc.bind(this.b):"getManifest"==t?this.a.X()?function(){return null}:this.b.Fa.bind(this.b):this.a.X()&&0==Object.keys(this.a.a.video).length&&lu[t]||!this.a.X()?(t=this.b[t],t.bind(this.b)):this.a.get("player",t)},zs.ge=function(t){this.a.X()||this.g.dispatchEvent(t)},
zs.Ie=function(t,e){this.a.X()&&("video"==t?this.f.dispatchEvent(e):"player"==t&&this.g.dispatchEvent(e))},c(ze,Ue),u("shaka.cast.CastReceiver",ze),ze.prototype.isConnected=function(){return this.m},ze.prototype.isConnected=ze.prototype.isConnected,ze.prototype.xd=function(){return this.g},ze.prototype.isIdle=ze.prototype.xd,ze.prototype.destroy=function(){var e=this.b?this.b.destroy():Promise.resolve();return null!=this.j&&t.clearTimeout(this.j),this.u=this.s=this.b=this.a=null,this.m=!1,
this.g=!0,this.j=this.h=this.c=null,e.then(function(){cast.receiver.CastReceiverManager.getInstance().stop()})},ze.prototype.destroy=ze.prototype.destroy,zs=ze.prototype,zs.Bc=function(){this.f=0,this.i=!0,this.m=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,He(this)},zs.Fc=function(t,e){this.b&&(this.Vb(),Ge(this,{type:"event",targetName:t,event:e},this.c))},zs.Vb=function(){null!=this.j&&t.clearTimeout(this.j),this.j=t.setTimeout(this.Vb.bind(this),500);var e={
video:{},player:{}};if(au.forEach(function(t){e.video[t]=this.a[t]}.bind(this)),this.b.P())for(var n in fu){var r=fu[n];0==this.f%r&&(e.player[n]=this.b[n]())}for(n in lu)r=lu[n],0==this.f%r&&(e.player[n]=this.b[n]());(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(e.video.volume=n.level,e.video.muted=n.muted),this.l&&(this.f+=1),Ge(this,{type:"update",update:e},this.c),Ve(this)},zs.fd=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume()
;t&&Ge(this,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},this.c),Ge(this,{type:"event",targetName:"video",event:{type:"volumechange"}},this.c)},zs.Td=function(t){var e=Me(t.data);switch(e.type){case"init":this.f=0,this.l=!1,this.i=!0,We(this,e.initState,e.appData),this.Vb();break;case"appData":this.u(e.appData);break;case"set":var n=e.targetName,r=e.property,i=e.value;if("video"==n){if(e=cast.receiver.CastReceiverManager.getInstance(),"volume"==r){e.setSystemVolumeLevel(i);break
}if("muted"==r){e.setSystemVolumeMuted(i);break}}this.s[n][r]=i;break;case"call":n=e.targetName,r=e.methodName,i=e.args;var o=this.s[n];o[r].apply(o,i);break;case"asyncCall":n=e.targetName,r=e.methodName,"player"==n&&"load"==r&&(this.f=0,this.l=!1),i=e.args,e=e.id,t=t.senderId,o=this.s[n],i=o[r].apply(o,i),"player"==n&&"load"==r&&(i=i.then(function(){this.i=!0}.bind(this))),i.then(this.Mc.bind(this,t,e,null),this.Mc.bind(this,t,e))}},zs.Ed=function(t){var e=Me(t.data);switch(e.type){case"PLAY":
this.a.play(),Xe(this,0);break;case"PAUSE":this.a.pause(),Xe(this,0);break;case"SEEK":t=e.currentTime;var n=e.resumeState;null!=t&&(this.a.currentTime=Number(t)),n&&"PLAYBACK_START"==n?(this.a.play(),Xe(this,0)):n&&"PLAYBACK_PAUSE"==n&&(this.a.pause(),Xe(this,0));break;case"STOP":this.b.zb().then(function(){Xe(this,0)}.bind(this));break;case"GET_STATUS":Xe(this,Number(e.requestId));break;case"VOLUME":n=e.volume,t=n.level,n=n.muted;var r=this.a.volume,i=this.a.muted
;null!=t&&(this.a.volume=Number(t)),null!=n&&(this.a.muted=n),r==this.a.volume&&i==this.a.muted||Xe(this,0);break;case"LOAD":this.f=0,this.i=this.l=!1,n=e.media.contentId,t=e.currentTime,n=this.w(n),this.a.autoplay=!0,this.b.load(n,t).then(function(){Ye(this)}.bind(this)).catch(function(t){var n="LOAD_FAILED";7==t.category&&7e3==t.code&&(n="LOAD_CANCELLED"),Ge(this,{requestId:Number(e.requestId),type:n},this.h)}.bind(this));break;default:Ge(this,{requestId:Number(e.requestId),
type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},this.h)}},zs.Mc=function(t,e,n){Ge(this,{type:"asyncComplete",id:e,error:n},this.c,t)};var mu={IDLE:"IDLE",Wc:"PLAYING",Tc:"BUFFERING",Vc:"PAUSED"},bu={"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"}
;u("shaka.media.InitSegmentReference",mn),mn.prototype.Eb=function(){return this.a()},mn.prototype.createUris=mn.prototype.Eb,mn.prototype.Jb=function(){return this.O},mn.prototype.getStartByte=mn.prototype.Jb,mn.prototype.Hb=function(){return this.D},mn.prototype.getEndByte=mn.prototype.Hb,u("shaka.media.SegmentReference",bn),bn.prototype.U=function(){return this.position},bn.prototype.getPosition=bn.prototype.U,bn.prototype.Kb=function(){return this.startTime},
bn.prototype.getStartTime=bn.prototype.Kb,bn.prototype.kd=function(){return this.endTime},bn.prototype.getEndTime=bn.prototype.kd,bn.prototype.Eb=function(){return this.a()},bn.prototype.createUris=bn.prototype.Eb,bn.prototype.Jb=function(){return this.O},bn.prototype.getStartByte=bn.prototype.Jb,bn.prototype.Hb=function(){return this.D},bn.prototype.getEndByte=bn.prototype.Hb,u("shaka.util.DataViewReader",wn);var wu=1;wn.Endianness={Xe:0,$e:wu},wn.prototype.ea=function(){
return this.a<this.G.byteLength},wn.prototype.hasMoreData=wn.prototype.ea,wn.prototype.U=function(){return this.a},wn.prototype.getPosition=wn.prototype.U,wn.prototype.ld=function(){return this.G.byteLength},wn.prototype.getLength=wn.prototype.ld,wn.prototype.$=function(){try{var t=this.G.getUint8(this.a);return this.a+=1,t}catch(t){_n()}},wn.prototype.readUint8=wn.prototype.$,wn.prototype.ab=function(){try{var t=this.G.getUint16(this.a,this.b);return this.a+=2,t}catch(t){_n()}},
wn.prototype.readUint16=wn.prototype.ab,wn.prototype.C=function(){try{var t=this.G.getUint32(this.a,this.b);return this.a+=4,t}catch(t){_n()}},wn.prototype.readUint32=wn.prototype.C,wn.prototype.Gc=function(){try{var t=this.G.getInt32(this.a,this.b);return this.a+=4,t}catch(t){_n()}},wn.prototype.readInt32=wn.prototype.Gc,wn.prototype.Qa=function(){try{if(this.b)var t=this.G.getUint32(this.a,!0),e=this.G.getUint32(this.a+4,!0);else e=this.G.getUint32(this.a,!1),t=this.G.getUint32(this.a+4,!1)
}catch(t){_n()}if(2097151<e)throw new v(2,3,3001);return this.a+=8,e*Math.pow(2,32)+t},wn.prototype.readUint64=wn.prototype.Qa,wn.prototype.Pa=function(t){this.a+t>this.G.byteLength&&_n();var e=new Uint8Array(this.G.buffer,this.G.byteOffset+this.a,t);return this.a+=t,new Uint8Array(e)},wn.prototype.readBytes=wn.prototype.Pa,wn.prototype.F=function(t){this.a+t>this.G.byteLength&&_n(),this.a+=t},wn.prototype.skip=wn.prototype.F,wn.prototype.Kc=function(t){this.a<t&&_n(),this.a-=t},
wn.prototype.rewind=wn.prototype.Kc,wn.prototype.seek=function(t){(0>t||t>this.G.byteLength)&&_n(),this.a=t},wn.prototype.seek=wn.prototype.seek,wn.prototype.Wb=function(){for(var t=this.a;this.ea()&&0!=this.G.getUint8(this.a);)this.a+=1;return t=new Uint8Array(this.G.buffer,this.G.byteOffset+t,this.a-t),this.a+=1,st(t)},wn.prototype.readTerminatedString=wn.prototype.Wb,u("shaka.util.Mp4Parser",xn),xn.prototype.B=function(t,e){var n=En(t);return this.c[n]=0,this.b[n]=e,this},
xn.prototype.box=xn.prototype.B,xn.prototype.W=function(t,e){var n=En(t);return this.c[n]=1,this.b[n]=e,this},xn.prototype.fullBox=xn.prototype.W,xn.prototype.stop=function(){this.a=!0},xn.prototype.stop=xn.prototype.stop,xn.prototype.parse=function(t,e){var n=new Uint8Array(t);for(n=new wn(new DataView(n.buffer,n.byteOffset,n.byteLength),0),this.a=!1;n.ea()&&!this.a;)this.xb(0,n,e)},xn.prototype.parse=xn.prototype.parse,xn.prototype.xb=function(t,e,n){var r=e.U(),i=e.C(),o=e.C();switch(i){
case 0:i=e.G.byteLength-r;break;case 1:i=e.Qa()}var a=this.b[o];if(a){var s=null,u=null;1==this.c[o]&&(u=e.C(),s=u>>>24,u&=16777215),o=r+i,n&&o>e.G.byteLength&&(o=e.G.byteLength),o-=e.U(),e=0<o?e.Pa(o):new Uint8Array(0),e=new wn(new DataView(e.buffer,e.byteOffset,e.byteLength),0),a({la:this,Dc:n||!1,version:s,flags:u,o:e,size:i,start:r+t})}else e.F(r+i-e.U())},xn.prototype.parseNext=xn.prototype.xb,xn.children=On,xn.sampleDescription=Tn,xn.allData=Sn,u("shaka.media.SegmentIndex",Cn),
Cn.prototype.destroy=function(){return this.a=null,Promise.resolve()},Cn.prototype.destroy=Cn.prototype.destroy,Cn.prototype.find=function(t){for(var e=this.a.length-1;0<=e;--e){var n=this.a[e];if(t>=n.startTime&&t<n.endTime)return n.position}return this.a.length&&t<this.a[0].startTime?this.a[0].position:null},Cn.prototype.find=Cn.prototype.find,Cn.prototype.get=function(t){return 0==this.a.length?null:(t-=this.a[0].position,0>t||t>=this.a.length?null:this.a[t])},
Cn.prototype.get=Cn.prototype.get,Cn.prototype.offset=function(t){for(var e=0;e<this.a.length;++e)this.a[e].startTime+=t,this.a[e].endTime+=t},Cn.prototype.offset=Cn.prototype.offset,Cn.prototype.Pb=function(t){for(var e=[],n=0,r=0;n<this.a.length&&r<t.length;){var i=this.a[n],o=t[r];i.startTime<o.startTime?(e.push(i),n++):(i.startTime>o.startTime?0==n&&e.push(o):(.1<Math.abs(i.endTime-o.endTime)?(o=new bn(i.position,o.startTime,o.endTime,o.a,o.O,o.D),e.push(o)):e.push(i),n++),r++)}
for(;n<this.a.length;)e.push(this.a[n++]);if(e.length)for(n=e[e.length-1].position+1;r<t.length;)o=t[r++],o=new bn(n++,o.startTime,o.endTime,o.a,o.O,o.D),e.push(o);else e=t;this.a=e},Cn.prototype.merge=Cn.prototype.Pb,Cn.prototype.Fb=function(t){for(var e=0;e<this.a.length;++e)if(this.a[e].endTime>t)return void this.a.splice(0,e);this.a=[]},Cn.prototype.evict=Cn.prototype.Fb;var _u;Pn.prototype.ea=function(){return this.a.ea()},Rn.prototype.parse=function(t,e,n,r){var i
;if(e=new Pn(new DataView(e)),440786851!=Mn(e).id)throw new v(2,3,3008);var o=Mn(e);if(408125543!=o.id)throw new v(2,3,3009);for(e=o.a.byteOffset,o=new Pn(o.a),i=null;o.ea();){var a=Mn(o);if(357149030==a.id){i=a;break}}if(!i)throw new v(2,3,3010);for(o=new Pn(i.a),i=1e6,a=null;o.ea();){var s=Mn(o);if(2807729==s.id)i=Nn(s);else if(17545==s.id)if(a=s,4==a.a.byteLength)a=a.a.getFloat32(0);else{if(8!=a.a.byteLength)throw new v(2,3,3003);a=a.a.getFloat64(0)}}if(null==a)throw new v(2,3,3011)
;if(o=i/1e9,i=a*o,t=Mn(new Pn(new DataView(t))),475249515!=t.id)throw new v(2,3,3007);return Ln(t,e,o,i,n,r)};var xu={},Ou={};u("shaka.media.ManifestParser.registerParserByExtension",function(t,e){Ou[t]=e}),u("shaka.media.ManifestParser.registerParserByMime",function(t,e){xu[t]=e}),u("shaka.media.PresentationTimeline",tr),tr.prototype.S=function(){return this.a},tr.prototype.getDuration=tr.prototype.S,tr.prototype.ha=function(t){this.a=t},tr.prototype.setDuration=tr.prototype.ha,
tr.prototype.pd=function(){return this.c},tr.prototype.getPresentationStartTime=tr.prototype.pd,tr.prototype.Oc=function(t){this.j=t},tr.prototype.setClockOffset=tr.prototype.Oc,tr.prototype.yb=function(t){this.i=t},tr.prototype.setStatic=tr.prototype.yb,tr.prototype.bc=function(t){this.f=t},tr.prototype.setSegmentAvailabilityDuration=tr.prototype.bc,tr.prototype.Pc=function(t){this.l=t},tr.prototype.setDelay=tr.prototype.Pc,tr.prototype.Za=function(t,e){
0!=t.length&&(e&&(this.g=Math.max(this.g,t[0].startTime)),this.b=t.reduce(function(t,e){return Math.max(t,e.endTime-e.startTime)},this.b))},tr.prototype.notifySegments=tr.prototype.Za,tr.prototype.wb=function(t){this.b=Math.max(this.b,t)},tr.prototype.notifyMaxSegmentDuration=tr.prototype.wb,tr.prototype.P=function(){return 1/0==this.a&&!this.i},tr.prototype.isLive=tr.prototype.P,tr.prototype.wa=function(){return 1/0!=this.a&&!this.i},tr.prototype.isInProgress=tr.prototype.wa,
tr.prototype.Ja=function(){if(1/0==this.f)return this.h;var t=this.Ia()-this.f;return Math.max(this.h,t)},tr.prototype.getSegmentAvailabilityStart=tr.prototype.Ja,tr.prototype.Nc=function(t){this.h=t},tr.prototype.setAvailabilityStart=tr.prototype.Nc,tr.prototype.Ia=function(){return this.P()||this.wa()?Math.min(Math.max(0,(Date.now()+this.j)/1e3-this.b-this.c),this.a):this.a},tr.prototype.getSegmentAvailabilityEnd=tr.prototype.Ia,tr.prototype.Ga=function(t){1/0==this.f&&(t=0);var e=this.Ia()
;return t=Math.min(this.g+t,e),Math.max(this.Ja(),t)},tr.prototype.getSafeSeekRangeStart=tr.prototype.Ga,tr.prototype.Va=function(){return this.Ga(0)},tr.prototype.getSeekRangeStart=tr.prototype.Va,tr.prototype.Ha=function(){var t=this.P()||this.wa()?this.l:0;return Math.max(0,this.Ia()-t)},tr.prototype.getSeekRangeEnd=tr.prototype.Ha,u("shaka.dash.DashParser",er),zs=er.prototype,zs.configure=function(t){this.b=t},zs.start=function(t,e){return this.g=[t],this.a=e,nr(this).then(function(){
return this.a&&cr(this,0),this.c}.bind(this))},zs.stop=function(){return this.b=this.a=null,this.g=[],this.c=null,this.i=[],this.j={},null!=this.f&&(t.clearTimeout(this.f),this.f=null),Promise.resolve()},zs.update=function(){nr(this).catch(function(t){this.a&&this.a.onError(t)}.bind(this))},zs.onExpirationUpdated=function(){},zs.be=function(t,e){t.T=lr(e,t.Z,null);var n=!1,r=$e(e,"Role"),i=r.map(function(t){return t.getAttribute("value")}).filter(L),o=void 0
;"text"==t.T.contentType&&(o="subtitle");for(var a=0;a<r.length;a++){var s=r[a].getAttribute("schemeIdUri");if(null==s||"urn:mpeg:dash:role:2011"==s)switch(s=r[a].getAttribute("value")){case"main":n=!0;break;case"caption":case"subtitle":o=s}}var u=null,c=!1;if($e(e,"EssentialProperty").forEach(function(t){"http://dashif.org/guidelines/trickmode"==t.getAttribute("schemeIdUri")?u=t.getAttribute("value"):c=!0}),c)return null;r=$e(e,"ContentProtection")
;var l=sn(r,this.b.dash.customScheme,this.b.dash.ignoreDrmInfo);if(r=se(e.getAttribute("lang")||"und"),s=e.getAttribute("label"),a=$e(e,"Representation"),i=a.map(this.ee.bind(this,t,l,o,r,s,n,i)).filter(function(t){return!!t}),0==i.length)throw new v(2,4,4003);return t.T.contentType&&"application"!=t.T.contentType||(t.T.contentType=gr(i[0].mimeType,i[0].codecs),i.forEach(function(e){e.type=t.T.contentType})),i.forEach(function(t){l.drmInfos.forEach(function(e){t.keyId&&e.keyIds.push(t.keyId)})
}),o=a.map(function(t){return t.getAttribute("id")}).filter(L),{id:t.T.id||"__fake__"+this.h++,contentType:t.T.contentType,language:r,Nb:n,streams:i,drmInfos:l.drmInfos,fc:u,pe:o}},zs.ee=function(t,e,n,r,i,o,a,s){if(t.v=lr(s,t.T,null),!hr(t.v))return null;t.bandwidth=Je(s,"bandwidth",rn)||0;var u=this.qe.bind(this);if(t.v.bb)u=Bn(t,u);else if(t.v.qa)u=Hn(t,this.j);else if(t.v.eb)u=Gn(t,u,this.j,!!this.c);else{var c=t.v.ba,l=t.M.duration||0;u={createSegmentIndex:Promise.resolve.bind(Promise),
findSegmentPosition:function(t){return 0<=t&&t<l?1:null},getSegmentReference:function(t){return 1!=t?null:new bn(1,0,l,function(){return c},0,null)},initSegmentReference:null,aa:0}}return s=$e(s,"ContentProtection"),s=un(s,this.b.dash.customScheme,e,this.b.dash.ignoreDrmInfo),{id:this.h++,createSegmentIndex:u.createSegmentIndex,findSegmentPosition:u.findSegmentPosition,getSegmentReference:u.getSegmentReference,initSegmentReference:u.initSegmentReference,presentationTimeOffset:u.aa,
mimeType:t.v.mimeType,codecs:t.v.codecs,frameRate:t.v.frameRate,bandwidth:t.bandwidth,width:t.v.width,height:t.v.height,kind:n,encrypted:0<e.drmInfos.length,keyId:s,language:r,label:i,type:t.T.contentType,primary:o,trickModeVideo:null,containsEmsgBoxes:t.v.containsEmsgBoxes,roles:a,channelsCount:t.v.Rb}},zs.Ke=function(){this.f=null;var t=Date.now();nr(this).then(function(){this.a&&cr(this,(Date.now()-t)/1e3)}.bind(this)).catch(function(t){this.a&&(t.severity=1,this.a.onError(t),cr(this,0))
}.bind(this))},zs.de=function(t,e,n){var r=n.getAttribute("schemeIdUri")||"",i=n.getAttribute("value")||"",o=Je(n,"timescale",on)||1;$e(n,"Event").forEach(function(n){var a=Je(n,"presentationTime",on)||0,s=Je(n,"duration",on)||0;a=a/o+t,s=a+s/o,null!=e&&(a=Math.min(a,t+e),s=Math.min(s,t+e)),n={schemeIdUri:r,value:i,startTime:a,endTime:s,id:n.getAttribute("id")||"",eventElement:n},this.a.onTimelineRegionAdded(n)}.bind(this))},zs.qe=function(t,e,n){return t=z(t,this.b.retryParameters),
null!=e&&(t.headers.Range="bytes="+e+"-"+(null!=n?n:"")),this.a.networkingEngine.request(1,t).then(function(t){return t.data})},Ou.mpd=er,xu["application/dash+xml"]=er,yr.prototype.toString=function(){function t(t){return t.name+'="'+t.value+'"'}return this.value?"#"+this.name+":"+this.value:0<this.a.length?"#"+this.name+":"+this.a.map(t).join(","):"#"+this.name},yr.prototype.getAttribute=function(t){var e=this.a.filter(function(e){return e.name==t});return e.length?e[0]:null}
;var Tu="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-MAP EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST".split(" "),Su="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE".split(" ");u("shaka.net.DataUriPlugin",Mr),Mr.parse=function(e){var n=e.split(":");if(2>n.length||"data"!=n[0])throw new v(2,1,1004,e);if(n=n.slice(1).join(":").split(","),2>n.length)throw new v(2,1,1004,e);var r=n[0]
;n=t.decodeURIComponent(n.slice(1).join(",")),r=r.split(";");var i=null;if(1<r.length&&(i=r[1]),"base64"==i)e=vt(n).buffer;else{if(i)throw new v(2,1,1005,e);e=lt(n)}return{data:e,contentType:r[0]}},B("data",Mr),u("shaka.hls.HlsParser",Dr),zs=Dr.prototype,zs.configure=function(t){this.h=t},zs.start=function(t,e){return this.c=e,this.l=t,ri(this,t).then(function(e){return Nr(this,e.data,t).then(function(){return ii(this,this.i),this.m}.bind(this))}.bind(this))},zs.stop=function(){
return this.h=this.c=null,this.u={},this.A={},this.m=null,Promise.resolve()},zs.update=function(){if(this.f!=Au.oa){var t,e=[];for(t in this.a)e.push(Ir(this,this.a[t],t));return Promise.all(e)}},zs.onExpirationUpdated=function(){};var Eu={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]},ju={audio:{mp4:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",ts:"video/mp2t"},video:{mp4:"video/mp4",
m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"}};Dr.prototype.K=function(){this.c&&(this.j=null,this.update().then(function(){ii(this,this.i)}.bind(this)).catch(function(t){this.c&&(t.severity=1,this.c.onError(t),ii(this,0))}.bind(this)))};var ku={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(t){var e=ei(t,"METHOD")
;return"SAMPLE-AES-CENC"!=e&&"SAMPLE-AES-CTR"!=e?null:(e=ei(t,"URI"),e=Mr.parse(e),e=new Uint8Array(e.data),e=et("com.widevine.alpha",[{initDataType:"cenc",initData:e}]),(t=br(t,"KEYID"))&&(e.keyIds=[t.substr(2).toLowerCase()]),e)}},Cu="VOD",Au={oa:Cu,Uc:"EVENT",hc:"LIVE"};Ou.m3u8=Dr,xu["application/x-mpegurl"]=Dr,xu["application/vnd.apple.mpegurl"]=Dr,ai.prototype.destroy=function(){var t=this.h.destroy();return this.w=this.u=this.a=this.h=null,null!=this.b&&(this.b.cancel(),this.b=null),t},
ai.prototype.$a=function(){this.f=!0,this.l()},ai.prototype.l=function(){if(0!=this.a.readyState){if(this.a.seeking){if(!this.g)return}else this.g=!1;if(!this.a.paused){this.a.readyState!=this.m&&(this.c=!1,this.m=this.a.readyState);var t=this.s.smallGapLimit,e=this.a.currentTime,n=this.a.buffered;t:{if(n&&n.length&&!(1==n.length&&1e-6>n.end(0)-n.start(0))){var r=.1;/(Edge\/|Trident\/|Tizen)/.test(navigator.userAgent)&&(r=.5);for(var i=0;i<n.length;i++)if(n.start(i)>e&&(0==i||n.end(i-1)-e<=r)){
r=i;break t}}r=null}if(null==r){if(n=this.a.currentTime,e=this.a.buffered,3>this.a.readyState&&0<this.a.playbackRate)if(this.j!=n)this.j=n,this.A=Date.now(),this.i=!1;else if(!this.i&&this.A<Date.now()-1e3)for(r=0;r<e.length;r++)if(n>=e.start(r)&&n<e.end(r)-.5){this.a.currentTime+=.1,this.j=this.a.currentTime,this.i=!0;break}}else if(0!=r||this.f){i=n.start(r);var o=this.u.presentationTimeline.Ha();if(!(i>=o)){o=i-e,t=o<=t;var a=!1;.001>o||(t||this.c||(this.c=!0,e=new Z("largegap",{
currentTime:e,gapSize:o}),e.cancelable=!0,this.w(e),this.s.jumpLargeGaps&&!e.defaultPrevented&&(a=!0)),!t&&!a)||(0!=r&&n.end(r-1),this.a.currentTime=i)}}}}},zs=si.prototype,zs.destroy=function(){var t=this.b.destroy();return this.b=null,null!=this.c&&(this.c.cancel(),this.c=null),null!=this.f&&(this.f.cancel(),this.f=null),this.j=this.a=null,t},zs.Ua=function(){return this.g},zs.Pd=function(){var t=this.h||0>this.g?0:this.g
;this.a.playbackRate&&this.a.playbackRate!=t&&li(this,this.a.playbackRate)},zs.zc=function(){this.b.ia(this.a,"timeupdate"),this.f.cancel(),.001>Math.abs(this.a.currentTime-this.i)?this.Ac():($(this.b,this.a,"seeking",this.Ac.bind(this)),this.a.currentTime=this.i)},zs.Ac=function(){K(this.b,this.a,"seeking",this.j.bind(this))},zs.Bd=function(){this.i=this.a.currentTime,this.j()},zs=hi.prototype,zs.destroy=function(){var t=Promise.all([this.a.destroy(),this.g.destroy()])
;return this.g=this.a=null,null!=this.f&&(this.f.cancel(),this.f=null),this.i=this.h=this.c=this.b=null,t},zs.Ua=function(){return this.a.Ua()},zs.$a=function(){this.g.$a()},zs.Od=function(){if(0!=this.b.readyState&&!this.b.seeking&&!this.b.paused){var t=this.b.currentTime;t<this.c.presentationTimeline.Va()&&(t=gi(this,t),this.b.currentTime=t)}},zs.Rd=function(){var t=this.g;t.g=!0,t.f=!1,t.c=!1,t=ui(this.a);var e=gi(this,t);.001<Math.abs(e-t)?ci(this.a,e):this.i()},
yi.prototype.destroy=function(){var t=this.j?this.j.destroy():Promise.resolve();return this.j=null,wi(this),this.A=this.h=this.l=this.u=this.g=this.w=this.a=null,this.c=[],t},yi.prototype.s=function(t){if(!this.c.some(function(e){return e.info.schemeIdUri==t.schemeIdUri&&e.info.startTime==t.startTime&&e.info.endTime==t.endTime})){var e={info:t,status:1};this.c.push(e);var n=new Z("timelineregionadded",{detail:mi(t)});this.h(n),this.m(!0,e)}},yi.prototype.m=function(t,e){
var n=e.info.startTime>this.a.currentTime?1:e.info.endTime<this.a.currentTime?3:2,r=2==e.status,i=2==n;n!=e.status&&((!t||r||i)&&(r||this.h(new Z("timelineregionenter",{detail:mi(e.info)})),i||this.h(new Z("timelineregionexit",{detail:mi(e.info)}))),e.status=n)},yi.prototype.I=function(){this.f=null,bi(this);var t=je(this.g,this.a.currentTime);t!=this.i&&(-1!=this.i&&this.A(),this.i=t),t=qt(this.a.buffered,this.a.currentTime);var e=Bt(this.a.buffered),n=this.g.presentationTimeline,r=n.Ia()
;e=n.P()&&e>=r,n="ended"==this.w.readyState,e=e||this.a.ended||n,this.b?(n=1*Math.max(this.g.minBufferTime||0,this.u.rebufferingGoal),(e||t>=n)&&0!=this.b&&(this.b=!1,this.l(!1))):!e&&.5>t&&1!=this.b&&(this.b=!0,this.l(!0)),this.c.forEach(this.m.bind(this,!1))},zs=_i.prototype,zs.destroy=function(){for(var t in this.c)Qi(this.c[t]);return this.h=this.c=this.j=this.g=this.m=this.b=this.a=null,this.f=!0,Promise.resolve()},zs.configure=function(t){this.h=t,this.A=new j({
maxAttempts:Math.max(t.retryParameters.maxAttempts,2),baseDelay:t.retryParameters.baseDelay,backoffFactor:t.retryParameters.backoffFactor,fuzzFactor:t.retryParameters.fuzzFactor,timeout:0},!0)},zs.init=function(){var t=pi(this.a.Na);return t=this.a.uc(this.b.periods[je(this.b,t)]),t.variant||t.text?Di(this,t).then(function(){this.a&&this.a.Fd&&this.a.Fd()}.bind(this)):Promise.reject(new v(2,5,5005))},zs.Me=function(t){if(!this.f&&!t.ya&&null!=t.ra&&!t.ua)if(t.ra=null,t.sa)Ki(this,t,t.Ab);else{
try{var e=Ui(this,t);null!=e&&($i(this,t,e),t.Wa=!1)}catch(t){return void Ji(this,t)}e=rt(this.c),Yi(this,t),e.every(function(t){return t.endOfStream})&&this.a.J.endOfStream().then(function(){var t=this.a.J.S();t<this.b.presentationTimeline.S()&&this.b.presentationTimeline.ha(t)}.bind(this))}},zs.ce=function(t,e,n){var r=n.o.Wb(),i=n.o.Wb(),o=n.o.C(),a=n.o.C(),s=n.o.C(),u=n.o.C(),c=n.o.Pa(n.o.G.byteLength-n.o.U());t=t.startTime+e.startTime+a/o,
"urn:mpeg:dash:event:2012"==r?this.a.Hd():this.a.onEvent(new Z("emsg",{detail:{startTime:t,endTime:t+s/o,schemeIdUri:r,value:i,timescale:o,presentationTimeDelta:a,eventDuration:s,id:u,messageData:c}})),n.la.stop()},u("shaka.net.HttpPlugin",Zi),Zi.c=t.XMLHttpRequest,B("http",Zi,1),B("https",Zi,1),to.prototype.init=function(t){return fo(t).then(function(t){this.b=t}.bind(this))},to.prototype.destroy=function(){return Promise.all(this.a.map(function(t){try{t.transaction.abort()}catch(t){}
return t.N.catch(R)})).then(function(){this.b&&(this.b.close(),this.b=null)}.bind(this))},to.prototype.Fa=function(t){return ro(this,"manifest-v3",t)},go.prototype.destroy=function(){var t=this.h,e=this.i,n=this.g||Promise.resolve();return e.length&&(n=n.then(function(){return so(t,"segment-v3",e,null)})),this.b={},this.i=[],this.g=this.a=this.m=this.j=this.h=null,n},go.prototype.s=function(t){this.c+=null==t.D?t.jc:t.D-t.O+1},zs=No.prototype,zs.configure=function(){},zs.start=function(t){
var e=_o(t);if(null==e)return Promise.reject(new v(2,1,9004,t));this.a=e;var n;return Mo().then(function(t){return n=t,n.Fa(e)}.bind(this)).then(function(t){if(!t)throw new v(2,9,9003,e);return Ro(t)}).then(function(t){return n.destroy().then(function(){return t})},function(t){return n.destroy().then(function(){throw t})})},zs.stop=function(){return Promise.resolve()},zs.update=function(){},zs.onExpirationUpdated=function(t,e){var n,r=this.a;Mo().then(function(t){return n=t,n.Fa(r)
}).then(function(i){if(i&&!(0>i.sessionIds.indexOf(t))&&(void 0==i.expiration||i.expiration>e))return i.expiration=e,oo(n,r,i)}).catch(function(){}).then(function(){return n.destroy()})},xu["application/x-offline-manifest"]=No,u("shaka.offline.OfflineScheme",Lo),Lo.a=function(t){return t={uri:t,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},Promise.resolve(t)},Lo.b=function(t,e){var n,r;return Mo().then(function(e){return n=e,ro(n,"segment-v3",t)
}).then(function(t){return r=t,n.destroy()}).then(function(){if(!r)throw new v(2,9,9003,t);return{uri:e,data:r.data,headers:{}}})},B("offline",Lo),u("shaka.text.Cue",Uo);var Pu="auto";Uo.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Pu};var Mu="center",Du={LEFT:"left",RIGHT:"right",CENTER:Mu,START:"start",END:"end"};Uo.textAlign=Du;var Iu="before",Nu={BEFORE:Iu,CENTER:"center",AFTER:"after"};Uo.displayAlign=Nu;var Ru=0;Uo.writingDirection={HORIZONTAL_LEFT_TO_RIGHT:Ru,
HORIZONTAL_RIGHT_TO_LEFT:1,VERTICAL_LEFT_TO_RIGHT:2,VERTICAL_RIGHT_TO_LEFT:3};var Lu=0;Uo.lineInterpretation={LINE_NUMBER:Lu,PERCENTAGE:1};var Uu="center",Fu={CENTER:Uu,START:"start",END:"end"};Uo.lineAlign=Fu;var Bu=400;Uo.fontWeight={NORMAL:Bu,BOLD:700};var zu="normal",qu={NORMAL:zu,ITALIC:"italic",OBLIQUE:"oblique"};Uo.fontStyle=qu,Uo.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},u("shaka.text.SimpleTextDisplayer",Fo),Fo.prototype.remove=function(t,e){
return!!this.a&&(zo(this,function(n){return!(n.startTime>=e||n.endTime<=t)}),!0)},Fo.prototype.remove=Fo.prototype.remove,Fo.prototype.append=function(t){for(var e=[],n=0;n<t.length;n++){var r=Bo(t[n]);r&&e.push(r)}e.slice().sort(function(t,n){return t.startTime!=n.startTime?t.startTime-n.startTime:t.endTime!=n.endTime?t.endTime-n.startTime:e.indexOf(n)-e.indexOf(t)}).forEach(function(t){this.a.addCue(t)}.bind(this))},Fo.prototype.append=Fo.prototype.append,Fo.prototype.destroy=function(){
return this.a&&zo(this,function(){return!0}),this.a=null,Promise.resolve()},Fo.prototype.destroy=Fo.prototype.destroy,Fo.prototype.isTextVisible=function(){return"showing"==this.a.mode},Fo.prototype.isTextVisible=Fo.prototype.isTextVisible,Fo.prototype.setTextVisibility=function(t){this.a.mode=t?"showing":"hidden"},Fo.prototype.setTextVisibility=Fo.prototype.setTextVisibility,qo.prototype.then=function(t){return this.a=this.a.then(t).then(function(t){return this.b?(this.g(),
Promise.reject(this.h)):Promise.resolve(t)}.bind(this)),this},qo.prototype.cancel=function(t){return this.c?Promise.resolve():(this.b=!0,this.h=t,this.j.forEach(function(t){t()}),this.i)},c(Wo,Ue),u("shaka.Player",Wo),Wo.prototype.destroy=function(){return this.L=!0,Vo(this).then(function(){var t=Promise.all([this.Ta,Zo(this),this.m?this.m.destroy():null,this.s?this.s.destroy():null]);return this.f=null,this.qb=!1,this.c=this.s=this.h=this.m=null,t}.bind(this))},
Wo.prototype.destroy=Wo.prototype.destroy,Wo.version="v2.3.3";var Hu={};Wo.registerSupportPlugin=function(t,e){Hu[t]=e},Wo.isBrowserSupported=function(){return!!(t.Promise&&t.Uint8Array&&Array.prototype.forEach&&t.MediaSource&&MediaSource.isTypeSupported&&t.MediaKeys&&t.navigator&&t.navigator.requestMediaKeySystemAccess&&t.MediaKeySystemAccess&&t.MediaKeySystemAccess.prototype.getConfiguration)},Wo.probeSupport=function(){return Lt().then(function(t){t={manifest:Jn(),media:$t(),drm:t}
;for(var e in Hu)t[e]=Hu[e]();return t})},Wo.prototype.load=function(t,e,n){var r=this.zb(),i=new qo;this.Da=i,this.dispatchEvent(new Z("loading"));var o=Date.now();return Ho(i.then(function(){return r}).then(function(){return this.j=ra(),K(this.m,this.f,"playing",this.gb.bind(this)),K(this.m,this.f,"pause",this.gb.bind(this)),K(this.m,this.f,"ended",this.gb.bind(this)),this.h=new this.c.abrFactory,this.h.configure(this.c.abr),this.u=new this.c.textDisplayFactory,
this.u.setTextVisibility(this.qb),Zn(t,this.s,this.c.manifest.retryParameters,n)}.bind(this)).then(function(e){return this.i=new e,this.i.configure(this.c.manifest),this.i.start(t,{networkingEngine:this.s,filterNewPeriod:this.sb.bind(this),filterAllPeriods:this.cc.bind(this),onTimelineRegionAdded:this.Wd.bind(this),onEvent:this.fb.bind(this),onError:this.Sa.bind(this)})}.bind(this)).then(function(e){if(e.periods.some(function(t){return t.variants.some(function(t){return t.video&&t.audio})
})&&e.periods.forEach(function(t){t.variants=t.variants.filter(function(t){return t.video&&t.audio})}),0==e.periods.length)throw new v(2,4,4014);return this.b=e,this.Cb=t,this.l=new _t({Ya:this.s,onError:this.Sa.bind(this),Tb:this.Gd.bind(this),onExpirationUpdated:this.Dd.bind(this),onEvent:this.fb.bind(this)}),this.l.configure(this.c.drm),this.l.init(e,!1)}.bind(this)).then(function(){this.cc(this.b.periods),this.kb=Date.now()/1e3,this.Ba=this.c.preferredAudioLanguage,
this.Ca=this.c.preferredTextLanguage;var t=this.b.presentationTimeline.S(),e=this.c.playRangeEnd,n=this.c.playRangeStart;return 0<n&&(this.P()||this.b.presentationTimeline.Nc(n)),e<t&&(this.P()||this.b.presentationTimeline.ha(e)),Promise.all([xt(this.l,this.f),this.nb])}.bind(this)).then(function(){return this.h.init(this.Fe.bind(this)),this.g=new hi(this.f,this.b,this.c.streaming,void 0==e?null:e,this.De.bind(this),this.fb.bind(this)),
this.w=new yi(this.f,this.da,this.b,this.c.streaming,this.Qc.bind(this),this.fb.bind(this),this.Ce.bind(this)),this.ca=new Kt(this.f,this.da,this.u),this.a=new _i(this.b,{Na:this.g,J:this.ca,Ya:this.s,uc:this.Ad.bind(this),tc:this.$c.bind(this),onError:this.Sa.bind(this),onEvent:this.fb.bind(this),Hd:this.Id.bind(this),$a:this.Sd.bind(this),filterNewPeriod:this.sb.bind(this),filterAllPeriods:this.cc.bind(this)}),this.a.configure(this.c.streaming),Yo(this),this.dispatchEvent(new Z("streaming")),
this.a.init()}.bind(this)).then(function(){if(this.c.streaming.startAtSegmentBoundary){var t=aa(this,pi(this.g));ci(this.g.a,t)}this.b.periods.forEach(this.sb.bind(this)),la(this),ca(this),t=xi(this.a);var e=_e(t.variants,this.Ba,this.ib);this.h.setVariants(e),t.variants.some(function(t){return t.primary}),this.ob.forEach(this.w.s.bind(this.w)),this.ob=[],$(this.m,this.f,"loadeddata",function(){this.j.loadLatency=(Date.now()-o)/1e3}.bind(this)),this.Da=null}.bind(this))).catch(function(t){
return this.Da==i&&(this.Da=null,this.dispatchEvent(new Z("unloading"))),Promise.reject(t)}.bind(this))},Wo.prototype.load=Wo.prototype.load,Wo.prototype.configure=function(t){M(this.c,t,na(this),ea(),""),Xo(this)},Wo.prototype.configure=Wo.prototype.configure,Wo.prototype.getConfiguration=function(){var t=na(this);return M(t,this.c,na(this),ea(),""),t},Wo.prototype.getConfiguration=Wo.prototype.getConfiguration,Wo.prototype.re=function(){this.c=na(this),Xo(this)},
Wo.prototype.resetConfiguration=Wo.prototype.re,Wo.prototype.md=function(){return this.f},Wo.prototype.getMediaElement=Wo.prototype.md,Wo.prototype.pc=function(){return this.s},Wo.prototype.getNetworkingEngine=Wo.prototype.pc,Wo.prototype.Ib=function(){return this.Cb},Wo.prototype.getManifestUri=Wo.prototype.Ib,Wo.prototype.P=function(){return!!this.b&&this.b.presentationTimeline.P()},Wo.prototype.isLive=Wo.prototype.P,Wo.prototype.wa=function(){return!!this.b&&this.b.presentationTimeline.wa()},
Wo.prototype.isInProgress=Wo.prototype.wa,Wo.prototype.wd=function(){if(!this.b||!this.b.periods.length)return!1;var t=this.b.periods[0].variants;return!!t.length&&!t[0].video},Wo.prototype.isAudioOnly=Wo.prototype.wd,Wo.prototype.te=function(){var t=0,e=0;return this.b&&(e=this.b.presentationTimeline,t=e.Va(),e=e.Ha()),{start:t,end:e}},Wo.prototype.seekRange=Wo.prototype.te,Wo.prototype.keySystem=function(){return this.l?this.l.keySystem():""},Wo.prototype.keySystem=Wo.prototype.keySystem,
Wo.prototype.drmInfo=function(){return this.l?this.l.b:null},Wo.prototype.drmInfo=Wo.prototype.drmInfo,Wo.prototype.ub=function(){return this.l?this.l.ub():1/0},Wo.prototype.getExpiration=Wo.prototype.ub,Wo.prototype.sc=function(){return this.pb},Wo.prototype.isBuffering=Wo.prototype.sc,Wo.prototype.zb=function(){return this.L?Promise.resolve():(this.dispatchEvent(new Z("unloading")),Vo(this).then(function(){return this.Ta||(this.Ta=ta(this).then(function(){this.Ta=null}.bind(this))),this.Ta
}.bind(this)))},Wo.prototype.unload=Wo.prototype.zb,Wo.prototype.Ua=function(){return this.g?this.g.Ua():0},Wo.prototype.getPlaybackRate=Wo.prototype.Ua,Wo.prototype.Oe=function(t){this.g&&li(this.g.a,t),this.a&&ki(this.a,1!=t)},Wo.prototype.trickPlay=Wo.prototype.Oe,Wo.prototype.ad=function(){this.g&&li(this.g.a,1),this.a&&ki(this.a,!1)},Wo.prototype.cancelTrickPlay=Wo.prototype.ad,Wo.prototype.ud=function(){if(!this.b||!this.g)return[];var t=je(this.b,pi(this.g)),e=this.I[t]||{}
;return ge(this.b.periods[t],e.audio,e.video)},Wo.prototype.getVariantTracks=Wo.prototype.ud,Wo.prototype.td=function(){if(!this.b||!this.g)return[];var t=je(this.b,pi(this.g));return ve(this.b.periods[t],(this.I[t]||{}).text).filter(function(t){return 0>this.lb.indexOf(t.id)}.bind(this))},Wo.prototype.getTextTracks=Wo.prototype.td,Wo.prototype.we=function(t){if(this.a){(t=me(xi(this.a),t))&&(Qo(this,t,!1),this.ta?this.A=t:Ai(this.a,t,!0),this.Ca=t.language)}},
Wo.prototype.selectTextTrack=Wo.prototype.we,Wo.prototype.xe=function(t,e){if(this.a){this.c.abr.enabled&&d("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var n=xi(this.a);(n=ye(n,t))&&be(n)&&($o(this,n,!1),ia(this,n,e),this.Ba=n.language)}},Wo.prototype.selectVariantTrack=Wo.prototype.xe,Wo.prototype.jd=function(){if(!this.a)return[];var t=xi(this.a)
;return t=we(t.variants).map(function(t){return t.audio}).filter(U),Ko(t)},Wo.prototype.getAudioLanguagesAndRoles=Wo.prototype.jd,Wo.prototype.sd=function(){return this.a?Ko(xi(this.a).textStreams):[]},Wo.prototype.getTextLanguagesAndRoles=Wo.prototype.sd,Wo.prototype.hd=function(){return this.a?we(xi(this.a).variants).map(function(t){return t.language}).filter(U):[]},Wo.prototype.getAudioLanguages=Wo.prototype.hd,Wo.prototype.rd=function(){return this.a?xi(this.a).textStreams.map(function(t){
return t.language}).filter(U):[]},Wo.prototype.getTextLanguages=Wo.prototype.rd,Wo.prototype.ue=function(t,e){if(this.a){var n=xi(this.a);this.Ba=t,this.ib=e||"",ua(this,n)}},Wo.prototype.selectAudioLanguage=Wo.prototype.ue,Wo.prototype.ve=function(t,e){if(this.a){var n=xi(this.a);this.Ca=t,this.hb=e||"",ua(this,n)}},Wo.prototype.selectTextLanguage=Wo.prototype.ve,Wo.prototype.Mb=function(){return this.u?this.u.isTextVisible():this.qb},Wo.prototype.isTextTrackVisible=Wo.prototype.Mb,
Wo.prototype.Ae=function(t){this.u&&this.u.setTextVisibility(t),this.qb=t,fa(this),this.a&&(t?(t=xi(this.a),t=xe(t.textStreams,this.Ca,this.hb)[0],ji(this.a,t)):(t=this.a,t.w=!0,t.c.text&&(Qi(t.c.text),delete t.c.text)))},Wo.prototype.setTextTrackVisibility=Wo.prototype.Ae,Wo.prototype.od=function(){return this.b?new Date(1e3*this.b.presentationTimeline.c+1e3*this.f.currentTime):null},Wo.prototype.getPlayheadTimeAsDate=Wo.prototype.od,Wo.prototype.qd=function(){
return this.b?new Date(1e3*this.b.presentationTimeline.c):null},Wo.prototype.getPresentationStartTimeAsDate=Wo.prototype.qd,Wo.prototype.Gb=function(){return this.ca?this.ca.Gb():{total:[],audio:[],video:[],text:[]}},Wo.prototype.getBufferedInfo=Wo.prototype.Gb,Wo.prototype.getStats=function(){oa(this),this.gb();var t=null,e=null,n=this.f;if(n=n&&n.getVideoPlaybackQuality?n.getVideoPlaybackQuality():{},this.g&&this.b){var r=je(this.b,pi(this.g)),i=this.b.periods[r]
;(r=this.I[r])&&(e=Ee(r.audio,r.video,i.variants),t=e.video||{})}return t||(t={}),e||(e={}),{width:t.width||0,height:t.height||0,streamBandwidth:e.bandwidth||0,decodedFrames:Number(n.totalVideoFrames),droppedFrames:Number(n.droppedVideoFrames),estimatedBandwidth:this.h?this.h.getBandwidthEstimate():NaN,loadLatency:this.j.loadLatency,playTime:this.j.playTime,bufferingTime:this.j.bufferingTime,switchHistory:D(this.j.switchHistory),stateHistory:D(this.j.stateHistory)}},
Wo.prototype.getStats=Wo.prototype.getStats,Wo.prototype.addTextTrack=function(t,e,n,r,i,o){if(!this.a)return Promise.reject();for(var a,s=xi(this.a),u=0;u<this.b.periods.length;u++)if(this.b.periods[u]==s){if(u==this.b.periods.length-1){if(a=this.b.presentationTimeline.S()-s.startTime,1/0==a)return Promise.reject()}else a=this.b.periods[u+1].startTime-s.startTime;break}var c={id:this.Xc++,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return 1},
getSegmentReference:function(e){return 1!=e?null:new bn(1,0,a,function(){return[t]},0,null)},initSegmentReference:null,presentationTimeOffset:0,mimeType:r,codecs:i||"",kind:n,encrypted:!1,keyId:null,language:e,label:o||null,type:"text",primary:!1,trickModeVideo:null,containsEmsgBoxes:!1,roles:[],channelsCount:null};return this.lb.push(c.id),s.textStreams.push(c),ji(this.a,c).then(function(){if(!this.L){var t=this.b.periods.indexOf(s),r=Ei(this.a,"text");return r&&(this.I[t].text=r.id),
this.lb.splice(this.lb.indexOf(c.id),1),ua(this,s),la(this),{id:c.id,active:!1,type:"text",bandwidth:0,language:e,label:o||null,kind:n,width:null,height:null}}}.bind(this))},Wo.prototype.addTextTrack=Wo.prototype.addTextTrack,Wo.prototype.ac=function(t,e){this.mb.width=t,this.mb.height=e},Wo.prototype.setMaxHardwareResolution=Wo.prototype.ac,Wo.prototype.Jc=function(){if(this.a){var t=this.a;if(t.f)t=!1;else if(t.l)t=!1;else{for(var e in t.c){var n=t.c[e];n.Wa&&(n.Wa=!1,$i(t,n,.1))}t=!0}
}else t=!1;return t},Wo.prototype.retryStreaming=Wo.prototype.Jc,Wo.prototype.Fa=function(){return this.b},Wo.prototype.getManifest=Wo.prototype.Fa,zs=Wo.prototype,zs.dd=function(t){var e=[1001,1002,1003];this.P()&&0<=e.indexOf(t.code)&&(t.severity=1,this.Jc())},zs.cc=function(t){t.forEach(le.bind(null,this.l,this.a?Ti(this.a):null,this.a?Si(this.a):null));var e=Y(t,function(t){return t.variants.some(be)});if(0==e)throw new v(2,4,9009);if(e<t.length)throw new v(2,4,4011);t.forEach(function(t){
if(ce(t,this.c.restrictions,this.mb)&&this.a&&xi(this.a)==t&&la(this),!t.variants.some(be))throw new v(2,4,4012)}.bind(this))},zs.sb=function(t){le(this.l,this.a?Ti(this.a):null,this.a?Si(this.a):null,t);var e=t.variants,n=e.some(be);if(ce(t,this.c.restrictions,this.mb)&&this.a&&xi(this.a)==t&&la(this),t=e.some(be),!n)throw new v(2,4,4011);if(!t)throw new v(2,4,4012)},zs.Ee=function(t,e){this.h&&this.h.segmentDownloaded(t,e)},zs.Qc=function(t){if(oa(this),this.pb=t,this.gb(),this.g){
var e=this.g.a;t!=e.h&&(e.h=t,li(e,e.g))}this.dispatchEvent(new Z("buffering",{buffering:t}))},zs.Ce=function(){la(this)},zs.gb=function(){if(!this.L){var t=this.pb?"buffering":this.f.ended?"ended":this.f.paused?"paused":"playing",e=Date.now()/1e3;if(this.j.stateHistory.length){var n=this.j.stateHistory[this.j.stateHistory.length-1];if(n.duration=e-n.timestamp,t==n.state)return}this.j.stateHistory.push({timestamp:e,state:t,duration:0})}},zs.De=function(){if(this.w){var t=this.w
;t.c.forEach(t.m.bind(t,!0))}this.a&&Pi(this.a)},zs.Ad=function(t){this.ta=!0,this.h.disable();var e={audio:!1,text:!1},n=_e(t.variants,this.Ba,this.ib,e),r=xe(t.textStreams,this.Ca,this.hb,e);if(n=sa(this,n),r=r[0]||null,this.K){t:{for(var i=this.b,o=0;o<i.periods.length;++o)for(var a=i.periods[o],s=0;s<a.variants.length;++s)if(a.variants[s]==this.K){i=o;break t}i=-1}i=this.b.periods[i],i==t&&(n=this.K),this.K=null}return this.A&&(i=ke(this.b,this.A),i=this.b.periods[i],i==t&&(r=this.A),
this.A=null),n&&$o(this,n,!0),r&&(Qo(this,r,!0),!Oi(this.a)&&n&&n.audio&&e.text&&r.language!=n.audio.language&&(this.u.setTextVisibility(!0),fa(this))),this.Mb()?{variant:n,text:r}:{variant:n,text:null}},zs.$c=function(){this.ta=!1,this.c.abr.enabled&&this.h.enable(),this.K&&(Ci(this.a,this.K,this.ic),this.K=null),this.A&&(Ai(this.a,this.A,!0),this.A=null)},zs.Id=function(){this.i&&this.i.update&&this.i.update()},zs.Sd=function(){this.g&&this.g.$a()},zs.Fe=function(t,e){$o(this,t,!0),
this.a&&(Ci(this.a,t,e||!1),ca(this))},zs.Sa=function(t){if(!this.L){var e=new Z("error",{detail:t});this.dispatchEvent(e),e.defaultPrevented&&(t.handled=!0)}},zs.Wd=function(t){this.w?this.w.s(t):this.ob.push(t)},zs.fb=function(t){this.dispatchEvent(t)},zs.Xd=function(){if(this.f.error){var t=this.f.error.code;if(1!=t){var e=this.f.error.msExtendedCode;e&&(0>e&&(e+=Math.pow(2,32)),e=e.toString(16)),this.Sa(new v(2,3,3016,t,e,this.f.error.message))}}},zs.Gd=function(t){
var e=["output-restricted","internal-error"],n=xi(this.a),r=!1,i=Object.keys(t),o=1==i.length&&"00"==i[0];i.length&&n.variants.forEach(function(n){var i=[];n.audio&&i.push(n.audio),n.video&&i.push(n.video),i.forEach(function(i){var a=n.allowedByKeySystem;i.keyId&&(i=t[o?"00":i.keyId],n.allowedByKeySystem=!!i&&0>e.indexOf(i)),a!=n.allowedByKeySystem&&(r=!0)})}),(i=Se(Ti(this.a),Si(this.a),n.variants))&&!i.allowedByKeySystem&&ua(this,n),r&&la(this)},zs.Dd=function(t,e){
this.i&&this.i.onExpirationUpdated&&this.i.onExpirationUpdated(t,e),this.dispatchEvent(new Z("expirationupdated"))},u("shaka.offline.Storage",ha),ha.support=pa,ha.prototype.destroy=function(){var t=this.g,e=this.c?this.c.destroy().catch(function(){}).then(function(){if(t)return t.destroy()}):Promise.resolve();return this.b=this.a=this.c=this.g=null,e},ha.prototype.destroy=ha.prototype.destroy,ha.prototype.configure=function(t){M(this.b,t,ma(this),{},"")},
ha.prototype.configure=ha.prototype.configure,ha.prototype.store=function(t,e,n){function r(t){o=t}if(this.l)return Promise.reject(new v(2,9,9006));this.l=!0;var i=e||{},o=null;return ba(this).then(function(){return Sa(this),ya(this,t,r,n)}.bind(this)).then(function(e){if(Sa(this),o)throw o;return da(this,t,e.manifest,i,e.ed)}.bind(this)).then(function(t){return Sa(this),wa(this).then(function(){return t})}.bind(this)).catch(function(t){return o=o||t,wa(this).then(function(){throw o})
}.bind(this))},ha.prototype.store=ha.prototype.store,ha.prototype.remove=function(t){return t.offlineUri?(d("Removing downloaded content using shakaExtern.StoredContent is deprecated. Please remove using the offline uri."),ga(this,t.offlineUri)):ga(this,t)},ha.prototype.remove=ha.prototype.remove,ha.prototype.list=function(){var t=[];return ba(this).then(function(){return Sa(this),no(this.g,function(e,n){var r=Oo("offline:manifest/"+e,n);t.push(r)})}.bind(this)).then(function(){return t})},
ha.prototype.list=ha.prototype.list,ha.prototype.u=function(t){var e=[],n=se(this.a.getConfiguration().preferredAudioLanguage),r=[0,nu,ru],i=t.filter(function(t){return"variant"==t.type});r=r.map(function(t){return i.filter(function(e){return e=se(e.language),ae(t,n,e)})});for(var o,a=0;a<r.length;a++)if(r[a].length){o=r[a];break}o||(r=i.filter(function(t){return t.primary}),r.length&&(o=r)),o||(o=i,i.map(function(t){return t.language}).filter(U));var s=o.filter(function(t){
return t.height&&480>=t.height});return s.length&&(s.sort(function(t,e){return e.height-t.height}),o=s.filter(function(t){return t.height==s[0].height})),o.sort(function(t,e){return t.bandwidth-e.bandwidth}),o.length&&e.push(o[Math.floor(o.length/2)]),e.push.apply(e,t.filter(function(t){return"text"==t.type})),e},ha.prototype.j=function(t){t.forEach(this.m.bind(this))},ha.prototype.m=function(t){var e=null;if(this.i){var n=this.i.filter(function(t){return"variant"==t.type})[0];n&&(e=ye(t,n))}
var r=n=null;e&&(e.audio&&(n=e.audio),e.video&&(r=e.video)),le(this.f,n,r,t),ce(t,this.a.getConfiguration().restrictions,{width:1/0,height:1/0})},ha.prototype.w=function(t){var e=ge(t,null,null),n=ve(t,null);for(e=this.b.trackSelectionCallback(e.concat(n)),null==this.i&&(this.i=e,this.j(this.h.periods)),n=e.length-1;0<n;--n){for(var r=!1,i=n-1;0<=i;--i)if(e[n].type==e[i].type&&e[n].kind==e[i].kind&&e[n].language==e[i].language){r=!0;break}if(r)break}for(r=[],n=0;n<e.length;n++){var o=ye(t,e[n])
;o?(o.audio&&((i=r.filter(function(t){return t.id==o.audio.id})[0])?i.variantIds.push(o.id):(i=o.video?o.bandwidth/2:o.bandwidth,r.push(Oa(this,o.audio,i,o.id)))),o.video&&((i=r.filter(function(t){return t.id==o.video.id})[0])?i.variantIds.push(o.id):(i=o.audio?o.bandwidth/2:o.bandwidth,r.push(Oa(this,o.video,i,o.id))))):r.push(Oa(this,me(t,e[n]),0))}return{startTime:t.startTime,streams:r}},ha.deleteAll=function(){return Do()},Hu.offline=pa,u("shaka.polyfill.installAll",function(){
for(var t=0;t<Wu.length;++t)Wu[t]()});var Wu=[];u("shaka.polyfill.register",ja),ja(function(){if(t.Document){var e=Element.prototype;e.requestFullscreen=e.requestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen||e.webkitRequestFullscreen,e=Document.prototype,e.exitFullscreen=e.exitFullscreen||e.mozCancelFullScreen||e.msExitFullscreen||e.webkitExitFullscreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){
return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",ka),document.addEventListener("webkitfullscreenerror",ka),document.addEventListener("mozfullscreenchange",ka),document.addEventListener("mozfullscreenerror",ka),
document.addEventListener("MSFullscreenChange",ka),document.addEventListener("MSFullscreenError",ka)}}),ja(function(){var e=navigator.userAgent;e&&0<=e.indexOf("CrKey")&&delete t.indexedDB});var Vu;ja(function(){0>navigator.userAgent.indexOf("Trident/")||HTMLInputElement.prototype.addEventListener==Ca||(Vu=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Ca)}),ja(function(){if(4503599627370497!=Math.round(4503599627370497)){var t=Math.round
;Math.round=function(e){var n=e;return 4503599627370496>=e&&(n=t(e)),n}}}),Aa.prototype.c=function(t){if(!(1<t.version)){var e=mt(t.o.Pa(16)),n=[];if(0<t.version)for(var r=t.o.C(),i=0;i<r;++i){var o=mt(t.o.Pa(16));n.push(o)}r=t.o.C(),t.o.F(r),this.b.push.apply(this.b,n),this.f.push(e),this.a.push({start:t.start,end:t.start+t.size-1})}},Ma.prototype.createMediaKeys=function(){var t=new Ia(this.keySystem);return Promise.resolve(t)},Ma.prototype.getConfiguration=function(){return this.a},
Ia.prototype.createSession=function(t){var e=t||"temporary";if("temporary"!=e)throw new TypeError("Session type "+t+" is unsupported on this platform.");return new Ra(this.a,e)},Ia.prototype.setServerCertificate=function(){return Promise.resolve(!1)},c(Ra,Ue),zs=Ra.prototype,zs.generateRequest=function(t,e){this.a=new E;try{this.c=this.g.createSession("video/mp4",new Uint8Array(e),null),K(this.f,this.c,"mskeymessage",this.Md.bind(this)),K(this.f,this.c,"mskeyadded",this.Kd.bind(this)),
K(this.f,this.c,"mskeyerror",this.Ld.bind(this)),Fa(this,"status-pending")}catch(t){this.a.reject(t)}return this.a},zs.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},zs.update=function(t){this.b=new E;try{this.c.update(new Uint8Array(t))}catch(t){this.b.reject(t)}return this.b},zs.close=function(){try{this.c.close(),this.closed.resolve(),Q(this.f)}catch(t){this.closed.reject(t)}return this.closed},zs.remove=function(){
return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},zs.Md=function(t){this.a&&(this.a.resolve(),this.a=null),this.dispatchEvent(new Z("message",{messageType:void 0==this.keyStatuses.a?"licenserequest":"licenserenewal",message:t.message.buffer}))},zs.Kd=function(){this.a?(Fa(this,"usable"),this.a.resolve(),this.a=null):this.b&&(Fa(this,"usable"),this.b.resolve(),this.b=null)},zs.Ld=function(){
var t=Error("EME PatchedMediaKeysMs key error");if(t.errorCode=this.c.error,null!=this.a)this.a.reject(t),this.a=null;else if(null!=this.b)this.b.reject(t),this.b=null;else switch(this.c.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:Fa(this,"output-not-allowed");break;default:Fa(this,"internal-error")}};var Yu;zs=Ba.prototype,zs.forEach=function(t){this.a&&t(this.a,Yu)},zs.get=function(t){if(this.has(t))return this.a},
zs.has=function(t){var e=Yu;return!(!this.a||!bt(new Uint8Array(t),new Uint8Array(e)))},zs.entries=function(){},zs.keys=function(){},zs.values=function(){},Ha.prototype.createSession=function(){},Ha.prototype.setServerCertificate=function(){},Wa.prototype.getConfiguration=function(){},Wa.prototype.createMediaKeys=function(){};var Gu="";Ka.prototype.createMediaKeys=function(){var t=new $a(this.a);return Promise.resolve(t)},Ka.prototype.getConfiguration=function(){return this.b},zs=$a.prototype,
zs.createSession=function(t){var e=t||"temporary";if("temporary"!=e&&"persistent-license"!=e)throw new TypeError("Session type "+t+" is unsupported on this platform.");return t=this.b||document.createElement("video"),t.src||(t.src="about:blank"),e=new Za(t,this.g,e),this.c.push(e),e},zs.setServerCertificate=function(){return Promise.resolve(!1)},zs.ae=function(t){var e=document.createEvent("CustomEvent");e.initCustomEvent("encrypted",!1,!1,null),e.initDataType="webm",e.initData=t.initData,
this.b.dispatchEvent(e)},zs.$d=function(t){var e=Ja(this,t.sessionId);e&&(t=new Z("message",{messageType:void 0==e.keyStatuses.a?"licenserequest":"licenserenewal",message:t.message}),e.b&&(e.b.resolve(),e.b=null),e.dispatchEvent(t))},zs.Yd=function(t){(t=Ja(this,t.sessionId))&&(es(t,"usable"),t.a&&t.a.resolve(),t.a=null)},zs.Zd=function(t){var e=Ja(this,t.sessionId);if(e){var n=Error("EME v0.1b key error");n.errorCode=t.errorCode,n.errorCode.systemCode=t.systemCode,
!t.sessionId&&e.b?(n.method="generateRequest",45==t.systemCode&&(n.message="Unsupported session type."),e.b.reject(n),e.b=null):t.sessionId&&e.a?(n.method="update",e.a.reject(n),e.a=null):(n=t.systemCode,t.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?es(e,"output-restricted"):1==n?es(e,"expired"):es(e,"internal-error"))}},c(Za,Ue),zs=Za.prototype,zs.dc=function(t,e){if(this.a)this.a.then(this.dc.bind(this,t,e)).catch(this.dc.bind(this,t,e));else{if(this.a=t,
"webkit-org.w3.clearkey"==this.c){var n=st(e),r=JSON.parse(n);"oct"!=r.keys[0].kty&&(this.a.reject(Error("Response is not a valid JSON Web Key Set.")),this.a=null),n=vt(r.keys[0].k),r=vt(r.keys[0].kid)}else n=new Uint8Array(e),r=null;var i=Ya("addKey");try{this.f[i](this.c,n,r,this.sessionId)}catch(t){this.a.reject(t),this.a=null}}},zs.generateRequest=function(t,e){return ts(this,e,null)},zs.load=function(t){
return"persistent-license"==this.g?ts(this,null,t):Promise.reject(Error("Not a persistent session."))},zs.update=function(t){var e=new E;return this.dc(e,t),e},zs.close=function(){if("persistent-license"!=this.g){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var t=Ya("cancelKeyRequest");try{this.f[t](this.c,this.sessionId)}catch(t){}}return this.closed.resolve(),this.closed},zs.remove=function(){
return"persistent-license"!=this.g?Promise.reject(Error("Not a persistent session.")):this.close()};var Xu;zs=ns.prototype,zs.forEach=function(t){this.a&&t(this.a,Xu)},zs.get=function(t){if(this.has(t))return this.a},zs.has=function(t){var e=Xu;return!(!this.a||!bt(new Uint8Array(t),new Uint8Array(e)))},zs.entries=function(){},zs.keys=function(){},zs.values=function(){},ja(function(){
!t.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(HTMLMediaElement.prototype.webkitGenerateKeyRequest?Va("webkit"):HTMLMediaElement.prototype.generateKeyRequest?Va(""):t.MSMediaKeys?(Yu=new Uint8Array([0]).buffer,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Da,t.MediaKeys=Ia,t.MediaKeySystemAccess=Ma,
navigator.requestMediaKeySystemAccess=Pa):(navigator.requestMediaKeySystemAccess=za,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=qa,t.MediaKeys=Ha,t.MediaKeySystemAccess=Wa))}),ja(function(){if(t.MediaSource)if(t.cast&&cast.__platform__&&cast.__platform__.canDisplayType)cs();else if(navigator.vendor&&0<=navigator.vendor.indexOf("Apple")){var e=navigator.appVersion;us(),
0<=e.indexOf("Version/8")?t.MediaSource=null:0<=e.indexOf("Version/9")?rs():0<=e.indexOf("Version/10")?(rs(),os()):0<=e.indexOf("Version/11")&&(rs(),is())}});var Ku=0;ls.prototype.then=function(t,e){var n=new ls;switch(this.V){case 1:gs(this,n,t);break;case 2:gs(this,n,e);break;case Ku:this.c.push({N:n,Db:t}),this.b.push({N:n,Db:e})}return n},ls.prototype.catch=function(t){return this.then(void 0,t)},ls.prototype.ma=function(t){if(this.V==Ku){for(this.f=t,this.V=1,
t=0;t<this.c.length;++t)gs(this,this.c[t].N,this.c[t].Db);this.c=[],this.b=[]}},ls.prototype.a=function(t){if(this.V==Ku){for(this.f=t,this.V=2,t=0;t<this.b.length;++t)gs(this,this.b[t].N,this.b[t].Db);this.c=[],this.b=[]}};var $u=null,Qu=[];ja(function(e){t.setImmediate?(ms=function(e){return t.setImmediate(e)},bs=function(e){t.clearImmediate(e)}):(ms=function(e){return t.setTimeout(e,0)},bs=function(e){t.clearTimeout(e)}),t.Promise&&!e||(t.Promise=ls,t.Promise.resolve=fs,t.Promise.reject=hs,
t.Promise.all=ps,t.Promise.race=ds,t.Promise.prototype.then=ls.prototype.then,t.Promise.prototype.catch=ls.prototype.catch)}),ja(function(){if(t.HTMLMediaElement){var e=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var t=e.apply(this,arguments);return t&&t.catch(function(){}),t}}}),ja(function(){if(t.HTMLVideoElement){var e=HTMLVideoElement.prototype;!e.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in e&&(e.getVideoPlaybackQuality=ws)}}),ja(function(){
if(!t.VTTCue&&t.TextTrackCue){var e=TextTrackCue.length;if(3==e)t.VTTCue=_s;else if(6==e)t.VTTCue=xs;else{try{var n=!!_s(1,2,"")}catch(t){n=!1}n&&(t.VTTCue=_s)}}}),Os.prototype.parseInit=function(){},Os.prototype.parseMedia=function(t,e){var n=st(t),r=[],i=new DOMParser,o=null;try{o=i.parseFromString(n,"text/xml")}catch(t){throw new v(2,2,2005)}if(o){var a=o.getElementsByTagName("tt")[0];if(!a)throw new v(2,2,2005);i=a.getAttribute("ttp:frameRate"),o=a.getAttribute("ttp:subFrameRate")
;var s=a.getAttribute("ttp:frameRateMultiplier"),u=a.getAttribute("ttp:tickRate");if("default"!=(n=a.getAttribute("xml:space")||"default")&&"preserve"!=n)throw new v(2,2,2005);for(n="default"==n,i=new Ds(i,o,s,u),o=Ts(a.getElementsByTagName("styling")[0]),s=Ts(a.getElementsByTagName("layout")[0]),a=Ts(a.getElementsByTagName("body")[0]),u=0;u<a.length;u++){var c=a[u],l=e.periodStart,f=i,h=o,p=s,d=n;if(c.hasAttribute("begin")||c.hasAttribute("end")||!/^\s*$/.test(c.textContent)){Ss(c,d),
d=Ps(c.getAttribute("begin"),f);var g=Ps(c.getAttribute("end"),f);f=Ps(c.getAttribute("dur"),f);var y=c.textContent;if(null==g&&null!=f&&(g=d+f),null==d||null==g)throw new v(2,2,2001);l=new Uo(d+l,g+l,y),d=As(c,"region",p),p=l,"rtl"==js(c,d,h,"tts:direction")&&(p.writingDirection=1),g=js(c,d,h,"tts:writingMode"),"tb"==g||"tblr"==g?p.writingDirection=2:"tbrl"==g?p.writingDirection=3:"rltb"==g||"rl"==g?p.writingDirection=1:g&&(p.writingDirection=Ru),
(g=js(c,d,h,"tts:origin"))&&null!=(g=ic.exec(g))&&(p.region.x=Number(g[1]),p.region.y=Number(g[2])),(g=js(c,d,h,"tts:extent"))&&null!=(g=ic.exec(g))&&(p.region.width=Number(g[1]),p.region.height=Number(g[2])),(g=js(c,d,h,"tts:textAlign"))&&(p.positionAlign=sc[g],p.lineAlign=ac[g],p.textAlign=Du[g.toUpperCase()]),(g=js(c,d,h,"tts:displayAlign"))&&(p.displayAlign=Nu[g.toUpperCase()]),(g=js(c,d,h,"tts:color"))&&(p.color=g),(g=js(c,d,h,"tts:backgroundColor"))&&(p.backgroundColor=g),
(g=js(c,d,h,"tts:fontFamily"))&&(p.fontFamily=g),(g=js(c,d,h,"tts:fontWeight"))&&"bold"==g&&(p.fontWeight=700),(g=js(c,d,h,"tts:wrapOption"))&&"noWrap"==g&&(p.wrapLine=!1),(g=js(c,d,h,"tts:lineHeight"))&&g.match(oc)&&(p.lineHeight=g),(g=js(c,d,h,"tts:fontSize"))&&g.match(oc)&&(p.fontSize=g),(g=js(c,d,h,"tts:fontStyle"))&&(p.fontStyle=qu[g.toUpperCase()]),(d=ks(d,h,"tts:textDecoration"))&&Es(p,d),(c=Cs(c,h,"tts:textDecoration"))&&Es(p,c)}else l=null;l&&r.push(l)}}return r}
;var Ju=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Zu=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,tc=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,ec=/^(\d*(?:\.\d*)?)f$/,nc=/^(\d*(?:\.\d*)?)t$/,rc=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,ic=/^(\d{1,2}|100)% (\d{1,2}|100)%$/,oc=/^(\d+px|\d+em)$/,ac={left:"start",center:Uu,right:"end",start:"start",end:"end"},sc={left:"line-left",center:"center",right:"line-right"};eu["application/ttml+xml"]=Os,
Is.prototype.parseInit=function(t){var e=!1;if((new xn).B("moov",On).B("trak",On).B("mdia",On).B("minf",On).B("stbl",On).W("stsd",Tn).B("stpp",function(t){e=!0,t.la.stop()}).parse(t),!e)throw new v(2,2,2007)},Is.prototype.parseMedia=function(t,e){var n=!1,r=[];if((new xn).B("mdat",Sn(function(t){n=!0,r=r.concat(this.a.parseMedia(t,e))}.bind(this))).parse(t),!n)throw new v(2,2,2007);return r},eu['application/mp4; codecs="stpp"']=Is,eu['application/mp4; codecs="stpp.TTML.im1t"']=Is,
Ns.prototype.parseInit=function(){},Ns.prototype.parseMedia=function(t,e){var n=st(t);if(n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n"),n=n.split(/\n{2,}/m),!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new v(2,2,2e3);var r=e.segmentStart;if(null==r&&(r=0,0<=n[0].indexOf("X-TIMESTAMP-MAP"))){var i=n[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),o=n[0].match(/MPEGTS:(\d+)/m);i&&o&&(r=Ls(new Sr(i[1])),r=e.periodStart+(Number(o[1])/9e4-r))}for(o=[],i=1;i<n.length;i++){var a=n[i].split("\n"),s=r
;if(1==a.length&&!a[0]||/^NOTE($|[ \t])/.test(a[0])||"STYLE"==a[0])var u=null;else{u=null,0>a[0].indexOf("--\x3e")&&(u=a[0],a.splice(0,1));var c=new Sr(a[0]),l=Ls(c),f=Er(c,/[ \t]+--\x3e[ \t]+/g),h=Ls(c);if(null==l||null==f||null==h)throw new v(2,2,2001);for(a=new Uo(l+s,h+s,a.slice(1).join("\n").trim()),Er(c,/[ \t]+/gm),s=jr(c);s;)Rs(a,s),Er(c,/[ \t]+/gm),s=jr(c);null!=u&&(a.id=u),u=a}u&&o.push(u)}return o},eu["text/vtt"]=Ns,eu['text/vtt; codecs="vtt"']=Ns,Us.prototype.parseInit=function(t){
var e=!1;if((new xn).B("moov",On).B("trak",On).B("mdia",On).W("mdhd",function(t){0==t.version?(t.o.F(4),t.o.F(4),this.a=t.o.C(),t.o.F(4)):(t.o.F(8),t.o.F(8),this.a=t.o.C(),t.o.F(8)),t.o.F(4)}.bind(this)).B("minf",On).B("stbl",On).W("stsd",Tn).B("wvtt",function(){e=!0}).parse(t),!this.a)throw new v(2,2,2008);if(!e)throw new v(2,2,2008)},Us.prototype.parseMedia=function(t,e){if(!this.a)throw new v(2,2,2008);var n=0,r=[],i=[],o=[],a=!1,s=!1,u=!1,c=null
;if((new xn).B("moof",On).B("traf",On).W("tfdt",function(t){a=!0,n=0==t.version?t.o.C():t.o.Qa()}).W("tfhd",function(t){var e=t.flags;t=t.o,t.F(4),1&e&&t.F(8),2&e&&t.F(4),c=8&e?t.C():null}).W("trun",function(t){s=!0;var e=t.version,n=t.flags;t=t.o;var i=t.C();1&n&&t.F(4),4&n&&t.F(4);for(var o=[],a=0;a<i;a++){var u={duration:null,ec:null};256&n&&(u.duration=t.C()),512&n&&t.F(4),1024&n&&t.F(4),2048&n&&(u.ec=0==e?t.C():t.Gc()),o.push(u)}r=o}).B("vtte",function(){i.push(null)
}).B("vttc",Sn(function(t){i.push(t)})).B("mdat",function(t){u=!0,On(t)}).parse(t),!u&&!a&&!s)throw new v(2,2,2008);for(var l=n,f=0;f<r.length;f++){var h=r[f],p=i[f],d=h.duration||c;d&&(h=h.ec?n+h.ec:l,l=h+d,p&&o.push(Fs(p,e.periodStart+h/this.a,e.periodStart+l/this.a)))}return o.filter(L)},eu['application/mp4; codecs="wvtt"']=Us}).call(o,this),void 0!==t&&t.exports?t.exports=o.shaka:void 0!==(i=function(){return o.shaka}.call(e,n,e,t))&&(t.exports=i)}()}).call(e,n(158))}],[5143]);